[03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:36:47]ConnectInit Can't connect to host [03:36:48]OFD Sender: No OFD packet to send [03:46:55]ConnectInit Can't connect to host [03:46:58]OFD Sender: No OFD packet to send [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: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:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [04:12:25]ConnectInit Can't connect to host [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16: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:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]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: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: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: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: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: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: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:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [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: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: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:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]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: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: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: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:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [06:11:53]ConnectInit Can't connect to host [06:11:57]OFD Sender: No OFD packet to send [06:13:38]ConnectInit Can't connect to host [06:13:42]OFD Sender: No OFD packet to send [06:18:15]ConnectInit Can't connect to host [06:18:18]OFD Sender: No OFD packet to send [06:42:41]ConnectInit Can't connect to host [06:42:44]OFD Sender: No OFD packet to send [06:55:23]ConnectInit Can't connect to host [06:55:24]OFD Sender: No OFD packet to send [07:14:01]ConnectInit Can't connect to host [07:14:05]OFD Sender: No OFD packet to send [07:17:33]ConnectInit Can't connect to host [07:17:36]OFD Sender: Processing packet 49573 [packets to send 21, broken 20] [07:17:36]ProducePacketName [07:17:36]name=ofd_packets/00049573 [07:17:36]OFD Sender: To server: pG, [07:17:36]CommunicateWithHost lk.salyk.kg:30040 [07:17:36]ConnectInit lk.salyk.kg [08:37:03]ConnectInit Can't connect to host [08:37:04]OFD Sender: Processing packet 49573 [packets to send 29, broken 20] [08:37:04]ProducePacketName [08:37:04]name=ofd_packets/00049573 [08:37:04]OFD Sender: To server: pG, [08:37:04]CommunicateWithHost lk.salyk.kg:30040 [08:37:04]ConnectInit lk.salyk.kg [08:40:12]ConnectInit Can't connect to host [08:40:15]ConnectInit Can't take IP for lk.salyk.kg [08:40:15]CommunicateWithHost connect error [08:40:15]CommunicateWithHost err = -1 [08:40:15]OFD Sender: Server communicate error [09:06:04]ConnectInit Can't connect to host [09:06:07]ConnectInit Can't take IP for lk.salyk.kg [09:06:07]CommunicateWithHost connect error [09:06:07]CommunicateWithHost err = -1 [09:06:07]OFD Sender: Server communicate error [09:33:54]ConnectInit Can't connect to host [09:33:58]ConnectInit Can't take IP for lk.salyk.kg [09:33:58]CommunicateWithHost connect error [09:33:58]CommunicateWithHost err = -1 [09:33:58]OFD Sender: Server communicate error [09:44:17]ConnectInit Can't connect to host [09:44:19]OFD Sender: Processing packet 49573 [packets to send 38, broken 20] [09:44:19]ProducePacketName [09:44:19]name=ofd_packets/00049573 [09:44:19]OFD Sender: To server: pG, [09:44:19]CommunicateWithHost lk.salyk.kg:30040 [09:44:19]ConnectInit lk.salyk.kg [09:44:19]Connected sock=7 [09:44:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 81 01 00 00 DC C1 79 01 FF 64 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 06 00 00 00 00 07 04 06 00 E4 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 68 4E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A5 C1 00 00 35 04 06 00 DE 26 D4 52 2C 2A 23 4C 6F 87 D7 A4 55 B4 [09:44:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C8 7A 47 00 9C 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 31 38 30 30 10 04 04 00 A5 C1 00 00 F4 03 04 00 30 1C C0 66 B6 04 01 00 00 85 76 DD CA AB 61 15 9F [09:44:19]CommunicateWithHost err = 0 [09:44:19]CheckOFDResponse [09:44:19]1017 (14) - 77093643461234 [09:44:19]1041 (16) - 0000000000871800 [09:44:19]1040 (4) - 49573 [09:44:19]1012 (4) - 17.08.2024 03:42 [09:44:19]1206 (1) - 0 [09:44:19]OFD Sender: Remove packet 49573 [09:44:19]ProducePacketName [09:44:19]name=ofd_packets/00049573 [09:44:19]NVStorageDeleteData [09:44:20]OFD Sender: Processing packet 49574 [packets to send 37, broken 20] [09:44:20]ProducePacketName [09:44:20]name=ofd_packets/00049574 [09:44:20]OFD Sender: To server: pG, [09:44:20]CommunicateWithHost lk.salyk.kg:30040 [09:44:20]ConnectInit lk.salyk.kg [09:44:20]Connected sock=7 [09:44:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 79 8C 20 01 98 51 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E9 52 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A6 C1 00 00 35 04 06 00 A7 E6 37 B1 FF B7 6C 91 2E 6D 99 54 6D 84 [09:44:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 50 78 47 00 D8 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A6 C1 00 00 F4 03 04 00 31 1C C0 66 B6 04 01 00 00 F9 05 2E CC 92 52 2F 91 [09:44:20]CommunicateWithHost err = 0 [09:44:20]CheckOFDResponse [09:44:20]1017 (14) - 77093643461234 [09:44:20]1041 (16) - 0000000000871800 [09:44:20]1040 (4) - 49574 [09:44:20]1012 (4) - 17.08.2024 03:42 [09:44:20]1206 (1) - 0 [09:44:20]OFD Sender: Remove packet 49574 [09:44:20]ProducePacketName [09:44:20]name=ofd_packets/00049574 [09:44:20]NVStorageDeleteData [09:44:21]OFD Sender: Processing packet 49575 [packets to send 36, broken 20] [09:44:21]ProducePacketName [09:44:21]name=ofd_packets/00049575 [09:44:21]OFD Sender: To server: pG, [09:44:21]CommunicateWithHost lk.salyk.kg:30040 [09:44:21]ConnectInit lk.salyk.kg [09:44:21]Connected sock=7 [09:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 BB 52 2A 01 8F 0C 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 EF 52 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A7 C1 00 00 35 04 06 00 25 C8 B7 5B 9E C5 0F 57 E3 E0 F6 9A 40 67 [09:44:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5A A5 47 00 FE 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A7 C1 00 00 F4 03 04 00 32 1C C0 66 B6 04 01 00 00 67 20 C2 EF 6B 43 A1 5F [09:44:21]CommunicateWithHost err = 0 [09:44:21]CheckOFDResponse [09:44:21]1017 (14) - 77093643461234 [09:44:21]1041 (16) - 0000000000871800 [09:44:21]1040 (4) - 49575 [09:44:21]1012 (4) - 17.08.2024 03:42 [09:44:21]1206 (1) - 0 [09:44:21]OFD Sender: Remove packet 49575 [09:44:21]ProducePacketName [09:44:21]name=ofd_packets/00049575 [09:44:21]NVStorageDeleteData [09:44:22]OFD Sender: Processing packet 49576 [packets to send 35, broken 20] [09:44:22]ProducePacketName [09:44:22]name=ofd_packets/00049576 [09:44:22]OFD Sender: To server: pG, [09:44:22]CommunicateWithHost lk.salyk.kg:30040 [09:44:22]ConnectInit lk.salyk.kg [09:44:22]Connected sock=10 [09:44:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 7A 7E 24 01 B9 12 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F4 52 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A8 C1 00 00 35 04 06 00 7A F8 DD 83 C1 94 54 AA 5E 28 3D 27 63 B4 [09:44:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 57 B9 47 00 33 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 31 38 30 30 10 04 04 00 A8 C1 00 00 F4 03 04 00 33 1C C0 66 B6 04 01 00 00 7F 6E A5 A7 FB 1F D7 47 [09:44:22]CommunicateWithHost err = 0 [09:44:22]CheckOFDResponse [09:44:22]1017 (14) - 77093643461234 [09:44:22]1041 (16) - 0000000000871800 [09:44:22]1040 (4) - 49576 [09:44:22]1012 (4) - 17.08.2024 03:42 [09:44:22]1206 (1) - 0 [09:44:22]OFD Sender: Remove packet 49576 [09:44:22]ProducePacketName [09:44:22]name=ofd_packets/00049576 [09:44:22]NVStorageDeleteData [09:44:23]OFD Sender: Processing packet 49577 [packets to send 34, broken 20] [09:44:23]ProducePacketName [09:44:23]name=ofd_packets/00049577 [09:44:23]OFD Sender: To server: pG, [09:44:23]CommunicateWithHost lk.salyk.kg:30040 [09:44:23]ConnectInit lk.salyk.kg [09:44:23]Connected sock=7 [09:44:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 01 00 00 88 C4 08 01 7C BA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 71 56 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A9 C1 00 00 35 04 06 00 D1 1F 0E 02 86 43 42 ED C6 33 FF 4E 92 6E [09:44:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 75 97 47 00 A9 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A9 C1 00 00 F4 03 04 00 34 1C C0 66 B6 04 01 00 00 0D 4C EC 83 AE C3 D3 74 [09:44:23]CommunicateWithHost err = 0 [09:44:23]CheckOFDResponse [09:44:23]1017 (14) - 77093643461234 [09:44:23]1041 (16) - 0000000000871800 [09:44:23]1040 (4) - 49577 [09:44:23]1012 (4) - 17.08.2024 03:42 [09:44:23]1206 (1) - 0 [09:44:23]OFD Sender: Remove packet 49577 [09:44:23]ProducePacketName [09:44:23]name=ofd_packets/00049577 [09:44:23]NVStorageDeleteData [09:44:24]OFD Sender: Processing packet 49578 [packets to send 33, broken 20] [09:44:24]ProducePacketName [09:44:24]name=ofd_packets/00049578 [09:44:24]OFD Sender: To server: pG, [09:44:24]CommunicateWithHost lk.salyk.kg:30040 [09:44:24]ConnectInit lk.salyk.kg [09:44:24]Connected sock=7 [09:44:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AD 01 00 00 E7 C7 A5 01 7A A5 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 22 58 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AA C1 00 00 35 04 06 00 26 19 3F E1 45 7C BF A9 0B E7 3E B5 CC 31 [09:44:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 2F DF 47 00 57 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 31 38 30 30 10 04 04 00 AA C1 00 00 F4 03 04 00 35 1C C0 66 B6 04 01 00 00 CC B2 1E 61 3A 1C AA 3B [09:44:24]CommunicateWithHost err = 0 [09:44:24]CheckOFDResponse [09:44:24]1017 (14) - 77093643461234 [09:44:24]1041 (16) - 0000000000871800 [09:44:24]1040 (4) - 49578 [09:44:24]1012 (4) - 17.08.2024 03:42 [09:44:24]1206 (1) - 0 [09:44:24]OFD Sender: Remove packet 49578 [09:44:24]ProducePacketName [09:44:24]name=ofd_packets/00049578 [09:44:24]NVStorageDeleteData [09:44:25]OFD Sender: Processing packet 49579 [packets to send 32, broken 20] [09:44:25]ProducePacketName [09:44:25]name=ofd_packets/00049579 [09:44:25]OFD Sender: To server: pG, [09:44:25]CommunicateWithHost lk.salyk.kg:30040 [09:44:25]ConnectInit lk.salyk.kg [09:44:25]Connected sock=7 [09:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 93 01 00 00 40 38 8B 01 58 13 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 32 34 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 2A 5A C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AB C1 00 00 35 04 06 00 AA DF 37 1B 18 7C 81 AA 7B CF C1 43 21 AC [09:44:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 01 79 47 00 28 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 31 38 30 30 10 04 04 00 AB C1 00 00 F4 03 04 00 36 1C C0 66 B6 04 01 00 00 C2 30 9D 47 C8 CA F2 2A [09:44:25]CommunicateWithHost err = 0 [09:44:25]CheckOFDResponse [09:44:25]1017 (14) - 77093643461234 [09:44:25]1041 (16) - 0000000000871800 [09:44:25]1040 (4) - 49579 [09:44:25]1012 (4) - 17.08.2024 03:42 [09:44:25]1206 (1) - 0 [09:44:25]OFD Sender: Remove packet 49579 [09:44:25]ProducePacketName [09:44:25]name=ofd_packets/00049579 [09:44:25]NVStorageDeleteData [09:44:26]OFD Sender: Processing packet 49580 [packets to send 31, broken 20] [09:44:26]ProducePacketName [09:44:26]name=ofd_packets/00049580 [09:44:26]OFD Sender: To server: pG, [09:44:26]CommunicateWithHost lk.salyk.kg:30040 [09:44:26]ConnectInit lk.salyk.kg [09:44:26]Connected sock=7 [09:44:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 01 58 04 01 0A 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 11 00 00 00 F4 03 04 00 C2 5B C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AC C1 00 00 35 04 06 00 D9 48 F6 0F 07 84 BE AE CD 53 0C 0E 5F 76 [09:44:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 68 E6 47 00 03 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AC C1 00 00 F4 03 04 00 37 1C C0 66 B6 04 01 00 00 E6 B5 94 B1 86 B6 AB E0 [09:44:26]CommunicateWithHost err = 0 [09:44:26]CheckOFDResponse [09:44:26]1017 (14) - 77093643461234 [09:44:26]1041 (16) - 0000000000871800 [09:44:26]1040 (4) - 49580 [09:44:26]1012 (4) - 17.08.2024 03:42 [09:44:26]1206 (1) - 0 [09:44:26]OFD Sender: Remove packet 49580 [09:44:26]ProducePacketName [09:44:26]name=ofd_packets/00049580 [09:44:26]NVStorageDeleteData [09:44:27]OFD Sender: Processing packet 49581 [packets to send 30, broken 20] [09:44:27]ProducePacketName [09:44:27]name=ofd_packets/00049581 [09:44:27]OFD Sender: To server: pG, [09:44:27]CommunicateWithHost lk.salyk.kg:30040 [09:44:27]ConnectInit lk.salyk.kg [09:46:40]ConnectInit Can't connect to host [09:46:40]CommunicateWithHost connect error [09:46:40]CommunicateWithHost err = -1 [09:46:40]OFD Sender: Server communicate error [09:46:45]OFD Sender: Processing packet 49581 [packets to send 30, broken 20] [09:46:45]ProducePacketName [09:46:45]name=ofd_packets/00049581 [09:46:45]OFD Sender: To server: pG, [09:46:45]CommunicateWithHost lk.salyk.kg:30040 [09:46:45]ConnectInit lk.salyk.kg [09:46:46]Connected sock=7 [09:46:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 43 55 1E 01 32 10 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 42 5E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AD C1 00 00 35 04 06 00 B4 FC 6C 66 16 1C E8 7B 28 4B 32 31 35 52 [09:46:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BB 69 47 00 A2 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AD C1 00 00 F4 03 04 00 C3 1C C0 66 B6 04 01 00 00 E8 DB 90 99 D5 1F 59 86 [09:46:46]CommunicateWithHost err = 0 [09:46:46]CheckOFDResponse [09:46:46]1017 (14) - 77093643461234 [09:46:46]1041 (16) - 0000000000871800 [09:46:46]1040 (4) - 49581 [09:46:46]1012 (4) - 17.08.2024 03:45 [09:46:46]1206 (1) - 0 [09:46:46]OFD Sender: Remove packet 49581 [09:46:46]ProducePacketName [09:46:46]name=ofd_packets/00049581 [09:46:46]NVStorageDeleteData [09:46:46]OFD Sender: Processing packet 49582 [packets to send 29, broken 20] [09:46:46]ProducePacketName [09:46:46]name=ofd_packets/00049582 [09:46:46]OFD Sender: To server: pG, [09:46:46]CommunicateWithHost lk.salyk.kg:30040 [09:46:46]ConnectInit lk.salyk.kg [09:46:46]Connected sock=7 [09:46:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 76 AF 1E 01 C3 B8 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 8D 61 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AE C1 00 00 35 04 06 00 0E 6B 21 51 D4 8A 5C B9 28 2F 6E 84 25 24 [09:46:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E8 5A 47 00 5E 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 31 38 30 30 10 04 04 00 AE C1 00 00 F4 03 04 00 C4 1C C0 66 B6 04 01 00 00 55 38 DD A9 6C F0 E4 9B [09:46:47]CommunicateWithHost err = 0 [09:46:47]CheckOFDResponse [09:46:47]1017 (14) - 77093643461234 [09:46:47]1041 (16) - 0000000000871800 [09:46:47]1040 (4) - 49582 [09:46:47]1012 (4) - 17.08.2024 03:45 [09:46:47]1206 (1) - 0 [09:46:47]OFD Sender: Remove packet 49582 [09:46:47]ProducePacketName [09:46:47]name=ofd_packets/00049582 [09:46:47]NVStorageDeleteData [09:46:47]OFD Sender: Processing packet 49583 [packets to send 28, broken 20] [09:46:47]ProducePacketName [09:46:47]name=ofd_packets/00049583 [09:46:47]OFD Sender: To server: pG, [09:46:47]CommunicateWithHost lk.salyk.kg:30040 [09:46:47]ConnectInit lk.salyk.kg [09:46:47]Connected sock=7 [09: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 31 38 30 30 26 01 00 00 BD E6 1E 01 94 23 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 64 65 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AF C1 00 00 35 04 06 00 1D 01 F2 F9 9B B7 46 F3 3B 69 B3 8A 02 63 [09:46:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 50 F9 47 00 88 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AF C1 00 00 F4 03 04 00 C5 1C C0 66 B6 04 01 00 00 F0 08 D8 A5 77 4D 82 3B [09:46:48]CommunicateWithHost err = 0 [09:46:48]CheckOFDResponse [09:46:48]1017 (14) - 77093643461234 [09:46:48]1041 (16) - 0000000000871800 [09:46:48]1040 (4) - 49583 [09:46:48]1012 (4) - 17.08.2024 03:45 [09:46:48]1206 (1) - 0 [09:46:48]OFD Sender: Remove packet 49583 [09:46:48]ProducePacketName [09:46:48]name=ofd_packets/00049583 [09:46:48]NVStorageDeleteData [09:46:48]OFD Sender: Processing packet 49584 [packets to send 27, broken 20] [09:46:48]ProducePacketName [09:46:48]name=ofd_packets/00049584 [09:46:48]OFD Sender: To server: pG, [09:46:48]CommunicateWithHost lk.salyk.kg:30040 [09:46:48]ConnectInit lk.salyk.kg [09:46:48]Connected sock=7 [09:46:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 8E FA 04 01 82 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 69 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 29 66 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B0 C1 00 00 35 04 06 00 28 93 22 B5 D4 99 09 EC 1A 8D F9 CB 3C 72 [09:46:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 76 E0 47 00 69 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B0 C1 00 00 F4 03 04 00 C6 1C C0 66 B6 04 01 00 00 84 76 36 E3 88 74 37 C9 [09:46:49]CommunicateWithHost err = 0 [09:46:49]CheckOFDResponse [09:46:49]1017 (14) - 77093643461234 [09:46:49]1041 (16) - 0000000000871800 [09:46:49]1040 (4) - 49584 [09:46:49]1012 (4) - 17.08.2024 03:45 [09:46:49]1206 (1) - 0 [09:46:49]OFD Sender: Remove packet 49584 [09:46:49]ProducePacketName [09:46:49]name=ofd_packets/00049584 [09:46:49]NVStorageDeleteData [09:46:49]OFD Sender: Processing packet 49585 [packets to send 26, broken 20] [09:46:49]ProducePacketName [09:46:49]name=ofd_packets/00049585 [09:46:49]OFD Sender: To server: pG, [09:46:49]CommunicateWithHost lk.salyk.kg:30040 [09:46:49]ConnectInit lk.salyk.kg [09:46:50]Connected sock=10 [09:46:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 85 BD 1B 01 4D DD 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 46 68 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B1 C1 00 00 35 04 06 00 5B AD D0 20 33 AD BC DD D8 4C 31 C2 A4 DB [09:46:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1D AF 47 00 11 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 31 38 30 30 10 04 04 00 B1 C1 00 00 F4 03 04 00 C7 1C C0 66 B6 04 01 00 00 67 4C B3 C0 4F 37 0F A1 [09:46:50]CommunicateWithHost err = 0 [09:46:50]CheckOFDResponse [09:46:50]1017 (14) - 77093643461234 [09:46:50]1041 (16) - 0000000000871800 [09:46:50]1040 (4) - 49585 [09:46:50]1012 (4) - 17.08.2024 03:45 [09:46:50]1206 (1) - 0 [09:46:50]OFD Sender: Remove packet 49585 [09:46:50]ProducePacketName [09:46:50]name=ofd_packets/00049585 [09:46:50]NVStorageDeleteData [09:46:50]OFD Sender: Processing packet 49586 [packets to send 25, broken 20] [09:46:50]ProducePacketName [09:46:50]name=ofd_packets/00049586 [09:46:50]OFD Sender: To server: pG, [09:46:50]CommunicateWithHost lk.salyk.kg:30040 [09:46:50]ConnectInit lk.salyk.kg [09:46:50]Connected sock=7 [09:46:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 B5 B6 04 01 24 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 17 00 00 00 F4 03 04 00 33 6A C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B2 C1 00 00 35 04 06 00 C0 62 F4 4D 69 7C 15 91 BC 82 A5 2E 86 39 [09:46:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 25 C8 47 00 57 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B2 C1 00 00 F4 03 04 00 C8 1C C0 66 B6 04 01 00 00 31 6D F2 9F A3 81 66 B2 [09:46:51]CommunicateWithHost err = 0 [09:46:51]CheckOFDResponse [09:46:51]1017 (14) - 77093643461234 [09:46:51]1041 (16) - 0000000000871800 [09:46:51]1040 (4) - 49586 [09:46:51]1012 (4) - 17.08.2024 03:45 [09:46:51]1206 (1) - 0 [09:46:51]OFD Sender: Remove packet 49586 [09:46:51]ProducePacketName [09:46:51]name=ofd_packets/00049586 [09:46:51]NVStorageDeleteData [09:46:51]OFD Sender: Processing packet 49587 [packets to send 24, broken 20] [09:46:51]ProducePacketName [09:46:51]name=ofd_packets/00049587 [09:46:51]OFD Sender: To server: pG, [09:46:51]CommunicateWithHost lk.salyk.kg:30040 [09:46:51]ConnectInit lk.salyk.kg [09:46:52]Connected sock=7 [09:46:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 CA 16 1D 01 A1 45 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 25 6B C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B3 C1 00 00 35 04 06 00 CC FC C0 72 9A EB 1E 76 44 F3 40 AC 1B 74 [09:46:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 86 AE 47 00 26 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B3 C1 00 00 F4 03 04 00 C9 1C C0 66 B6 04 01 00 00 6E 95 63 58 0C 0E 35 1B [09:46:52]CommunicateWithHost err = 0 [09:46:52]CheckOFDResponse [09:46:52]1017 (14) - 77093643461234 [09:46:52]1041 (16) - 0000000000871800 [09:46:52]1040 (4) - 49587 [09:46:52]1012 (4) - 17.08.2024 03:45 [09:46:52]1206 (1) - 0 [09:46:52]OFD Sender: Remove packet 49587 [09:46:52]ProducePacketName [09:46:52]name=ofd_packets/00049587 [09:46:52]NVStorageDeleteData [09:46:52]OFD Sender: Processing packet 49588 [packets to send 23, broken 20] [09:46:52]ProducePacketName [09:46:52]name=ofd_packets/00049588 [09:46:52]OFD Sender: To server: pG, [09:46:52]CommunicateWithHost lk.salyk.kg:30040 [09:46:52]ConnectInit lk.salyk.kg [09:46:53]Connected sock=7 [09:46:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 98 2E 1D 01 4E BB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F3 6D C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B4 C1 00 00 35 04 06 00 35 A8 52 B1 50 85 98 C0 C9 5A 80 5C B3 6E [09:46:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 94 57 47 00 A8 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B4 C1 00 00 F4 03 04 00 CA 1C C0 66 B6 04 01 00 00 1A 83 DC C8 EB CF 02 25 [09:46:53]CommunicateWithHost err = 0 [09:46:53]CheckOFDResponse [09:46:53]1017 (14) - 77093643461234 [09:46:53]1041 (16) - 0000000000871800 [09:46:53]1040 (4) - 49588 [09:46:53]1012 (4) - 17.08.2024 03:45 [09:46:53]1206 (1) - 0 [09:46:53]OFD Sender: Remove packet 49588 [09:46:53]ProducePacketName [09:46:53]name=ofd_packets/00049588 [09:46:53]NVStorageDeleteData [09:46:53]OFD Sender: Processing packet 49589 [packets to send 22, broken 20] [09:46:53]ProducePacketName [09:46:53]name=ofd_packets/00049589 [09:46:53]OFD Sender: To server: pG, [09:46:53]CommunicateWithHost lk.salyk.kg:30040 [09:46:53]ConnectInit lk.salyk.kg [09:46:54]Connected sock=7 [09:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 80 1A 07 01 65 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 34 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 1A 00 00 00 F4 03 04 00 6C 6E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B5 C1 00 00 35 04 06 00 39 3E 57 29 A0 CF DF 0E 8D 4A 10 40 7C 9F [09:46:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8A CB 47 00 73 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 31 38 30 30 10 04 04 00 B5 C1 00 00 F4 03 04 00 CB 1C C0 66 B6 04 01 00 00 D1 55 45 5E 61 17 B6 F6 [09:46:54]CommunicateWithHost err = 0 [09:46:54]CheckOFDResponse [09:46:54]1017 (14) - 77093643461234 [09:46:54]1041 (16) - 0000000000871800 [09:46:54]1040 (4) - 49589 [09:46:54]1012 (4) - 17.08.2024 03:45 [09:46:54]1206 (1) - 0 [09:46:54]OFD Sender: Remove packet 49589 [09:46:54]ProducePacketName [09:46:54]name=ofd_packets/00049589 [09:46:54]NVStorageDeleteData [09:46:54]OFD Sender: Processing packet 49590 [packets to send 21, broken 20] [09:46:54]ProducePacketName [09:46:54]name=ofd_packets/00049590 [09:46:54]OFD Sender: To server: pG, [09:46:54]CommunicateWithHost lk.salyk.kg:30040 [09:46:54]ConnectInit lk.salyk.kg [09:46:54]Connected sock=7 [09:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 89 01 00 00 7C 9A 81 01 C4 79 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 2D 6F C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B6 C1 00 00 35 04 06 00 28 37 1A 91 32 8E 88 92 25 CF 37 1E 32 DD [09:46:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 74 8E 47 00 CA 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B6 C1 00 00 F4 03 04 00 CC 1C C0 66 B6 04 01 00 00 B0 76 29 D2 2D 9C 7D 60 [09:46:55]CommunicateWithHost err = 0 [09:46:55]CheckOFDResponse [09:46:55]1017 (14) - 77093643461234 [09:46:55]1041 (16) - 0000000000871800 [09:46:55]1040 (4) - 49590 [09:46:55]1012 (4) - 17.08.2024 03:45 [09:46:55]1206 (1) - 0 [09:46:55]OFD Sender: Remove packet 49590 [09:46:55]ProducePacketName [09:46:55]name=ofd_packets/00049590 [09:46:55]NVStorageDeleteData [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:59:16]ConnectInit Can't connect to host [09:59:17]ConnectInit Can't take IP for lk.salyk.kg [09:59:17]CommunicateWithHost connect error [09:59:17]CommunicateWithHost err = -1 [09:59:17]OFD Sender: Server communicate error [09:59:22]OFD Sender: Processing packet 49591 [packets to send 23, broken 20] [09:59:22]ProducePacketName [09:59:22]name=ofd_packets/00049591 [09:59:22]OFD Sender: To server: pG, [09:59:22]CommunicateWithHost lk.salyk.kg:30040 [09:59:22]ConnectInit lk.salyk.kg [09:59:23]Connected sock=7 [09:59:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 6D 05 1E 01 49 43 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4A 72 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B7 C1 00 00 35 04 06 00 E2 5F 7E 66 0D 69 A4 4D 55 15 5C 9F 9D EA [09:59:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5D D6 47 00 DD 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B7 C1 00 00 F4 03 04 00 B8 1F C0 66 B6 04 01 00 00 00 8A 22 27 49 0D F8 2F [09:59:23]CommunicateWithHost err = 0 [09:59:23]CheckOFDResponse [09:59:23]1017 (14) - 77093643461234 [09:59:23]1041 (16) - 0000000000871800 [09:59:23]1040 (4) - 49591 [09:59:23]1012 (4) - 17.08.2024 03:57 [09:59:23]1206 (1) - 0 [09:59:23]OFD Sender: Remove packet 49591 [09:59:23]ProducePacketName [09:59:23]name=ofd_packets/00049591 [09:59:23]NVStorageDeleteData [09:59:23]OFD Sender: Processing packet 49592 [packets to send 22, broken 20] [09:59:23]ProducePacketName [09:59:23]name=ofd_packets/00049592 [09:59:23]OFD Sender: To server: pG, [09:59:23]CommunicateWithHost lk.salyk.kg:30040 [09:59:23]ConnectInit lk.salyk.kg [09:59:24]Connected sock=7 [09:59:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 75 CE 07 01 3B 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4A 73 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B8 C1 00 00 35 04 06 00 B1 9E A7 9D F4 4B B9 CE F2 9A 41 65 8E 26 [09:59:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 34 62 47 00 3D 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 31 38 30 30 10 04 04 00 B8 C1 00 00 F4 03 04 00 B9 1F C0 66 B6 04 01 00 00 19 15 2B 06 0D 00 53 09 [09:59:24]CommunicateWithHost err = 0 [09:59:24]CheckOFDResponse [09:59:24]1017 (14) - 77093643461234 [09:59:24]1041 (16) - 0000000000871800 [09:59:24]1040 (4) - 49592 [09:59:24]1012 (4) - 17.08.2024 03:57 [09:59:24]1206 (1) - 0 [09:59:24]OFD Sender: Remove packet 49592 [09:59:24]ProducePacketName [09:59:24]name=ofd_packets/00049592 [09:59:24]NVStorageDeleteData [09:59:24]OFD Sender: Processing packet 49593 [packets to send 21, broken 20] [09:59:24]ProducePacketName [09:59:24]name=ofd_packets/00049593 [09:59:24]OFD Sender: To server: pG, [09:59:24]CommunicateWithHost lk.salyk.kg:30040 [09:59:24]ConnectInit lk.salyk.kg [09:59:25]Connected sock=7 [09:59:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 21 F5 1C 01 89 59 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 76 73 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B9 C1 00 00 35 04 06 00 70 A8 DE 28 2A C7 E5 32 B7 28 BB 15 82 E6 [09:59:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 72 21 47 00 43 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 31 38 30 30 10 04 04 00 B9 C1 00 00 F4 03 04 00 BA 1F C0 66 B6 04 01 00 00 EA 8B 90 0A 73 93 0E 52 [09:59:25]CommunicateWithHost err = 0 [09:59:25]CheckOFDResponse [09:59:25]1017 (14) - 77093643461234 [09:59:25]1041 (16) - 0000000000871800 [09:59:25]1040 (4) - 49593 [09:59:25]1012 (4) - 17.08.2024 03:57 [09:59:25]1206 (1) - 0 [09:59:25]OFD Sender: Remove packet 49593 [09:59:25]ProducePacketName [09:59:25]name=ofd_packets/00049593 [09:59:25]NVStorageDeleteData [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:53]int [09:59:53]Write to MH i2c: 01 00 00 68 12 7A [09:59:53]*** FLAG_PRN_KEY set [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 07 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 07 00 68 12 00 08 00 00 00 FF 0F 97 [09:59:53]state=0 [09:59:53]Key pressed [09:59:53]Feed [09:59:53]Write to MH i2c: D8 00 00 69 12 52 [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: D8 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: D8 01 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: D8 01 00 69 12 00 53 [09:59:53]int [09:59:53]Write to MH i2c: 01 00 00 6A 12 7C [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 07 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 07 00 6A 12 00 48 00 00 00 3C 00 07 [09:59:53]state=2 [09:59:53]Key pressed [09:59:53]int [09:59:53]Write to MH i2c: 01 00 00 6B 12 7D [09:59:53]*** FLAG_PRN_KEY reset [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 07 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 07 00 6B 12 00 00 00 00 00 F5 0F 88 [09:59:53]state=2 [09:59:53]Stop feed [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:15]accept exits with 10 [10:00:15]New connection [10:00:15]New thread 3066944868 created [10:00:15]Thread 3066801508 joined [10:00:15]Waiting for new connection... [10:00:15] Sock 10.Parse request [10:00:15]Sock 10.Check first char [10:00:15]Sock 10.First char is OK [10:00:15]request: POST /json_proto HTTP/1.0 [10:00:15]Method: POST [10:00:15]URL: /json_proto [10:00:15]Method is POST - this is cgi request [10:00:15]url: /json_proto [10:00:15]query_string will be loaded in cgi processing [10:00:15]execute_cgi json_proto POST (null) [10:00:15]execute_cgi path=json_proto method=POST [10:00:15]POST find Content-Length [10:00:15]Host: 172.17.46.196:8080 [10:00:15]Content-Length: 689 [10:00:15]Content-Type: application/json [10:00:15] [10:00:15]POST finish read [10:00:15]Found Content-Length = 689 [10:00:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189790", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:15]execute_script... [10:00:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189790", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:15]POST & json_proto [10:00:15]process_json_proto [10:00:15]json parsed OK: [10:00:15]protocol is kg_v1.0 [10:00:15]action value=close_receipt [10:00:15]process_action close_receipt [10:00:15]cmd_close_receipt [10:00:15]MH_GetDate [10:00:15]Write to MH i2c: F0 00 00 6C 12 6D [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: F0 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: F0 09 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: F0 09 00 6C 12 00 B2 74 C0 66 07 E8 5D 66 74 [10:00:15]GetLastDocTimeStamp 1723888502 [10:00:15]current date 1723888818 [10:00:15]FM_GetShiftState [10:00:15]SAM_PROTO_GetShiftState [10:00:15]wFMCommunicate request_size=4 [10:00:15]MH_SAM_APDU [10:00:15]CAPDU: 80 13 01 00 [10:00:15]Write to MH i2c: E2 08 00 6D 12 80 13 01 00 00 00 00 00 FC [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:15]Read from MH i2c: E2 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 0E 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 0E 00 6D 12 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 41 [10:00:15]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:00:15]wFMCommunicate OK [10:00:15]SAM_PROTO_GetShiftState done [10:00:15]FM_GetShiftState done [10:00:15]opened in 1723853354 [10:00:15]opened+sec_in_day 1723939754 [10:00:15]quantity*price = 10000 [10:00:15]sum+1 = 10001 [10:00:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 31 17.08.2024 10:00 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49594 ФПД: 11982984258297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T100018&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49594&fm=11982984258297&tin=02508201610067®Number=0000000000092546&sum=10000 0 [10:00:16]StoreToDocumentArchive [10:00:16]shift 465 fd 49594 [10:00:16]save to /storage/0465/doc_00049594 [10:00:16]save last doc name /storage/0465/doc_00049594 to /storage/kkm_last_doc_name [10:00:16]save OK [10:00:16]Clear old archive folders... [10:00:16]ProcessDocumentItem done err = 0, tmpTLVsize=293 [10:00:16]tlvbuf is 0186D1E0 [10:00:16]SAM_PROTO_ClearQueue [10:00:16]wFMCommunicate request_size=4 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 09 00 00 [10:00:16]Write to MH i2c: E2 08 00 7A 12 80 09 00 00 00 00 00 00 FE [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 7A 12 00 90 00 00 [10:00:16]RAPDU: 90 00 [10:00:16]wFMCommunicate OK [10:00:16]SAM_PROTO_ClearQueue done [10:00:16]KKMCreateOFDPacket [10:00:16]OFDProtocolAddRootSTLVToBuf [10:00:16]FM_MakeSignedData [10:00:16]FM_MakeSignedData [10:00:16]SAM_PROTO_SignData [10:00:16]wFMCommunicate request_size=4 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 0D 01 02 [10:00:16]Write to MH i2c: E2 08 00 7B 12 80 0D 01 02 00 00 00 00 06 [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 7B 12 00 90 00 01 [10:00:16]RAPDU: 90 00 [10:00:16]wFMCommunicate OK [10:00:16]wFMCommunicate request_size=255 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 B2 74 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [10:00:16]Write to MH i2c: E2 02 01 7C 12 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 B2 74 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 FC [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 7C 12 00 90 00 02 [10:00:16]RAPDU: 90 00 [10:00:16]wFMCommunicate OK [10:00:16]wFMCommunicate request_size=52 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BA C1 00 00 35 04 06 00 0A E6 01 85 22 F9 [10:00:16]Write to MH i2c: E2 37 00 7D 12 80 0D 02 02 2F 00 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BA C1 00 00 35 04 06 00 0A E6 01 85 22 F9 00 00 D1 [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 7D 12 00 90 00 03 [10:00:16]RAPDU: 90 00 [10:00:16]wFMCommunicate OK [10:00:16]wFMCommunicate request_size=4 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 0D 03 02 [10:00:16]Write to MH i2c: E2 08 00 7E 12 80 0D 03 02 00 00 00 00 0B [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 0B 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 0B 00 7E 12 00 CC F1 D3 8C AD 6C AA C8 90 00 B3 [10:00:16]RAPDU: CC F1 D3 8C AD 6C AA C8 90 00 [10:00:16]wFMCommunicate OK [10:00:16]SAM_PROTO_SignData done [10:00:16]FM_MakeSignedData done [10:00:16]CreateOFDProtocolMessage [10:00:16]wFMCommunicate request_size=4 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 11 00 00 [10:00:16]Write to MH i2c: E2 08 00 7F 12 80 11 00 00 00 00 00 00 0B [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 17 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 17 00 7F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 56 [10:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:00:17]wFMCommunicate OK [10:00:17]CreateOFDProtocolMessage done [10:00:17]OFDSenderStorePacket 49594 [10:00:17]StoreOFDPacket docnum=49594 [10:00:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 F5 8B 31 01 E0 68 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 B2 74 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BA C1 00 00 35 04 06 00 0A E6 01 85 22 F9 CC F1 D3 8C AD 6C AA C8 [10:00:17]CheckFolder [10:00:17]dirname=/storage/ofd_packets [10:00:17]CheckFolder done [10:00:17]ProducePacketName [10:00:17]name=ofd_packets/00049594 [10:00:17]NVStorageSaveData ofd_packets/00049594 [10:00:17]File name is /storage/ofd_packets/00049594 [10:00:17]Write 343 bytes [10:00:17]NVStorageSaveData done [10:00:17]OFDSenderStorePacket done [10:00:17]KKMCreateOFDPacket done [10:00:17]NVStorageSaveData kkm_last_timestamp [10:00:17]File name is /storage/kkm_last_timestamp [10:00:17]Write 4 bytes [10:00:17]NVStorageSaveData done [10:00:17]ExternCall_PrintAddStr [10:00:17]wPrintStart [10:00:17]Write to MH i2c: 01 00 00 80 12 92 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 80 12 00 00 00 00 00 FF 0F A7 [10:00:17]RasterBufferAndPrint [10:00:17]line Счет N : (3)189790 [10:00:17]line ИНН: 02508201610067 [10:00:17]line Контрольно-Кассовый Чек [10:00:17]line ПРОДАЖА [10:00:17]line Товар: 4870002326172 [10:00:17]line Вода ASU пит н.газ лимон ПЭТ 1л [10:00:17]line 1.000 * 100.00 [10:00:17]line = 100.00 [10:00:17]line НДС 12% НСП 1% [10:00:17]line > о реализуемом товаре [10:00:17]line ИТОГО: 100.00 [10:00:17]line НСП 1% : 0.88 [10:00:17]line НДС 12% : 10.62 [10:00:17]line Наличными: 100.00 [10:00:17]line Безнал.: 0.00 [10:00:17]line Место: АЗС № 95 "Партнер Нефть" [10:00:17]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:00:17]line СНО: Общий режим [10:00:17]line Чек 31 17.08.2024 10:00 [10:00:17]line Смена: 465 ФФД: 1.0 [10:00:17]line ЗНМ: 0300000078 [10:00:17]line РНМ: 0000000000092546 [10:00:17]line Версия ККМ: 001 [10:00:17]line ФМ: 0000000000871800 [10:00:17]line ФД: 49594 [10:00:17]line ФПД: 11982984258297 [10:00:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T100018&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49594&fm=11982984258297&tin=02508201610067®Number=0000000000092546&sum=10000 [10:00:17]OFD Sender: Processing packet 49594 [packets to send 21, broken 20] [10:00:17]ProducePacketName [10:00:17]name=ofd_packets/00049594 [10:00:17]OFD Sender: To server: pG, [10:00:17]CommunicateWithHost lk.salyk.kg:30040 [10:00:17]ConnectInit lk.salyk.kg [10:00:17]line 0 [10:00:17]written 0, free lines is 4095 [10:00:17]Connected sock=9 [10:00:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 F5 8B 31 01 E0 68 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 B2 74 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BA C1 00 00 35 04 06 00 0A E6 01 85 22 F9 CC F1 D3 8C AD 6C AA C8 [10:00:17]Write to MH i2c: 01 00 00 A9 12 BB [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 A9 12 00 00 00 00 00 E9 0C B7 [10:00:17]RasterBufferAndPrint [10:00:17]line [10:00:17]line [10:00:17]line [10:00:17]line [10:00:17]line [10:00:17]written 0, free lines is 3314 [10:00:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C6 4D 47 00 5B FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BA C1 00 00 F4 03 04 00 EE 1F C0 66 B6 04 01 00 00 F1 E6 DF 6F AD CC CC 58 [10:00:17]CommunicateWithHost err = 0 [10:00:17]CheckOFDResponse [10:00:17]1017 (14) - 77093643461234 [10:00:17]1041 (16) - 0000000000871800 [10:00:17]1040 (4) - 49594 [10:00:17]1012 (4) - 17.08.2024 03:58 [10:00:17]1206 (1) - 0 [10:00:17]OFD Sender: Remove packet 49594 [10:00:17]ProducePacketName [10:00:17]name=ofd_packets/00049594 [10:00:17]NVStorageDeleteData [10:00:17]MH_Cut [10:00:17]Write to MH i2c: D1 01 00 B0 12 01 94 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: D1 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: D1 01 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: D1 01 00 B0 12 00 93 [10:00:17]Write to MH i2c: 01 00 00 B1 12 C3 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:18]OFD Sender: No OFD packet to send [10:00:18]*** Cut start [10:00:18]*** Purtial cut [10:00:18]*** CUTSNS_PIN = 0 [10:00:18]*** Stage 1: CUTSNS_PIN = 1 [10:00:20]Read from MH i2c: 01 [10:00:20]MH_I2C_Read... [10:00:20]*** Stop cut motor [10:00:20]*** Cut end [10:00:20]Read from MH i2c: 01 07 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: 01 07 00 B1 12 00 00 00 00 00 FF 0F D8 [10:00:20]process_action close_receipt done [10:00:20]requested_data is exist [10:00:20]produce_requested_data [10:00:20]requested_item fm.sn is exist - process it [10:00:20]wFMCommunicate request_size=4 [10:00:20]MH_SAM_APDU [10:00:20]CAPDU: 80 11 00 00 [10:00:20]Write to MH i2c: E2 08 00 B2 12 80 11 00 00 00 00 00 00 3E [10:00:20]Write i2c OK [10:00:20]MH_I2C_Read... [10:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:20]Read from MH i2c: E2 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 17 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 17 00 B2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 89 [10:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:00:20]wFMCommunicate OK [10:00:20]requested_item fd.num is exist - process it [10:00:20]SAM_PROTO_GetFieldsCounters [10:00:20]wFMCommunicate request_size=4 [10:00:20]MH_SAM_APDU [10:00:20]CAPDU: 80 13 00 00 [10:00:20]Write to MH i2c: E2 08 00 B3 12 80 13 00 00 00 00 00 00 41 [10:00:20]Write i2c OK [10:00:20]MH_I2C_Read... [10:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:20]Read from MH i2c: E2 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 62 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 62 00 B3 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BA C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [10:00: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BA C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:20]wFMCommunicate OK [10:00:20]SAM_PROTO_GetFieldsCounters done [10:00:20]requested_item shift.num is exist - process it [10:00:20]requested_item shift.opened is exist - process it [10:00:20]req_shift_opened [10:00:20]FM_GetShiftState [10:00:20]SAM_PROTO_GetShiftState [10:00:20]wFMCommunicate request_size=4 [10:00:20]MH_SAM_APDU [10:00:20]CAPDU: 80 13 01 00 [10:00:20]Write to MH i2c: E2 08 00 B4 12 80 13 01 00 00 00 00 00 43 [10:00:20]Write i2c OK [10:00:20]MH_I2C_Read... [10:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:20]Read from MH i2c: E2 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 0E 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 0E 00 B4 12 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 88 [10:00:20]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:00:20]wFMCommunicate OK [10:00:20]SAM_PROTO_GetShiftState done [10:00:20]FM_GetShiftState done [10:00:20]req_shift_opened done [10:00:20]requested_item shift.open_date is exist - process it [10:00:20]req_shift_open_date [10:00:20]req_shift_open_date done [10:00:20]produce_requested_data done [10:00:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49594,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [10:00:20]process_action_free close_receipt [10:00:20]json_value_free [10:00:20]json_value_free done [10:00:20]process_json_proto returns [10:00:20]Send response to host [10:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49594,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [10:00:20]free response buf [10:00:20]execute_script done [10:00:20]execute_script returns [10:00:20]free content buf [10:00:20]Sock 10.Close socket [10:00:20]Sock 10.Thread stoped [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:22]accept exits with 7 [10:06:22]New connection [10:06:22]New thread 3066801508 created [10:06:22]Thread 3066944868 joined [10:06:22]Waiting for new connection... [10:06:22] Sock 7.Parse request [10:06:22]Sock 7.Check first char [10:06:22]Sock 7.First char is OK [10:06:22]request: POST /json_proto HTTP/1.0 [10:06:22]Method: POST [10:06:22]URL: /json_proto [10:06:22]Method is POST - this is cgi request [10:06:22]url: /json_proto [10:06:22]query_string will be loaded in cgi processing [10:06:22]execute_cgi json_proto POST (null) [10:06:22]execute_cgi path=json_proto method=POST [10:06:22]POST find Content-Length [10:06:22]Host: 172.17.46.196:8080 [10:06:22]Content-Length: 756 [10:06:22]Content-Type: application/json [10:06:22] [10:06:22]POST finish read [10:06:22]Found Content-Length = 756 [10:06:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30063335", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:22]execute_script... [10:06: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)11326030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30063335", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:22]POST & json_proto [10:06:22]process_json_proto [10:06:22]json parsed OK: [10:06:22]protocol is kg_v1.0 [10:06:22]action value=close_receipt [10:06:22]process_action close_receipt [10:06:22]cmd_close_receipt [10:06:22]MH_GetDate [10:06:22]Write to MH i2c: F0 00 00 B5 12 B6 [10:06:22]Write i2c OK [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: F0 [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: F0 09 00 [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: F0 09 00 B5 12 00 21 76 C0 66 07 E8 5D 66 2E [10:06:22]GetLastDocTimeStamp 1723888818 [10:06:22]current date 1723889185 [10:06:22]FM_GetShiftState [10:06:22]SAM_PROTO_GetShiftState [10:06:22]wFMCommunicate request_size=4 [10:06:22]MH_SAM_APDU [10:06:22]CAPDU: 80 13 01 00 [10:06:22]Write to MH i2c: E2 08 00 B6 12 80 13 01 00 00 00 00 00 45 [10:06:22]Write i2c OK [10:06:22]MH_I2C_Read... [10:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:22]Read from MH i2c: E2 [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: E2 0E 00 [10:06:22]MH_I2C_Read... [10:06:22]Read from MH i2c: E2 0E 00 B6 12 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 8A [10:06:22]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:06:22]wFMCommunicate OK [10:06:22]SAM_PROTO_GetShiftState done [10:06:22]FM_GetShiftState done [10:06:22]opened in 1723853354 [10:06:22]opened+sec_in_day 1723939754 [10:06:22]quantity*price = 0 [10:06:22]sum+1 = 1 [10:06:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 32 17.08.2024 10:06 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30063335 ФМ: 0000000000871800 ФД: 49595 ФПД: 57012664764971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T100625&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49595&fm=57012664764971&tin=02508201610067®Number=0000000000092546&sum=0 [10:06:23]StoreToDocumentArchive [10:06:23]shift 465 fd 49595 [10:06:23]save to /storage/0465/doc_00049595 [10:06:23]save last doc name /storage/0465/doc_00049595 to /storage/kkm_last_doc_name [10:06:23]save OK [10:06:23]Clear old archive folders... [10:06:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:23]tlvbuf is 0187F290 [10:06:23]SAM_PROTO_ClearQueue [10:06:23]wFMCommunicate request_size=4 [10:06:23]MH_SAM_APDU [10:06:23]CAPDU: 80 09 00 00 [10:06:23]Write to MH i2c: E2 08 00 C3 12 80 09 00 00 00 00 00 00 47 [10:06:23]Write i2c OK [10:06:23]MH_I2C_Read... [10:06:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:23]Read from MH i2c: E2 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 03 00 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 03 00 C3 12 00 90 00 49 [10:06:23]RAPDU: 90 00 [10:06:23]wFMCommunicate OK [10:06:23]SAM_PROTO_ClearQueue done [10:06:23]KKMCreateOFDPacket [10:06:23]OFDProtocolAddRootSTLVToBuf [10:06:23]FM_MakeSignedData [10:06:23]FM_MakeSignedData [10:06:23]SAM_PROTO_SignData [10:06:23]wFMCommunicate request_size=4 [10:06:23]MH_SAM_APDU [10:06:23]CAPDU: 80 0D 01 02 [10:06:23]Write to MH i2c: E2 08 00 C4 12 80 0D 01 02 00 00 00 00 4F [10:06:23]Write i2c OK [10:06:23]MH_I2C_Read... [10:06:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:23]Read from MH i2c: E2 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 03 00 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 03 00 C4 12 00 90 00 4A [10:06:23]RAPDU: 90 00 [10:06:23]wFMCommunicate OK [10:06:23]wFMCommunicate request_size=255 [10:06:23]MH_SAM_APDU [10:06: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 34 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 20 00 00 00 F4 03 04 00 21 76 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BB C1 00 00 35 04 06 00 33 [10:06:23]Write to MH i2c: E2 02 01 C5 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 20 00 00 00 F4 03 04 00 21 76 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BB C1 00 00 35 04 06 00 33 00 00 54 [10:06:23]Write i2c OK [10:06:23]MH_I2C_Read... [10:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:24]Read from MH i2c: E2 [10:06:24]MH_I2C_Read... [10:06:24]Read from MH i2c: E2 03 00 [10:06:24]MH_I2C_Read... [10:06:24]Read from MH i2c: E2 03 00 C5 12 00 90 00 4B [10:06:24]RAPDU: 90 00 [10:06:24]wFMCommunicate OK [10:06:24]wFMCommunicate request_size=10 [10:06:24]MH_SAM_APDU [10:06:24]CAPDU: 80 0D 02 02 05 DA 4B A1 8A 2B [10:06:24]Write to MH i2c: E2 0D 00 C6 12 80 0D 02 02 05 00 DA 4B A1 8A 2B 00 00 D7 [10:06:24]Write i2c OK [10:06:24]MH_I2C_Read... [10:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:24]Read from MH i2c: E2 [10:06:24]MH_I2C_Read... [10:06:24]Read from MH i2c: E2 03 00 [10:06:24]MH_I2C_Read... [10:06:24]Read from MH i2c: E2 03 00 C6 12 00 90 00 4C [10:06:24]RAPDU: 90 00 [10:06:24]wFMCommunicate OK [10:06:24]wFMCommunicate request_size=4 [10:06:24]MH_SAM_APDU [10:06:24]CAPDU: 80 0D 03 02 [10:06:24]Write to MH i2c: E2 08 00 C7 12 80 0D 03 02 00 00 00 00 54 [10:06:24]Write i2c OK [10:06:24]MH_I2C_Read... [10:06:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:24]Read from MH i2c: E2 [10:06:24]MH_I2C_Read... [10:06:24]Read from MH i2c: E2 0B 00 [10:06:24]MH_I2C_Read... [10:06:24]Read from MH i2c: E2 0B 00 C7 12 00 2B 0B A9 27 39 83 C5 BD 90 00 99 [10:06:24]RAPDU: 2B 0B A9 27 39 83 C5 BD 90 00 [10:06:24]wFMCommunicate OK [10:06:24]SAM_PROTO_SignData done [10:06:24]FM_MakeSignedData done [10:06:24]CreateOFDProtocolMessage [10:06:24]wFMCommunicate request_size=4 [10:06:24]MH_SAM_APDU [10:06:24]CAPDU: 80 11 00 00 [10:06:24]Write to MH i2c: E2 08 00 C8 12 80 11 00 00 00 00 00 00 54 [10:06:24]Write i2c OK [10:06:24]MH_I2C_Read... [10:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:24]Read from MH i2c: E2 [10:06:24]MH_I2C_Read... [10:06:24]Read from MH i2c: E2 17 00 [10:06:24]MH_I2C_Read... [10:06:24]Read from MH i2c: E2 17 00 C8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9F [10:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:06:24]wFMCommunicate OK [10:06:24]CreateOFDProtocolMessage done [10:06:24]OFDSenderStorePacket 49595 [10:06:24]StoreOFDPacket docnum=49595 [10:06:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 96 7B 07 01 60 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 20 00 00 00 F4 03 04 00 21 76 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BB C1 00 00 35 04 06 00 33 DA 4B A1 8A 2B 2B 0B A9 27 39 83 C5 BD [10:06:24]CheckFolder [10:06:24]dirname=/storage/ofd_packets [10:06:24]CheckFolder done [10:06:24]ProducePacketName [10:06:24]name=ofd_packets/00049595 [10:06:24]NVStorageSaveData ofd_packets/00049595 [10:06:24]File name is /storage/ofd_packets/00049595 [10:06:24]Write 301 bytes [10:06:24]NVStorageSaveData done [10:06:24]OFDSenderStorePacket done [10:06:24]KKMCreateOFDPacket done [10:06:24]NVStorageSaveData kkm_last_timestamp [10:06:24]File name is /storage/kkm_last_timestamp [10:06:24]Write 4 bytes [10:06:24]NVStorageSaveData done [10:06:24]ExternCall_PrintAddStr [10:06:24]wPrintStart [10:06:24]Write to MH i2c: 01 00 00 C9 12 DB [10:06:24]Write i2c OK [10:06:24]MH_I2C_Read... [10:06:24]Read from MH i2c: 01 [10:06:24]MH_I2C_Read... [10:06:24]Read from MH i2c: 01 07 00 [10:06:24]MH_I2C_Read... [10:06:24]Read from MH i2c: 01 07 00 C9 12 00 00 00 00 00 FF 0F F0 [10:06:24]RasterBufferAndPrint [10:06:24]line Счет N : (1)11326030 [10:06:24]line ИНН: 02508201610067 [10:06:24]line Контрольно-Кассовый Чек [10:06:24]line ПРОДАЖА [10:06:24]line ТРК (МРК, ГНК) : 12 [10:06:24]line Товар: 2710124130 [10:06:24]line Аи-92-К-4 [10:06:24]line 30.000 * 0.00 [10:06:24]line = 0.00 [10:06:24]line НДС 12% НСП 1% [10:06:24]line > о реализуемом товаре [10:06:24]line ИТОГО: 0.00 [10:06:24]line НСП 1% : 0.00 [10:06:24]line НДС 12% : 0.00 [10:06:24]line Наличными: 0.00 [10:06:24]line Безнал.: 0.00 [10:06:24]line Место: АЗС № 95 "Партнер Нефть" [10:06:24]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:06:24]line СНО: Общий режим [10:06:24]line Чек 32 17.08.2024 10:06 [10:06:24]line Смена: 465 ФФД: 1.0 [10:06:24]line ЗНМ: 0300000078 [10:06:24]line РНМ: 0000000000092546 [10:06:24]line Версия ККМ: 001 [10:06:24]line Талоны: ТК ГПНА Online [10:06:24]line 30063335 [10:06:24]line ФМ: 0000000000871800 [10:06:24]line ФД: 49595 [10:06:24]line ФПД: 57012664764971 [10:06:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T100625&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49595&fm=57012664764971&tin=02508201610067®Number=0000000000092546&sum=0 [10:06:24]OFD Sender: Processing packet 49595 [packets to send 21, broken 20] [10:06:24]ProducePacketName [10:06:24]name=ofd_packets/00049595 [10:06:24]OFD Sender: To server: pG, [10:06:24]CommunicateWithHost lk.salyk.kg:30040 [10:06:24]ConnectInit lk.salyk.kg [10:06:24]written 0, free lines is 4095 [10:06:24]Connected sock=10 [10:06:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 96 7B 07 01 60 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 20 00 00 00 F4 03 04 00 21 76 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BB C1 00 00 35 04 06 00 33 DA 4B A1 8A 2B 2B 0B A9 27 39 83 C5 BD [10:06:25]Write to MH i2c: 01 00 00 F3 12 05 [10:06:25]Write i2c OK [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: 01 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: 01 07 00 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: 01 07 00 F3 12 00 00 00 00 00 D5 0C ED [10:06:25]RasterBufferAndPrint [10:06:25]line [10:06:25]line [10:06:25]line [10:06:25]line [10:06:25]line [10:06:25]written 0, free lines is 3291 [10:06:25]MH_Cut [10:06:25]Write to MH i2c: D1 01 00 FA 12 01 DE [10:06:25]Write i2c OK [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: D1 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: D1 01 00 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: D1 01 00 FA 12 00 DD [10:06:25]Write to MH i2c: 01 00 00 FB 12 0D [10:06:25]Write i2c OK [10:06:25]MH_I2C_Read... [10:06:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D6 AD 47 00 77 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BB C1 00 00 F4 03 04 00 5E 21 C0 66 B6 04 01 00 00 7E 9B 09 AA 70 39 26 CE [10:06:25]CommunicateWithHost err = 0 [10:06:25]CheckOFDResponse [10:06:25]1017 (14) - 77093643461234 [10:06:25]1041 (16) - 0000000000871800 [10:06:25]1040 (4) - 49595 [10:06:25]1012 (4) - 17.08.2024 04:04 [10:06:25]1206 (1) - 0 [10:06:25]OFD Sender: Remove packet 49595 [10:06:25]ProducePacketName [10:06:25]name=ofd_packets/00049595 [10:06:25]NVStorageDeleteData [10:06:25]OFD Sender: No OFD packet to send [10:06:25]*** Cut start [10:06:25]*** Purtial cut [10:06:25]*** Stage 1: CUTSNS_PIN = 1 [10:06:26]Read from MH i2c: 01 [10:06:26]MH_I2C_Read... [10:06:26]*** Stop cut motor [10:06:26]*** Cut end [10:06:26]Read from MH i2c: 01 07 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: 01 07 00 FB 12 00 00 00 00 00 FF 0F 22 [10:06:26]process_action close_receipt done [10:06:26]requested_data is exist [10:06:26]produce_requested_data [10:06:26]requested_item fm.sn is exist - process it [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 11 00 00 [10:06:26]Write to MH i2c: E2 08 00 FC 12 80 11 00 00 00 00 00 00 88 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 17 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 17 00 FC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D3 [10:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:06:26]wFMCommunicate OK [10:06:26]requested_item fd.num is exist - process it [10:06:26]SAM_PROTO_GetFieldsCounters [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 13 00 00 [10:06:26]Write to MH i2c: E2 08 00 FD 12 80 13 00 00 00 00 00 00 8B [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 62 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 62 00 FD 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BB C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [10:06: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BB C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:26]wFMCommunicate OK [10:06:26]SAM_PROTO_GetFieldsCounters done [10:06:26]requested_item shift.num is exist - process it [10:06:26]requested_item shift.opened is exist - process it [10:06:26]req_shift_opened [10:06:26]FM_GetShiftState [10:06:26]SAM_PROTO_GetShiftState [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 13 01 00 [10:06:26]Write to MH i2c: E2 08 00 FE 12 80 13 01 00 00 00 00 00 8D [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 0E 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 0E 00 FE 12 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D2 [10:06:26]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:06:26]wFMCommunicate OK [10:06:26]SAM_PROTO_GetShiftState done [10:06:26]FM_GetShiftState done [10:06:26]req_shift_opened done [10:06:26]requested_item shift.open_date is exist - process it [10:06:26]req_shift_open_date [10:06:26]req_shift_open_date done [10:06:26]produce_requested_data done [10:06:26]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49595,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [10:06:26]process_action_free close_receipt [10:06:26]json_value_free [10:06:26]json_value_free done [10:06:26]process_json_proto returns [10:06:26]Send response to host [10:06:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49595,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [10:06:26]free response buf [10:06:26]execute_script done [10:06:26]execute_script returns [10:06:26]free content buf [10:06:26]Sock 7.Close socket [10:06:26]Sock 7.Thread stoped [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:46]accept exits with 9 [10:06:46]New connection [10:06:46]New thread 3066944868 created [10:06:46]Thread 3066801508 joined [10:06:46]Waiting for new connection... [10:06:46] Sock 9.Parse request [10:06:46]Sock 9.Check first char [10:06:46]Sock 9.First char is OK [10:06:46]request: POST /json_proto HTTP/1.0 [10:06:46]Method: POST [10:06:46]URL: /json_proto [10:06:46]Method is POST - this is cgi request [10:06:46]url: /json_proto [10:06:46]query_string will be loaded in cgi processing [10:06:46]execute_cgi json_proto POST (null) [10:06:46]execute_cgi path=json_proto method=POST [10:06:46]POST find Content-Length [10:06:46]Host: 172.17.46.196:8080 [10:06:46]Content-Length: 701 [10:06:46]Content-Type: application/json [10:06:46] [10:06:46]POST finish read [10:06:46]Found Content-Length = 701 [10:06:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189791", "tax_sys" : 0, "items" : [ { "code": "4870202522695", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 0,450", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:46]execute_script... [10:06:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189791", "tax_sys" : 0, "items" : [ { "code": "4870202522695", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 0,450", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:46]POST & json_proto [10:06:46]process_json_proto [10:06:46]json parsed OK: [10:06:46]protocol is kg_v1.0 [10:06:46]action value=close_receipt [10:06:46]process_action close_receipt [10:06:46]cmd_close_receipt [10:06:46]MH_GetDate [10:06:46]Write to MH i2c: F0 00 00 FF 12 00 [10:06:46]Write i2c OK [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: F0 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: F0 09 00 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: F0 09 00 FF 12 00 39 76 C0 66 07 E8 5D 66 90 [10:06:46]GetLastDocTimeStamp 1723889185 [10:06:46]current date 1723889209 [10:06:46]FM_GetShiftState [10:06:46]SAM_PROTO_GetShiftState [10:06:46]wFMCommunicate request_size=4 [10:06:46]MH_SAM_APDU [10:06:46]CAPDU: 80 13 01 00 [10:06:46]Write to MH i2c: E2 08 00 00 13 80 13 01 00 00 00 00 00 90 [10:06:46]Write i2c OK [10:06:46]MH_I2C_Read... [10:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:46]Read from MH i2c: E2 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: E2 0E 00 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: E2 0E 00 00 13 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D5 [10:06:46]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:06:46]wFMCommunicate OK [10:06:46]SAM_PROTO_GetShiftState done [10:06:46]FM_GetShiftState done [10:06:46]opened in 1723853354 [10:06:46]opened+sec_in_day 1723939754 [10:06:46]quantity*price = 7000 [10:06:46]sum+1 = 7001 [10:06:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 33 17.08.2024 10:06 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49596 ФПД: 159944082221138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T100649&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49596&fm=159944082221138&tin=02508201610067®Number=0000000000092546&sum=7000 0 [10:06:47]StoreToDocumentArchive [10:06:47]shift 465 fd 49596 [10:06:47]save to /storage/0465/doc_00049596 [10:06:47]save last doc name /storage/0465/doc_00049596 to /storage/kkm_last_doc_name [10:06:47]save OK [10:06:47]Clear old archive folders... [10:06:47]ProcessDocumentItem done err = 0, tmpTLVsize=300 [10:06:47]tlvbuf is 018BD420 [10:06:47]SAM_PROTO_ClearQueue [10:06:47]wFMCommunicate request_size=4 [10:06:47]MH_SAM_APDU [10:06:47]CAPDU: 80 09 00 00 [10:06:47]Write to MH i2c: E2 08 00 0D 13 80 09 00 00 00 00 00 00 92 [10:06:47]Write i2c OK [10:06:47]MH_I2C_Read... [10:06:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:47]Read from MH i2c: E2 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 03 00 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 03 00 0D 13 00 90 00 94 [10:06:47]RAPDU: 90 00 [10:06:47]wFMCommunicate OK [10:06:47]SAM_PROTO_ClearQueue done [10:06:47]KKMCreateOFDPacket [10:06:47]OFDProtocolAddRootSTLVToBuf [10:06:47]FM_MakeSignedData [10:06:47]FM_MakeSignedData [10:06:47]SAM_PROTO_SignData [10:06:47]wFMCommunicate request_size=4 [10:06:47]MH_SAM_APDU [10:06:47]CAPDU: 80 0D 01 02 [10:06:47]Write to MH i2c: E2 08 00 0E 13 80 0D 01 02 00 00 00 00 9A [10:06:47]Write i2c OK [10:06:47]MH_I2C_Read... [10:06:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:47]Read from MH i2c: E2 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 03 00 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 03 00 0E 13 00 90 00 95 [10:06:47]RAPDU: 90 00 [10:06:47]wFMCommunicate OK [10:06:47]wFMCommunicate request_size=255 [10:06:47]MH_SAM_APDU [10:06:47]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 39 76 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 [10:06:47]Write to MH i2c: E2 02 01 0F 13 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 39 76 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 1E [10:06:47]Write i2c OK [10:06:47]MH_I2C_Read... [10:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:47]Read from MH i2c: E2 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 03 00 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 03 00 0F 13 00 90 00 96 [10:06:47]RAPDU: 90 00 [10:06:47]wFMCommunicate OK [10:06:47]wFMCommunicate request_size=59 [10:06:47]MH_SAM_APDU [10:06:47]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BC C1 00 00 35 04 06 00 91 77 E2 34 68 52 [10:06:47]Write to MH i2c: E2 3E 00 10 13 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BC C1 00 00 35 04 06 00 91 77 E2 34 68 52 00 00 0C [10:06:47]Write i2c OK [10:06:47]MH_I2C_Read... [10:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:47]Read from MH i2c: E2 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 03 00 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 03 00 10 13 00 90 00 97 [10:06:47]RAPDU: 90 00 [10:06:47]wFMCommunicate OK [10:06:47]wFMCommunicate request_size=4 [10:06:47]MH_SAM_APDU [10:06:47]CAPDU: 80 0D 03 02 [10:06:47]Write to MH i2c: E2 08 00 11 13 80 0D 03 02 00 00 00 00 9F [10:06:47]Write i2c OK [10:06:47]MH_I2C_Read... [10:06:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:47]Read from MH i2c: E2 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 0B 00 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 0B 00 11 13 00 2D 63 C8 1C 19 23 9B 41 90 00 2C [10:06:47]RAPDU: 2D 63 C8 1C 19 23 9B 41 90 00 [10:06:47]wFMCommunicate OK [10:06:47]SAM_PROTO_SignData done [10:06:47]FM_MakeSignedData done [10:06:47]CreateOFDProtocolMessage [10:06:47]wFMCommunicate request_size=4 [10:06:47]MH_SAM_APDU [10:06:47]CAPDU: 80 11 00 00 [10:06:47]Write to MH i2c: E2 08 00 12 13 80 11 00 00 00 00 00 00 9F [10:06:47]Write i2c OK [10:06:47]MH_I2C_Read... [10:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:48]Read from MH i2c: E2 [10:06:48]MH_I2C_Read... [10:06:48]Read from MH i2c: E2 17 00 [10:06:48]MH_I2C_Read... [10:06:48]Read from MH i2c: E2 17 00 12 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EA [10:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:06:48]wFMCommunicate OK [10:06:48]CreateOFDProtocolMessage done [10:06:48]OFDSenderStorePacket 49596 [10:06:48]StoreOFDPacket docnum=49596 [10:06:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 40 01 00 00 ED C8 38 01 46 33 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 39 76 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BC C1 00 00 35 04 06 00 91 77 E2 34 68 52 2D 63 C8 1C 19 23 9B 41 [10:06:48]CheckFolder [10:06:48]dirname=/storage/ofd_packets [10:06:48]CheckFolder done [10:06:48]ProducePacketName [10:06:48]name=ofd_packets/00049596 [10:06:48]NVStorageSaveData ofd_packets/00049596 [10:06:48]File name is /storage/ofd_packets/00049596 [10:06:48]Write 350 bytes [10:06:48]NVStorageSaveData done [10:06:48]OFDSenderStorePacket done [10:06:48]KKMCreateOFDPacket done [10:06:48]NVStorageSaveData kkm_last_timestamp [10:06:48]File name is /storage/kkm_last_timestamp [10:06:48]Write 4 bytes [10:06:48]NVStorageSaveData done [10:06:48]ExternCall_PrintAddStr [10:06:48]wPrintStart [10:06:48]Write to MH i2c: 01 00 00 13 13 26 [10:06:48]OFD Sender: Processing packet 49596 [packets to send 21, broken 20] [10:06:48]ProducePacketName [10:06:48]name=ofd_packets/00049596 [10:06:48]OFD Sender: To server: pG, [10:06:48]CommunicateWithHost lk.salyk.kg:30040 [10:06:48]ConnectInit lk.salyk.kg [10:06:48]Write i2c OK [10:06:48]MH_I2C_Read... [10:06:48]Read from MH i2c: 01 [10:06:48]MH_I2C_Read... [10:06:48]Read from MH i2c: 01 07 00 [10:06:48]MH_I2C_Read... [10:06:48]Read from MH i2c: 01 07 00 13 13 00 00 00 00 00 FF 0F 3B [10:06:48]RasterBufferAndPrint [10:06:48]line Счет N : (3)189791 [10:06:48]line ИНН: 02508201610067 [10:06:48]line Контрольно-Кассовый Чек [10:06:48]line ПРОДАЖА [10:06:48]line Товар: 4870202522695 [10:06:48]line Напиток Maxi Чай черный Малина 0,450 [10:06:48]line 1.000 * 70.00 [10:06:48]line = 70.00 [10:06:48]line НДС 12% НСП 1% [10:06:48]line > о реализуемом товаре [10:06:48]line ИТОГО: 70.00 [10:06:48]line НСП 1% : 0.62 [10:06:48]line НДС 12% : 7.43 [10:06:48]line Наличными: 70.00 [10:06:48]line Безнал.: 0.00 [10:06:48]line Место: АЗС № 95 "Партнер Нефть" [10:06:48]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:06:48]line СНО: Общий режим [10:06:48]line Чек 33 17.08.2024 10:06 [10:06:48]line Смена: 465 ФФД: 1.0 [10:06:48]line ЗНМ: 0300000078 [10:06:48]line РНМ: 0000000000092546 [10:06:48]line Версия ККМ: 001 [10:06:48]line ФМ: 0000000000871800 [10:06:48]line ФД: 49596 [10:06:48]line ФПД: 159944082221138 [10:06:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T100649&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49596&fm=159944082221138&tin=02508201610067®Number=0000000000092546&sum=7000 [10:06:48]line 0 [10:06:48]Connected sock=10 [10:06:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 40 01 00 00 ED C8 38 01 46 33 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 39 76 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BC C1 00 00 35 04 06 00 91 77 E2 34 68 52 2D 63 C8 1C 19 23 9B 41 [10:06:48]written 0, free lines is 4095 [10:06:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 28 B7 47 00 95 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BC C1 00 00 F4 03 04 00 75 21 C0 66 B6 04 01 00 00 D9 1F 13 AE DB 34 9C E7 [10:06:48]CommunicateWithHost err = 0 [10:06:48]CheckOFDResponse [10:06:48]1017 (14) - 77093643461234 [10:06:48]1041 (16) - 0000000000871800 [10:06:48]1040 (4) - 49596 [10:06:48]1012 (4) - 17.08.2024 04:05 [10:06:48]1206 (1) - 0 [10:06:48]OFD Sender: Remove packet 49596 [10:06:48]ProducePacketName [10:06:48]name=ofd_packets/00049596 [10:06:48]NVStorageDeleteData [10:06:48]Write to MH i2c: 01 00 00 3C 13 4F [10:06:48]Write i2c OK [10:06:48]MH_I2C_Read... [10:06:48]Read from MH i2c: 01 [10:06:48]MH_I2C_Read... [10:06:48]Read from MH i2c: 01 07 00 [10:06:48]MH_I2C_Read... [10:06:48]Read from MH i2c: 01 07 00 3C 13 00 00 00 00 00 D3 0C 35 [10:06:48]RasterBufferAndPrint [10:06:48]line [10:06:48]line [10:06:48]line [10:06:48]line [10:06:48]line [10:06:48]written 0, free lines is 3291 [10:06:48]MH_Cut [10:06:48]Write to MH i2c: D1 01 00 43 13 01 28 [10:06:48]Write i2c OK [10:06:48]MH_I2C_Read... [10:06:48]Read from MH i2c: D1 [10:06:48]MH_I2C_Read... [10:06:48]Read from MH i2c: D1 01 00 [10:06:48]MH_I2C_Read... [10:06:48]Read from MH i2c: D1 01 00 43 13 00 27 [10:06:48]Write to MH i2c: 01 00 00 44 13 57 [10:06:48]Write i2c OK [10:06:48]MH_I2C_Read... [10:06:49]OFD Sender: No OFD packet to send [10:06:49]*** Cut start [10:06:49]*** Purtial cut [10:06:49]*** CUTSNS_PIN = 0 [10:06:49]*** Stage 1: CUTSNS_PIN = 1 [10:06:51]Read from MH i2c: 01 [10:06:51]MH_I2C_Read... [10:06:51]*** Stop cut motor [10:06:51]*** Cut end [10:06:51]Read from MH i2c: 01 07 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: 01 07 00 44 13 00 00 00 00 00 FF 0F 6C [10:06:51]process_action close_receipt done [10:06:51]requested_data is exist [10:06:51]produce_requested_data [10:06:51]requested_item fm.sn is exist - process it [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 11 00 00 [10:06:51]Write to MH i2c: E2 08 00 45 13 80 11 00 00 00 00 00 00 D2 [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 17 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 17 00 45 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1D [10:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:06:51]wFMCommunicate OK [10:06:51]requested_item fd.num is exist - process it [10:06:51]SAM_PROTO_GetFieldsCounters [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 13 00 00 [10:06:51]Write to MH i2c: E2 08 00 46 13 80 13 00 00 00 00 00 00 D5 [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 62 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 62 00 46 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BC C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [10:06: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BC C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:51]wFMCommunicate OK [10:06:51]SAM_PROTO_GetFieldsCounters done [10:06:51]requested_item shift.num is exist - process it [10:06:51]requested_item shift.opened is exist - process it [10:06:51]req_shift_opened [10:06:51]FM_GetShiftState [10:06:51]SAM_PROTO_GetShiftState [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 13 01 00 [10:06:51]Write to MH i2c: E2 08 00 47 13 80 13 01 00 00 00 00 00 D7 [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 0E 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 0E 00 47 13 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 1C [10:06:51]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:06:51]wFMCommunicate OK [10:06:51]SAM_PROTO_GetShiftState done [10:06:51]FM_GetShiftState done [10:06:51]req_shift_opened done [10:06:51]requested_item shift.open_date is exist - process it [10:06:51]req_shift_open_date [10:06:51]req_shift_open_date done [10:06:51]produce_requested_data done [10:06:51]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49596,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [10:06:51]process_action_free close_receipt [10:06:51]json_value_free [10:06:51]json_value_free done [10:06:51]process_json_proto returns [10:06:51]Send response to host [10:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49596,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [10:06:51]free response buf [10:06:51]execute_script done [10:06:51]execute_script returns [10:06:51]free content buf [10:06:51]Sock 9.Close socket [10:06:51]Sock 9.Thread stoped [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:41]accept exits with 7 [10:10:41]New connection [10:10:41]New thread 3066801508 created [10:10:41]Thread 3066944868 joined [10:10:41]Waiting for new connection... [10:10:41] Sock 7.Parse request [10:10:41]Sock 7.Check first char [10:10:41]Sock 7.First char is OK [10:10:41]request: POST /json_proto HTTP/1.0 [10:10:41]Method: POST [10:10:41]URL: /json_proto [10:10:41]Method is POST - this is cgi request [10:10:41]url: /json_proto [10:10:41]query_string will be loaded in cgi processing [10:10:41]execute_cgi json_proto POST (null) [10:10:41]execute_cgi path=json_proto method=POST [10:10:41]POST find Content-Length [10:10:41]Host: 172.17.46.196:8080 [10:10:41]Content-Length: 1005 [10:10:41]Content-Type: application/json [10:10:41] [10:10:41]POST finish read [10:10:41]Found Content-Length = 1005 [10:10:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189792", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 2.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:41]execute_script... [10:10: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 : (3)189792", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 2.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:41]POST & json_proto [10:10:41]process_json_proto [10:10:41]json parsed OK: [10:10:41]protocol is kg_v1.0 [10:10:41]action value=close_receipt [10:10:41]process_action close_receipt [10:10:41]cmd_close_receipt [10:10:41]MH_GetDate [10:10:41]Write to MH i2c: F0 00 00 48 13 4A [10:10:41]Write i2c OK [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: F0 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: F0 09 00 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: F0 09 00 48 13 00 24 77 C0 66 07 E8 5D 66 C6 [10:10:41]GetLastDocTimeStamp 1723889209 [10:10:41]current date 1723889444 [10:10:41]FM_GetShiftState [10:10:41]SAM_PROTO_GetShiftState [10:10:41]wFMCommunicate request_size=4 [10:10:41]MH_SAM_APDU [10:10:41]CAPDU: 80 13 01 00 [10:10:41]Write to MH i2c: E2 08 00 49 13 80 13 01 00 00 00 00 00 D9 [10:10:41]Write i2c OK [10:10:41]MH_I2C_Read... [10:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:41]Read from MH i2c: E2 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: E2 0E 00 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: E2 0E 00 49 13 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 1E [10:10:41]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:10:41]wFMCommunicate OK [10:10:41]SAM_PROTO_GetShiftState done [10:10:41]FM_GetShiftState done [10:10:41]opened in 1723853354 [10:10:41]opened+sec_in_day 1723939754 [10:10:41]quantity*price = 6500 [10:10:41]sum+1 = 6501 [10:10:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620017451303 Кар.с жев.конф.Страйк 11.3г/50 2.000 * 17.00 = 34.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.87 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 34 17.08.2024 10:10 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49597 ФПД: 195347088981909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T101044&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49597&fm=195347088981909&tin=02508201610067®Number=0000000000092546&sum=9900 0 [10:10:42]StoreToDocumentArchive [10:10:42]shift 465 fd 49597 [10:10:42]save to /storage/0465/doc_00049597 [10:10:42]save last doc name /storage/0465/doc_00049597 to /storage/kkm_last_doc_name [10:10:42]save OK [10:10:42]Clear old archive folders... [10:10:42]ProcessDocumentItem done err = 0, tmpTLVsize=424 [10:10:42]tlvbuf is 0186CAE0 [10:10:42]SAM_PROTO_ClearQueue [10:10:42]wFMCommunicate request_size=4 [10:10:42]MH_SAM_APDU [10:10:42]CAPDU: 80 09 00 00 [10:10:42]Write to MH i2c: E2 08 00 56 13 80 09 00 00 00 00 00 00 DB [10:10:42]Write i2c OK [10:10:42]MH_I2C_Read... [10:10:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:42]Read from MH i2c: E2 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: E2 03 00 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: E2 03 00 56 13 00 90 00 DD [10:10:42]RAPDU: 90 00 [10:10:42]wFMCommunicate OK [10:10:42]SAM_PROTO_ClearQueue done [10:10:42]KKMCreateOFDPacket [10:10:42]OFDProtocolAddRootSTLVToBuf [10:10:42]FM_MakeSignedData [10:10:42]FM_MakeSignedData [10:10:42]SAM_PROTO_SignData [10:10:42]wFMCommunicate request_size=4 [10:10:42]MH_SAM_APDU [10:10:42]CAPDU: 80 0D 01 02 [10:10:42]Write to MH i2c: E2 08 00 57 13 80 0D 01 02 00 00 00 00 E3 [10:10:42]Write i2c OK [10:10:42]MH_I2C_Read... [10:10:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:42]Read from MH i2c: E2 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: E2 03 00 [10:10:42]MH_I2C_Read... [10:10:42]Read from MH i2c: E2 03 00 57 13 00 90 00 DE [10:10:42]RAPDU: 90 00 [10:10:42]wFMCommunicate OK [10:10:42]wFMCommunicate request_size=255 [10:10:42]MH_SAM_APDU [10:10:42]CAPDU: 80 0D 02 02 FA 03 00 A8 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 [10:10:42]Write to MH i2c: E2 02 01 58 13 80 0D 02 02 FA 00 03 00 A8 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 00 00 EF [10:10:42]Write i2c OK [10:10:42]MH_I2C_Read... [10:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:43]Read from MH i2c: E2 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 03 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 03 00 58 13 00 90 00 DF [10:10:43]RAPDU: 90 00 [10:10:43]wFMCommunicate OK [10:10:43]wFMCommunicate request_size=183 [10:10:43]MH_SAM_APDU [10:10:43]CAPDU: 80 0D 02 02 B2 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 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 24 77 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BD C1 00 00 35 04 06 00 B1 AA C9 D8 BF 95 [10:10:43]Write to MH i2c: E2 BA 00 59 13 80 0D 02 02 B2 00 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 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 24 77 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BD C1 00 00 35 04 06 00 B1 AA C9 D8 BF 95 00 00 E1 [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:43]Read from MH i2c: E2 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 03 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 03 00 59 13 00 90 00 E0 [10:10:43]RAPDU: 90 00 [10:10:43]wFMCommunicate OK [10:10:43]wFMCommunicate request_size=4 [10:10:43]MH_SAM_APDU [10:10:43]CAPDU: 80 0D 03 02 [10:10:43]Write to MH i2c: E2 08 00 5A 13 80 0D 03 02 00 00 00 00 E8 [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:43]Read from MH i2c: E2 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 0B 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 0B 00 5A 13 00 9D 87 1D B4 56 60 B3 38 90 00 7F [10:10:43]RAPDU: 9D 87 1D B4 56 60 B3 38 90 00 [10:10:43]wFMCommunicate OK [10:10:43]SAM_PROTO_SignData done [10:10:43]FM_MakeSignedData done [10:10:43]CreateOFDProtocolMessage [10:10:43]wFMCommunicate request_size=4 [10:10:43]MH_SAM_APDU [10:10:43]CAPDU: 80 11 00 00 [10:10:43]Write to MH i2c: E2 08 00 5B 13 80 11 00 00 00 00 00 00 E8 [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:43]Read from MH i2c: E2 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 17 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 17 00 5B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 33 [10:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:10:43]wFMCommunicate OK [10:10:43]CreateOFDProtocolMessage done [10:10:43]OFDSenderStorePacket 49597 [10:10:43]StoreOFDPacket docnum=49597 [10:10:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 BC 01 00 00 6B D4 B4 01 33 8A 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 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 24 77 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BD C1 00 00 35 04 06 00 B1 AA C9 D8 BF 95 9D 87 1D B4 56 60 B3 38 [10:10:43]CheckFolder [10:10:43]dirname=/storage/ofd_packets [10:10:43]CheckFolder done [10:10:43]ProducePacketName [10:10:43]name=ofd_packets/00049597 [10:10:43]NVStorageSaveData ofd_packets/00049597 [10:10:43]File name is /storage/ofd_packets/00049597 [10:10:43]Write 474 bytes [10:10:43]NVStorageSaveData done [10:10:43]OFDSenderStorePacket done [10:10:43]KKMCreateOFDPacket done [10:10:43]NVStorageSaveData kkm_last_timestamp [10:10:43]File name is /storage/kkm_last_timestamp [10:10:43]Write 4 bytes [10:10:43]NVStorageSaveData done [10:10:43]ExternCall_PrintAddStr [10:10:43]wPrintStart [10:10:43]Write to MH i2c: 01 00 00 5C 13 6F [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: 01 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: 01 07 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: 01 07 00 5C 13 00 00 00 00 00 FF 0F 84 [10:10:43]RasterBufferAndPrint [10:10:43]line Счет N : (3)189792 [10:10:43]line ИНН: 02508201610067 [10:10:43]line Контрольно-Кассовый Чек [10:10:43]line ПРОДАЖА [10:10:43]line Товар: 4870001571023 [10:10:43]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [10:10:43]line 1.000 * 65.00 [10:10:43]line = 65.00 [10:10:43]line НДС 12% НСП 1% [10:10:43]line > о реализуемом товаре [10:10:43]line Товар: 4620017451303 [10:10:43]line Кар.с жев.конф.Страйк 11.3г/50 [10:10:43]line 2.000 * 17.00 [10:10:43]line = 34.00 [10:10:43]line НДС 12% НСП 1% [10:10:43]line > о реализуемом товаре [10:10:43]line ИТОГО: 99.00 [10:10:43]line НСП 1% : 0.87 [10:10:43]line НДС 12% : 10.51 [10:10:43]line Наличными: 99.00 [10:10:43]line Безнал.: 0.00 [10:10:43]line Место: АЗС № 95 "Партнер Нефть" [10:10:43]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:10:43]line СНО: Общий режим [10:10:43]line Чек 34 17.08.2024 10:10 [10:10:43]line Смена: 465 ФФД: 1.0 [10:10:43]line ЗНМ: 0300000078 [10:10:43]line РНМ: 0000000000092546 [10:10:43]line Версия ККМ: 001 [10:10:43]line ФМ: 0000000000871800 [10:10:43]line ФД: 49597 [10:10:43]line ФПД: 195347088981909 [10:10:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T101044&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49597&fm=195347088981909&tin=02508201610067®Number=0000000000092546&sum=9900 [10:10:43]line 0 [10:10:43]OFD Sender: Processing packet 49597 [packets to send 21, broken 20] [10:10:43]ProducePacketName [10:10:43]name=ofd_packets/00049597 [10:10:43]OFD Sender: To server: pG, [10:10:43]CommunicateWithHost lk.salyk.kg:30040 [10:10:43]ConnectInit lk.salyk.kg [10:10:43]written 0, free lines is 4095 [10:10:43]Connected sock=10 [10:10:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 BC 01 00 00 6B D4 B4 01 33 8A 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 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 24 77 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BD C1 00 00 35 04 06 00 B1 AA C9 D8 BF 95 9D 87 1D B4 56 60 B3 38 [10:10:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 26 3D 47 00 10 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BD C1 00 00 F4 03 04 00 61 22 C0 66 B6 04 01 00 00 B1 76 AE 2E 94 F5 85 C5 [10:10:44]CommunicateWithHost err = 0 [10:10:44]CheckOFDResponse [10:10:44]1017 (14) - 77093643461234 [10:10:44]1041 (16) - 0000000000871800 [10:10:44]1040 (4) - 49597 [10:10:44]1012 (4) - 17.08.2024 04:09 [10:10:44]1206 (1) - 0 [10:10:44]OFD Sender: Remove packet 49597 [10:10:44]ProducePacketName [10:10:44]name=ofd_packets/00049597 [10:10:44]NVStorageDeleteData [10:10:44]Write to MH i2c: 01 00 00 8C 13 9F [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: 01 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: 01 07 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: 01 07 00 8C 13 00 00 00 00 00 7B 0C 2D [10:10:44]RasterBufferAndPrint [10:10:44]line [10:10:44]line [10:10:44]line [10:10:44]line [10:10:44]line [10:10:44]written 0, free lines is 3201 [10:10:44]MH_Cut [10:10:44]Write to MH i2c: D1 01 00 93 13 01 78 [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: D1 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: D1 01 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: D1 01 00 93 13 00 77 [10:10:44]Write to MH i2c: 01 00 00 94 13 A7 [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]OFD Sender: No OFD packet to send [10:10:45]*** Cut start [10:10:45]*** Purtial cut [10:10:45]*** Stage 1: CUTSNS_PIN = 1 [10:10:45]Read from MH i2c: 01 [10:10:45]MH_I2C_Read... [10:10:45]*** Stop cut motor [10:10:45]*** Cut end [10:10:45]Read from MH i2c: 01 07 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 07 00 94 13 00 00 00 00 00 FF 0F BC [10:10:45]process_action close_receipt done [10:10:45]requested_data is exist [10:10:45]produce_requested_data [10:10:45]requested_item fm.sn is exist - process it [10:10:45]wFMCommunicate request_size=4 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 11 00 00 [10:10:45]Write to MH i2c: E2 08 00 95 13 80 11 00 00 00 00 00 00 22 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 17 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 17 00 95 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6D [10:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:10:45]wFMCommunicate OK [10:10:45]requested_item fd.num is exist - process it [10:10:45]SAM_PROTO_GetFieldsCounters [10:10:45]wFMCommunicate request_size=4 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 13 00 00 [10:10:45]Write to MH i2c: E2 08 00 96 13 80 13 00 00 00 00 00 00 25 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 62 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 62 00 96 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BD C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [10:10: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BD C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:45]wFMCommunicate OK [10:10:45]SAM_PROTO_GetFieldsCounters done [10:10:45]requested_item shift.num is exist - process it [10:10:45]requested_item shift.opened is exist - process it [10:10:45]req_shift_opened [10:10:45]FM_GetShiftState [10:10:45]SAM_PROTO_GetShiftState [10:10:45]wFMCommunicate request_size=4 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 13 01 00 [10:10:45]Write to MH i2c: E2 08 00 97 13 80 13 01 00 00 00 00 00 27 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 0E 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 0E 00 97 13 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 6C [10:10:45]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:10:45]wFMCommunicate OK [10:10:45]SAM_PROTO_GetShiftState done [10:10:45]FM_GetShiftState done [10:10:45]req_shift_opened done [10:10:45]requested_item shift.open_date is exist - process it [10:10:45]req_shift_open_date [10:10:45]req_shift_open_date done [10:10:45]produce_requested_data done [10:10:45]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49597,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [10:10:45]process_action_free close_receipt [10:10:45]json_value_free [10:10:45]json_value_free done [10:10:45]process_json_proto returns [10:10:45]Send response to host [10:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49597,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [10:10:45]free response buf [10:10:45]execute_script done [10:10:45]execute_script returns [10:10:45]free content buf [10:10:45]Sock 7.Close socket [10:10:45]Sock 7.Thread stoped [10:10:47]int [10:10:47]Write to MH i2c: 01 00 00 98 13 AB [10:10:47]*** FLAG_PRN_KEY set [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 98 13 00 08 00 00 00 FF 0F C8 [10:10:47]state=0 [10:10:47]Key pressed [10:10:47]Feed [10:10:47]Write to MH i2c: D8 00 00 99 13 83 [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: D8 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: D8 01 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: D8 01 00 99 13 00 84 [10:10:47]int [10:10:47]Write to MH i2c: 01 00 00 9A 13 AD [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 9A 13 00 48 00 00 00 3C 00 38 [10:10:47]state=2 [10:10:47]Key pressed [10:10:47]int [10:10:47]Write to MH i2c: 01 00 00 9B 13 AE [10:10:47]*** FLAG_PRN_KEY reset [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 9B 13 00 00 00 00 00 F8 0F BC [10:10:47]state=2 [10:10:47]Stop feed [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:23]accept exits with 9 [10:12:23]New connection [10:12:23]New thread 3066944868 created [10:12:23]Thread 3066801508 joined [10:12:23]Waiting for new connection... [10:12:23] Sock 9.Parse request [10:12:23]Sock 9.Check first char [10:12:23]Sock 9.First char is OK [10:12:23]request: POST /json_proto HTTP/1.0 [10:12:23]Method: POST [10:12:23]URL: /json_proto [10:12:23]Method is POST - this is cgi request [10:12:23]url: /json_proto [10:12:23]query_string will be loaded in cgi processing [10:12:23]execute_cgi json_proto POST (null) [10:12:23]execute_cgi path=json_proto method=POST [10:12:23]POST find Content-Length [10:12:23]Host: 172.17.46.196:8080 [10:12:23]Content-Length: 671 [10:12:23]Content-Type: application/json [10:12:23] [10:12:23]POST finish read [10:12:23]Found Content-Length = 671 [10:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189793", "tax_sys" : 0, "items" : [ { "code": "4823077629136", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 LACMI 90 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:23]execute_script... [10:12:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189793", "tax_sys" : 0, "items" : [ { "code": "4823077629136", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 LACMI 90 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:23]POST & json_proto [10:12:23]process_json_proto [10:12:23]json parsed OK: [10:12:23]protocol is kg_v1.0 [10:12:23]action value=close_receipt [10:12:23]process_action close_receipt [10:12:23]cmd_close_receipt [10:12:23]MH_GetDate [10:12:23]Write to MH i2c: F0 00 00 9C 13 9E [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: F0 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: F0 09 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: F0 09 00 9C 13 00 8A 77 C0 66 07 E8 5D 66 80 [10:12:23]GetLastDocTimeStamp 1723889444 [10:12:23]current date 1723889546 [10:12:23]FM_GetShiftState [10:12:23]SAM_PROTO_GetShiftState [10:12:23]wFMCommunicate request_size=4 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 13 01 00 [10:12:23]Write to MH i2c: E2 08 00 9D 13 80 13 01 00 00 00 00 00 2D [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 0E 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 0E 00 9D 13 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 72 [10:12:23]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:12:23]wFMCommunicate OK [10:12:23]SAM_PROTO_GetShiftState done [10:12:23]FM_GetShiftState done [10:12:23]opened in 1723853354 [10:12:23]opened+sec_in_day 1723939754 [10:12:23]quantity*price = 13000 [10:12:23]sum+1 = 13001 [10:12:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 35 17.08.2024 10:12 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49598 ФПД: 181999867159746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T101226&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49598&fm=181999867159746&tin=02508201610067®Number=0000000000092546&sum=13000 0 [10:12:24]StoreToDocumentArchive [10:12:24]shift 465 fd 49598 [10:12:24]save to /storage/0465/doc_00049598 [10:12:24]save last doc name /storage/0465/doc_00049598 to /storage/kkm_last_doc_name [10:12:24]save OK [10:12:24]Clear old archive folders... [10:12:24]ProcessDocumentItem done err = 0, tmpTLVsize=287 [10:12:24]tlvbuf is B6EA6DE0 [10:12:24]SAM_PROTO_ClearQueue [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 09 00 00 [10:12:24]Write to MH i2c: E2 08 00 AA 13 80 09 00 00 00 00 00 00 2F [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 AA 13 00 90 00 31 [10:12:24]RAPDU: 90 00 [10:12:24]wFMCommunicate OK [10:12:24]SAM_PROTO_ClearQueue done [10:12:24]KKMCreateOFDPacket [10:12:24]OFDProtocolAddRootSTLVToBuf [10:12:24]FM_MakeSignedData [10:12:24]FM_MakeSignedData [10:12:24]SAM_PROTO_SignData [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 0D 01 02 [10:12:24]Write to MH i2c: E2 08 00 AB 13 80 0D 01 02 00 00 00 00 37 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 AB 13 00 90 00 32 [10:12:24]RAPDU: 90 00 [10:12:24]wFMCommunicate OK [10:12:24]wFMCommunicate request_size=255 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 39 31 33 36 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 4C 41 43 4D 49 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8A 77 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [10:12:24]Write to MH i2c: E2 02 01 AC 13 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 39 31 33 36 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 4C 41 43 4D 49 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8A 77 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 48 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]OFD Sender: No OFD packet to send [10:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 AC 13 00 90 00 33 [10:12:24]RAPDU: 90 00 [10:12:24]wFMCommunicate OK [10:12:24]wFMCommunicate request_size=46 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 0D 02 02 29 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BE C1 00 00 35 04 06 00 A5 87 25 6E 64 C2 [10:12:24]Write to MH i2c: E2 31 00 AD 13 80 0D 02 02 29 00 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BE C1 00 00 35 04 06 00 A5 87 25 6E 64 C2 00 00 23 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 AD 13 00 90 00 34 [10:12:24]RAPDU: 90 00 [10:12:24]wFMCommunicate OK [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 0D 03 02 [10:12:24]Write to MH i2c: E2 08 00 AE 13 80 0D 03 02 00 00 00 00 3C [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 0B 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 0B 00 AE 13 00 B1 9D A0 35 B2 3B 17 05 90 00 69 [10:12:24]RAPDU: B1 9D A0 35 B2 3B 17 05 90 00 [10:12:24]wFMCommunicate OK [10:12:24]SAM_PROTO_SignData done [10:12:24]FM_MakeSignedData done [10:12:24]CreateOFDProtocolMessage [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 11 00 00 [10:12:24]Write to MH i2c: E2 08 00 AF 13 80 11 00 00 00 00 00 00 3C [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:25]Read from MH i2c: E2 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 17 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: E2 17 00 AF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 87 [10:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:12:25]wFMCommunicate OK [10:12:25]CreateOFDProtocolMessage done [10:12:25]OFDSenderStorePacket 49598 [10:12:25]StoreOFDPacket docnum=49598 [10:12:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 89 B3 2B 01 D7 FB 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 39 31 33 36 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 4C 41 43 4D 49 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8A 77 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BE C1 00 00 35 04 06 00 A5 87 25 6E 64 C2 B1 9D A0 35 B2 3B 17 05 [10:12:25]CheckFolder [10:12:25]dirname=/storage/ofd_packets [10:12:25]CheckFolder done [10:12:25]ProducePacketName [10:12:25]name=ofd_packets/00049598 [10:12:25]NVStorageSaveData ofd_packets/00049598 [10:12:25]File name is /storage/ofd_packets/00049598 [10:12:25]Write 337 bytes [10:12:25]NVStorageSaveData done [10:12:25]OFDSenderStorePacket done [10:12:25]KKMCreateOFDPacket done [10:12:25]NVStorageSaveData kkm_last_timestamp [10:12:25]File name is /storage/kkm_last_timestamp [10:12:25]Write 4 bytes [10:12:25]NVStorageSaveData done [10:12:25]ExternCall_PrintAddStr [10:12:25]wPrintStart [10:12:25]Write to MH i2c: 01 00 00 B0 13 C3 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 07 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 07 00 B0 13 00 00 00 00 00 FF 0F D8 [10:12:25]RasterBufferAndPrint [10:12:25]line Счет N : (3)189793 [10:12:25]line ИНН: 02508201610067 [10:12:25]line Контрольно-Кассовый Чек [10:12:25]line ПРОДАЖА [10:12:25]line Товар: 4823077629136 [10:12:25]line Шоколад молочный LACMI 90 гр [10:12:25]line 1.000 * 130.00 [10:12:25]line = 130.00 [10:12:25]line НДС 12% НСП 1% [10:12:25]line > о реализуемом товаре [10:12:25]line ИТОГО: 130.00 [10:12:25]line НСП 1% : 1.15 [10:12:25]line НДС 12% : 13.80 [10:12:25]line Наличными: 130.00 [10:12:25]line Безнал.: 0.00 [10:12:25]line Место: АЗС № 95 "Партнер Нефть" [10:12:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:12:25]line СНО: Общий режим [10:12:25]line Чек 35 17.08.2024 10:12 [10:12:25]line Смена: 465 ФФД: 1.0 [10:12:25]line ЗНМ: 0300000078 [10:12:25]line РНМ: 0000000000092546 [10:12:25]line Версия ККМ: 001 [10:12:25]line ФМ: 0000000000871800 [10:12:25]line ФД: 49598 [10:12:25]line ФПД: 181999867159746 [10:12:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T101226&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49598&fm=181999867159746&tin=02508201610067®Number=0000000000092546&sum=13000 [10:12:25]line 0 [10:12:25]OFD Sender: Processing packet 49598 [packets to send 21, broken 20] [10:12:25]ProducePacketName [10:12:25]name=ofd_packets/00049598 [10:12:25]OFD Sender: To server: pG, [10:12:25]CommunicateWithHost lk.salyk.kg:30040 [10:12:25]ConnectInit lk.salyk.kg [10:12:25]written 0, free lines is 4095 [10:12:25]Connected sock=10 [10:12:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 89 B3 2B 01 D7 FB 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 39 31 33 36 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 4C 41 43 4D 49 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8A 77 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BE C1 00 00 35 04 06 00 A5 87 25 6E 64 C2 B1 9D A0 35 B2 3B 17 05 [10:12:25]Write to MH i2c: 01 00 00 D9 13 EC [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 07 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 07 00 D9 13 00 00 00 00 00 E3 0C E2 [10:12:25]RasterBufferAndPrint [10:12:25]line [10:12:25]line [10:12:25]line [10:12:25]line [10:12:25]line [10:12:25]written 0, free lines is 3305 [10:12:25]MH_Cut [10:12:25]Write to MH i2c: D1 01 00 E0 13 01 C5 [10:12:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 38 54 47 00 6E A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BE C1 00 00 F4 03 04 00 C6 22 C0 66 B6 04 01 00 00 37 1C 15 A2 BB 90 31 35 [10:12:25]CommunicateWithHost err = 0 [10:12:25]CheckOFDResponse [10:12:25]1017 (14) - 77093643461234 [10:12:25]1041 (16) - 0000000000871800 [10:12:25]1040 (4) - 49598 [10:12:25]1012 (4) - 17.08.2024 04:10 [10:12:25]1206 (1) - 0 [10:12:25]OFD Sender: Remove packet 49598 [10:12:25]ProducePacketName [10:12:25]name=ofd_packets/00049598 [10:12:25]NVStorageDeleteData [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: D1 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: D1 01 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: D1 01 00 E0 13 00 C4 [10:12:25]Write to MH i2c: 01 00 00 E1 13 F4 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:26]OFD Sender: No OFD packet to send [10:12:26]*** Cut start [10:12:26]*** Purtial cut [10:12:26]*** CUTSNS_PIN = 0 [10:12:26]*** Stage 1: CUTSNS_PIN = 1 [10:12:28]Read from MH i2c: 01 [10:12:28]MH_I2C_Read... [10:12:28]*** Stop cut motor [10:12:28]*** Cut end [10:12:28]Read from MH i2c: 01 07 00 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: 01 07 00 E1 13 00 00 00 00 00 FF 0F 09 [10:12:28]process_action close_receipt done [10:12:28]requested_data is exist [10:12:28]produce_requested_data [10:12:28]requested_item fm.sn is exist - process it [10:12:28]wFMCommunicate request_size=4 [10:12:28]MH_SAM_APDU [10:12:28]CAPDU: 80 11 00 00 [10:12:28]Write to MH i2c: E2 08 00 E2 13 80 11 00 00 00 00 00 00 6F [10:12:28]Write i2c OK [10:12:28]MH_I2C_Read... [10:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:28]Read from MH i2c: E2 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 17 00 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 17 00 E2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BA [10:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:12:28]wFMCommunicate OK [10:12:28]requested_item fd.num is exist - process it [10:12:28]SAM_PROTO_GetFieldsCounters [10:12:28]wFMCommunicate request_size=4 [10:12:28]MH_SAM_APDU [10:12:28]CAPDU: 80 13 00 00 [10:12:28]Write to MH i2c: E2 08 00 E3 13 80 13 00 00 00 00 00 00 72 [10:12:28]Write i2c OK [10:12:28]MH_I2C_Read... [10:12:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:28]Read from MH i2c: E2 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 62 00 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 62 00 E3 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BE C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [10:12: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BE C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:28]wFMCommunicate OK [10:12:28]SAM_PROTO_GetFieldsCounters done [10:12:28]requested_item shift.num is exist - process it [10:12:28]requested_item shift.opened is exist - process it [10:12:28]req_shift_opened [10:12:28]FM_GetShiftState [10:12:28]SAM_PROTO_GetShiftState [10:12:28]wFMCommunicate request_size=4 [10:12:28]MH_SAM_APDU [10:12:28]CAPDU: 80 13 01 00 [10:12:28]Write to MH i2c: E2 08 00 E4 13 80 13 01 00 00 00 00 00 74 [10:12:28]Write i2c OK [10:12:28]MH_I2C_Read... [10:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:28]Read from MH i2c: E2 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 0E 00 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 0E 00 E4 13 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 B9 [10:12:28]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:12:28]wFMCommunicate OK [10:12:28]SAM_PROTO_GetShiftState done [10:12:28]FM_GetShiftState done [10:12:28]req_shift_opened done [10:12:28]requested_item shift.open_date is exist - process it [10:12:28]req_shift_open_date [10:12:28]req_shift_open_date done [10:12:28]produce_requested_data done [10:12:28]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49598,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [10:12:28]process_action_free close_receipt [10:12:28]json_value_free [10:12:28]json_value_free done [10:12:28]process_json_proto returns [10:12:28]Send response to host [10:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49598,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [10:12:28]free response buf [10:12:28]execute_script done [10:12:28]execute_script returns [10:12:28]free content buf [10:12:28]Sock 9.Close socket [10:12:28]Sock 9.Thread stoped [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:40]accept exits with 7 [10:13:40]New connection [10:13:40]New thread 3066801508 created [10:13:40]Thread 3066944868 joined [10:13:40]Waiting for new connection... [10:13:40] Sock 7.Parse request [10:13:40]Sock 7.Check first char [10:13:40]Sock 7.First char is OK [10:13:40]request: POST /json_proto HTTP/1.0 [10:13:40]Method: POST [10:13:40]URL: /json_proto [10:13:40]Method is POST - this is cgi request [10:13:40]url: /json_proto [10:13:40]query_string will be loaded in cgi processing [10:13:40]execute_cgi json_proto POST (null) [10:13:40]execute_cgi path=json_proto method=POST [10:13:40]POST find Content-Length [10:13:40]Host: 172.17.46.196:8080 [10:13:40]Content-Length: 756 [10:13:40]Content-Type: application/json [10:13:40] [10:13:40]POST finish read [10:13:40]Found Content-Length = 756 [10:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30086500", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:40]execute_script... [10:13: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)11326036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30086500", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:40]POST & json_proto [10:13:40]process_json_proto [10:13:40]json parsed OK: [10:13:40]protocol is kg_v1.0 [10:13:40]action value=close_receipt [10:13:40]process_action close_receipt [10:13:40]cmd_close_receipt [10:13:40]MH_GetDate [10:13:40]Write to MH i2c: F0 00 00 E5 13 E7 [10:13:40]Write i2c OK [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: F0 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: F0 09 00 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: F0 09 00 E5 13 00 D7 77 C0 66 07 E8 5D 66 16 [10:13:40]GetLastDocTimeStamp 1723889546 [10:13:40]current date 1723889623 [10:13:40]FM_GetShiftState [10:13:40]SAM_PROTO_GetShiftState [10:13:40]wFMCommunicate request_size=4 [10:13:40]MH_SAM_APDU [10:13:40]CAPDU: 80 13 01 00 [10:13:40]Write to MH i2c: E2 08 00 E6 13 80 13 01 00 00 00 00 00 76 [10:13:40]Write i2c OK [10:13:40]MH_I2C_Read... [10:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:40]Read from MH i2c: E2 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: E2 0E 00 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: E2 0E 00 E6 13 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 BB [10:13:40]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:13:40]wFMCommunicate OK [10:13:40]SAM_PROTO_GetShiftState done [10:13:40]FM_GetShiftState done [10:13:40]opened in 1723853354 [10:13:40]opened+sec_in_day 1723939754 [10:13:40]quantity*price = 0 [10:13:40]sum+1 = 1 [10:13:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 36 17.08.2024 10:13 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30086500 ФМ: 0000000000871800 ФД: 49599 ФПД: 77161286885190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T101343&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49599&fm=77161286885190&tin=02508201610067®Number=0000000000092546&sum=0 [10:13:41]StoreToDocumentArchive [10:13:41]shift 465 fd 49599 [10:13:41]save to /storage/0465/doc_00049599 [10:13:41]save last doc name /storage/0465/doc_00049599 to /storage/kkm_last_doc_name [10:13:41]save OK [10:13:41]Clear old archive folders... [10:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:41]tlvbuf is 0186CA90 [10:13:41]SAM_PROTO_ClearQueue [10:13:41]wFMCommunicate request_size=4 [10:13:41]MH_SAM_APDU [10:13:41]CAPDU: 80 09 00 00 [10:13:41]Write to MH i2c: E2 08 00 F3 13 80 09 00 00 00 00 00 00 78 [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:41]Read from MH i2c: E2 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 03 00 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 03 00 F3 13 00 90 00 7A [10:13:41]RAPDU: 90 00 [10:13:41]wFMCommunicate OK [10:13:41]SAM_PROTO_ClearQueue done [10:13:41]KKMCreateOFDPacket [10:13:41]OFDProtocolAddRootSTLVToBuf [10:13:41]FM_MakeSignedData [10:13:41]FM_MakeSignedData [10:13:41]SAM_PROTO_SignData [10:13:41]wFMCommunicate request_size=4 [10:13:41]MH_SAM_APDU [10:13:41]CAPDU: 80 0D 01 02 [10:13:41]Write to MH i2c: E2 08 00 F4 13 80 0D 01 02 00 00 00 00 80 [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:41]Read from MH i2c: E2 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 03 00 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 03 00 F4 13 00 90 00 7B [10:13:41]RAPDU: 90 00 [10:13:41]wFMCommunicate OK [10:13:41]wFMCommunicate request_size=255 [10:13:41]MH_SAM_APDU [10:13:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 24 00 00 00 F4 03 04 00 D7 77 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BF C1 00 00 35 04 06 00 46 [10:13:41]Write to MH i2c: E2 02 01 F5 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 24 00 00 00 F4 03 04 00 D7 77 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BF C1 00 00 35 04 06 00 46 00 00 20 [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:42]Read from MH i2c: E2 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 03 00 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 03 00 F5 13 00 90 00 7C [10:13:42]RAPDU: 90 00 [10:13:42]wFMCommunicate OK [10:13:42]wFMCommunicate request_size=10 [10:13:42]MH_SAM_APDU [10:13:42]CAPDU: 80 0D 02 02 05 2D 83 18 5F 46 [10:13:42]Write to MH i2c: E2 0D 00 F6 13 80 0D 02 02 05 00 2D 83 18 5F 46 00 00 FA [10:13:42]Write i2c OK [10:13:42]MH_I2C_Read... [10:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:42]Read from MH i2c: E2 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 03 00 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 03 00 F6 13 00 90 00 7D [10:13:42]RAPDU: 90 00 [10:13:42]wFMCommunicate OK [10:13:42]wFMCommunicate request_size=4 [10:13:42]MH_SAM_APDU [10:13:42]CAPDU: 80 0D 03 02 [10:13:42]Write to MH i2c: E2 08 00 F7 13 80 0D 03 02 00 00 00 00 85 [10:13:42]Write i2c OK [10:13:42]MH_I2C_Read... [10:13:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:42]Read from MH i2c: E2 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 0B 00 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 0B 00 F7 13 00 9C 38 B5 43 83 A3 57 B4 90 00 83 [10:13:42]RAPDU: 9C 38 B5 43 83 A3 57 B4 90 00 [10:13:42]wFMCommunicate OK [10:13:42]SAM_PROTO_SignData done [10:13:42]FM_MakeSignedData done [10:13:42]CreateOFDProtocolMessage [10:13:42]wFMCommunicate request_size=4 [10:13:42]MH_SAM_APDU [10:13:42]CAPDU: 80 11 00 00 [10:13:42]Write to MH i2c: E2 08 00 F8 13 80 11 00 00 00 00 00 00 85 [10:13:42]Write i2c OK [10:13:42]MH_I2C_Read... [10:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:42]Read from MH i2c: E2 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 17 00 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: E2 17 00 F8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D0 [10:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:13:42]wFMCommunicate OK [10:13:42]CreateOFDProtocolMessage done [10:13:42]OFDSenderStorePacket 49599 [10:13:42]StoreOFDPacket docnum=49599 [10:13:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 EA 1A 07 01 4A 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 34 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 24 00 00 00 F4 03 04 00 D7 77 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BF C1 00 00 35 04 06 00 46 2D 83 18 5F 46 9C 38 B5 43 83 A3 57 B4 [10:13:42]CheckFolder [10:13:42]dirname=/storage/ofd_packets [10:13:42]CheckFolder done [10:13:42]ProducePacketName [10:13:42]name=ofd_packets/00049599 [10:13:42]NVStorageSaveData ofd_packets/00049599 [10:13:42]File name is /storage/ofd_packets/00049599 [10:13:42]Write 301 bytes [10:13:42]NVStorageSaveData done [10:13:42]OFDSenderStorePacket done [10:13:42]KKMCreateOFDPacket done [10:13:42]NVStorageSaveData kkm_last_timestamp [10:13:42]File name is /storage/kkm_last_timestamp [10:13:42]Write 4 bytes [10:13:42]NVStorageSaveData done [10:13:42]ExternCall_PrintAddStr [10:13:42]wPrintStart [10:13:42]Write to MH i2c: 01 00 00 F9 13 0C [10:13:42]Write i2c OK [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: 01 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: 01 07 00 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: 01 07 00 F9 13 00 00 00 00 00 FF 0F 21 [10:13:42]RasterBufferAndPrint [10:13:42]line Счет N : (1)11326036 [10:13:42]line ИНН: 02508201610067 [10:13:42]line Контрольно-Кассовый Чек [10:13:42]line ПРОДАЖА [10:13:42]line ТРК (МРК, ГНК) : 42 [10:13:42]line Товар: 2710124130 [10:13:42]line Аи-92-К-4 [10:13:42]line 20.000 * 0.00 [10:13:42]line = 0.00 [10:13:42]line НДС 12% НСП 1% [10:13:42]line > о реализуемом товаре [10:13:42]line ИТОГО: 0.00 [10:13:42]line НСП 1% : 0.00 [10:13:42]line НДС 12% : 0.00 [10:13:42]line Наличными: 0.00 [10:13:42]line Безнал.: 0.00 [10:13:42]line Место: АЗС № 95 "Партнер Нефть" [10:13:42]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:13:42]line СНО: Общий режим [10:13:42]line Чек 36 17.08.2024 10:13 [10:13:42]line Смена: 465 ФФД: 1.0 [10:13:42]line ЗНМ: 0300000078 [10:13:42]line РНМ: 0000000000092546 [10:13:42]line Версия ККМ: 001 [10:13:42]line Талоны: ТК ГПНА Online [10:13:42]line 30086500 [10:13:42]line ФМ: 0000000000871800 [10:13:42]line ФД: 49599 [10:13:42]line ФПД: 77161286885190 [10:13:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T101343&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49599&fm=77161286885190&tin=02508201610067®Number=0000000000092546&sum=0 [10:13:42]written 0, free lines is 4095 [10:13:42]OFD Sender: Processing packet 49599 [packets to send 21, broken 20] [10:13:42]ProducePacketName [10:13:42]name=ofd_packets/00049599 [10:13:42]OFD Sender: To server: pG, [10:13:42]CommunicateWithHost lk.salyk.kg:30040 [10:13:42]ConnectInit lk.salyk.kg [10:13:42]Connected sock=10 [10:13:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 EA 1A 07 01 4A 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 34 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 24 00 00 00 F4 03 04 00 D7 77 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BF C1 00 00 35 04 06 00 46 2D 83 18 5F 46 9C 38 B5 43 83 A3 57 B4 [10:13:43]Write to MH i2c: 01 00 00 23 14 37 [10:13:43]Write i2c OK [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: 01 [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: 01 07 00 [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: 01 07 00 23 14 00 00 00 00 00 E4 0C 2E [10:13:43]RasterBufferAndPrint [10:13:43]line [10:13:43]line [10:13:43]line [10:13:43]line [10:13:43]line [10:13:43]written 0, free lines is 3309 [10:13:43]MH_Cut [10:13:43]Write to MH i2c: D1 01 00 2A 14 01 10 [10:13:43]Write i2c OK [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: D1 [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: D1 01 00 [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: D1 01 00 2A 14 00 0F [10:13:43]Write to MH i2c: 01 00 00 2B 14 3F [10:13:43]Write i2c OK [10:13:43]MH_I2C_Read... [10:13:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BA A2 47 00 B4 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BF C1 00 00 F4 03 04 00 14 23 C0 66 B6 04 01 00 00 3E 2F F5 B0 10 6A A8 7C [10:13:43]CommunicateWithHost err = 0 [10:13:43]CheckOFDResponse [10:13:43]1017 (14) - 77093643461234 [10:13:43]1041 (16) - 0000000000871800 [10:13:43]1040 (4) - 49599 [10:13:43]1012 (4) - 17.08.2024 04:12 [10:13:43]1206 (1) - 0 [10:13:43]OFD Sender: Remove packet 49599 [10:13:43]ProducePacketName [10:13:43]name=ofd_packets/00049599 [10:13:43]NVStorageDeleteData [10:13:43]OFD Sender: No OFD packet to send [10:13:43]*** Cut start [10:13:43]*** Purtial cut [10:13:43]*** Stage 1: CUTSNS_PIN = 1 [10:13:44]Read from MH i2c: 01 [10:13:44]MH_I2C_Read... [10:13:44]*** Stop cut motor [10:13:44]*** Cut end [10:13:44]Read from MH i2c: 01 07 00 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: 01 07 00 2B 14 00 00 00 00 00 FF 0F 54 [10:13:44]process_action close_receipt done [10:13:44]requested_data is exist [10:13:44]produce_requested_data [10:13:44]requested_item fm.sn is exist - process it [10:13:44]wFMCommunicate request_size=4 [10:13:44]MH_SAM_APDU [10:13:44]CAPDU: 80 11 00 00 [10:13:44]Write to MH i2c: E2 08 00 2C 14 80 11 00 00 00 00 00 00 BA [10:13:44]Write i2c OK [10:13:44]MH_I2C_Read... [10:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:44]Read from MH i2c: E2 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 17 00 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 17 00 2C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 05 [10:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:13:44]wFMCommunicate OK [10:13:44]requested_item fd.num is exist - process it [10:13:44]SAM_PROTO_GetFieldsCounters [10:13:44]wFMCommunicate request_size=4 [10:13:44]MH_SAM_APDU [10:13:44]CAPDU: 80 13 00 00 [10:13:44]Write to MH i2c: E2 08 00 2D 14 80 13 00 00 00 00 00 00 BD [10:13:44]Write i2c OK [10:13:44]MH_I2C_Read... [10:13:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:44]Read from MH i2c: E2 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 62 00 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 62 00 2D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BF C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [10:13: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BF C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:44]wFMCommunicate OK [10:13:44]SAM_PROTO_GetFieldsCounters done [10:13:44]requested_item shift.num is exist - process it [10:13:44]requested_item shift.opened is exist - process it [10:13:44]req_shift_opened [10:13:44]FM_GetShiftState [10:13:44]SAM_PROTO_GetShiftState [10:13:44]wFMCommunicate request_size=4 [10:13:44]MH_SAM_APDU [10:13:44]CAPDU: 80 13 01 00 [10:13:44]Write to MH i2c: E2 08 00 2E 14 80 13 01 00 00 00 00 00 BF [10:13:44]Write i2c OK [10:13:44]MH_I2C_Read... [10:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:44]Read from MH i2c: E2 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 0E 00 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 0E 00 2E 14 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 04 [10:13:44]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:13:44]wFMCommunicate OK [10:13:44]SAM_PROTO_GetShiftState done [10:13:44]FM_GetShiftState done [10:13:44]req_shift_opened done [10:13:44]requested_item shift.open_date is exist - process it [10:13:44]req_shift_open_date [10:13:44]req_shift_open_date done [10:13:44]produce_requested_data done [10:13:44]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49599,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [10:13:44]process_action_free close_receipt [10:13:44]json_value_free [10:13:44]json_value_free done [10:13:44]process_json_proto returns [10:13:44]Send response to host [10:13:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49599,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [10:13:44]free response buf [10:13:44]execute_script done [10:13:44]execute_script returns [10:13:44]free content buf [10:13:44]Sock 7.Close socket [10:13:44]Sock 7.Thread stoped [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:12]int [10:17:12]Write to MH i2c: 01 00 00 2F 14 43 [10:17:12]*** FLAG_PRN_KEY set [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 07 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 07 00 2F 14 00 08 00 00 00 FF 0F 60 [10:17:12]state=0 [10:17:12]Key pressed [10:17:12]Feed [10:17:12]Write to MH i2c: D8 00 00 30 14 1B [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: D8 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: D8 01 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: D8 01 00 30 14 00 1C [10:17:12]int [10:17:12]Write to MH i2c: 01 00 00 31 14 45 [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 07 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 07 00 31 14 00 48 00 00 00 3C 00 D0 [10:17:12]state=2 [10:17:12]Key pressed [10:17:12]int [10:17:12]Write to MH i2c: 01 00 00 32 14 46 [10:17:12]*** FLAG_PRN_KEY reset [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 07 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 07 00 32 14 00 00 00 00 00 FE 0F 5A [10:17:12]state=2 [10:17:12]Stop feed [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]accept exits with 9 [10:20:43]New connection [10:20:43]New thread 3066944868 created [10:20:43]Thread 3066801508 joined [10:20:43]Waiting for new connection... [10:20:43] Sock 9.Parse request [10:20:43]Sock 9.Check first char [10:20:43]Sock 9.First char is OK [10:20:43]request: POST /json_proto HTTP/1.0 [10:20:43]Method: POST [10:20:43]URL: /json_proto [10:20:43]Method is POST - this is cgi request [10:20:43]url: /json_proto [10:20:43]query_string will be loaded in cgi processing [10:20:43]execute_cgi json_proto POST (null) [10:20:43]execute_cgi path=json_proto method=POST [10:20:43]POST find Content-Length [10:20:43]Host: 172.17.46.196:8080 [10:20:43]Content-Length: 851 [10:20:43]Content-Type: application/json [10:20:43] [10:20:43]POST finish read [10:20:43]Found Content-Length = 851 [10:20:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189794", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:43]execute_script... [10:20:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189794", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:43]POST & json_proto [10:20:43]process_json_proto [10:20:43]json parsed OK: [10:20:43]protocol is kg_v1.0 [10:20:43]action value=close_receipt [10:20:43]process_action close_receipt [10:20:43]cmd_close_receipt [10:20:43]MH_GetDate [10:20:43]Write to MH i2c: F0 00 00 33 14 36 [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: F0 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: F0 09 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: F0 09 00 33 14 00 7E 79 C0 66 07 E8 5D 66 0E [10:20:43]GetLastDocTimeStamp 1723889623 [10:20:43]current date 1723890046 [10:20:43]FM_GetShiftState [10:20:43]SAM_PROTO_GetShiftState [10:20:43]wFMCommunicate request_size=4 [10:20:43]MH_SAM_APDU [10:20:43]CAPDU: 80 13 01 00 [10:20:43]Write to MH i2c: E2 08 00 34 14 80 13 01 00 00 00 00 00 C5 [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:43]Read from MH i2c: E2 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 0E 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 0E 00 34 14 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 0A [10:20:43]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:20:43]wFMCommunicate OK [10:20:43]SAM_PROTO_GetShiftState done [10:20:43]FM_GetShiftState done [10:20:43]opened in 1723853354 [10:20:43]opened+sec_in_day 1723939754 [10:20:43]quantity*price = 14000 [10:20:43]sum+1 = 14001 [10:20:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 37 17.08.2024 10:20 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49600 ФПД: 9399074527890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T102046&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49600&fm=9399074527890&tin=02508201610067®Number=0000000000092546&sum=22000 0 [10:20:44]StoreToDocumentArchive [10:20:44]shift 465 fd 49600 [10:20:44]save to /storage/0465/doc_00049600 [10:20:44]save last doc name /storage/0465/doc_00049600 to /storage/kkm_last_doc_name [10:20:44]save OK [10:20:44]Clear old archive folders... [10:20:44]ProcessDocumentItem done err = 0, tmpTLVsize=371 [10:20:44]tlvbuf is B6EA6690 [10:20:44]SAM_PROTO_ClearQueue [10:20:44]wFMCommunicate request_size=4 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 09 00 00 [10:20:44]Write to MH i2c: E2 08 00 41 14 80 09 00 00 00 00 00 00 C7 [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 41 14 00 90 00 C9 [10:20:44]RAPDU: 90 00 [10:20:44]wFMCommunicate OK [10:20:44]SAM_PROTO_ClearQueue done [10:20:44]KKMCreateOFDPacket [10:20:44]OFDProtocolAddRootSTLVToBuf [10:20:44]FM_MakeSignedData [10:20:44]FM_MakeSignedData [10:20:44]SAM_PROTO_SignData [10:20:44]wFMCommunicate request_size=4 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 0D 01 02 [10:20:44]Write to MH i2c: E2 08 00 42 14 80 0D 01 02 00 00 00 00 CF [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 42 14 00 90 00 CA [10:20:44]RAPDU: 90 00 [10:20:44]wFMCommunicate OK [10:20:44]wFMCommunicate request_size=255 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 0D 02 02 FA 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 [10:20:44]Write to MH i2c: E2 02 01 43 14 80 0D 02 02 FA 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 76 [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 03 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [10:20:45]RAPDU: 90 00 [10:20:45]wFMCommunicate OK [10:20:45]wFMCommunicate request_size=130 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 7E 79 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C0 C1 00 00 35 04 06 00 08 8C 64 7F 9A 92 [10:20:45]Write to MH i2c: E2 85 00 44 14 80 0D 02 02 7D 00 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 7E 79 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C0 C1 00 00 35 04 06 00 08 8C 64 7F 9A 92 00 00 A3 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 03 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [10:20:45]RAPDU: 90 00 [10:20:45]wFMCommunicate OK [10:20:45]wFMCommunicate request_size=4 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 0D 03 02 [10:20:45]Write to MH i2c: E2 08 00 45 14 80 0D 03 02 00 00 00 00 D4 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 0B 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 0B 00 45 14 00 2A A1 BA AB 1E B7 9B 69 90 00 DE [10:20:45]RAPDU: 2A A1 BA AB 1E B7 9B 69 90 00 [10:20:45]wFMCommunicate OK [10:20:45]SAM_PROTO_SignData done [10:20:45]FM_MakeSignedData done [10:20:45]CreateOFDProtocolMessage [10:20:45]wFMCommunicate request_size=4 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 11 00 00 [10:20:45]Write to MH i2c: E2 08 00 46 14 80 11 00 00 00 00 00 00 D4 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 17 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 17 00 46 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1F [10:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:20:45]wFMCommunicate OK [10:20:45]CreateOFDProtocolMessage done [10:20:45]OFDSenderStorePacket 49600 [10:20:45]StoreOFDPacket docnum=49600 [10:20:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 87 01 00 00 4E DD 7F 01 0C CC 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 7E 79 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C0 C1 00 00 35 04 06 00 08 8C 64 7F 9A 92 2A A1 BA AB 1E B7 9B 69 [10:20:45]CheckFolder [10:20:45]dirname=/storage/ofd_packets [10:20:45]CheckFolder done [10:20:45]ProducePacketName [10:20:45]name=ofd_packets/00049600 [10:20:45]NVStorageSaveData ofd_packets/00049600 [10:20:45]File name is /storage/ofd_packets/00049600 [10:20:45]Write 421 bytes [10:20:45]NVStorageSaveData done [10:20:45]OFDSenderStorePacket done [10:20:45]KKMCreateOFDPacket done [10:20:45]NVStorageSaveData kkm_last_timestamp [10:20:45]File name is /storage/kkm_last_timestamp [10:20:45]Write 4 bytes [10:20:45]NVStorageSaveData done [10:20:45]ExternCall_PrintAddStr [10:20:45]wPrintStart [10:20:45]Write to MH i2c: 01 00 00 47 14 5B [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 07 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 07 00 47 14 00 00 00 00 00 FF 0F 70 [10:20:45]RasterBufferAndPrint [10:20:45]line Счет N : (3)189794 [10:20:45]line ИНН: 02508201610067 [10:20:45]line Контрольно-Кассовый Чек [10:20:45]line ПРОДАЖА [10:20:45]line Товар: 48743570 [10:20:45]line Сигареты Winston XStyle Blue [10:20:45]line 1.000 * 140.00 [10:20:45]line = 140.00 [10:20:45]line НДС 12% НСП 1% [10:20:45]line > о реализуемом товаре [10:20:45]line Товар: 4870001570057 [10:20:45]line Напиток Pepsi 0,5л [10:20:45]line 1.000 * 80.00 [10:20:45]line = 80.00 [10:20:45]line НДС 12% НСП 1% [10:20:45]line > о реализуемом товаре [10:20:45]line ИТОГО: 220.00 [10:20:45]line НСП 1% : 1.95 [10:20:45]line НДС 12% : 23.37 [10:20:45]line Наличными: 220.00 [10:20:45]line Безнал.: 0.00 [10:20:45]line Место: АЗС № 95 "Партнер Нефть" [10:20:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:20:45]line СНО: Общий режим [10:20:45]line Чек 37 17.08.2024 10:20 [10:20:45]line Смена: 465 ФФД: 1.0 [10:20:45]line ЗНМ: 0300000078 [10:20:45]line РНМ: 0000000000092546 [10:20:45]line Версия ККМ: 001 [10:20:45]line ФМ: 0000000000871800 [10:20:45]line ФД: 49600 [10:20:45]line ФПД: 9399074527890 [10:20:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T102046&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49600&fm=9399074527890&tin=02508201610067®Number=0000000000092546&sum=22000 [10:20:45]line 0 [10:20:45]OFD Sender: Processing packet 49600 [packets to send 21, broken 20] [10:20:45]ProducePacketName [10:20:45]name=ofd_packets/00049600 [10:20:45]OFD Sender: To server: pG, [10:20:45]CommunicateWithHost lk.salyk.kg:30040 [10:20:45]ConnectInit lk.salyk.kg [10:20:45]written 0, free lines is 4095 [10:20:45]Connected sock=10 [10:20:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 87 01 00 00 4E DD 7F 01 0C CC 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 7E 79 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C0 C1 00 00 35 04 06 00 08 8C 64 7F 9A 92 2A A1 BA AB 1E B7 9B 69 [10:20:46]Write to MH i2c: 01 00 00 75 14 89 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 07 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 07 00 75 14 00 00 00 00 00 9B 0C 37 [10:20:46]RasterBufferAndPrint [10:20:46]line [10:20:46]line [10:20:46]line [10:20:46]line [10:20:46]line [10:20:46]written 0, free lines is 3234 [10:20:46]MH_Cut [10:20:46]Write to MH i2c: D1 01 00 7C 14 01 62 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: D1 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: D1 01 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: D1 01 00 7C 14 00 61 [10:20:46]Write to MH i2c: 01 00 00 7D 14 91 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E8 E8 47 00 D0 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C0 C1 00 00 F4 03 04 00 BB 24 C0 66 B6 04 01 00 00 00 C7 13 8F 62 C3 86 12 [10:20:46]CommunicateWithHost err = 0 [10:20:46]CheckOFDResponse [10:20:46]1017 (14) - 77093643461234 [10:20:46]1041 (16) - 0000000000871800 [10:20:46]1040 (4) - 49600 [10:20:46]1012 (4) - 17.08.2024 04:19 [10:20:46]1206 (1) - 0 [10:20:46]OFD Sender: Remove packet 49600 [10:20:46]ProducePacketName [10:20:46]name=ofd_packets/00049600 [10:20:46]NVStorageDeleteData [10:20:46]OFD Sender: No OFD packet to send [10:20:46]*** Cut start [10:20:46]*** Purtial cut [10:20:46]*** CUTSNS_PIN = 0 [10:20:47]*** Stage 1: CUTSNS_PIN = 1 [10:20:48]Read from MH i2c: 01 [10:20:48]MH_I2C_Read... [10:20:48]*** Stop cut motor [10:20:48]*** Cut end [10:20:48]Read from MH i2c: 01 07 00 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: 01 07 00 7D 14 00 00 00 00 00 FF 0F A6 [10:20:48]process_action close_receipt done [10:20:48]requested_data is exist [10:20:48]produce_requested_data [10:20:48]requested_item fm.sn is exist - process it [10:20:48]wFMCommunicate request_size=4 [10:20:48]MH_SAM_APDU [10:20:48]CAPDU: 80 11 00 00 [10:20:48]Write to MH i2c: E2 08 00 7E 14 80 11 00 00 00 00 00 00 0C [10:20:48]Write i2c OK [10:20:48]MH_I2C_Read... [10:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:49]Read from MH i2c: E2 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: E2 17 00 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: E2 17 00 7E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 57 [10:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:20:49]wFMCommunicate OK [10:20:49]requested_item fd.num is exist - process it [10:20:49]SAM_PROTO_GetFieldsCounters [10:20:49]wFMCommunicate request_size=4 [10:20:49]MH_SAM_APDU [10:20:49]CAPDU: 80 13 00 00 [10:20:49]Write to MH i2c: E2 08 00 7F 14 80 13 00 00 00 00 00 00 0F [10:20:49]Write i2c OK [10:20:49]MH_I2C_Read... [10:20:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:49]Read from MH i2c: E2 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: E2 62 00 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: E2 62 00 7F 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C0 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [10:20: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C0 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:49]wFMCommunicate OK [10:20:49]SAM_PROTO_GetFieldsCounters done [10:20:49]requested_item shift.num is exist - process it [10:20:49]requested_item shift.opened is exist - process it [10:20:49]req_shift_opened [10:20:49]FM_GetShiftState [10:20:49]SAM_PROTO_GetShiftState [10:20:49]wFMCommunicate request_size=4 [10:20:49]MH_SAM_APDU [10:20:49]CAPDU: 80 13 01 00 [10:20:49]Write to MH i2c: E2 08 00 80 14 80 13 01 00 00 00 00 00 11 [10:20:49]Write i2c OK [10:20:49]MH_I2C_Read... [10:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:49]Read from MH i2c: E2 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: E2 0E 00 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: E2 0E 00 80 14 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 56 [10:20:49]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:20:49]wFMCommunicate OK [10:20:49]SAM_PROTO_GetShiftState done [10:20:49]FM_GetShiftState done [10:20:49]req_shift_opened done [10:20:49]requested_item shift.open_date is exist - process it [10:20:49]req_shift_open_date [10:20:49]req_shift_open_date done [10:20:49]produce_requested_data done [10:20:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49600,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [10:20:49]process_action_free close_receipt [10:20:49]json_value_free [10:20:49]json_value_free done [10:20:49]process_json_proto returns [10:20:49]Send response to host [10:20:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49600,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [10:20:49]free response buf [10:20:49]execute_script done [10:20:49]execute_script returns [10:20:49]free content buf [10:20:49]Sock 9.Close socket [10:20:49]Sock 9.Thread stoped [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:40]accept exits with 7 [10:23:40]New connection [10:23:40]New thread 3066801508 created [10:23:40]Thread 3066944868 joined [10:23:40]Waiting for new connection... [10:23:40] Sock 7.Parse request [10:23:40]Sock 7.Check first char [10:23:40]Sock 7.First char is OK [10:23:40]request: POST /json_proto HTTP/1.0 [10:23:40]Method: POST [10:23:40]URL: /json_proto [10:23:40]Method is POST - this is cgi request [10:23:40]url: /json_proto [10:23:40]query_string will be loaded in cgi processing [10:23:40]execute_cgi json_proto POST (null) [10:23:40]execute_cgi path=json_proto method=POST [10:23:40]POST find Content-Length [10:23:40]Host: 172.17.46.196:8080 [10:23:40]Content-Length: 756 [10:23:40]Content-Type: application/json [10:23:40] [10:23:40]POST finish read [10:23:40]Found Content-Length = 756 [10:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30086229", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:40]execute_script... [10:23: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)11326042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30086229", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:40]POST & json_proto [10:23:40]process_json_proto [10:23:40]json parsed OK: [10:23:40]protocol is kg_v1.0 [10:23:40]action value=close_receipt [10:23:40]process_action close_receipt [10:23:40]cmd_close_receipt [10:23:40]MH_GetDate [10:23:40]Write to MH i2c: F0 00 00 81 14 84 [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: F0 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: F0 09 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: F0 09 00 81 14 00 30 7A C0 66 07 E8 5D 66 0F [10:23:40]GetLastDocTimeStamp 1723890046 [10:23:40]current date 1723890224 [10:23:40]FM_GetShiftState [10:23:40]SAM_PROTO_GetShiftState [10:23:40]wFMCommunicate request_size=4 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 13 01 00 [10:23:40]Write to MH i2c: E2 08 00 82 14 80 13 01 00 00 00 00 00 13 [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:40]Read from MH i2c: E2 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 0E 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 0E 00 82 14 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 58 [10:23:40]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:23:40]wFMCommunicate OK [10:23:40]SAM_PROTO_GetShiftState done [10:23:40]FM_GetShiftState done [10:23:40]opened in 1723853354 [10:23:40]opened+sec_in_day 1723939754 [10:23:40]quantity*price = 0 [10:23:40]sum+1 = 1 [10:23:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 38 17.08.2024 10:23 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30086229 ФМ: 0000000000871800 ФД: 49601 ФПД: 213063780697517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T102344&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49601&fm=213063780697517&tin=02508201610067®Number=0000000000092546&sum=0 [10:23:42]StoreToDocumentArchive [10:23:42]shift 465 fd 49601 [10:23:42]save to /storage/0465/doc_00049601 [10:23:42]save last doc name /storage/0465/doc_00049601 to /storage/kkm_last_doc_name [10:23:42]save OK [10:23:42]Clear old archive folders... [10:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:42]tlvbuf is B6EA60E0 [10:23:42]SAM_PROTO_ClearQueue [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 09 00 00 [10:23:42]Write to MH i2c: E2 08 00 8F 14 80 09 00 00 00 00 00 00 15 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [10:23:42]RAPDU: 90 00 [10:23:42]wFMCommunicate OK [10:23:42]SAM_PROTO_ClearQueue done [10:23:42]KKMCreateOFDPacket [10:23:42]OFDProtocolAddRootSTLVToBuf [10:23:42]FM_MakeSignedData [10:23:42]FM_MakeSignedData [10:23:42]SAM_PROTO_SignData [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 0D 01 02 [10:23:42]Write to MH i2c: E2 08 00 90 14 80 0D 01 02 00 00 00 00 1D [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [10:23:42]RAPDU: 90 00 [10:23:42]wFMCommunicate OK [10:23:42]wFMCommunicate request_size=255 [10:23:42]MH_SAM_APDU [10:23: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 34 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 26 00 00 00 F4 03 04 00 30 7A C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C1 C1 00 00 35 04 06 00 C1 [10:23:42]Write to MH i2c: E2 02 01 91 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 26 00 00 00 F4 03 04 00 30 7A C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C1 C1 00 00 35 04 06 00 C1 00 00 98 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 91 14 00 90 00 19 [10:23:42]RAPDU: 90 00 [10:23:42]wFMCommunicate OK [10:23:42]wFMCommunicate request_size=10 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 0D 02 02 05 C7 C6 F6 85 AD [10:23:42]Write to MH i2c: E2 0D 00 92 14 80 0D 02 02 05 00 C7 C6 F6 85 AD 00 00 DF [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [10:23:42]RAPDU: 90 00 [10:23:42]wFMCommunicate OK [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 0D 03 02 [10:23:42]Write to MH i2c: E2 08 00 93 14 80 0D 03 02 00 00 00 00 22 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 0B 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 0B 00 93 14 00 1D E1 DD F8 67 C8 5E 95 90 00 18 [10:23:42]RAPDU: 1D E1 DD F8 67 C8 5E 95 90 00 [10:23:42]wFMCommunicate OK [10:23:42]SAM_PROTO_SignData done [10:23:42]FM_MakeSignedData done [10:23:42]CreateOFDProtocolMessage [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 11 00 00 [10:23:42]Write to MH i2c: E2 08 00 94 14 80 11 00 00 00 00 00 00 22 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 17 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 17 00 94 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6D [10:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:23:42]wFMCommunicate OK [10:23:42]CreateOFDProtocolMessage done [10:23:42]OFDSenderStorePacket 49601 [10:23:42]StoreOFDPacket docnum=49601 [10:23:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 9D 62 07 01 F4 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 26 00 00 00 F4 03 04 00 30 7A C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C1 C1 00 00 35 04 06 00 C1 C7 C6 F6 85 AD 1D E1 DD F8 67 C8 5E 95 [10:23:42]CheckFolder [10:23:42]dirname=/storage/ofd_packets [10:23:42]CheckFolder done [10:23:42]ProducePacketName [10:23:42]name=ofd_packets/00049601 [10:23:42]NVStorageSaveData ofd_packets/00049601 [10:23:42]File name is /storage/ofd_packets/00049601 [10:23:42]Write 301 bytes [10:23:42]NVStorageSaveData done [10:23:42]OFDSenderStorePacket done [10:23:42]KKMCreateOFDPacket done [10:23:42]NVStorageSaveData kkm_last_timestamp [10:23:42]File name is /storage/kkm_last_timestamp [10:23:42]Write 4 bytes [10:23:42]NVStorageSaveData done [10:23:42]ExternCall_PrintAddStr [10:23:42]wPrintStart [10:23:42]Write to MH i2c: 01 00 00 95 14 A9 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: 01 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: 01 07 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: 01 07 00 95 14 00 00 00 00 00 FF 0F BE [10:23:42]RasterBufferAndPrint [10:23:42]line Счет N : (1)11326042 [10:23:42]line ИНН: 02508201610067 [10:23:42]line Контрольно-Кассовый Чек [10:23:42]line ПРОДАЖА [10:23:42]line ТРК (МРК, ГНК) : 32 [10:23:42]line Товар: 2710124130 [10:23:42]line Аи-92-К-4 [10:23:42]line 20.000 * 0.00 [10:23:42]line = 0.00 [10:23:42]line НДС 12% НСП 1% [10:23:42]line > о реализуемом товаре [10:23:42]line ИТОГО: 0.00 [10:23:42]line НСП 1% : 0.00 [10:23:42]line НДС 12% : 0.00 [10:23:42]line Наличными: 0.00 [10:23:42]line Безнал.: 0.00 [10:23:42]line Место: АЗС № 95 "Партнер Нефть" [10:23:42]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:23:42]line СНО: Общий режим [10:23:42]line Чек 38 17.08.2024 10:23 [10:23:42]line Смена: 465 ФФД: 1.0 [10:23:42]line ЗНМ: 0300000078 [10:23:42]line РНМ: 0000000000092546 [10:23:42]line Версия ККМ: 001 [10:23:42]line Талоны: ТК ГПНА Online [10:23:42]line 30086229 [10:23:42]line ФМ: 0000000000871800 [10:23:42]line ФД: 49601 [10:23:42]line ФПД: 213063780697517 [10:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T102344&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49601&fm=213063780697517&tin=02508201610067®Number=0000000000092546&sum=0 [10:23:42]written 0, free lines is 4095 [10:23:42]OFD Sender: Processing packet 49601 [packets to send 21, broken 20] [10:23:42]ProducePacketName [10:23:42]name=ofd_packets/00049601 [10:23:42]OFD Sender: To server: pG, [10:23:42]CommunicateWithHost lk.salyk.kg:30040 [10:23:42]ConnectInit lk.salyk.kg [10:23:43]Connected sock=9 [10:23:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 9D 62 07 01 F4 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 26 00 00 00 F4 03 04 00 30 7A C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C1 C1 00 00 35 04 06 00 C1 C7 C6 F6 85 AD 1D E1 DD F8 67 C8 5E 95 [10:23:43]Write to MH i2c: 01 00 00 BF 14 D3 [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: 01 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: 01 07 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: 01 07 00 BF 14 00 00 00 00 00 E0 0C C6 [10:23:43]RasterBufferAndPrint [10:23:43]line [10:23:43]line [10:23:43]line [10:23:43]line [10:23:43]line [10:23:43]written 0, free lines is 3302 [10:23:43]MH_Cut [10:23:43]Write to MH i2c: D1 01 00 C6 14 01 AC [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: D1 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: D1 01 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: D1 01 00 C6 14 00 AB [10:23:43]Write to MH i2c: 01 00 00 C7 14 DB [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A2 E9 47 00 08 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 31 38 30 30 10 04 04 00 C1 C1 00 00 F4 03 04 00 6C 25 C0 66 B6 04 01 00 00 0E 31 23 FE 31 DA 0F 39 [10:23:43]CommunicateWithHost err = 0 [10:23:43]CheckOFDResponse [10:23:43]1017 (14) - 77093643461234 [10:23:43]1041 (16) - 0000000000871800 [10:23:43]1040 (4) - 49601 [10:23:43]1012 (4) - 17.08.2024 04:22 [10:23:43]1206 (1) - 0 [10:23:43]OFD Sender: Remove packet 49601 [10:23:43]ProducePacketName [10:23:43]name=ofd_packets/00049601 [10:23:43]NVStorageDeleteData [10:23:43]OFD Sender: No OFD packet to send [10:23:44]*** Cut start [10:23:44]*** Purtial cut [10:23:44]*** Stage 1: CUTSNS_PIN = 1 [10:23:44]Read from MH i2c: 01 [10:23:44]MH_I2C_Read... [10:23:44]*** Stop cut motor [10:23:44]*** Cut end [10:23:44]Read from MH i2c: 01 07 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 07 00 C7 14 00 00 00 00 00 FF 0F F0 [10:23:44]process_action close_receipt done [10:23:44]requested_data is exist [10:23:44]produce_requested_data [10:23:44]requested_item fm.sn is exist - process it [10:23:44]wFMCommunicate request_size=4 [10:23:44]MH_SAM_APDU [10:23:44]CAPDU: 80 11 00 00 [10:23:44]Write to MH i2c: E2 08 00 C8 14 80 11 00 00 00 00 00 00 56 [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:44]Read from MH i2c: E2 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 17 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 17 00 C8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A1 [10:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:23:44]wFMCommunicate OK [10:23:44]requested_item fd.num is exist - process it [10:23:44]SAM_PROTO_GetFieldsCounters [10:23:44]wFMCommunicate request_size=4 [10:23:44]MH_SAM_APDU [10:23:44]CAPDU: 80 13 00 00 [10:23:44]Write to MH i2c: E2 08 00 C9 14 80 13 00 00 00 00 00 00 59 [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:44]Read from MH i2c: E2 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 62 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 62 00 C9 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C1 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [10:23: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C1 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:44]wFMCommunicate OK [10:23:44]SAM_PROTO_GetFieldsCounters done [10:23:44]requested_item shift.num is exist - process it [10:23:44]requested_item shift.opened is exist - process it [10:23:44]req_shift_opened [10:23:44]FM_GetShiftState [10:23:44]SAM_PROTO_GetShiftState [10:23:44]wFMCommunicate request_size=4 [10:23:44]MH_SAM_APDU [10:23:44]CAPDU: 80 13 01 00 [10:23:44]Write to MH i2c: E2 08 00 CA 14 80 13 01 00 00 00 00 00 5B [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:44]Read from MH i2c: E2 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 0E 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 0E 00 CA 14 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 A0 [10:23:44]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:23:44]wFMCommunicate OK [10:23:44]SAM_PROTO_GetShiftState done [10:23:44]FM_GetShiftState done [10:23:44]req_shift_opened done [10:23:44]requested_item shift.open_date is exist - process it [10:23:44]req_shift_open_date [10:23:44]req_shift_open_date done [10:23:44]produce_requested_data done [10:23:44]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49601,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [10:23:44]process_action_free close_receipt [10:23:44]json_value_free [10:23:44]json_value_free done [10:23:44]process_json_proto returns [10:23:44]Send response to host [10:23:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49601,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [10:23:44]free response buf [10:23:44]execute_script done [10:23:44]execute_script returns [10:23:44]free content buf [10:23:44]Sock 7.Close socket [10:23:44]Sock 7.Thread stoped [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:51]int [10:39:51]Write to MH i2c: 01 00 00 CB 14 DF [10:39:51]*** FLAG_PRN_KEY set [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 07 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 07 00 CB 14 00 08 00 00 00 FF 0F FC [10:39:51]state=0 [10:39:51]Key pressed [10:39:51]Feed [10:39:51]Write to MH i2c: D8 00 00 CC 14 B7 [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: D8 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: D8 01 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: D8 01 00 CC 14 00 B8 [10:39:51]int [10:39:51]Write to MH i2c: 01 00 00 CD 14 E1 [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 07 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 07 00 CD 14 00 48 00 00 00 3C 00 6C [10:39:51]state=2 [10:39:51]Key pressed [10:39:51]int [10:39:51]Write to MH i2c: 01 00 00 CE 14 E2 [10:39:51]*** FLAG_PRN_KEY reset [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 07 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 07 00 CE 14 00 00 00 00 00 F5 0F ED [10:39:51]state=2 [10:39:51]Stop feed [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]accept exits with 10 [10:40:19]New connection [10:40:19]New thread 3066944868 created [10:40:19]Thread 3066801508 joined [10:40:19]Waiting for new connection... [10:40:19] Sock 10.Parse request [10:40:19]Sock 10.Check first char [10:40:19]Sock 10.First char is OK [10:40:19]request: POST /json_proto HTTP/1.0 [10:40:19]Method: POST [10:40:19]URL: /json_proto [10:40:19]Method is POST - this is cgi request [10:40:19]url: /json_proto [10:40:19]query_string will be loaded in cgi processing [10:40:19]execute_cgi json_proto POST (null) [10:40:19]execute_cgi path=json_proto method=POST [10:40:19]POST find Content-Length [10:40:19]Host: 172.17.46.196:8080 [10:40:19]Content-Length: 644 [10:40:19]Content-Type: application/json [10:40:19] [10:40:19]POST finish read [10:40:19]Found Content-Length = 644 [10:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189795", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:19]execute_script... [10:40:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189795", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:19]POST & json_proto [10:40:19]process_json_proto [10:40:19]json parsed OK: [10:40:19]protocol is kg_v1.0 [10:40:19]action value=close_receipt [10:40:19]process_action close_receipt [10:40:19]cmd_close_receipt [10:40:19]MH_GetDate [10:40:19]Write to MH i2c: F0 00 00 CF 14 D2 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: F0 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: F0 09 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: F0 09 00 CF 14 00 16 7E C0 66 07 E8 5D 66 47 [10:40:19]GetLastDocTimeStamp 1723890224 [10:40:19]current date 1723891222 [10:40:19]FM_GetShiftState [10:40:19]SAM_PROTO_GetShiftState [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 13 01 00 [10:40:19]Write to MH i2c: E2 08 00 D0 14 80 13 01 00 00 00 00 00 61 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0E 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0E 00 D0 14 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 A6 [10:40:19]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:40:19]wFMCommunicate OK [10:40:19]SAM_PROTO_GetShiftState done [10:40:19]FM_GetShiftState done [10:40:19]opened in 1723853354 [10:40:19]opened+sec_in_day 1723939754 [10:40:19]quantity*price = 11500 [10:40:19]sum+1 = 11501 [10:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 39 17.08.2024 10:40 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49602 ФПД: 239135367960107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T104022&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49602&fm=239135367960107&tin=02508201610067®Number=0000000000092546&sum=11500 0 [10:40:20]StoreToDocumentArchive [10:40:20]shift 465 fd 49602 [10:40:20]save to /storage/0465/doc_00049602 [10:40:20]save last doc name /storage/0465/doc_00049602 to /storage/kkm_last_doc_name [10:40:20]save OK [10:40:20]Clear old archive folders... [10:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:40:20]tlvbuf is 0186CA30 [10:40:20]SAM_PROTO_ClearQueue [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 09 00 00 [10:40:20]Write to MH i2c: E2 08 00 DD 14 80 09 00 00 00 00 00 00 63 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 DD 14 00 90 00 65 [10:40:20]RAPDU: 90 00 [10:40:20]wFMCommunicate OK [10:40:20]SAM_PROTO_ClearQueue done [10:40:20]KKMCreateOFDPacket [10:40:20]OFDProtocolAddRootSTLVToBuf [10:40:20]FM_MakeSignedData [10:40:20]FM_MakeSignedData [10:40:20]SAM_PROTO_SignData [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 0D 01 02 [10:40:20]Write to MH i2c: E2 08 00 DE 14 80 0D 01 02 00 00 00 00 6B [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 DE 14 00 90 00 66 [10:40:20]RAPDU: 90 00 [10:40:20]wFMCommunicate OK [10:40:20]wFMCommunicate request_size=255 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 16 7E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [10:40:20]Write to MH i2c: E2 02 01 DF 14 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 16 7E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 5F [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 DF 14 00 90 00 67 [10:40:20]RAPDU: 90 00 [10:40:20]wFMCommunicate OK [10:40:20]wFMCommunicate request_size=39 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C2 C1 00 00 35 04 06 00 D9 7E 0A A9 16 2B [10:40:20]Write to MH i2c: E2 2A 00 E0 14 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C2 C1 00 00 35 04 06 00 D9 7E 0A A9 16 2B 00 00 EF [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 E0 14 00 90 00 68 [10:40:20]RAPDU: 90 00 [10:40:20]wFMCommunicate OK [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 0D 03 02 [10:40:20]Write to MH i2c: E2 08 00 E1 14 80 0D 03 02 00 00 00 00 70 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 0B 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 0B 00 E1 14 00 03 46 31 08 C4 CA 15 DA 90 00 70 [10:40:20]RAPDU: 03 46 31 08 C4 CA 15 DA 90 00 [10:40:20]wFMCommunicate OK [10:40:20]SAM_PROTO_SignData done [10:40:20]FM_MakeSignedData done [10:40:20]CreateOFDProtocolMessage [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 11 00 00 [10:40:20]Write to MH i2c: E2 08 00 E2 14 80 11 00 00 00 00 00 00 70 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 17 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 17 00 E2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BB [10:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:40:20]wFMCommunicate OK [10:40:20]CreateOFDProtocolMessage done [10:40:20]OFDSenderStorePacket 49602 [10:40:20]StoreOFDPacket docnum=49602 [10:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 59 D0 24 01 2F 5A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 16 7E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C2 C1 00 00 35 04 06 00 D9 7E 0A A9 16 2B 03 46 31 08 C4 CA 15 DA [10:40:20]CheckFolder [10:40:20]dirname=/storage/ofd_packets [10:40:20]CheckFolder done [10:40:20]ProducePacketName [10:40:20]name=ofd_packets/00049602 [10:40:20]NVStorageSaveData ofd_packets/00049602 [10:40:20]File name is /storage/ofd_packets/00049602 [10:40:20]Write 330 bytes [10:40:20]NVStorageSaveData done [10:40:20]OFDSenderStorePacket done [10:40:20]KKMCreateOFDPacket done [10:40:20]NVStorageSaveData kkm_last_timestamp [10:40:20]File name is /storage/kkm_last_timestamp [10:40:20]Write 4 bytes [10:40:20]NVStorageSaveData done [10:40:20]ExternCall_PrintAddStr [10:40:20]wPrintStart [10:40:20]Write to MH i2c: 01 00 00 E3 14 F7 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 E3 14 00 00 00 00 00 FF 0F 0C [10:40:20]RasterBufferAndPrint [10:40:20]line Счет N : (3)189795 [10:40:20]line ИНН: 02508201610067 [10:40:20]line Контрольно-Кассовый Чек [10:40:20]line ПРОДАЖА [10:40:20]line Товар: 2000036210013 [10:40:20]line Кофе Капучино (GABB TRADE) [10:40:20]line 1.000 * 115.00 [10:40:20]line = 115.00 [10:40:20]line НДС 12% НСП 1% [10:40:20]line > о реализуемом товаре [10:40:20]line ИТОГО: 115.00 [10:40:20]line НСП 1% : 1.02 [10:40:20]line НДС 12% : 12.21 [10:40:20]line Наличными: 115.00 [10:40:20]line Безнал.: 0.00 [10:40:20]line Место: АЗС № 95 "Партнер Нефть" [10:40:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:40:20]line СНО: Общий режим [10:40:20]line Чек 39 17.08.2024 10:40 [10:40:20]line Смена: 465 ФФД: 1.0 [10:40:20]line ЗНМ: 0300000078 [10:40:20]line РНМ: 0000000000092546 [10:40:20]line Версия ККМ: 001 [10:40:20]line ФМ: 0000000000871800 [10:40:20]line ФД: 49602 [10:40:20]line ФПД: 239135367960107 [10:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T104022&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49602&fm=239135367960107&tin=02508201610067®Number=0000000000092546&sum=11500 [10:40:21]line 0 [10:40:21]OFD Sender: Processing packet 49602 [packets to send 21, broken 20] [10:40:21]ProducePacketName [10:40:21]name=ofd_packets/00049602 [10:40:21]OFD Sender: To server: pG, [10:40:21]CommunicateWithHost lk.salyk.kg:30040 [10:40:21]ConnectInit lk.salyk.kg [10:40:21]written 0, free lines is 4095 [10:40:21]Connected sock=9 [10:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 59 D0 24 01 2F 5A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 16 7E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C2 C1 00 00 35 04 06 00 D9 7E 0A A9 16 2B 03 46 31 08 C4 CA 15 DA [10:40:21]Write to MH i2c: 01 00 00 0B 15 20 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 07 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 07 00 0B 15 00 00 00 00 00 08 0D 3C [10:40:21]RasterBufferAndPrint [10:40:21]line [10:40:21]line [10:40:21]line [10:40:21]line [10:40:21]line [10:40:21]written 0, free lines is 3342 [10:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5F B8 47 00 7E 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C2 C1 00 00 F4 03 04 00 52 29 C0 66 B6 04 01 00 00 32 0C 16 61 6D 31 8A A4 [10:40:21]CommunicateWithHost err = 0 [10:40:21]CheckOFDResponse [10:40:21]1017 (14) - 77093643461234 [10:40:21]1041 (16) - 0000000000871800 [10:40:21]1040 (4) - 49602 [10:40:21]1012 (4) - 17.08.2024 04:38 [10:40:21]1206 (1) - 0 [10:40:21]OFD Sender: Remove packet 49602 [10:40:21]ProducePacketName [10:40:21]name=ofd_packets/00049602 [10:40:21]NVStorageDeleteData [10:40:21]MH_Cut [10:40:21]Write to MH i2c: D1 01 00 12 15 01 F9 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: D1 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: D1 01 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: D1 01 00 12 15 00 F8 [10:40:21]Write to MH i2c: 01 00 00 13 15 28 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:22]OFD Sender: No OFD packet to send [10:40:22]*** Cut start [10:40:22]*** Purtial cut [10:40:22]*** CUTSNS_PIN = 0 [10:40:22]*** Stage 1: CUTSNS_PIN = 1 [10:40:24]Read from MH i2c: 01 [10:40:24]MH_I2C_Read... [10:40:24]*** Stop cut motor [10:40:24]*** Cut end [10:40:24]Read from MH i2c: 01 07 00 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: 01 07 00 13 15 00 00 00 00 00 FF 0F 3D [10:40:24]process_action close_receipt done [10:40:24]requested_data is exist [10:40:24]produce_requested_data [10:40:24]requested_item fm.sn is exist - process it [10:40:24]wFMCommunicate request_size=4 [10:40:24]MH_SAM_APDU [10:40:24]CAPDU: 80 11 00 00 [10:40:24]Write to MH i2c: E2 08 00 14 15 80 11 00 00 00 00 00 00 A3 [10:40:24]Write i2c OK [10:40:24]MH_I2C_Read... [10:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:24]Read from MH i2c: E2 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 17 00 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 17 00 14 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EE [10:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:40:24]wFMCommunicate OK [10:40:24]requested_item fd.num is exist - process it [10:40:24]SAM_PROTO_GetFieldsCounters [10:40:24]wFMCommunicate request_size=4 [10:40:24]MH_SAM_APDU [10:40:24]CAPDU: 80 13 00 00 [10:40:24]Write to MH i2c: E2 08 00 15 15 80 13 00 00 00 00 00 00 A6 [10:40:24]Write i2c OK [10:40:24]MH_I2C_Read... [10:40:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:24]Read from MH i2c: E2 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 62 00 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 62 00 15 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C2 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [10:40:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C2 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:24]wFMCommunicate OK [10:40:24]SAM_PROTO_GetFieldsCounters done [10:40:24]requested_item shift.num is exist - process it [10:40:24]requested_item shift.opened is exist - process it [10:40:24]req_shift_opened [10:40:24]FM_GetShiftState [10:40:24]SAM_PROTO_GetShiftState [10:40:24]wFMCommunicate request_size=4 [10:40:24]MH_SAM_APDU [10:40:24]CAPDU: 80 13 01 00 [10:40:24]Write to MH i2c: E2 08 00 16 15 80 13 01 00 00 00 00 00 A8 [10:40:24]Write i2c OK [10:40:24]MH_I2C_Read... [10:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:24]Read from MH i2c: E2 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 0E 00 [10:40:24]MH_I2C_Read... [10:40:24]Read from MH i2c: E2 0E 00 16 15 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 ED [10:40:24]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:40:24]wFMCommunicate OK [10:40:24]SAM_PROTO_GetShiftState done [10:40:24]FM_GetShiftState done [10:40:24]req_shift_opened done [10:40:24]requested_item shift.open_date is exist - process it [10:40:24]req_shift_open_date [10:40:24]req_shift_open_date done [10:40:24]produce_requested_data done [10:40:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49602,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [10:40:24]process_action_free close_receipt [10:40:24]json_value_free [10:40:24]json_value_free done [10:40:24]process_json_proto returns [10:40:24]Send response to host [10:40:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49602,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [10:40:24]free response buf [10:40:24]execute_script done [10:40:24]execute_script returns [10:40:24]free content buf [10:40:24]Sock 10.Close socket [10:40:24]Sock 10.Thread stoped [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: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: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:02]accept exits with 7 [10:42:02]New connection [10:42:02]New thread 3066801508 created [10:42:02]Thread 3066944868 joined [10:42:02]Waiting for new connection... [10:42:02] Sock 7.Parse request [10:42:02]Sock 7.Check first char [10:42:02]Sock 7.First char is OK [10:42:02]request: POST /json_proto HTTP/1.0 [10:42:02]Method: POST [10:42:02]URL: /json_proto [10:42:02]Method is POST - this is cgi request [10:42:02]url: /json_proto [10:42:02]query_string will be loaded in cgi processing [10:42:02]execute_cgi json_proto POST (null) [10:42:02]execute_cgi path=json_proto method=POST [10:42:02]POST find Content-Length [10:42:02]Host: 172.17.46.196:8080 [10:42:02]Content-Length: 756 [10:42:02]Content-Type: application/json [10:42:02] [10:42:02]POST finish read [10:42:02]Found Content-Length = 756 [10:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30076873", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:02]execute_script... [10:42:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30076873", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:02]POST & json_proto [10:42:02]process_json_proto [10:42:02]json parsed OK: [10:42:02]protocol is kg_v1.0 [10:42:02]action value=close_receipt [10:42:02]process_action close_receipt [10:42:02]cmd_close_receipt [10:42:02]MH_GetDate [10:42:02]Write to MH i2c: F0 00 00 17 15 1B [10:42:02]Write i2c OK [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: F0 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: F0 09 00 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: F0 09 00 17 15 00 7D 7E C0 66 07 E8 5D 66 F7 [10:42:02]GetLastDocTimeStamp 1723891222 [10:42:02]current date 1723891325 [10:42:02]FM_GetShiftState [10:42:02]SAM_PROTO_GetShiftState [10:42:02]wFMCommunicate request_size=4 [10:42:02]MH_SAM_APDU [10:42:02]CAPDU: 80 13 01 00 [10:42:02]Write to MH i2c: E2 08 00 18 15 80 13 01 00 00 00 00 00 AA [10:42:02]Write i2c OK [10:42:02]MH_I2C_Read... [10:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:02]Read from MH i2c: E2 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 0E 00 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 0E 00 18 15 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 EF [10:42:02]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:42:02]wFMCommunicate OK [10:42:02]SAM_PROTO_GetShiftState done [10:42:02]FM_GetShiftState done [10:42:02]opened in 1723853354 [10:42:02]opened+sec_in_day 1723939754 [10:42:02]quantity*price = 0 [10:42:02]sum+1 = 1 [10:42:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 40 17.08.2024 10:42 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30076873 ФМ: 0000000000871800 ФД: 49603 ФПД: 51651695867999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T104205&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49603&fm=51651695867999&tin=02508201610067®Number=0000000000092546&sum=0 [10:42:03]StoreToDocumentArchive [10:42:03]shift 465 fd 49603 [10:42:03]save to /storage/0465/doc_00049603 [10:42:03]save last doc name /storage/0465/doc_00049603 to /storage/kkm_last_doc_name [10:42:03]save OK [10:42:03]Clear old archive folders... [10:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:03]tlvbuf is 018D4E10 [10:42:03]SAM_PROTO_ClearQueue [10:42:03]wFMCommunicate request_size=4 [10:42:03]MH_SAM_APDU [10:42:03]CAPDU: 80 09 00 00 [10:42:03]Write to MH i2c: E2 08 00 25 15 80 09 00 00 00 00 00 00 AC [10:42:03]Write i2c OK [10:42:03]MH_I2C_Read... [10:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:03]Read from MH i2c: E2 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 03 00 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 03 00 25 15 00 90 00 AE [10:42:03]RAPDU: 90 00 [10:42:03]wFMCommunicate OK [10:42:03]SAM_PROTO_ClearQueue done [10:42:03]KKMCreateOFDPacket [10:42:03]OFDProtocolAddRootSTLVToBuf [10:42:03]FM_MakeSignedData [10:42:03]FM_MakeSignedData [10:42:03]SAM_PROTO_SignData [10:42:03]wFMCommunicate request_size=4 [10:42:03]MH_SAM_APDU [10:42:03]CAPDU: 80 0D 01 02 [10:42:03]Write to MH i2c: E2 08 00 26 15 80 0D 01 02 00 00 00 00 B4 [10:42:03]Write i2c OK [10:42:03]MH_I2C_Read... [10:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:03]Read from MH i2c: E2 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 03 00 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 03 00 26 15 00 90 00 AF [10:42:03]RAPDU: 90 00 [10:42:03]wFMCommunicate OK [10:42:03]wFMCommunicate request_size=255 [10:42:03]MH_SAM_APDU [10:42:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 28 00 00 00 F4 03 04 00 7D 7E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C3 C1 00 00 35 04 06 00 2E [10:42:03]Write to MH i2c: E2 02 01 27 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 28 00 00 00 F4 03 04 00 7D 7E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C3 C1 00 00 35 04 06 00 2E 00 00 F1 [10:42:03]Write i2c OK [10:42:03]MH_I2C_Read... [10:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:03]Read from MH i2c: E2 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 03 00 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 03 00 27 15 00 90 00 B0 [10:42:03]RAPDU: 90 00 [10:42:03]wFMCommunicate OK [10:42:03]wFMCommunicate request_size=10 [10:42:03]MH_SAM_APDU [10:42:03]CAPDU: 80 0D 02 02 05 FA 18 FB F8 5F [10:42:03]Write to MH i2c: E2 0D 00 28 15 80 0D 02 02 05 00 FA 18 FB F8 5F 00 00 25 [10:42:03]Write i2c OK [10:42:03]MH_I2C_Read... [10:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:03]Read from MH i2c: E2 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 03 00 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 03 00 28 15 00 90 00 B1 [10:42:03]RAPDU: 90 00 [10:42:03]wFMCommunicate OK [10:42:03]wFMCommunicate request_size=4 [10:42:03]MH_SAM_APDU [10:42:03]CAPDU: 80 0D 03 02 [10:42:03]Write to MH i2c: E2 08 00 29 15 80 0D 03 02 00 00 00 00 B9 [10:42:03]Write i2c OK [10:42:03]MH_I2C_Read... [10:42:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:03]Read from MH i2c: E2 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 0B 00 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 0B 00 29 15 00 3C D7 51 0F BC 9B 2C B8 90 00 68 [10:42:03]RAPDU: 3C D7 51 0F BC 9B 2C B8 90 00 [10:42:03]wFMCommunicate OK [10:42:03]SAM_PROTO_SignData done [10:42:03]FM_MakeSignedData done [10:42:03]CreateOFDProtocolMessage [10:42:03]wFMCommunicate request_size=4 [10:42:03]MH_SAM_APDU [10:42:03]CAPDU: 80 11 00 00 [10:42:03]Write to MH i2c: E2 08 00 2A 15 80 11 00 00 00 00 00 00 B9 [10:42:03]Write i2c OK [10:42:03]MH_I2C_Read... [10:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:03]Read from MH i2c: E2 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 17 00 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 17 00 2A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 04 [10:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:42:03]wFMCommunicate OK [10:42:03]CreateOFDProtocolMessage done [10:42:03]OFDSenderStorePacket 49603 [10:42:03]StoreOFDPacket docnum=49603 [10:42:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 97 7A 07 01 DD 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 28 00 00 00 F4 03 04 00 7D 7E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C3 C1 00 00 35 04 06 00 2E FA 18 FB F8 5F 3C D7 51 0F BC 9B 2C B8 [10:42:03]CheckFolder [10:42:03]dirname=/storage/ofd_packets [10:42:03]CheckFolder done [10:42:03]ProducePacketName [10:42:03]name=ofd_packets/00049603 [10:42:03]NVStorageSaveData ofd_packets/00049603 [10:42:03]File name is /storage/ofd_packets/00049603 [10:42:03]Write 301 bytes [10:42:03]NVStorageSaveData done [10:42:03]OFDSenderStorePacket done [10:42:03]KKMCreateOFDPacket done [10:42:03]NVStorageSaveData kkm_last_timestamp [10:42:03]File name is /storage/kkm_last_timestamp [10:42:03]Write 4 bytes [10:42:03]NVStorageSaveData done [10:42:03]ExternCall_PrintAddStr [10:42:03]wPrintStart [10:42:03]Write to MH i2c: 01 00 00 2B 15 40 [10:42:03]Write i2c OK [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: 01 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: 01 07 00 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: 01 07 00 2B 15 00 00 00 00 00 FF 0F 55 [10:42:03]RasterBufferAndPrint [10:42:03]line Счет N : (1)11326058 [10:42:03]line ИНН: 02508201610067 [10:42:03]line Контрольно-Кассовый Чек [10:42:03]line ПРОДАЖА [10:42:03]line ТРК (МРК, ГНК) : 12 [10:42:03]line Товар: 2710124130 [10:42:03]line Аи-92-К-4 [10:42:03]line 20.000 * 0.00 [10:42:03]line = 0.00 [10:42:03]line НДС 12% НСП 1% [10:42:03]line > о реализуемом товаре [10:42:03]line ИТОГО: 0.00 [10:42:03]line НСП 1% : 0.00 [10:42:03]line НДС 12% : 0.00 [10:42:03]line Наличными: 0.00 [10:42:03]line Безнал.: 0.00 [10:42:03]line Место: АЗС № 95 "Партнер Нефть" [10:42:03]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:42:03]line СНО: Общий режим [10:42:03]line Чек 40 17.08.2024 10:42 [10:42:03]line Смена: 465 ФФД: 1.0 [10:42:03]line ЗНМ: 0300000078 [10:42:03]line РНМ: 0000000000092546 [10:42:03]line Версия ККМ: 001 [10:42:03]line Талоны: ТК ГПНА Online [10:42:03]line 30076873 [10:42:03]line ФМ: 0000000000871800 [10:42:03]line ФД: 49603 [10:42:03]line ФПД: 51651695867999 [10:42:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T104205&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49603&fm=51651695867999&tin=02508201610067®Number=0000000000092546&sum=0 [10:42:04]written 0, free lines is 4095 [10:42:04]OFD Sender: Processing packet 49603 [packets to send 21, broken 20] [10:42:04]ProducePacketName [10:42:04]name=ofd_packets/00049603 [10:42:04]OFD Sender: To server: pG, [10:42:04]CommunicateWithHost lk.salyk.kg:30040 [10:42:04]ConnectInit lk.salyk.kg [10:42:04]Connected sock=10 [10:42:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 97 7A 07 01 DD 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 28 00 00 00 F4 03 04 00 7D 7E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C3 C1 00 00 35 04 06 00 2E FA 18 FB F8 5F 3C D7 51 0F BC 9B 2C B8 [10:42:04]Write to MH i2c: 01 00 00 55 15 6A [10:42:04]Write i2c OK [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: 01 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: 01 07 00 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: 01 07 00 55 15 00 00 00 00 00 D5 0C 52 [10:42:04]RasterBufferAndPrint [10:42:04]line [10:42:04]line [10:42:04]line [10:42:04]line [10:42:04]line [10:42:04]written 0, free lines is 3291 [10:42:04]MH_Cut [10:42:04]Write to MH i2c: D1 01 00 5C 15 01 43 [10:42:04]Write i2c OK [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: D1 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: D1 01 00 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: D1 01 00 5C 15 00 42 [10:42:04]Write to MH i2c: 01 00 00 5D 15 72 [10:42:04]Write i2c OK [10:42:04]MH_I2C_Read... [10:42:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F0 BB 47 00 1C 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C3 C1 00 00 F4 03 04 00 B9 29 C0 66 B6 04 01 00 00 C5 E2 13 61 1D 8D CE 1D [10:42:04]CommunicateWithHost err = 0 [10:42:04]CheckOFDResponse [10:42:04]1017 (14) - 77093643461234 [10:42:04]1041 (16) - 0000000000871800 [10:42:04]1040 (4) - 49603 [10:42:04]1012 (4) - 17.08.2024 04:40 [10:42:04]1206 (1) - 0 [10:42:04]OFD Sender: Remove packet 49603 [10:42:04]ProducePacketName [10:42:04]name=ofd_packets/00049603 [10:42:04]NVStorageDeleteData [10:42:05]OFD Sender: No OFD packet to send [10:42:05]*** Cut start [10:42:05]*** Purtial cut [10:42:05]*** Stage 1: CUTSNS_PIN = 1 [10:42:05]Read from MH i2c: 01 [10:42:05]MH_I2C_Read... [10:42:05]*** Stop cut motor [10:42:05]*** Cut end [10:42:05]Read from MH i2c: 01 07 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 07 00 5D 15 00 00 00 00 00 FF 0F 87 [10:42:05]process_action close_receipt done [10:42:05]requested_data is exist [10:42:05]produce_requested_data [10:42:05]requested_item fm.sn is exist - process it [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 11 00 00 [10:42:05]Write to MH i2c: E2 08 00 5E 15 80 11 00 00 00 00 00 00 ED [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 17 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 17 00 5E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 38 [10:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:42:05]wFMCommunicate OK [10:42:05]requested_item fd.num is exist - process it [10:42:05]SAM_PROTO_GetFieldsCounters [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 13 00 00 [10:42:05]Write to MH i2c: E2 08 00 5F 15 80 13 00 00 00 00 00 00 F0 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 62 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 62 00 5F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C3 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [10:42: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C3 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:05]wFMCommunicate OK [10:42:05]SAM_PROTO_GetFieldsCounters done [10:42:05]requested_item shift.num is exist - process it [10:42:05]requested_item shift.opened is exist - process it [10:42:05]req_shift_opened [10:42:05]FM_GetShiftState [10:42:05]SAM_PROTO_GetShiftState [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 13 01 00 [10:42:05]Write to MH i2c: E2 08 00 60 15 80 13 01 00 00 00 00 00 F2 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 0E 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 0E 00 60 15 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 37 [10:42:05]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:42:05]wFMCommunicate OK [10:42:05]SAM_PROTO_GetShiftState done [10:42:05]FM_GetShiftState done [10:42:05]req_shift_opened done [10:42:05]requested_item shift.open_date is exist - process it [10:42:05]req_shift_open_date [10:42:05]req_shift_open_date done [10:42:05]produce_requested_data done [10:42:05]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49603,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [10:42:05]process_action_free close_receipt [10:42:05]json_value_free [10:42:05]json_value_free done [10:42:05]process_json_proto returns [10:42:05]Send response to host [10:42:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49603,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [10:42:05]free response buf [10:42:05]execute_script done [10:42:05]execute_script returns [10:42:05]free content buf [10:42:05]Sock 7.Close socket [10:42:05]Sock 7.Thread stoped [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:29]accept exits with 9 [10:49:29]New connection [10:49:29]New thread 3066944868 created [10:49:29]Thread 3066801508 joined [10:49:29]Waiting for new connection... [10:49:29] Sock 9.Parse request [10:49:29]Sock 9.Check first char [10:49:29]Sock 9.First char is OK [10:49:29]request: POST /json_proto HTTP/1.0 [10:49:29]Method: POST [10:49:29]URL: /json_proto [10:49:29]Method is POST - this is cgi request [10:49:29]url: /json_proto [10:49:29]query_string will be loaded in cgi processing [10:49:29]execute_cgi json_proto POST (null) [10:49:29]execute_cgi path=json_proto method=POST [10:49:29]POST find Content-Length [10:49:29]Host: 172.17.46.196:8080 [10:49:29]Content-Length: 601 [10:49:29]Content-Type: application/json [10:49:29] [10:49:29]POST finish read [10:49:29]Found Content-Length = 601 [10:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189796", "tax_sys" : 0, "items" : [ { "code": "46153715", "name": "\u0420/\u0436 Orbit XXL white bubblemint 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:29]execute_script... [10:49:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189796", "tax_sys" : 0, "items" : [ { "code": "46153715", "name": "\u0420/\u0436 Orbit XXL white bubblemint 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:29]POST & json_proto [10:49:29]process_json_proto [10:49:29]json parsed OK: [10:49:29]protocol is kg_v1.0 [10:49:29]action value=close_receipt [10:49:29]process_action close_receipt [10:49:29]cmd_close_receipt [10:49:29]MH_GetDate [10:49:29]Write to MH i2c: F0 00 00 61 15 65 [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: F0 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: F0 09 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: F0 09 00 61 15 00 3C 80 C0 66 07 E8 5D 66 02 [10:49:29]GetLastDocTimeStamp 1723891325 [10:49:29]current date 1723891772 [10:49:29]FM_GetShiftState [10:49:29]SAM_PROTO_GetShiftState [10:49:29]wFMCommunicate request_size=4 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 13 01 00 [10:49:29]Write to MH i2c: E2 08 00 62 15 80 13 01 00 00 00 00 00 F4 [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 0E 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 0E 00 62 15 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 39 [10:49:29]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:49:29]wFMCommunicate OK [10:49:29]SAM_PROTO_GetShiftState done [10:49:29]FM_GetShiftState done [10:49:29]opened in 1723853354 [10:49:29]opened+sec_in_day 1723939754 [10:49:29]quantity*price = 5100 [10:49:29]sum+1 = 5101 [10:49:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 51.00 НСП 1% : 0.45 НДС 12% : 5.42 Наличными: 51.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 41 17.08.2024 10:49 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49604 ФПД: 74032315953805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T104932&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49604&fm=74032315953805&tin=02508201610067®Number=0000000000092546&sum=5100 0 [10:49:30]StoreToDocumentArchive [10:49:30]shift 465 fd 49604 [10:49:30]save to /storage/0465/doc_00049604 [10:49:30]save last doc name /storage/0465/doc_00049604 to /storage/kkm_last_doc_name [10:49:30]save OK [10:49:30]Clear old archive folders... [10:49:30]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:49:30]tlvbuf is 01805340 [10:49:30]SAM_PROTO_ClearQueue [10:49:30]wFMCommunicate request_size=4 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 09 00 00 [10:49:30]Write to MH i2c: E2 08 00 6F 15 80 09 00 00 00 00 00 00 F6 [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 6F 15 00 90 00 F8 [10:49:30]RAPDU: 90 00 [10:49:30]wFMCommunicate OK [10:49:30]SAM_PROTO_ClearQueue done [10:49:30]KKMCreateOFDPacket [10:49:30]OFDProtocolAddRootSTLVToBuf [10:49:30]FM_MakeSignedData [10:49:30]FM_MakeSignedData [10:49:30]SAM_PROTO_SignData [10:49:30]wFMCommunicate request_size=4 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 0D 01 02 [10:49:30]Write to MH i2c: E2 08 00 70 15 80 0D 01 02 00 00 00 00 FE [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 70 15 00 90 00 F9 [10:49:30]RAPDU: 90 00 [10:49:30]wFMCommunicate OK [10:49:30]wFMCommunicate request_size=255 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 3C 80 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [10:49:30]Write to MH i2c: E2 02 01 71 15 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 3C 80 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 2C [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]OFD Sender: No OFD packet to send [10:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 71 15 00 90 00 FA [10:49:30]RAPDU: 90 00 [10:49:30]wFMCommunicate OK [10:49:30]wFMCommunicate request_size=35 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C4 C1 00 00 35 04 06 00 43 54 FD E4 F2 8D [10:49:30]Write to MH i2c: E2 26 00 72 15 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C4 C1 00 00 35 04 06 00 43 54 FD E4 F2 8D 00 00 68 [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 72 15 00 90 00 FB [10:49:30]RAPDU: 90 00 [10:49:30]wFMCommunicate OK [10:49:30]wFMCommunicate request_size=4 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 0D 03 02 [10:49:30]Write to MH i2c: E2 08 00 73 15 80 0D 03 02 00 00 00 00 03 [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 0B 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 0B 00 73 15 00 5F A3 F2 9D 34 F6 8B C4 90 00 0E [10:49:30]RAPDU: 5F A3 F2 9D 34 F6 8B C4 90 00 [10:49:30]wFMCommunicate OK [10:49:30]SAM_PROTO_SignData done [10:49:30]FM_MakeSignedData done [10:49:30]CreateOFDProtocolMessage [10:49:30]wFMCommunicate request_size=4 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 11 00 00 [10:49:30]Write to MH i2c: E2 08 00 74 15 80 11 00 00 00 00 00 00 03 [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 17 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 17 00 74 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4E [10:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:49:30]wFMCommunicate OK [10:49:30]CreateOFDProtocolMessage done [10:49:30]OFDSenderStorePacket 49604 [10:49:30]StoreOFDPacket docnum=49604 [10:49:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 36 39 20 01 7D A3 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 3C 80 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C4 C1 00 00 35 04 06 00 43 54 FD E4 F2 8D 5F A3 F2 9D 34 F6 8B C4 [10:49:30]CheckFolder [10:49:30]dirname=/storage/ofd_packets [10:49:30]CheckFolder done [10:49:30]ProducePacketName [10:49:30]name=ofd_packets/00049604 [10:49:30]NVStorageSaveData ofd_packets/00049604 [10:49:30]File name is /storage/ofd_packets/00049604 [10:49:30]Write 326 bytes [10:49:30]NVStorageSaveData done [10:49:30]OFDSenderStorePacket done [10:49:30]KKMCreateOFDPacket done [10:49:30]NVStorageSaveData kkm_last_timestamp [10:49:30]File name is /storage/kkm_last_timestamp [10:49:30]Write 4 bytes [10:49:30]NVStorageSaveData done [10:49:30]ExternCall_PrintAddStr [10:49:30]wPrintStart [10:49:30]Write to MH i2c: 01 00 00 75 15 8A [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: 01 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: 01 07 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: 01 07 00 75 15 00 00 00 00 00 FF 0F 9F [10:49:30]RasterBufferAndPrint [10:49:30]line Счет N : (3)189796 [10:49:30]line ИНН: 02508201610067 [10:49:30]line Контрольно-Кассовый Чек [10:49:30]line ПРОДАЖА [10:49:30]line Товар: 46153715 [10:49:30]line Р/ж Orbit XXL white bubblemint 20,4г [10:49:30]line 1.000 * 51.00 [10:49:30]line = 51.00 [10:49:30]line НДС 12% НСП 1% [10:49:30]line > о реализуемом товаре [10:49:30]line ИТОГО: 51.00 [10:49:30]line НСП 1% : 0.45 [10:49:30]line НДС 12% : 5.42 [10:49:30]line Наличными: 51.00 [10:49:30]line Безнал.: 0.00 [10:49:30]line Место: АЗС № 95 "Партнер Нефть" [10:49:30]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:49:30]line СНО: Общий режим [10:49:30]line Чек 41 17.08.2024 10:49 [10:49:30]line Смена: 465 ФФД: 1.0 [10:49:30]line ЗНМ: 0300000078 [10:49:30]line РНМ: 0000000000092546 [10:49:30]line Версия ККМ: 001 [10:49:30]line ФМ: 0000000000871800 [10:49:30]line ФД: 49604 [10:49:30]line ФПД: 74032315953805 [10:49:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T104932&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49604&fm=74032315953805&tin=02508201610067®Number=0000000000092546&sum=5100 [10:49:31]line 0 [10:49:31]OFD Sender: Processing packet 49604 [packets to send 21, broken 20] [10:49:31]ProducePacketName [10:49:31]name=ofd_packets/00049604 [10:49:31]OFD Sender: To server: pG, [10:49:31]CommunicateWithHost lk.salyk.kg:30040 [10:49:31]ConnectInit lk.salyk.kg [10:49:31]written 0, free lines is 4095 [10:49:31]Connected sock=7 [10:49:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 36 39 20 01 7D A3 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 3C 80 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C4 C1 00 00 35 04 06 00 43 54 FD E4 F2 8D 5F A3 F2 9D 34 F6 8B C4 [10:49:31]Write to MH i2c: 01 00 00 9E 15 B3 [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: 01 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: 01 07 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: 01 07 00 9E 15 00 00 00 00 00 E3 0C A9 [10:49:31]RasterBufferAndPrint [10:49:31]line [10:49:31]line [10:49:31]line [10:49:31]line [10:49:31]line [10:49:31]written 0, free lines is 3305 [10:49:31]MH_Cut [10:49:31]Write to MH i2c: D1 01 00 A5 15 01 8C [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: D1 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: D1 01 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: D1 01 00 A5 15 00 8B [10:49:31]Write to MH i2c: 01 00 00 A6 15 BB [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D5 68 47 00 1A 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 31 38 30 30 10 04 04 00 C4 C1 00 00 F4 03 04 00 78 2B C0 66 B6 04 01 00 00 F9 B3 EA 20 A7 8F D2 0E [10:49:31]CommunicateWithHost err = 0 [10:49:31]CheckOFDResponse [10:49:31]1017 (14) - 77093643461234 [10:49:31]1041 (16) - 0000000000871800 [10:49:31]1040 (4) - 49604 [10:49:31]1012 (4) - 17.08.2024 04:47 [10:49:31]1206 (1) - 0 [10:49:31]OFD Sender: Remove packet 49604 [10:49:31]ProducePacketName [10:49:31]name=ofd_packets/00049604 [10:49:31]NVStorageDeleteData [10:49:32]OFD Sender: No OFD packet to send [10:49:32]*** Cut start [10:49:32]*** Purtial cut [10:49:32]*** CUTSNS_PIN = 0 [10:49:32]*** Stage 1: CUTSNS_PIN = 1 [10:49:34]Read from MH i2c: 01 [10:49:34]MH_I2C_Read... [10:49:34]*** Stop cut motor [10:49:34]*** Cut end [10:49:34]Read from MH i2c: 01 07 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: 01 07 00 A6 15 00 00 00 00 00 FF 0F D0 [10:49:34]process_action close_receipt done [10:49:34]requested_data is exist [10:49:34]produce_requested_data [10:49:34]requested_item fm.sn is exist - process it [10:49:34]wFMCommunicate request_size=4 [10:49:34]MH_SAM_APDU [10:49:34]CAPDU: 80 11 00 00 [10:49:34]Write to MH i2c: E2 08 00 A7 15 80 11 00 00 00 00 00 00 36 [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:34]Read from MH i2c: E2 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 17 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 17 00 A7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 81 [10:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:49:34]wFMCommunicate OK [10:49:34]requested_item fd.num is exist - process it [10:49:34]SAM_PROTO_GetFieldsCounters [10:49:34]wFMCommunicate request_size=4 [10:49:34]MH_SAM_APDU [10:49:34]CAPDU: 80 13 00 00 [10:49:34]Write to MH i2c: E2 08 00 A8 15 80 13 00 00 00 00 00 00 39 [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:34]Read from MH i2c: E2 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 62 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 62 00 A8 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C4 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [10: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C4 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:34]wFMCommunicate OK [10:49:34]SAM_PROTO_GetFieldsCounters done [10:49:34]requested_item shift.num is exist - process it [10:49:34]requested_item shift.opened is exist - process it [10:49:34]req_shift_opened [10:49:34]FM_GetShiftState [10:49:34]SAM_PROTO_GetShiftState [10:49:34]wFMCommunicate request_size=4 [10:49:34]MH_SAM_APDU [10:49:34]CAPDU: 80 13 01 00 [10:49:34]Write to MH i2c: E2 08 00 A9 15 80 13 01 00 00 00 00 00 3B [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:34]Read from MH i2c: E2 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 0E 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 0E 00 A9 15 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 80 [10:49:34]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:49:34]wFMCommunicate OK [10:49:34]SAM_PROTO_GetShiftState done [10:49:34]FM_GetShiftState done [10:49:34]req_shift_opened done [10:49:34]requested_item shift.open_date is exist - process it [10:49:34]req_shift_open_date [10:49:34]req_shift_open_date done [10:49:34]produce_requested_data done [10:49:34]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49604,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [10:49:34]process_action_free close_receipt [10:49:34]json_value_free [10:49:34]json_value_free done [10:49:34]process_json_proto returns [10:49:34]Send response to host [10:49:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49604,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [10:49:34]free response buf [10:49:34]execute_script done [10:49:34]execute_script returns [10:49:34]free content buf [10:49:34]Sock 9.Close socket [10:49:34]Sock 9.Thread stoped [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:42]int [10:51:42]Write to MH i2c: 01 00 00 AA 15 BF [10:51:42]*** FLAG_PRN_KEY set [10:51:42]Write i2c OK [10:51:42]MH_I2C_Read... [10:51:42]Read from MH i2c: 01 [10:51:42]MH_I2C_Read... [10:51:42]Read from MH i2c: 01 07 00 [10:51:42]MH_I2C_Read... [10:51:42]Read from MH i2c: 01 07 00 AA 15 00 08 00 00 00 FF 0F DC [10:51:42]state=0 [10:51:42]Key pressed [10:51:42]Feed [10:51:42]Write to MH i2c: D8 00 00 AB 15 97 [10:51:42]Write i2c OK [10:51:42]MH_I2C_Read... [10:51:42]Read from MH i2c: D8 [10:51:42]MH_I2C_Read... [10:51:42]Read from MH i2c: D8 01 00 [10:51:42]MH_I2C_Read... [10:51:42]Read from MH i2c: D8 01 00 AB 15 00 98 [10:51:42]int [10:51:42]Write to MH i2c: 01 00 00 AC 15 C1 [10:51:42]Write i2c OK [10:51:42]MH_I2C_Read... [10:51:42]Read from MH i2c: 01 [10:51:42]MH_I2C_Read... [10:51:42]Read from MH i2c: 01 07 00 [10:51:42]MH_I2C_Read... [10:51:42]Read from MH i2c: 01 07 00 AC 15 00 48 00 00 00 3C 00 4C [10:51:42]state=2 [10:51:42]Key pressed [10:51:42]int [10:51:42]Write to MH i2c: 01 00 00 AD 15 C2 [10:51:42]*** FLAG_PRN_KEY reset [10:51:42]Write i2c OK [10:51:42]MH_I2C_Read... [10:51:42]Read from MH i2c: 01 [10:51:42]MH_I2C_Read... [10:51:42]Read from MH i2c: 01 07 00 [10:51:42]MH_I2C_Read... [10:51:42]Read from MH i2c: 01 07 00 AD 15 00 00 00 00 00 F5 0F CD [10:51:42]state=2 [10:51:42]Stop feed [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:49]accept exits with 10 [10:54:49]New connection [10:54:49]New thread 3066801508 created [10:54:49]Thread 3066944868 joined [10:54:49]Waiting for new connection... [10:54:49] Sock 10.Parse request [10:54:49]Sock 10.Check first char [10:54:49]Sock 10.First char is OK [10:54:49]request: POST /json_proto HTTP/1.0 [10:54:49]Method: POST [10:54:49]URL: /json_proto [10:54:49]Method is POST - this is cgi request [10:54:49]url: /json_proto [10:54:49]query_string will be loaded in cgi processing [10:54:49]execute_cgi json_proto POST (null) [10:54:49]execute_cgi path=json_proto method=POST [10:54:49]POST find Content-Length [10:54:49]Host: 172.17.46.196:8080 [10:54:49]Content-Length: 753 [10:54:49]Content-Type: application/json [10:54:49] [10:54:49]POST finish read [10:54:49]Found Content-Length = 753 [10:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30138111", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:49]execute_script... [10:54:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30138111", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:49]POST & json_proto [10:54:49]process_json_proto [10:54:49]json parsed OK: [10:54:49]protocol is kg_v1.0 [10:54:49]action value=close_receipt [10:54:49]process_action close_receipt [10:54:49]cmd_close_receipt [10:54:49]MH_GetDate [10:54:49]Write to MH i2c: F0 00 00 AE 15 B2 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: F0 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: F0 09 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: F0 09 00 AE 15 00 7D 81 C0 66 07 E8 5D 66 91 [10:54:49]GetLastDocTimeStamp 1723891772 [10:54:49]current date 1723892093 [10:54:49]FM_GetShiftState [10:54:49]SAM_PROTO_GetShiftState [10:54:49]wFMCommunicate request_size=4 [10:54:49]MH_SAM_APDU [10:54:49]CAPDU: 80 13 01 00 [10:54:49]Write to MH i2c: E2 08 00 AF 15 80 13 01 00 00 00 00 00 41 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:50]Read from MH i2c: E2 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 0E 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 0E 00 AF 15 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 86 [10:54:50]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:54:50]wFMCommunicate OK [10:54:50]SAM_PROTO_GetShiftState done [10:54:50]FM_GetShiftState done [10:54:50]opened in 1723853354 [10:54:50]opened+sec_in_day 1723939754 [10:54:50]quantity*price = 0 [10:54:50]sum+1 = 1 [10:54:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 42 17.08.2024 10:54 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30138111 ФМ: 0000000000871800 ФД: 49605 ФПД: 23048500596342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T105453&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49605&fm=23048500596342&tin=02508201610067®Number=0000000000092546&sum=0 [10:54:51]StoreToDocumentArchive [10:54:51]shift 465 fd 49605 [10:54:51]save to /storage/0465/doc_00049605 [10:54:51]save last doc name /storage/0465/doc_00049605 to /storage/kkm_last_doc_name [10:54:51]save OK [10:54:51]Clear old archive folders... [10:54:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:54:51]tlvbuf is 018D4A30 [10:54:51]SAM_PROTO_ClearQueue [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 09 00 00 [10:54:51]Write to MH i2c: E2 08 00 BC 15 80 09 00 00 00 00 00 00 43 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 BC 15 00 90 00 45 [10:54:51]RAPDU: 90 00 [10:54:51]wFMCommunicate OK [10:54:51]SAM_PROTO_ClearQueue done [10:54:51]KKMCreateOFDPacket [10:54:51]OFDProtocolAddRootSTLVToBuf [10:54:51]FM_MakeSignedData [10:54:51]FM_MakeSignedData [10:54:51]SAM_PROTO_SignData [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 0D 01 02 [10:54:51]Write to MH i2c: E2 08 00 BD 15 80 0D 01 02 00 00 00 00 4B [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [10:54:51]RAPDU: 90 00 [10:54:51]wFMCommunicate OK [10:54:51]wFMCommunicate request_size=255 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 2A 00 00 00 F4 03 04 00 7D 81 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C5 C1 00 00 35 04 06 00 14 F6 65 B0 [10:54:51]Write to MH i2c: E2 02 01 BE 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2A 00 00 00 F4 03 04 00 7D 81 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C5 C1 00 00 35 04 06 00 14 F6 65 B0 00 00 79 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 BE 15 00 90 00 47 [10:54:51]RAPDU: 90 00 [10:54:51]wFMCommunicate OK [10:54:51]wFMCommunicate request_size=7 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 0D 02 02 02 CE 76 [10:54:51]Write to MH i2c: E2 0A 00 BF 15 80 0D 02 02 02 00 CE 76 00 00 96 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 BF 15 00 90 00 48 [10:54:51]RAPDU: 90 00 [10:54:51]wFMCommunicate OK [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 0D 03 02 [10:54:51]Write to MH i2c: E2 08 00 C0 15 80 0D 03 02 00 00 00 00 50 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0B 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0B 00 C0 15 00 A0 A5 87 0A DD 79 67 B9 90 00 9D [10:54:51]RAPDU: A0 A5 87 0A DD 79 67 B9 90 00 [10:54:51]wFMCommunicate OK [10:54:51]SAM_PROTO_SignData done [10:54:51]FM_MakeSignedData done [10:54:51]CreateOFDProtocolMessage [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 11 00 00 [10:54:51]Write to MH i2c: E2 08 00 C1 15 80 11 00 00 00 00 00 00 50 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 17 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 17 00 C1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9B [10:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:54:51]wFMCommunicate OK [10:54:51]CreateOFDProtocolMessage done [10:54:51]OFDSenderStorePacket 49605 [10:54:51]StoreOFDPacket docnum=49605 [10:54:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 98 FE 04 01 51 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2A 00 00 00 F4 03 04 00 7D 81 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C5 C1 00 00 35 04 06 00 14 F6 65 B0 CE 76 A0 A5 87 0A DD 79 67 B9 [10:54:51]CheckFolder [10:54:51]dirname=/storage/ofd_packets [10:54:51]CheckFolder done [10:54:51]ProducePacketName [10:54:51]name=ofd_packets/00049605 [10:54:51]NVStorageSaveData ofd_packets/00049605 [10:54:51]File name is /storage/ofd_packets/00049605 [10:54:51]Write 298 bytes [10:54:51]NVStorageSaveData done [10:54:51]OFDSenderStorePacket done [10:54:51]KKMCreateOFDPacket done [10:54:51]NVStorageSaveData kkm_last_timestamp [10:54:51]File name is /storage/kkm_last_timestamp [10:54:51]Write 4 bytes [10:54:51]NVStorageSaveData done [10:54:51]ExternCall_PrintAddStr [10:54:51]wPrintStart [10:54:51]Write to MH i2c: 01 00 00 C2 15 D7 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: 01 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: 01 07 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: 01 07 00 C2 15 00 00 00 00 00 FF 0F EC [10:54:51]RasterBufferAndPrint [10:54:51]line Счет N : (1)11326068 [10:54:51]line ИНН: 02508201610067 [10:54:51]line Контрольно-Кассовый Чек [10:54:51]line ПРОДАЖА [10:54:51]line ТРК (МРК, ГНК) : 61 [10:54:51]line Товар: 2710194210 [10:54:51]line ДТ-К-5 [10:54:51]line 50.000 * 0.00 [10:54:51]line = 0.00 [10:54:51]line НДС 12% НСП 1% [10:54:51]line > о реализуемом товаре [10:54:51]line ИТОГО: 0.00 [10:54:51]line НСП 1% : 0.00 [10:54:51]line НДС 12% : 0.00 [10:54:51]line Наличными: 0.00 [10:54:51]line Безнал.: 0.00 [10:54:51]line Место: АЗС № 95 "Партнер Нефть" [10:54:51]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:54:51]line СНО: Общий режим [10:54:51]line Чек 42 17.08.2024 10:54 [10:54:51]line Смена: 465 ФФД: 1.0 [10:54:51]line ЗНМ: 0300000078 [10:54:51]line РНМ: 0000000000092546 [10:54:51]line Версия ККМ: 001 [10:54:51]line Талоны: ТК ГПНА Online [10:54:51]line 30138111 [10:54:51]line ФМ: 0000000000871800 [10:54:51]line ФД: 49605 [10:54:51]line ФПД: 23048500596342 [10:54:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T105453&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49605&fm=23048500596342&tin=02508201610067®Number=0000000000092546&sum=0 [10:54:51]OFD Sender: Processing packet 49605 [packets to send 21, broken 20] [10:54:51]ProducePacketName [10:54:51]name=ofd_packets/00049605 [10:54:51]OFD Sender: To server: pG, [10:54:51]CommunicateWithHost lk.salyk.kg:30040 [10:54:51]ConnectInit lk.salyk.kg [10:54:52]written 0, free lines is 4095 [10:54:52]Connected sock=9 [10:54:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 98 FE 04 01 51 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2A 00 00 00 F4 03 04 00 7D 81 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C5 C1 00 00 35 04 06 00 14 F6 65 B0 CE 76 A0 A5 87 0A DD 79 67 B9 [10:54:52]Write to MH i2c: 01 00 00 EC 15 01 [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: 01 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: 01 07 00 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: 01 07 00 EC 15 00 00 00 00 00 E4 0C F8 [10:54:52]RasterBufferAndPrint [10:54:52]line [10:54:52]line [10:54:52]line [10:54:52]line [10:54:52]line [10:54:52]written 0, free lines is 3305 [10:54:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 2C 75 47 00 0D C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C5 C1 00 00 F4 03 04 00 B9 2C C0 66 B6 04 01 00 00 76 10 C7 6D 0C 9D 3D C1 [10:54:52]CommunicateWithHost err = 0 [10:54:52]CheckOFDResponse [10:54:52]1017 (14) - 77093643461234 [10:54:52]1041 (16) - 0000000000871800 [10:54:52]1040 (4) - 49605 [10:54:52]1012 (4) - 17.08.2024 04:53 [10:54:52]1206 (1) - 0 [10:54:52]OFD Sender: Remove packet 49605 [10:54:52]ProducePacketName [10:54:52]name=ofd_packets/00049605 [10:54:52]NVStorageDeleteData [10:54:52]MH_Cut [10:54:52]Write to MH i2c: D1 01 00 F3 15 01 DA [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: D1 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: D1 01 00 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: D1 01 00 F3 15 00 D9 [10:54:52]Write to MH i2c: 01 00 00 F4 15 09 [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:52]OFD Sender: No OFD packet to send [10:54:53]*** Cut start [10:54:53]*** Purtial cut [10:54:53]*** Stage 1: CUTSNS_PIN = 1 [10:54:53]Read from MH i2c: 01 [10:54:53]MH_I2C_Read... [10:54:53]*** Stop cut motor [10:54:53]*** Cut end [10:54:53]Read from MH i2c: 01 07 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: 01 07 00 F4 15 00 00 00 00 00 FF 0F 1E [10:54:53]process_action close_receipt done [10:54:53]requested_data is exist [10:54:53]produce_requested_data [10:54:53]requested_item fm.sn is exist - process it [10:54:53]wFMCommunicate request_size=4 [10:54:53]MH_SAM_APDU [10:54:53]CAPDU: 80 11 00 00 [10:54:53]Write to MH i2c: E2 08 00 F5 15 80 11 00 00 00 00 00 00 84 [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:53]Read from MH i2c: E2 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 17 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 17 00 F5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CF [10:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:54:53]wFMCommunicate OK [10:54:53]requested_item fd.num is exist - process it [10:54:53]SAM_PROTO_GetFieldsCounters [10:54:53]wFMCommunicate request_size=4 [10:54:53]MH_SAM_APDU [10:54:53]CAPDU: 80 13 00 00 [10:54:53]Write to MH i2c: E2 08 00 F6 15 80 13 00 00 00 00 00 00 87 [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:53]Read from MH i2c: E2 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 62 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 62 00 F6 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C5 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [10:54:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C5 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:53]wFMCommunicate OK [10:54:53]SAM_PROTO_GetFieldsCounters done [10:54:53]requested_item shift.num is exist - process it [10:54:53]requested_item shift.opened is exist - process it [10:54:53]req_shift_opened [10:54:53]FM_GetShiftState [10:54:53]SAM_PROTO_GetShiftState [10:54:53]wFMCommunicate request_size=4 [10:54:53]MH_SAM_APDU [10:54:53]CAPDU: 80 13 01 00 [10:54:53]Write to MH i2c: E2 08 00 F7 15 80 13 01 00 00 00 00 00 89 [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:53]Read from MH i2c: E2 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 0E 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 0E 00 F7 15 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 CE [10:54:53]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [10:54:53]wFMCommunicate OK [10:54:53]SAM_PROTO_GetShiftState done [10:54:53]FM_GetShiftState done [10:54:53]req_shift_opened done [10:54:53]requested_item shift.open_date is exist - process it [10:54:53]req_shift_open_date [10:54:53]req_shift_open_date done [10:54:53]produce_requested_data done [10:54:53]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49605,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [10:54:53]process_action_free close_receipt [10:54:53]json_value_free [10:54:53]json_value_free done [10:54:53]process_json_proto returns [10:54:53]Send response to host [10:54:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49605,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [10:54:53]free response buf [10:54:53]execute_script done [10:54:53]execute_script returns [10:54:53]free content buf [10:54:53]Sock 10.Close socket [10:54:53]Sock 10.Thread stoped [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55: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:08]int [10:56:08]Write to MH i2c: 01 00 00 F8 15 0D [10:56:08]*** FLAG_PRN_KEY set [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: 01 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: 01 07 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: 01 07 00 F8 15 00 08 00 00 00 FF 0F 2A [10:56:08]state=0 [10:56:08]Key pressed [10:56:08]Feed [10:56:08]Write to MH i2c: D8 00 00 F9 15 E5 [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: D8 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: D8 01 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: D8 01 00 F9 15 00 E6 [10:56:08]int [10:56:08]Write to MH i2c: 01 00 00 FA 15 0F [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: 01 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: 01 07 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: 01 07 00 FA 15 00 48 00 00 00 3C 00 9A [10:56:08]state=2 [10:56:08]Key pressed [10:56:08]int [10:56:08]Write to MH i2c: 01 00 00 FB 15 10 [10:56:08]*** FLAG_PRN_KEY reset [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: 01 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: 01 07 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: 01 07 00 FB 15 00 00 00 00 00 F6 0F 1C [10:56:08]state=2 [10:56:08]Stop feed [10:56:09]int [10:56:09]Write to MH i2c: 01 00 00 FC 15 11 [10:56:09]*** FLAG_PRN_PAP1 set [10:56:09]Write i2c OK [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: 01 [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: 01 07 00 [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: 01 07 00 FC 15 00 01 00 00 00 FF 0F 27 [10:56:09]state=0 [10:56:09]No paper [10:56:09]int [10:56:09]Write to MH i2c: 01 00 00 FD 15 12 [10:56:09]*** FLAG_PRN_PAP2 set [10:56:09]Write i2c OK [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: 01 [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: 01 07 00 [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: 01 07 00 FD 15 00 03 00 00 00 FF 0F 2A [10:56:09]state=0 [10:56:09]No paper [10:56:09]Cover opened [10:56:13]OFD Sender: No OFD packet to send [10:56:14]Write to MH i2c: 01 00 00 FE 15 13 [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 07 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: 01 07 00 FE 15 00 03 00 00 00 FF 0F 2B [10:56:14]state=3 [10:56:14]No paper [10:56:14]Cover opened [10:56:17]int [10:56:17]Write to MH i2c: 01 00 00 FF 15 14 [10:56:17]Write i2c OK [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: 01 [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: 01 07 00 [10:56:17]MH_I2C_Read... [10:56:17]*** FLAG_PRN_PAP2 reset [10:56:17]*** FLAG_PRN_PAP1 reset [10:56:17]Read from MH i2c: 01 07 00 FF 15 00 00 00 00 00 FF 0F 29 [10:56:17]state=3 [10:56:17]Cover closed [10:56:18]OFD Sender: No OFD packet to send [10:56:18]int [10:56:18]Write to MH i2c: 01 00 00 00 16 16 [10:56:18]*** FLAG_PRN_PAP1 set [10:56:18]Write i2c OK [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: 01 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: 01 07 00 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: 01 07 00 00 16 00 01 00 00 00 FF 0F 2C [10:56:18]state=0 [10:56:18]No paper [10:56:18]int [10:56:18]Write to MH i2c: 01 00 00 01 16 17 [10:56:18]*** FLAG_PRN_PAP2 set [10:56:18]Write i2c OK [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: 01 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: 01 07 00 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: 01 07 00 01 16 00 03 00 00 00 FF 0F 2F [10:56:18]state=0 [10:56:18]No paper [10:56:18]Cover opened [10:56:18]int [10:56:18]Write to MH i2c: 01 00 00 02 16 18 [10:56:18]*** FLAG_PRN_PAP1 reset [10:56:18]*** FLAG_PRN_PAP2 reset [10:56:18]Write i2c OK [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: 01 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: 01 07 00 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: 01 07 00 02 16 00 00 00 00 00 FF 0F 2D [10:56:18]state=3 [10:56:18]Cover closed [10:56:19]int [10:56:19]Write to MH i2c: 01 00 00 03 16 19 [10:56:19]*** FLAG_PRN_PAP1 set [10:56:19]Write i2c OK [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: 01 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: 01 07 00 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: 01 07 00 03 16 00 01 00 00 00 FF 0F 2F [10:56:19]state=0 [10:56:19]No paper [10:56:19]int [10:56:19]Write to MH i2c: 01 00 00 04 16 1A [10:56:19]*** FLAG_PRN_PAP2 set [10:56:19]Write i2c OK [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: 01 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: 01 07 00 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: 01 07 00 04 16 00 03 00 00 00 FF 0F 32 [10:56:19]state=0 [10:56:19]No paper [10:56:19]Cover opened [10:56:19]int [10:56:19]Write to MH i2c: 01 00 00 05 16 1B [10:56:19]*** FLAG_PRN_PAP1 reset [10:56:19]*** FLAG_PRN_PAP2 reset [10:56:19]Write i2c OK [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: 01 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: 01 07 00 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: 01 07 00 05 16 00 00 00 00 00 FF 0F 30 [10:56:19]state=3 [10:56:19]Cover closed [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: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:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]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:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:01]accept exits with 7 [11:00:01]New connection [11:00:01]New thread 3066944868 created [11:00:01]Thread 3066801508 joined [11:00:01]Waiting for new connection... [11:00:01] Sock 7.Parse request [11:00:01]Sock 7.Check first char [11:00:01]Sock 7.First char is OK [11:00:01]request: POST /json_proto HTTP/1.0 [11:00:01]Method: POST [11:00:01]URL: /json_proto [11:00:01]Method is POST - this is cgi request [11:00:01]url: /json_proto [11:00:01]query_string will be loaded in cgi processing [11:00:01]execute_cgi json_proto POST (null) [11:00:01]execute_cgi path=json_proto method=POST [11:00:01]POST find Content-Length [11:00:01]Host: 172.17.46.196:8080 [11:00:01]Content-Length: 645 [11:00:01]Content-Type: application/json [11:00:01] [11:00:01]POST finish read [11:00:01]Found Content-Length = 645 [11:00:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189797", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:01]execute_script... [11:00:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189797", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:01]POST & json_proto [11:00:01]process_json_proto [11:00:01]json parsed OK: [11:00:01]protocol is kg_v1.0 [11:00:01]action value=close_receipt [11:00:01]process_action close_receipt [11:00:01]cmd_close_receipt [11:00:01]MH_GetDate [11:00:01]Write to MH i2c: F0 00 00 06 16 0B [11:00:01]Write i2c OK [11:00:01]MH_I2C_Read... [11:00:01]Read from MH i2c: F0 [11:00:01]MH_I2C_Read... [11:00:01]Read from MH i2c: F0 09 00 [11:00:01]MH_I2C_Read... [11:00:01]Read from MH i2c: F0 09 00 06 16 00 B4 82 C0 66 07 E8 5D 66 22 [11:00:01]GetLastDocTimeStamp 1723892093 [11:00:01]current date 1723892404 [11:00:01]FM_GetShiftState [11:00:01]SAM_PROTO_GetShiftState [11:00:01]wFMCommunicate request_size=4 [11:00:01]MH_SAM_APDU [11:00:01]CAPDU: 80 13 01 00 [11:00:01]Write to MH i2c: E2 08 00 07 16 80 13 01 00 00 00 00 00 9A [11:00:01]Write i2c OK [11:00:01]MH_I2C_Read... [11:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:01]Read from MH i2c: E2 [11:00:01]MH_I2C_Read... [11:00:01]Read from MH i2c: E2 0E 00 [11:00:01]MH_I2C_Read... [11:00:01]Read from MH i2c: E2 0E 00 07 16 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 DF [11:00:01]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:00:01]wFMCommunicate OK [11:00:01]SAM_PROTO_GetShiftState done [11:00:01]FM_GetShiftState done [11:00:01]opened in 1723853354 [11:00:01]opened+sec_in_day 1723939754 [11:00:01]quantity*price = 6500 [11:00:01]sum+1 = 6501 [11:00:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 43 17.08.2024 11:00 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49606 ФПД: 155888876626422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T110004&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49606&fm=155888876626422&tin=02508201610067®Number=0000000000092546&sum=6500 0 [11:00:02]StoreToDocumentArchive [11:00:02]shift 465 fd 49606 [11:00:02]save to /storage/0465/doc_00049606 [11:00:02]save last doc name /storage/0465/doc_00049606 to /storage/kkm_last_doc_name [11:00:02]save OK [11:00:02]Clear old archive folders... [11:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=272 [11:00:02]tlvbuf is 018D4750 [11:00:02]SAM_PROTO_ClearQueue [11:00:02]wFMCommunicate request_size=4 [11:00:02]MH_SAM_APDU [11:00:02]CAPDU: 80 09 00 00 [11:00:02]Write to MH i2c: E2 08 00 14 16 80 09 00 00 00 00 00 00 9C [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:02]Read from MH i2c: E2 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 03 00 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 03 00 14 16 00 90 00 9E [11:00:02]RAPDU: 90 00 [11:00:02]wFMCommunicate OK [11:00:02]SAM_PROTO_ClearQueue done [11:00:02]KKMCreateOFDPacket [11:00:02]OFDProtocolAddRootSTLVToBuf [11:00:02]FM_MakeSignedData [11:00:02]FM_MakeSignedData [11:00:02]SAM_PROTO_SignData [11:00:02]wFMCommunicate request_size=4 [11:00:02]MH_SAM_APDU [11:00:02]CAPDU: 80 0D 01 02 [11:00:02]Write to MH i2c: E2 08 00 15 16 80 0D 01 02 00 00 00 00 A4 [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:02]Read from MH i2c: E2 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 03 00 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 03 00 15 16 00 90 00 9F [11:00:02]RAPDU: 90 00 [11:00:02]wFMCommunicate OK [11:00:02]wFMCommunicate request_size=255 [11:00:02]MH_SAM_APDU [11:00:02]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 82 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [11:00:02]Write to MH i2c: E2 02 01 16 16 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 82 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 4A [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:02]Read from MH i2c: E2 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 03 00 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 03 00 16 16 00 90 00 A0 [11:00:02]RAPDU: 90 00 [11:00:02]wFMCommunicate OK [11:00:02]wFMCommunicate request_size=31 [11:00:02]MH_SAM_APDU [11:00:02]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 C6 C1 00 00 35 04 06 00 8D C7 B5 1D A1 F6 [11:00:02]Write to MH i2c: E2 22 00 17 16 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 C6 C1 00 00 35 04 06 00 8D C7 B5 1D A1 F6 00 00 0E [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:02]Read from MH i2c: E2 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 03 00 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 03 00 17 16 00 90 00 A1 [11:00:02]RAPDU: 90 00 [11:00:02]wFMCommunicate OK [11:00:02]wFMCommunicate request_size=4 [11:00:02]MH_SAM_APDU [11:00:02]CAPDU: 80 0D 03 02 [11:00:02]Write to MH i2c: E2 08 00 18 16 80 0D 03 02 00 00 00 00 A9 [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:02]Read from MH i2c: E2 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 0B 00 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 0B 00 18 16 00 38 2F 0A 10 C8 E9 68 B4 90 00 F8 [11:00:02]RAPDU: 38 2F 0A 10 C8 E9 68 B4 90 00 [11:00:02]wFMCommunicate OK [11:00:02]SAM_PROTO_SignData done [11:00:02]FM_MakeSignedData done [11:00:02]CreateOFDProtocolMessage [11:00:02]wFMCommunicate request_size=4 [11:00:02]MH_SAM_APDU [11:00:02]CAPDU: 80 11 00 00 [11:00:02]Write to MH i2c: E2 08 00 19 16 80 11 00 00 00 00 00 00 A9 [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:02]Read from MH i2c: E2 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 17 00 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 17 00 19 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F4 [11:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:00:02]wFMCommunicate OK [11:00:02]CreateOFDProtocolMessage done [11:00:02]OFDSenderStorePacket 49606 [11:00:02]StoreOFDPacket docnum=49606 [11:00:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 18 6F 1C 01 44 1C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 82 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C6 C1 00 00 35 04 06 00 8D C7 B5 1D A1 F6 38 2F 0A 10 C8 E9 68 B4 [11:00:02]CheckFolder [11:00:02]dirname=/storage/ofd_packets [11:00:02]CheckFolder done [11:00:02]ProducePacketName [11:00:02]name=ofd_packets/00049606 [11:00:02]NVStorageSaveData ofd_packets/00049606 [11:00:02]File name is /storage/ofd_packets/00049606 [11:00:02]Write 322 bytes [11:00:02]NVStorageSaveData done [11:00:02]OFDSenderStorePacket done [11:00:02]KKMCreateOFDPacket done [11:00:02]NVStorageSaveData kkm_last_timestamp [11:00:02]File name is /storage/kkm_last_timestamp [11:00:02]Write 4 bytes [11:00:02]NVStorageSaveData done [11:00:02]ExternCall_PrintAddStr [11:00:02]wPrintStart [11:00:02]Write to MH i2c: 01 00 00 1A 16 30 [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: 01 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: 01 07 00 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: 01 07 00 1A 16 00 00 00 00 00 FF 0F 45 [11:00:02]RasterBufferAndPrint [11:00:02]line Счет N : (3)189797 [11:00:02]line ИНН: 02508201610067 [11:00:02]line Контрольно-Кассовый Чек [11:00:02]line ПРОДАЖА [11:00:02]line Товар: 47011656 [11:00:02]line Водка Пшеничная 0,1л [11:00:02]line 1.000 * 65.00 [11:00:02]line = 65.00 [11:00:02]line НДС 12% НСП 1% [11:00:02]line > о реализуемом товаре [11:00:02]line ИТОГО: 65.00 [11:00:02]line НСП 1% : 0.57 [11:00:02]line НДС 12% : 6.90 [11:00:02]line Наличными: 65.00 [11:00:02]line Безнал.: 0.00 [11:00:02]line Место: АЗС № 95 "Партнер Нефть" [11:00:02]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:00:02]line СНО: Общий режим [11:00:02]line Чек 43 17.08.2024 11:00 [11:00:02]line Смена: 465 ФФД: 1.0 [11:00:02]line ЗНМ: 0300000078 [11:00:02]line РНМ: 0000000000092546 [11:00:02]line Версия ККМ: 001 [11:00:02]line ФМ: 0000000000871800 [11:00:02]line ФД: 49606 [11:00:02]line ФПД: 155888876626422 [11:00:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T110004&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49606&fm=155888876626422&tin=02508201610067®Number=0000000000092546&sum=6500 [11:00:03]OFD Sender: Processing packet 49606 [packets to send 21, broken 20] [11:00:03]ProducePacketName [11:00:03]name=ofd_packets/00049606 [11:00:03]OFD Sender: To server: pG, [11:00:03]CommunicateWithHost lk.salyk.kg:30040 [11:00:03]ConnectInit lk.salyk.kg [11:00:03]line 0 [11:00:03]written 0, free lines is 4095 [11:00:03]Connected sock=10 [11:00:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 18 6F 1C 01 44 1C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 82 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C6 C1 00 00 35 04 06 00 8D C7 B5 1D A1 F6 38 2F 0A 10 C8 E9 68 B4 [11:00:03]Write to MH i2c: 01 00 00 42 16 58 [11:00:03]Write i2c OK [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: 01 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: 01 07 00 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: 01 07 00 42 16 00 00 00 00 00 FE 0C 69 [11:00:03]RasterBufferAndPrint [11:00:03]line [11:00:03]line [11:00:03]line [11:00:03]line [11:00:03]line [11:00:03]written 0, free lines is 3332 [11:00:03]MH_Cut [11:00:03]Write to MH i2c: D1 01 00 49 16 01 31 [11:00:03]Write i2c OK [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: D1 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: D1 01 00 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: D1 01 00 49 16 00 30 [11:00:03]Write to MH i2c: 01 00 00 4A 16 60 [11:00:03]Write i2c OK [11:00:03]MH_I2C_Read... [11:00:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 05 7E 47 00 5A 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 31 38 30 30 10 04 04 00 C6 C1 00 00 F4 03 04 00 F0 2D C0 66 B6 04 01 00 00 68 E9 0C 08 F3 49 7E 37 [11:00:03]CommunicateWithHost err = 0 [11:00:03]CheckOFDResponse [11:00:03]1017 (14) - 77093643461234 [11:00:03]1041 (16) - 0000000000871800 [11:00:03]1040 (4) - 49606 [11:00:03]1012 (4) - 17.08.2024 04:58 [11:00:03]1206 (1) - 0 [11:00:03]OFD Sender: Remove packet 49606 [11:00:03]ProducePacketName [11:00:03]name=ofd_packets/00049606 [11:00:03]NVStorageDeleteData [11:00:04]OFD Sender: No OFD packet to send [11:00:04]*** Cut start [11:00:04]*** Purtial cut [11:00:04]*** CUTSNS_PIN = 0 [11:00:04]*** Stage 1: CUTSNS_PIN = 1 [11:00:06]Read from MH i2c: 01 [11:00:06]MH_I2C_Read... [11:00:06]*** Stop cut motor [11:00:06]*** Cut end [11:00:06]Read from MH i2c: 01 07 00 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: 01 07 00 4A 16 00 00 00 00 00 FF 0F 75 [11:00:06]process_action close_receipt done [11:00:06]requested_data is exist [11:00:06]produce_requested_data [11:00:06]requested_item fm.sn is exist - process it [11:00:06]wFMCommunicate request_size=4 [11:00:06]MH_SAM_APDU [11:00:06]CAPDU: 80 11 00 00 [11:00:06]Write to MH i2c: E2 08 00 4B 16 80 11 00 00 00 00 00 00 DB [11:00:06]Write i2c OK [11:00:06]MH_I2C_Read... [11:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:06]Read from MH i2c: E2 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 17 00 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 17 00 4B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 26 [11:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:00:06]wFMCommunicate OK [11:00:06]requested_item fd.num is exist - process it [11:00:06]SAM_PROTO_GetFieldsCounters [11:00:06]wFMCommunicate request_size=4 [11:00:06]MH_SAM_APDU [11:00:06]CAPDU: 80 13 00 00 [11:00:06]Write to MH i2c: E2 08 00 4C 16 80 13 00 00 00 00 00 00 DE [11:00:06]Write i2c OK [11:00:06]MH_I2C_Read... [11:00:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:06]Read from MH i2c: E2 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 62 00 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 62 00 4C 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C6 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [11:00: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C6 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:06]wFMCommunicate OK [11:00:06]SAM_PROTO_GetFieldsCounters done [11:00:06]requested_item shift.num is exist - process it [11:00:06]requested_item shift.opened is exist - process it [11:00:06]req_shift_opened [11:00:06]FM_GetShiftState [11:00:06]SAM_PROTO_GetShiftState [11:00:06]wFMCommunicate request_size=4 [11:00:06]MH_SAM_APDU [11:00:06]CAPDU: 80 13 01 00 [11:00:06]Write to MH i2c: E2 08 00 4D 16 80 13 01 00 00 00 00 00 E0 [11:00:06]Write i2c OK [11:00:06]MH_I2C_Read... [11:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:06]Read from MH i2c: E2 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 0E 00 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 0E 00 4D 16 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 25 [11:00:06]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:00:06]wFMCommunicate OK [11:00:06]SAM_PROTO_GetShiftState done [11:00:06]FM_GetShiftState done [11:00:06]req_shift_opened done [11:00:06]requested_item shift.open_date is exist - process it [11:00:06]req_shift_open_date [11:00:06]req_shift_open_date done [11:00:06]produce_requested_data done [11:00:06]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49606,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [11:00:06]process_action_free close_receipt [11:00:06]json_value_free [11:00:06]json_value_free done [11:00:06]process_json_proto returns [11:00:06]Send response to host [11:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49606,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [11:00:06]free response buf [11:00:06]execute_script done [11:00:06]execute_script returns [11:00:06]free content buf [11:00:06]Sock 7.Close socket [11:00:06]Sock 7.Thread stoped [11:00:09]OFD Sender: No OFD packet to send [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: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:15]accept exits with 9 [11:02:15]New connection [11:02:15]New thread 3066801508 created [11:02:15]Thread 3066944868 joined [11:02:15]Waiting for new connection... [11:02:15] Sock 9.Parse request [11:02:15]Sock 9.Check first char [11:02:15]Sock 9.First char is OK [11:02:15]request: POST /json_proto HTTP/1.0 [11:02:15]Method: POST [11:02:15]URL: /json_proto [11:02:15]Method is POST - this is cgi request [11:02:15]url: /json_proto [11:02:15]query_string will be loaded in cgi processing [11:02:15]execute_cgi json_proto POST (null) [11:02:15]execute_cgi path=json_proto method=POST [11:02:15]POST find Content-Length [11:02:15]Host: 172.17.46.196:8080 [11:02:15]Content-Length: 756 [11:02:15]Content-Type: application/json [11:02:15] [11:02:15]POST finish read [11:02:15]Found Content-Length = 756 [11:02:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30028965", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:15]execute_script... [11:02: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)11326076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30028965", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:15]POST & json_proto [11:02:15]process_json_proto [11:02:15]json parsed OK: [11:02:15]protocol is kg_v1.0 [11:02:15]action value=close_receipt [11:02:15]process_action close_receipt [11:02:15]cmd_close_receipt [11:02:15]MH_GetDate [11:02:15]Write to MH i2c: F0 00 00 4E 16 53 [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: F0 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: F0 09 00 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: F0 09 00 4E 16 00 3A 83 C0 66 07 E8 5D 66 F1 [11:02:15]GetLastDocTimeStamp 1723892404 [11:02:15]current date 1723892538 [11:02:15]FM_GetShiftState [11:02:15]SAM_PROTO_GetShiftState [11:02:15]wFMCommunicate request_size=4 [11:02:15]MH_SAM_APDU [11:02:15]CAPDU: 80 13 01 00 [11:02:15]Write to MH i2c: E2 08 00 4F 16 80 13 01 00 00 00 00 00 E2 [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:15]Read from MH i2c: E2 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 0E 00 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 0E 00 4F 16 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 27 [11:02:15]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:02:15]wFMCommunicate OK [11:02:15]SAM_PROTO_GetShiftState done [11:02:15]FM_GetShiftState done [11:02:15]opened in 1723853354 [11:02:15]opened+sec_in_day 1723939754 [11:02:15]quantity*price = 0 [11:02:15]sum+1 = 1 [11:02:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 44 17.08.2024 11:02 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30028965 ФМ: 0000000000871800 ФД: 49607 ФПД: 29344588826736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T110218&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49607&fm=29344588826736&tin=02508201610067®Number=0000000000092546&sum=0 [11:02:16]StoreToDocumentArchive [11:02:16]shift 465 fd 49607 [11:02:16]save to /storage/0465/doc_00049607 [11:02:16]save last doc name /storage/0465/doc_00049607 to /storage/kkm_last_doc_name [11:02:16]save OK [11:02:16]Clear old archive folders... [11:02:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:16]tlvbuf is 01868940 [11:02:16]SAM_PROTO_ClearQueue [11:02:16]wFMCommunicate request_size=4 [11:02:16]MH_SAM_APDU [11:02:16]CAPDU: 80 09 00 00 [11:02:16]Write to MH i2c: E2 08 00 5C 16 80 09 00 00 00 00 00 00 E4 [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:16]Read from MH i2c: E2 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 03 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 03 00 5C 16 00 90 00 E6 [11:02:16]RAPDU: 90 00 [11:02:16]wFMCommunicate OK [11:02:16]SAM_PROTO_ClearQueue done [11:02:16]KKMCreateOFDPacket [11:02:16]OFDProtocolAddRootSTLVToBuf [11:02:16]FM_MakeSignedData [11:02:16]FM_MakeSignedData [11:02:16]SAM_PROTO_SignData [11:02:16]wFMCommunicate request_size=4 [11:02:16]MH_SAM_APDU [11:02:16]CAPDU: 80 0D 01 02 [11:02:16]Write to MH i2c: E2 08 00 5D 16 80 0D 01 02 00 00 00 00 EC [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:16]Read from MH i2c: E2 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 03 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 03 00 5D 16 00 90 00 E7 [11:02:16]RAPDU: 90 00 [11:02:16]wFMCommunicate OK [11:02:16]wFMCommunicate request_size=255 [11:02:16]MH_SAM_APDU [11:02:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 2C 00 00 00 F4 03 04 00 3A 83 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C7 C1 00 00 35 04 06 00 1A [11:02:16]Write to MH i2c: E2 02 01 5E 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 2C 00 00 00 F4 03 04 00 3A 83 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C7 C1 00 00 35 04 06 00 1A 00 00 16 [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:17]Read from MH i2c: E2 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 03 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 03 00 5E 16 00 90 00 E8 [11:02:17]RAPDU: 90 00 [11:02:17]wFMCommunicate OK [11:02:17]wFMCommunicate request_size=10 [11:02:17]MH_SAM_APDU [11:02:17]CAPDU: 80 0D 02 02 05 B0 51 CB 08 70 [11:02:17]Write to MH i2c: E2 0D 00 5F 16 80 0D 02 02 05 00 B0 51 CB 08 70 00 00 3D [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:17]Read from MH i2c: E2 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 03 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 03 00 5F 16 00 90 00 E9 [11:02:17]RAPDU: 90 00 [11:02:17]wFMCommunicate OK [11:02:17]wFMCommunicate request_size=4 [11:02:17]MH_SAM_APDU [11:02:17]CAPDU: 80 0D 03 02 [11:02:17]Write to MH i2c: E2 08 00 60 16 80 0D 03 02 00 00 00 00 F1 [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:17]Read from MH i2c: E2 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 0B 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 0B 00 60 16 00 0C D6 EB DD BD 0D E9 14 90 00 63 [11:02:17]RAPDU: 0C D6 EB DD BD 0D E9 14 90 00 [11:02:17]wFMCommunicate OK [11:02:17]SAM_PROTO_SignData done [11:02:17]FM_MakeSignedData done [11:02:17]CreateOFDProtocolMessage [11:02:17]wFMCommunicate request_size=4 [11:02:17]MH_SAM_APDU [11:02:17]CAPDU: 80 11 00 00 [11:02:17]Write to MH i2c: E2 08 00 61 16 80 11 00 00 00 00 00 00 F1 [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:17]Read from MH i2c: E2 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 17 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 17 00 61 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3C [11:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:02:17]wFMCommunicate OK [11:02:17]CreateOFDProtocolMessage done [11:02:17]OFDSenderStorePacket 49607 [11:02:17]StoreOFDPacket docnum=49607 [11:02:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 1A BC 07 01 1F 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 34 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 2C 00 00 00 F4 03 04 00 3A 83 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C7 C1 00 00 35 04 06 00 1A B0 51 CB 08 70 0C D6 EB DD BD 0D E9 14 [11:02:17]CheckFolder [11:02:17]dirname=/storage/ofd_packets [11:02:17]CheckFolder done [11:02:17]ProducePacketName [11:02:17]name=ofd_packets/00049607 [11:02:17]NVStorageSaveData ofd_packets/00049607 [11:02:17]File name is /storage/ofd_packets/00049607 [11:02:17]Write 301 bytes [11:02:17]NVStorageSaveData done [11:02:17]OFDSenderStorePacket done [11:02:17]KKMCreateOFDPacket done [11:02:17]NVStorageSaveData kkm_last_timestamp [11:02:17]File name is /storage/kkm_last_timestamp [11:02:17]Write 4 bytes [11:02:17]NVStorageSaveData done [11:02:17]ExternCall_PrintAddStr [11:02:17]wPrintStart [11:02:17]Write to MH i2c: 01 00 00 62 16 78 [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: 01 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: 01 07 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: 01 07 00 62 16 00 00 00 00 00 FF 0F 8D [11:02:17]RasterBufferAndPrint [11:02:17]line Счет N : (1)11326076 [11:02:17]line ИНН: 02508201610067 [11:02:17]line Контрольно-Кассовый Чек [11:02:17]line ПРОДАЖА [11:02:17]line ТРК (МРК, ГНК) : 12 [11:02:17]line Товар: 2710124130 [11:02:17]line Аи-92-К-4 [11:02:17]line 30.000 * 0.00 [11:02:17]line = 0.00 [11:02:17]line НДС 12% НСП 1% [11:02:17]line > о реализуемом товаре [11:02:17]line ИТОГО: 0.00 [11:02:17]line НСП 1% : 0.00 [11:02:17]line НДС 12% : 0.00 [11:02:17]line Наличными: 0.00 [11:02:17]line Безнал.: 0.00 [11:02:17]line Место: АЗС № 95 "Партнер Нефть" [11:02:17]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:02:17]line СНО: Общий режим [11:02:17]line Чек 44 17.08.2024 11:02 [11:02:17]line Смена: 465 ФФД: 1.0 [11:02:17]line ЗНМ: 0300000078 [11:02:17]line РНМ: 0000000000092546 [11:02:17]line Версия ККМ: 001 [11:02:17]line Талоны: ТК ГПНА Online [11:02:17]line 30028965 [11:02:17]line ФМ: 0000000000871800 [11:02:17]line ФД: 49607 [11:02:17]line ФПД: 29344588826736 [11:02:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T110218&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49607&fm=29344588826736&tin=02508201610067®Number=0000000000092546&sum=0 [11:02:17]written 0, free lines is 4095 [11:02:17]OFD Sender: Processing packet 49607 [packets to send 21, broken 20] [11:02:17]ProducePacketName [11:02:17]name=ofd_packets/00049607 [11:02:17]OFD Sender: To server: pG, [11:02:17]CommunicateWithHost lk.salyk.kg:30040 [11:02:17]ConnectInit lk.salyk.kg [11:02:17]Connected sock=10 [11:02:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 1A BC 07 01 1F 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 34 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 2C 00 00 00 F4 03 04 00 3A 83 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C7 C1 00 00 35 04 06 00 1A B0 51 CB 08 70 0C D6 EB DD BD 0D E9 14 [11:02:17]Write to MH i2c: 01 00 00 8C 16 A2 [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: 01 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: 01 07 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: 01 07 00 8C 16 00 00 00 00 00 E7 0C 9C [11:02:17]RasterBufferAndPrint [11:02:17]line [11:02:17]line [11:02:17]line [11:02:17]line [11:02:17]line [11:02:17]written 0, free lines is 3309 [11:02:17]MH_Cut [11:02:17]Write to MH i2c: D1 01 00 93 16 01 7B [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: D1 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: D1 01 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: D1 01 00 93 16 00 7A [11:02:17]Write to MH i2c: 01 00 00 94 16 AA [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 93 CA 47 00 EC 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C7 C1 00 00 F4 03 04 00 76 2E C0 66 B6 04 01 00 00 39 98 CB A9 BC 94 E5 A0 [11:02:17]CommunicateWithHost err = 0 [11:02:17]CheckOFDResponse [11:02:17]1017 (14) - 77093643461234 [11:02:17]1041 (16) - 0000000000871800 [11:02:17]1040 (4) - 49607 [11:02:17]1012 (4) - 17.08.2024 05:00 [11:02:17]1206 (1) - 0 [11:02:17]OFD Sender: Remove packet 49607 [11:02:17]ProducePacketName [11:02:17]name=ofd_packets/00049607 [11:02:17]NVStorageDeleteData [11:02:18]OFD Sender: No OFD packet to send [11:02:18]*** Cut start [11:02:18]*** Purtial cut [11:02:18]*** Stage 1: CUTSNS_PIN = 1 [11:02:18]Read from MH i2c: 01 [11:02:18]MH_I2C_Read... [11:02:18]*** Stop cut motor [11:02:18]*** Cut end [11:02:18]Read from MH i2c: 01 07 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: 01 07 00 94 16 00 00 00 00 00 FF 0F BF [11:02:18]process_action close_receipt done [11:02:18]requested_data is exist [11:02:18]produce_requested_data [11:02:18]requested_item fm.sn is exist - process it [11:02:18]wFMCommunicate request_size=4 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 11 00 00 [11:02:18]Write to MH i2c: E2 08 00 95 16 80 11 00 00 00 00 00 00 25 [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 17 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 17 00 95 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 70 [11:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:02:18]wFMCommunicate OK [11:02:18]requested_item fd.num is exist - process it [11:02:18]SAM_PROTO_GetFieldsCounters [11:02:18]wFMCommunicate request_size=4 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 13 00 00 [11:02:18]Write to MH i2c: E2 08 00 96 16 80 13 00 00 00 00 00 00 28 [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 62 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 62 00 96 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C7 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [11:02:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C7 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:18]wFMCommunicate OK [11:02:18]SAM_PROTO_GetFieldsCounters done [11:02:18]requested_item shift.num is exist - process it [11:02:18]requested_item shift.opened is exist - process it [11:02:18]req_shift_opened [11:02:18]FM_GetShiftState [11:02:18]SAM_PROTO_GetShiftState [11:02:18]wFMCommunicate request_size=4 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 13 01 00 [11:02:18]Write to MH i2c: E2 08 00 97 16 80 13 01 00 00 00 00 00 2A [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 0E 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 0E 00 97 16 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 6F [11:02:18]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:02:18]wFMCommunicate OK [11:02:18]SAM_PROTO_GetShiftState done [11:02:18]FM_GetShiftState done [11:02:18]req_shift_opened done [11:02:18]requested_item shift.open_date is exist - process it [11:02:18]req_shift_open_date [11:02:18]req_shift_open_date done [11:02:18]produce_requested_data done [11:02:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49607,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [11:02:18]process_action_free close_receipt [11:02:18]json_value_free [11:02:18]json_value_free done [11:02:18]process_json_proto returns [11:02:18]Send response to host [11:02:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49607,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [11:02:18]free response buf [11:02:18]execute_script done [11:02:18]execute_script returns [11:02:18]free content buf [11:02:18]Sock 9.Close socket [11:02:18]Sock 9.Thread stoped [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]accept exits with 7 [11:03:58]New connection [11:03:58]New thread 3066944868 created [11:03:58]Thread 3066801508 joined [11:03:58]Waiting for new connection... [11:03:58] Sock 7.Parse request [11:03:58]Sock 7.Check first char [11:03:58]Sock 7.First char is OK [11:03:58]request: POST /json_proto HTTP/1.0 [11:03:58]Method: POST [11:03:58]URL: /json_proto [11:03:58]Method is POST - this is cgi request [11:03:58]url: /json_proto [11:03:58]query_string will be loaded in cgi processing [11:03:58]execute_cgi json_proto POST (null) [11:03:58]execute_cgi path=json_proto method=POST [11:03:58]POST find Content-Length [11:03:58]Host: 172.17.46.196:8080 [11:03:58]Content-Length: 632 [11:03:58]Content-Type: application/json [11:03:58] [11:03:58]POST finish read [11:03:58]Found Content-Length = 632 [11:03:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189798", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:58]execute_script... [11:03:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189798", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:58]POST & json_proto [11:03:58]process_json_proto [11:03:58]json parsed OK: [11:03:58]protocol is kg_v1.0 [11:03:58]action value=close_receipt [11:03:58]process_action close_receipt [11:03:58]cmd_close_receipt [11:03:58]MH_GetDate [11:03:58]Write to MH i2c: F0 00 00 98 16 9D [11:03:58]Write i2c OK [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: F0 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: F0 09 00 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: F0 09 00 98 16 00 A1 83 C0 66 07 E8 5D 66 A2 [11:03:58]GetLastDocTimeStamp 1723892538 [11:03:58]current date 1723892641 [11:03:58]FM_GetShiftState [11:03:58]SAM_PROTO_GetShiftState [11:03:58]wFMCommunicate request_size=4 [11:03:58]MH_SAM_APDU [11:03:58]CAPDU: 80 13 01 00 [11:03:58]Write to MH i2c: E2 08 00 99 16 80 13 01 00 00 00 00 00 2C [11:03:58]Write i2c OK [11:03:58]MH_I2C_Read... [11:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:58]Read from MH i2c: E2 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: E2 0E 00 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: E2 0E 00 99 16 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 71 [11:03:58]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:03:58]wFMCommunicate OK [11:03:58]SAM_PROTO_GetShiftState done [11:03:58]FM_GetShiftState done [11:03:58]opened in 1723853354 [11:03:58]opened+sec_in_day 1723939754 [11:03:58]quantity*price = 10000 [11:03:58]sum+1 = 10001 [11:03:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 45 17.08.2024 11:04 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49608 ФПД: 131549724890157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T110401&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49608&fm=131549724890157&tin=02508201610067®Number=0000000000092546&sum=10000 0 [11:03:59]StoreToDocumentArchive [11:03:59]shift 465 fd 49608 [11:03:59]save to /storage/0465/doc_00049608 [11:03:59]save last doc name /storage/0465/doc_00049608 to /storage/kkm_last_doc_name [11:03:59]save OK [11:03:59]Clear old archive folders... [11:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:03:59]tlvbuf is 0187BE60 [11:03:59]SAM_PROTO_ClearQueue [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 09 00 00 [11:03:59]Write to MH i2c: E2 08 00 A6 16 80 09 00 00 00 00 00 00 2E [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 03 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 03 00 A6 16 00 90 00 30 [11:03:59]RAPDU: 90 00 [11:03:59]wFMCommunicate OK [11:03:59]SAM_PROTO_ClearQueue done [11:03:59]KKMCreateOFDPacket [11:03:59]OFDProtocolAddRootSTLVToBuf [11:03:59]FM_MakeSignedData [11:03:59]FM_MakeSignedData [11:03:59]SAM_PROTO_SignData [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 0D 01 02 [11:03:59]Write to MH i2c: E2 08 00 A7 16 80 0D 01 02 00 00 00 00 36 [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 03 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 03 00 A7 16 00 90 00 31 [11:03:59]RAPDU: 90 00 [11:03:59]wFMCommunicate OK [11:03:59]wFMCommunicate request_size=255 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A1 83 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [11:03:59]Write to MH i2c: E2 02 01 A8 16 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A1 83 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 98 [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 03 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 03 00 A8 16 00 90 00 32 [11:03:59]RAPDU: 90 00 [11:03:59]wFMCommunicate OK [11:03:59]wFMCommunicate request_size=28 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 C8 C1 00 00 35 04 06 00 77 A4 CE 9F 54 2D [11:03:59]Write to MH i2c: E2 1F 00 A9 16 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 C8 C1 00 00 35 04 06 00 77 A4 CE 9F 54 2D 00 00 50 [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 03 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 03 00 A9 16 00 90 00 33 [11:03:59]RAPDU: 90 00 [11:03:59]wFMCommunicate OK [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 0D 03 02 [11:03:59]Write to MH i2c: E2 08 00 AA 16 80 0D 03 02 00 00 00 00 3B [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 0B 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 0B 00 AA 16 00 17 6E 87 72 50 9F 0D BC 90 00 72 [11:03:59]RAPDU: 17 6E 87 72 50 9F 0D BC 90 00 [11:03:59]wFMCommunicate OK [11:03:59]SAM_PROTO_SignData done [11:03:59]FM_MakeSignedData done [11:03:59]CreateOFDProtocolMessage [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 11 00 00 [11:03:59]Write to MH i2c: E2 08 00 AB 16 80 11 00 00 00 00 00 00 3B [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 17 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 17 00 AB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 86 [11:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:03:59]wFMCommunicate OK [11:03:59]CreateOFDProtocolMessage done [11:03:59]OFDSenderStorePacket 49608 [11:03:59]StoreOFDPacket docnum=49608 [11:03:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 0C 72 19 01 B8 E6 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A1 83 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C8 C1 00 00 35 04 06 00 77 A4 CE 9F 54 2D 17 6E 87 72 50 9F 0D BC [11:03:59]CheckFolder [11:03:59]dirname=/storage/ofd_packets [11:03:59]CheckFolder done [11:03:59]ProducePacketName [11:03:59]name=ofd_packets/00049608 [11:03:59]NVStorageSaveData ofd_packets/00049608 [11:03:59]File name is /storage/ofd_packets/00049608 [11:03:59]Write 319 bytes [11:03:59]NVStorageSaveData done [11:03:59]OFDSenderStorePacket done [11:03:59]KKMCreateOFDPacket done [11:03:59]NVStorageSaveData kkm_last_timestamp [11:03:59]File name is /storage/kkm_last_timestamp [11:03:59]Write 4 bytes [11:03:59]NVStorageSaveData done [11:03:59]ExternCall_PrintAddStr [11:03:59]wPrintStart [11:03:59]Write to MH i2c: 01 00 00 AC 16 C2 [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: 01 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: 01 07 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: 01 07 00 AC 16 00 00 00 00 00 FF 0F D7 [11:03:59]RasterBufferAndPrint [11:03:59]line Счет N : (3)189798 [11:03:59]line ИНН: 02508201610067 [11:03:59]line Контрольно-Кассовый Чек [11:03:59]line ПРОДАЖА [11:03:59]line Товар: 4700000160358 [11:03:59]line Вода Легенда 1л [11:03:59]line 2.000 * 50.00 [11:03:59]line = 100.00 [11:03:59]line НДС 12% НСП 1% [11:03:59]line > о реализуемом товаре [11:03:59]line ИТОГО: 100.00 [11:03:59]line НСП 1% : 0.88 [11:03:59]line НДС 12% : 10.62 [11:03:59]line Наличными: 100.00 [11:03:59]line Безнал.: 0.00 [11:03:59]line Место: АЗС № 95 "Партнер Нефть" [11:03:59]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:03:59]line СНО: Общий режим [11:03:59]line Чек 45 17.08.2024 11:04 [11:03:59]line Смена: 465 ФФД: 1.0 [11:03:59]line ЗНМ: 0300000078 [11:03:59]line РНМ: 0000000000092546 [11:03:59]line Версия ККМ: 001 [11:04:00]line ФМ: 0000000000871800 [11:04:00]line ФД: 49608 [11:04:00]line ФПД: 131549724890157 [11:04:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T110401&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49608&fm=131549724890157&tin=02508201610067®Number=0000000000092546&sum=10000 [11:04:00]line 0 [11:04:00]OFD Sender: Processing packet 49608 [packets to send 21, broken 20] [11:04:00]ProducePacketName [11:04:00]name=ofd_packets/00049608 [11:04:00]OFD Sender: To server: pG, [11:04:00]CommunicateWithHost lk.salyk.kg:30040 [11:04:00]ConnectInit lk.salyk.kg [11:04:00]written 0, free lines is 4095 [11:04:00]Connected sock=10 [11:04:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 0C 72 19 01 B8 E6 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A1 83 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C8 C1 00 00 35 04 06 00 77 A4 CE 9F 54 2D 17 6E 87 72 50 9F 0D BC [11:04:00]Write to MH i2c: 01 00 00 D4 16 EA [11:04:00]Write i2c OK [11:04:00]MH_I2C_Read... [11:04:00]Read from MH i2c: 01 [11:04:00]MH_I2C_Read... [11:04:00]Read from MH i2c: 01 07 00 [11:04:00]MH_I2C_Read... [11:04:00]Read from MH i2c: 01 07 00 D4 16 00 00 00 00 00 04 0D 02 [11:04:00]RasterBufferAndPrint [11:04:00]line [11:04:00]line [11:04:00]line [11:04:00]line [11:04:00]line [11:04:00]written 0, free lines is 3338 [11:04:00]MH_Cut [11:04:00]Write to MH i2c: D1 01 00 DB 16 01 C3 [11:04:00]Write i2c OK [11:04:00]MH_I2C_Read... [11:04:00]Read from MH i2c: D1 [11:04:00]MH_I2C_Read... [11:04:00]Read from MH i2c: D1 01 00 [11:04:00]MH_I2C_Read... [11:04:00]Read from MH i2c: D1 01 00 DB 16 00 C2 [11:04:00]Write to MH i2c: 01 00 00 DC 16 F2 [11:04:00]Write i2c OK [11:04:00]MH_I2C_Read... [11:04:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 AA 65 47 00 2D 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C8 C1 00 00 F4 03 04 00 DD 2E C0 66 B6 04 01 00 00 1D 24 B9 D9 82 D1 1D D3 [11:04:00]CommunicateWithHost err = 0 [11:04:00]CheckOFDResponse [11:04:00]1017 (14) - 77093643461234 [11:04:00]1041 (16) - 0000000000871800 [11:04:00]1040 (4) - 49608 [11:04:00]1012 (4) - 17.08.2024 05:02 [11:04:00]1206 (1) - 0 [11:04:00]OFD Sender: Remove packet 49608 [11:04:00]ProducePacketName [11:04:00]name=ofd_packets/00049608 [11:04:00]NVStorageDeleteData [11:04:01]OFD Sender: No OFD packet to send [11:04:01]*** Cut start [11:04:01]*** Purtial cut [11:04:01]*** CUTSNS_PIN = 0 [11:04:01]*** Stage 1: CUTSNS_PIN = 1 [11:04:03]Read from MH i2c: 01 [11:04:03]MH_I2C_Read... [11:04:03]*** Stop cut motor [11:04:03]*** Cut end [11:04:03]Read from MH i2c: 01 07 00 [11:04:03]MH_I2C_Read... [11:04:03]Read from MH i2c: 01 07 00 DC 16 00 00 00 00 00 FF 0F 07 [11:04:03]process_action close_receipt done [11:04:03]requested_data is exist [11:04:03]produce_requested_data [11:04:03]requested_item fm.sn is exist - process it [11:04:03]wFMCommunicate request_size=4 [11:04:03]MH_SAM_APDU [11:04:03]CAPDU: 80 11 00 00 [11:04:03]Write to MH i2c: E2 08 00 DD 16 80 11 00 00 00 00 00 00 6D [11:04:03]Write i2c OK [11:04:03]MH_I2C_Read... [11:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:03]Read from MH i2c: E2 [11:04:03]MH_I2C_Read... [11:04:03]Read from MH i2c: E2 17 00 [11:04:03]MH_I2C_Read... [11:04:03]Read from MH i2c: E2 17 00 DD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B8 [11:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:04:03]wFMCommunicate OK [11:04:03]requested_item fd.num is exist - process it [11:04:03]SAM_PROTO_GetFieldsCounters [11:04:03]wFMCommunicate request_size=4 [11:04:03]MH_SAM_APDU [11:04:03]CAPDU: 80 13 00 00 [11:04:03]Write to MH i2c: E2 08 00 DE 16 80 13 00 00 00 00 00 00 70 [11:04:03]Write i2c OK [11:04:03]MH_I2C_Read... [11:04:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:03]Read from MH i2c: E2 [11:04:03]MH_I2C_Read... [11:04:03]Read from MH i2c: E2 62 00 [11:04:03]MH_I2C_Read... [11:04:03]Read from MH i2c: E2 62 00 DE 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C8 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [11:04: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C8 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:03]wFMCommunicate OK [11:04:03]SAM_PROTO_GetFieldsCounters done [11:04:03]requested_item shift.num is exist - process it [11:04:03]requested_item shift.opened is exist - process it [11:04:03]req_shift_opened [11:04:03]FM_GetShiftState [11:04:03]SAM_PROTO_GetShiftState [11:04:03]wFMCommunicate request_size=4 [11:04:03]MH_SAM_APDU [11:04:03]CAPDU: 80 13 01 00 [11:04:03]Write to MH i2c: E2 08 00 DF 16 80 13 01 00 00 00 00 00 72 [11:04:03]Write i2c OK [11:04:03]MH_I2C_Read... [11:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:03]Read from MH i2c: E2 [11:04:03]MH_I2C_Read... [11:04:03]Read from MH i2c: E2 0E 00 [11:04:03]MH_I2C_Read... [11:04:03]Read from MH i2c: E2 0E 00 DF 16 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 B7 [11:04:03]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:04:03]wFMCommunicate OK [11:04:03]SAM_PROTO_GetShiftState done [11:04:03]FM_GetShiftState done [11:04:03]req_shift_opened done [11:04:03]requested_item shift.open_date is exist - process it [11:04:03]req_shift_open_date [11:04:03]req_shift_open_date done [11:04:03]produce_requested_data done [11:04:03]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49608,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [11:04:03]process_action_free close_receipt [11:04:03]json_value_free [11:04:03]json_value_free done [11:04:03]process_json_proto returns [11:04:03]Send response to host [11:04:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49608,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [11:04:03]free response buf [11:04:03]execute_script done [11:04:03]execute_script returns [11:04:03]free content buf [11:04:03]Sock 7.Close socket [11:04:03]Sock 7.Thread stoped [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:12:51]ConnectInit Can't connect to host [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:33]ConnectInit Can't connect to host [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:50]accept exits with 9 [11:17:50]New connection [11:17:50]New thread 3066801508 created [11:17:50]Thread 3066944868 joined [11:17:50]Waiting for new connection... [11:17:50] Sock 9.Parse request [11:17:50]Sock 9.Check first char [11:17:50]Sock 9.First char is OK [11:17:50]request: POST /json_proto HTTP/1.0 [11:17:50]Method: POST [11:17:50]URL: /json_proto [11:17:50]Method is POST - this is cgi request [11:17:50]url: /json_proto [11:17:50]query_string will be loaded in cgi processing [11:17:50]execute_cgi json_proto POST (null) [11:17:50]execute_cgi path=json_proto method=POST [11:17:50]POST find Content-Length [11:17:50]Host: 172.17.46.196:8080 [11:17:50]Content-Length: 621 [11:17:50]Content-Type: application/json [11:17:50] [11:17:50]POST finish read [11:17:50]Found Content-Length = 621 [11:17:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189799", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:50]execute_script... [11:17:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189799", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:50]POST & json_proto [11:17:50]process_json_proto [11:17:50]json parsed OK: [11:17:50]protocol is kg_v1.0 [11:17:50]action value=close_receipt [11:17:50]process_action close_receipt [11:17:50]cmd_close_receipt [11:17:50]MH_GetDate [11:17:50]Write to MH i2c: F0 00 00 E0 16 E5 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: F0 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: F0 09 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: F0 09 00 E0 16 00 E1 86 C0 66 07 E8 5D 66 2D [11:17:50]GetLastDocTimeStamp 1723892641 [11:17:50]current date 1723893473 [11:17:50]FM_GetShiftState [11:17:50]SAM_PROTO_GetShiftState [11:17:50]wFMCommunicate request_size=4 [11:17:50]MH_SAM_APDU [11:17:50]CAPDU: 80 13 01 00 [11:17:50]Write to MH i2c: E2 08 00 E1 16 80 13 01 00 00 00 00 00 74 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:50]Read from MH i2c: E2 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 0E 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 0E 00 E1 16 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 B9 [11:17:50]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:17:50]wFMCommunicate OK [11:17:50]SAM_PROTO_GetShiftState done [11:17:50]FM_GetShiftState done [11:17:50]opened in 1723853354 [11:17:50]opened+sec_in_day 1723939754 [11:17:50]quantity*price = 14000 [11:17:50]sum+1 = 14001 [11:17:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 46 17.08.2024 11:17 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49609 ФПД: 71448814904115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T111753&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49609&fm=71448814904115&tin=02508201610067®Number=0000000000092546&sum=14000 0 [11:17:51]StoreToDocumentArchive [11:17:51]shift 465 fd 49609 [11:17:51]save to /storage/0465/doc_00049609 [11:17:51]save last doc name /storage/0465/doc_00049609 to /storage/kkm_last_doc_name [11:17:51]save OK [11:17:51]Clear old archive folders... [11:17:51]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:17:51]tlvbuf is 01886630 [11:17:51]SAM_PROTO_ClearQueue [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 09 00 00 [11:17:51]Write to MH i2c: E2 08 00 EE 16 80 09 00 00 00 00 00 00 76 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 EE 16 00 90 00 78 [11:17:51]RAPDU: 90 00 [11:17:51]wFMCommunicate OK [11:17:51]SAM_PROTO_ClearQueue done [11:17:51]KKMCreateOFDPacket [11:17:51]OFDProtocolAddRootSTLVToBuf [11:17:51]FM_MakeSignedData [11:17:51]FM_MakeSignedData [11:17:51]SAM_PROTO_SignData [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 0D 01 02 [11:17:51]Write to MH i2c: E2 08 00 EF 16 80 0D 01 02 00 00 00 00 7E [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 EF 16 00 90 00 79 [11:17:51]RAPDU: 90 00 [11:17:51]wFMCommunicate OK [11:17:51]wFMCommunicate request_size=255 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 E1 86 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [11:17:51]Write to MH i2c: E2 02 01 F0 16 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 E1 86 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 29 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 F0 16 00 90 00 7A [11:17:51]RAPDU: 90 00 [11:17:51]wFMCommunicate OK [11:17:51]wFMCommunicate request_size=32 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 C9 C1 00 00 35 04 06 00 40 FB 79 3B 63 33 [11:17:51]Write to MH i2c: E2 23 00 F1 16 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 C9 C1 00 00 35 04 06 00 40 FB 79 3B 63 33 00 00 E5 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 F1 16 00 90 00 7B [11:17:51]RAPDU: 90 00 [11:17:51]wFMCommunicate OK [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 0D 03 02 [11:17:51]Write to MH i2c: E2 08 00 F2 16 80 0D 03 02 00 00 00 00 83 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]OFD Sender: No OFD packet to send [11:17:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 0B 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 0B 00 F2 16 00 DB 1A 70 A6 C2 51 1B D7 90 00 94 [11:17:51]RAPDU: DB 1A 70 A6 C2 51 1B D7 90 00 [11:17:51]wFMCommunicate OK [11:17:51]SAM_PROTO_SignData done [11:17:51]FM_MakeSignedData done [11:17:51]CreateOFDProtocolMessage [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 11 00 00 [11:17:51]Write to MH i2c: E2 08 00 F3 16 80 11 00 00 00 00 00 00 83 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 17 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 17 00 F3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CE [11:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:17:51]wFMCommunicate OK [11:17:51]CreateOFDProtocolMessage done [11:17:51]OFDSenderStorePacket 49609 [11:17:51]StoreOFDPacket docnum=49609 [11:17:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 5B F9 1D 01 06 A6 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 E1 86 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C9 C1 00 00 35 04 06 00 40 FB 79 3B 63 33 DB 1A 70 A6 C2 51 1B D7 [11:17:51]CheckFolder [11:17:51]dirname=/storage/ofd_packets [11:17:51]CheckFolder done [11:17:51]ProducePacketName [11:17:51]name=ofd_packets/00049609 [11:17:51]NVStorageSaveData ofd_packets/00049609 [11:17:51]File name is /storage/ofd_packets/00049609 [11:17:51]Write 323 bytes [11:17:51]NVStorageSaveData done [11:17:51]OFDSenderStorePacket done [11:17:51]KKMCreateOFDPacket done [11:17:51]NVStorageSaveData kkm_last_timestamp [11:17:51]File name is /storage/kkm_last_timestamp [11:17:51]Write 4 bytes [11:17:51]NVStorageSaveData done [11:17:51]ExternCall_PrintAddStr [11:17:51]wPrintStart [11:17:51]Write to MH i2c: 01 00 00 F4 16 0A [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 F4 16 00 00 00 00 00 FF 0F 1F [11:17:51]RasterBufferAndPrint [11:17:51]line Счет N : (3)189799 [11:17:51]line ИНН: 02508201610067 [11:17:51]line Контрольно-Кассовый Чек [11:17:51]line ПРОДАЖА [11:17:51]line Товар: 48747066 [11:17:51]line Сигареты Winston True Silver [11:17:51]line 1.000 * 140.00 [11:17:51]line = 140.00 [11:17:51]line НДС 12% НСП 1% [11:17:51]line > о реализуемом товаре [11:17:51]line ИТОГО: 140.00 [11:17:51]line НСП 1% : 1.24 [11:17:51]line НДС 12% : 14.87 [11:17:51]line Наличными: 140.00 [11:17:51]line Безнал.: 0.00 [11:17:51]line Место: АЗС № 95 "Партнер Нефть" [11:17:51]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:17:51]line СНО: Общий режим [11:17:51]line Чек 46 17.08.2024 11:17 [11:17:51]line Смена: 465 ФФД: 1.0 [11:17:51]line ЗНМ: 0300000078 [11:17:51]line РНМ: 0000000000092546 [11:17:51]line Версия ККМ: 001 [11:17:51]line ФМ: 0000000000871800 [11:17:51]line ФД: 49609 [11:17:51]line ФПД: 71448814904115 [11:17:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T111753&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49609&fm=71448814904115&tin=02508201610067®Number=0000000000092546&sum=14000 [11:17:52]OFD Sender: Processing packet 49609 [packets to send 21, broken 20] [11:17:52]ProducePacketName [11:17:52]name=ofd_packets/00049609 [11:17:52]OFD Sender: To server: pG, [11:17:52]CommunicateWithHost lk.salyk.kg:30040 [11:17:52]ConnectInit lk.salyk.kg [11:17:52]line 0 [11:17:52]written 0, free lines is 4095 [11:17:52]Connected sock=10 [11: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 31 38 30 30 25 01 00 00 5B F9 1D 01 06 A6 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 E1 86 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C9 C1 00 00 35 04 06 00 40 FB 79 3B 63 33 DB 1A 70 A6 C2 51 1B D7 [11:17:52]Write to MH i2c: 01 00 00 1C 17 33 [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: 01 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: 01 07 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: 01 07 00 1C 17 00 00 00 00 00 E4 0C 2A [11:17:52]RasterBufferAndPrint [11:17:52]line [11:17:52]line [11:17:52]line [11:17:52]line [11:17:52]line [11:17:52]written 0, free lines is 3306 [11:17:52]MH_Cut [11:17:52]Write to MH i2c: D1 01 00 23 17 01 0C [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F8 D9 47 00 7D 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 31 38 30 30 10 04 04 00 C9 C1 00 00 F4 03 04 00 1D 32 C0 66 B6 04 01 00 00 FF DC B2 42 46 64 33 C9 [11:17:52]CommunicateWithHost err = 0 [11:17:52]CheckOFDResponse [11:17:52]1017 (14) - 77093643461234 [11:17:52]1041 (16) - 0000000000871800 [11:17:52]1040 (4) - 49609 [11:17:52]1012 (4) - 17.08.2024 05:16 [11:17:52]1206 (1) - 0 [11:17:52]OFD Sender: Remove packet 49609 [11:17:52]ProducePacketName [11:17:52]name=ofd_packets/00049609 [11:17:52]NVStorageDeleteData [11:17:52]Read from MH i2c: D1 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: D1 01 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: D1 01 00 23 17 00 0B [11:17:52]Write to MH i2c: 01 00 00 24 17 3B [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:53]OFD Sender: No OFD packet to send [11:17:53]*** Cut start [11:17:53]*** Purtial cut [11:17:53]*** Stage 1: CUTSNS_PIN = 1 [11:17:53]Read from MH i2c: 01 [11:17:53]MH_I2C_Read... [11:17:53]*** Stop cut motor [11:17:53]*** Cut end [11:17:53]Read from MH i2c: 01 07 00 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: 01 07 00 24 17 00 00 00 00 00 FF 0F 50 [11:17:53]process_action close_receipt done [11:17:53]requested_data is exist [11:17:53]produce_requested_data [11:17:53]requested_item fm.sn is exist - process it [11:17:53]wFMCommunicate request_size=4 [11:17:53]MH_SAM_APDU [11:17:53]CAPDU: 80 11 00 00 [11:17:53]Write to MH i2c: E2 08 00 25 17 80 11 00 00 00 00 00 00 B6 [11:17:53]Write i2c OK [11:17:53]MH_I2C_Read... [11:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:53]Read from MH i2c: E2 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: E2 17 00 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: E2 17 00 25 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 01 [11:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:17:53]wFMCommunicate OK [11:17:53]requested_item fd.num is exist - process it [11:17:53]SAM_PROTO_GetFieldsCounters [11:17:53]wFMCommunicate request_size=4 [11:17:53]MH_SAM_APDU [11:17:53]CAPDU: 80 13 00 00 [11:17:53]Write to MH i2c: E2 08 00 26 17 80 13 00 00 00 00 00 00 B9 [11:17:53]Write i2c OK [11:17:53]MH_I2C_Read... [11:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:53]Read from MH i2c: E2 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: E2 62 00 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: E2 62 00 26 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C9 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [11:17:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C9 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:53]wFMCommunicate OK [11:17:53]SAM_PROTO_GetFieldsCounters done [11:17:53]requested_item shift.num is exist - process it [11:17:53]requested_item shift.opened is exist - process it [11:17:53]req_shift_opened [11:17:53]FM_GetShiftState [11:17:53]SAM_PROTO_GetShiftState [11:17:53]wFMCommunicate request_size=4 [11:17:53]MH_SAM_APDU [11:17:53]CAPDU: 80 13 01 00 [11:17:53]Write to MH i2c: E2 08 00 27 17 80 13 01 00 00 00 00 00 BB [11:17:53]Write i2c OK [11:17:53]MH_I2C_Read... [11:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:54]Read from MH i2c: E2 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 0E 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 0E 00 27 17 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 00 [11:17:54]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:17:54]wFMCommunicate OK [11:17:54]SAM_PROTO_GetShiftState done [11:17:54]FM_GetShiftState done [11:17:54]req_shift_opened done [11:17:54]requested_item shift.open_date is exist - process it [11:17:54]req_shift_open_date [11:17:54]req_shift_open_date done [11:17:54]produce_requested_data done [11:17:54]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49609,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [11:17:54]process_action_free close_receipt [11:17:54]json_value_free [11:17:54]json_value_free done [11:17:54]process_json_proto returns [11:17:54]Send response to host [11:17:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49609,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [11:17:54]free response buf [11:17:54]execute_script done [11:17:54]execute_script returns [11:17:54]free content buf [11:17:54]Sock 9.Close socket [11:17:54]Sock 9.Thread stoped [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:40]int [11:19:40]Write to MH i2c: 01 00 00 28 17 3F [11:19:40]*** FLAG_PRN_KEY set [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 07 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 07 00 28 17 00 08 00 00 00 FF 0F 5C [11:19:40]state=0 [11:19:40]Key pressed [11:19:40]Feed [11:19:40]Write to MH i2c: D8 00 00 29 17 17 [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: D8 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: D8 01 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: D8 01 00 29 17 00 18 [11:19:40]int [11:19:40]Write to MH i2c: 01 00 00 2A 17 41 [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 07 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 07 00 2A 17 00 48 00 00 00 3C 00 CC [11:19:40]state=2 [11:19:40]Key pressed [11:19:40]int [11:19:40]Write to MH i2c: 01 00 00 2B 17 42 [11:19:40]*** FLAG_PRN_KEY reset [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 07 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 07 00 2B 17 00 00 00 00 00 F5 0F 4D [11:19:40]state=2 [11:19:40]Stop feed [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]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: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: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: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:09]accept exits with 7 [11:22:09]New connection [11:22:09]New thread 3066944868 created [11:22:09]Thread 3066801508 joined [11:22:09]Waiting for new connection... [11:22:09] Sock 7.Parse request [11:22:09]Sock 7.Check first char [11:22:09]Sock 7.First char is OK [11:22:09]request: POST /json_proto HTTP/1.0 [11:22:09]Method: POST [11:22:09]URL: /json_proto [11:22:09]Method is POST - this is cgi request [11:22:09]url: /json_proto [11:22:09]query_string will be loaded in cgi processing [11:22:09]execute_cgi json_proto POST (null) [11:22:09]execute_cgi path=json_proto method=POST [11:22:09]POST find Content-Length [11:22:09]Host: 172.17.46.196:8080 [11:22:09]Content-Length: 1095 [11:22:09]Content-Type: application/json [11:22:09] [11:22:09]POST finish read [11:22:09]Found Content-Length = 1095 [11:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189800", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:09]execute_script... [11:22:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189800", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:09]POST & json_proto [11:22:09]process_json_proto [11:22:09]json parsed OK: [11:22:09]protocol is kg_v1.0 [11:22:09]action value=close_receipt [11:22:09]process_action close_receipt [11:22:09]cmd_close_receipt [11:22:09]MH_GetDate [11:22:09]Write to MH i2c: F0 00 00 2C 17 32 [11:22:09]Write i2c OK [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: F0 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: F0 09 00 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: F0 09 00 2C 17 00 E4 87 C0 66 07 E8 5D 66 7E [11:22:09]GetLastDocTimeStamp 1723893473 [11:22:09]current date 1723893732 [11:22:09]FM_GetShiftState [11:22:09]SAM_PROTO_GetShiftState [11:22:09]wFMCommunicate request_size=4 [11:22:09]MH_SAM_APDU [11:22:09]CAPDU: 80 13 01 00 [11:22:09]Write to MH i2c: E2 08 00 2D 17 80 13 01 00 00 00 00 00 C1 [11:22:09]Write i2c OK [11:22:09]MH_I2C_Read... [11:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:09]Read from MH i2c: E2 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: E2 0E 00 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: E2 0E 00 2D 17 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 06 [11:22:09]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:22:09]wFMCommunicate OK [11:22:09]SAM_PROTO_GetShiftState done [11:22:09]FM_GetShiftState done [11:22:09]opened in 1723853354 [11:22:09]opened+sec_in_day 1723939754 [11:22:09]quantity*price = 6500 [11:22:09]sum+1 = 6501 [11:22:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 0.00 Безнал.: 145.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 47 17.08.2024 11:22 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49610 ФПД: 240747001242571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T112212&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49610&fm=240747001242571&tin=02508201610067®Number=0000000000092546&sum=14500 0 [11:22:10]StoreToDocumentArchive [11:22:10]shift 465 fd 49610 [11:22:10]save to /storage/0465/doc_00049610 [11:22:10]save last doc name /storage/0465/doc_00049610 to /storage/kkm_last_doc_name [11:22:10]save OK [11:22:10]Clear old archive folders... [11:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=396 [11:22:10]tlvbuf is 018B8F20 [11:22:10]SAM_PROTO_ClearQueue [11:22:10]wFMCommunicate request_size=4 [11:22:10]MH_SAM_APDU [11:22:10]CAPDU: 80 09 00 00 [11:22:10]Write to MH i2c: E2 08 00 3A 17 80 09 00 00 00 00 00 00 C3 [11:22:10]Write i2c OK [11:22:10]MH_I2C_Read... [11:22:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:10]Read from MH i2c: E2 [11:22:10]MH_I2C_Read... [11:22:10]Read from MH i2c: E2 03 00 [11:22:10]MH_I2C_Read... [11:22:10]Read from MH i2c: E2 03 00 3A 17 00 90 00 C5 [11:22:10]RAPDU: 90 00 [11:22:10]wFMCommunicate OK [11:22:10]SAM_PROTO_ClearQueue done [11:22:10]KKMCreateOFDPacket [11:22:10]OFDProtocolAddRootSTLVToBuf [11:22:10]FM_MakeSignedData [11:22:10]FM_MakeSignedData [11:22:10]SAM_PROTO_SignData [11:22:10]wFMCommunicate request_size=4 [11:22:10]MH_SAM_APDU [11:22:10]CAPDU: 80 0D 01 02 [11:22:10]Write to MH i2c: E2 08 00 3B 17 80 0D 01 02 00 00 00 00 CB [11:22:10]Write i2c OK [11:22:10]MH_I2C_Read... [11:22:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:10]Read from MH i2c: E2 [11:22:10]MH_I2C_Read... [11:22:10]Read from MH i2c: E2 03 00 [11:22:10]MH_I2C_Read... [11:22:10]Read from MH i2c: E2 03 00 3B 17 00 90 00 C6 [11:22:10]RAPDU: 90 00 [11:22:10]wFMCommunicate OK [11:22:10]wFMCommunicate request_size=255 [11:22:10]MH_SAM_APDU [11:22:10]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF [11:22:10]Write to MH i2c: E2 02 01 3C 17 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 00 00 7E [11:22:10]Write i2c OK [11:22:10]MH_I2C_Read... [11:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:10]Read from MH i2c: E2 [11:22:10]MH_I2C_Read... [11:22:10]Read from MH i2c: E2 03 00 [11:22:10]MH_I2C_Read... [11:22:10]Read from MH i2c: E2 03 00 3C 17 00 90 00 C7 [11:22:10]RAPDU: 90 00 [11:22:10]wFMCommunicate OK [11:22:10]wFMCommunicate request_size=155 [11:22:10]MH_SAM_APDU [11:22:10]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E4 87 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CA C1 00 00 35 04 06 00 DA F5 47 7D 63 CB [11:22:10]Write to MH i2c: E2 9E 00 3D 17 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E4 87 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CA C1 00 00 35 04 06 00 DA F5 47 7D 63 CB 00 00 71 [11:22:10]Write i2c OK [11:22:10]MH_I2C_Read... [11:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:11]Read from MH i2c: E2 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 03 00 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 03 00 3D 17 00 90 00 C8 [11:22:11]RAPDU: 90 00 [11:22:11]wFMCommunicate OK [11:22:11]wFMCommunicate request_size=4 [11:22:11]MH_SAM_APDU [11:22:11]CAPDU: 80 0D 03 02 [11:22:11]Write to MH i2c: E2 08 00 3E 17 80 0D 03 02 00 00 00 00 D0 [11:22:11]Write i2c OK [11:22:11]MH_I2C_Read... [11:22:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:11]Read from MH i2c: E2 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 0B 00 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 0B 00 3E 17 00 95 74 65 FF F3 F8 98 3A 90 00 FB [11:22:11]RAPDU: 95 74 65 FF F3 F8 98 3A 90 00 [11:22:11]wFMCommunicate OK [11:22:11]SAM_PROTO_SignData done [11:22:11]FM_MakeSignedData done [11:22:11]CreateOFDProtocolMessage [11:22:11]wFMCommunicate request_size=4 [11:22:11]MH_SAM_APDU [11:22:11]CAPDU: 80 11 00 00 [11:22:11]Write to MH i2c: E2 08 00 3F 17 80 11 00 00 00 00 00 00 D0 [11:22:11]Write i2c OK [11:22:11]MH_I2C_Read... [11:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:11]Read from MH i2c: E2 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 17 00 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 17 00 3F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1B [11:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:22:11]wFMCommunicate OK [11:22:11]CreateOFDProtocolMessage done [11:22:11]OFDSenderStorePacket 49610 [11:22:11]StoreOFDPacket docnum=49610 [11:22:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A0 01 00 00 B7 24 98 01 88 57 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E4 87 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CA C1 00 00 35 04 06 00 DA F5 47 7D 63 CB 95 74 65 FF F3 F8 98 3A [11:22:11]CheckFolder [11:22:11]dirname=/storage/ofd_packets [11:22:11]CheckFolder done [11:22:11]ProducePacketName [11:22:11]name=ofd_packets/00049610 [11:22:11]NVStorageSaveData ofd_packets/00049610 [11:22:11]File name is /storage/ofd_packets/00049610 [11:22:11]Write 446 bytes [11:22:11]NVStorageSaveData done [11:22:11]OFDSenderStorePacket done [11:22:11]KKMCreateOFDPacket done [11:22:11]NVStorageSaveData kkm_last_timestamp [11:22:11]File name is /storage/kkm_last_timestamp [11:22:11]Write 4 bytes [11:22:11]NVStorageSaveData done [11:22:11]ExternCall_PrintAddStr [11:22:11]wPrintStart [11:22:11]Write to MH i2c: 01 00 00 40 17 57 [11:22:11]OFD Sender: Processing packet 49610 [packets to send 21, broken 20] [11:22:11]ProducePacketName [11:22:11]name=ofd_packets/00049610 [11:22:11]Write i2c OK [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: 01 [11:22:11]MH_I2C_Read... [11:22:11]OFD Sender: To server: pG, [11:22:11]CommunicateWithHost lk.salyk.kg:30040 [11:22:11]ConnectInit lk.salyk.kg [11:22:11]Read from MH i2c: 01 07 00 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: 01 07 00 40 17 00 00 00 00 00 FF 0F 6C [11:22:11]RasterBufferAndPrint [11:22:11]line Счет N : (3)189800 [11:22:11]line ИНН: 02508201610067 [11:22:11]line Контрольно-Кассовый Чек [11:22:11]line ПРОДАЖА [11:22:11]line Товар: 5449000027450 [11:22:11]line Напиток FuzeTea чай манго,ром 0,5л [11:22:11]line 1.000 * 65.00 [11:22:11]line = 65.00 [11:22:11]line НДС 12% НСП 1% [11:22:11]line > о реализуемом товаре [11:22:11]line Товар: 4700000160211 [11:22:11]line Вода Легенда 0,5л [11:22:11]line 2.000 * 40.00 [11:22:11]line = 80.00 [11:22:11]line НДС 12% НСП 1% [11:22:11]line > о реализуемом товаре [11:22:11]line ИТОГО: 145.00 [11:22:11]line НСП 1% : 1.28 [11:22:11]line НДС 12% : 15.40 [11:22:11]line Наличными: 0.00 [11:22:11]line Безнал.: 145.00 [11:22:11]line Место: АЗС № 95 "Партнер Нефть" [11:22:11]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:22:11]line СНО: Общий режим [11:22:11]line Чек 47 17.08.2024 11:22 [11:22:11]line Смена: 465 ФФД: 1.0 [11:22:11]line ЗНМ: 0300000078 [11:22:11]line РНМ: 0000000000092546 [11:22:11]line Версия ККМ: 001 [11:22:11]line Платежная система: O! деньги [11:22:11]line ФМ: 0000000000871800 [11:22:11]line ФД: 49610 [11:22:11]line ФПД: 240747001242571 [11:22:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T112212&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49610&fm=240747001242571&tin=02508201610067®Number=0000000000092546&sum=14500 [11:22:11]line 0 [11:22:11]written 0, free lines is 4095 [11:22:11]Connected sock=9 [11:22:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A0 01 00 00 B7 24 98 01 88 57 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E4 87 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CA C1 00 00 35 04 06 00 DA F5 47 7D 63 CB 95 74 65 FF F3 F8 98 3A [11:22:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E5 C7 47 00 A6 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CA C1 00 00 F4 03 04 00 21 33 C0 66 B6 04 01 00 00 33 2C 1E EE 51 12 5E 12 [11:22:11]CommunicateWithHost err = 0 [11:22:11]CheckOFDResponse [11:22:11]1017 (14) - 77093643461234 [11:22:11]1041 (16) - 0000000000871800 [11:22:11]1040 (4) - 49610 [11:22:11]1012 (4) - 17.08.2024 05:20 [11:22:12]1206 (1) - 0 [11:22:12]OFD Sender: Remove packet 49610 [11:22:12]ProducePacketName [11:22:12]name=ofd_packets/00049610 [11:22:12]NVStorageDeleteData [11:22:12]Write to MH i2c: 01 00 00 71 17 88 [11:22:12]Write i2c OK [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: 01 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: 01 07 00 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: 01 07 00 71 17 00 00 00 00 00 64 0C FF [11:22:12]RasterBufferAndPrint [11:22:12]line [11:22:12]line [11:22:12]line [11:22:12]line [11:22:12]line [11:22:12]written 0, free lines is 3180 [11:22:12]MH_Cut [11:22:12]Write to MH i2c: D1 01 00 78 17 01 61 [11:22:12]Write i2c OK [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: D1 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: D1 01 00 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: D1 01 00 78 17 00 60 [11:22:12]Write to MH i2c: 01 00 00 79 17 90 [11:22:12]Write i2c OK [11:22:12]MH_I2C_Read... [11:22:12]OFD Sender: No OFD packet to send [11:22:12]*** Cut start [11:22:12]*** Purtial cut [11:22:12]*** CUTSNS_PIN = 0 [11:22:13]*** Stage 1: CUTSNS_PIN = 1 [11:22:14]Read from MH i2c: 01 [11:22:14]MH_I2C_Read... [11:22:14]*** Stop cut motor [11:22:14]*** Cut end [11:22:14]Read from MH i2c: 01 07 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: 01 07 00 79 17 00 00 00 00 00 FF 0F A5 [11:22:14]process_action close_receipt done [11:22:14]requested_data is exist [11:22:14]produce_requested_data [11:22:14]requested_item fm.sn is exist - process it [11:22:14]wFMCommunicate request_size=4 [11:22:14]MH_SAM_APDU [11:22:14]CAPDU: 80 11 00 00 [11:22:14]Write to MH i2c: E2 08 00 7A 17 80 11 00 00 00 00 00 00 0B [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:14]Read from MH i2c: E2 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 17 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 17 00 7A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 56 [11:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:22:14]wFMCommunicate OK [11:22:14]requested_item fd.num is exist - process it [11:22:14]SAM_PROTO_GetFieldsCounters [11:22:14]wFMCommunicate request_size=4 [11:22:14]MH_SAM_APDU [11:22:14]CAPDU: 80 13 00 00 [11:22:14]Write to MH i2c: E2 08 00 7B 17 80 13 00 00 00 00 00 00 0E [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:15]Read from MH i2c: E2 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 62 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 62 00 7B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CA C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:22: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CA C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:15]wFMCommunicate OK [11:22:15]SAM_PROTO_GetFieldsCounters done [11:22:15]requested_item shift.num is exist - process it [11:22:15]requested_item shift.opened is exist - process it [11:22:15]req_shift_opened [11:22:15]FM_GetShiftState [11:22:15]SAM_PROTO_GetShiftState [11:22:15]wFMCommunicate request_size=4 [11:22:15]MH_SAM_APDU [11:22:15]CAPDU: 80 13 01 00 [11:22:15]Write to MH i2c: E2 08 00 7C 17 80 13 01 00 00 00 00 00 10 [11:22:15]Write i2c OK [11:22:15]MH_I2C_Read... [11:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:15]Read from MH i2c: E2 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 0E 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 0E 00 7C 17 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 55 [11:22:15]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:22:15]wFMCommunicate OK [11:22:15]SAM_PROTO_GetShiftState done [11:22:15]FM_GetShiftState done [11:22:15]req_shift_opened done [11:22:15]requested_item shift.open_date is exist - process it [11:22:15]req_shift_open_date [11:22:15]req_shift_open_date done [11:22:15]produce_requested_data done [11:22:15]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49610,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [11:22:15]process_action_free close_receipt [11:22:15]json_value_free [11:22:15]json_value_free done [11:22:15]process_json_proto returns [11:22:15]Send response to host [11:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49610,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [11:22:15]free response buf [11:22:15]execute_script done [11:22:15]execute_script returns [11:22:15]free content buf [11:22:15]Sock 7.Close socket [11:22:15]Sock 7.Thread stoped [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:31]int [11:26:31]Write to MH i2c: 01 00 00 7D 17 94 [11:26:31]*** FLAG_PRN_KEY set [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 7D 17 00 08 00 00 00 FF 0F B1 [11:26:31]state=0 [11:26:31]Key pressed [11:26:31]Feed [11:26:31]Write to MH i2c: D8 00 00 7E 17 6C [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: D8 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: D8 01 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: D8 01 00 7E 17 00 6D [11:26:31]int [11:26:31]Write to MH i2c: 01 00 00 7F 17 96 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 7F 17 00 48 00 00 00 3C 00 21 [11:26:31]state=2 [11:26:31]Key pressed [11:26:31]int [11:26:31]Write to MH i2c: 01 00 00 80 17 97 [11:26:31]*** FLAG_PRN_KEY reset [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 80 17 00 00 00 00 00 F7 0F A4 [11:26:31]state=2 [11:26:31]Stop feed [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]accept exits with 10 [11:31:57]New connection [11:31:57]New thread 3066801508 created [11:31:57]Thread 3066944868 joined [11:31:57]Waiting for new connection... [11:31:57] Sock 10.Parse request [11:31:57]Sock 10.Check first char [11:31:57]Sock 10.First char is OK [11:31:57]request: POST /json_proto HTTP/1.0 [11:31:57]Method: POST [11:31:57]URL: /json_proto [11:31:57]Method is POST - this is cgi request [11:31:57]url: /json_proto [11:31:57]query_string will be loaded in cgi processing [11:31:57]execute_cgi json_proto POST (null) [11:31:57]execute_cgi path=json_proto method=POST [11:31:57]POST find Content-Length [11:31:57]Host: 172.17.46.196:8080 [11:31:57]Content-Length: 635 [11:31:57]Content-Type: application/json [11:31:57] [11:31:57]POST finish read [11:31:57]Found Content-Length = 635 [11:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189801", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:57]execute_script... [11:31:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189801", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:57]POST & json_proto [11:31:57]process_json_proto [11:31:57]json parsed OK: [11:31:57]protocol is kg_v1.0 [11:31:57]action value=close_receipt [11:31:57]process_action close_receipt [11:31:57]cmd_close_receipt [11:31:57]MH_GetDate [11:31:57]Write to MH i2c: F0 00 00 81 17 87 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: F0 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: F0 09 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: F0 09 00 81 17 00 30 8A C0 66 07 E8 5D 66 22 [11:31:57]GetLastDocTimeStamp 1723893732 [11:31:57]current date 1723894320 [11:31:57]FM_GetShiftState [11:31:57]SAM_PROTO_GetShiftState [11:31:57]wFMCommunicate request_size=4 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 13 01 00 [11:31:57]Write to MH i2c: E2 08 00 82 17 80 13 01 00 00 00 00 00 16 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 0E 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 0E 00 82 17 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 5B [11:31:57]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:31:57]wFMCommunicate OK [11:31:57]SAM_PROTO_GetShiftState done [11:31:57]FM_GetShiftState done [11:31:57]opened in 1723853354 [11:31:57]opened+sec_in_day 1723939754 [11:31:57]quantity*price = 15000 [11:31:57]sum+1 = 15001 [11:31:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 48 17.08.2024 11:32 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49611 ФПД: 113103320233282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T113200&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49611&fm=113103320233282&tin=02508201610067®Number=0000000000092546&sum=15000 0 [11:31:58]StoreToDocumentArchive [11:31:58]shift 465 fd 49611 [11:31:58]save to /storage/0465/doc_00049611 [11:31:58]save last doc name /storage/0465/doc_00049611 to /storage/kkm_last_doc_name [11:31:58]save OK [11:31:58]Clear old archive folders... [11:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=268 [11:31:58]tlvbuf is 01864BB0 [11:31:58]SAM_PROTO_ClearQueue [11:31:58]wFMCommunicate request_size=4 [11:31:58]MH_SAM_APDU [11:31:58]CAPDU: 80 09 00 00 [11:31:58]Write to MH i2c: E2 08 00 8F 17 80 09 00 00 00 00 00 00 18 [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:58]Read from MH i2c: E2 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 03 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 03 00 8F 17 00 90 00 1A [11:31:58]RAPDU: 90 00 [11:31:58]wFMCommunicate OK [11:31:58]SAM_PROTO_ClearQueue done [11:31:58]KKMCreateOFDPacket [11:31:58]OFDProtocolAddRootSTLVToBuf [11:31:58]FM_MakeSignedData [11:31:58]FM_MakeSignedData [11:31:58]SAM_PROTO_SignData [11:31:58]wFMCommunicate request_size=4 [11:31:58]MH_SAM_APDU [11:31:58]CAPDU: 80 0D 01 02 [11:31:58]Write to MH i2c: E2 08 00 90 17 80 0D 01 02 00 00 00 00 20 [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:58]Read from MH i2c: E2 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 03 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 03 00 90 17 00 90 00 1B [11:31:58]RAPDU: 90 00 [11:31:58]wFMCommunicate OK [11:31:58]wFMCommunicate request_size=255 [11:31:58]MH_SAM_APDU [11:31:58]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 30 8A C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [11:31:58]Write to MH i2c: E2 02 01 91 17 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 30 8A C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 E8 [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:58]Read from MH i2c: E2 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 03 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 03 00 91 17 00 90 00 1C [11:31:58]RAPDU: 90 00 [11:31:58]wFMCommunicate OK [11:31:58]wFMCommunicate request_size=27 [11:31:58]MH_SAM_APDU [11:31:58]CAPDU: 80 0D 02 02 16 31 38 30 30 10 04 04 00 CB C1 00 00 35 04 06 00 66 DD EB 39 B5 42 [11:31:58]Write to MH i2c: E2 1E 00 92 17 80 0D 02 02 16 00 31 38 30 30 10 04 04 00 CB C1 00 00 35 04 06 00 66 DD EB 39 B5 42 00 00 59 [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 [11:31:58]MH_I2C_Read... [11:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:58]Read from MH i2c: E2 03 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 03 00 92 17 00 90 00 1D [11:31:58]RAPDU: 90 00 [11:31:58]wFMCommunicate OK [11:31:58]wFMCommunicate request_size=4 [11:31:58]MH_SAM_APDU [11:31:58]CAPDU: 80 0D 03 02 [11:31:58]Write to MH i2c: E2 08 00 93 17 80 0D 03 02 00 00 00 00 25 [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:58]Read from MH i2c: E2 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 0B 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 0B 00 93 17 00 51 F3 C2 86 73 40 1F 2D 90 00 B1 [11:31:58]RAPDU: 51 F3 C2 86 73 40 1F 2D 90 00 [11:31:58]wFMCommunicate OK [11:31:58]SAM_PROTO_SignData done [11:31:58]FM_MakeSignedData done [11:31:58]CreateOFDProtocolMessage [11:31:58]wFMCommunicate request_size=4 [11:31:58]MH_SAM_APDU [11:31:58]CAPDU: 80 11 00 00 [11:31:58]Write to MH i2c: E2 08 00 94 17 80 11 00 00 00 00 00 00 25 [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:58]Read from MH i2c: E2 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 17 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 17 00 94 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 70 [11:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:31:58]wFMCommunicate OK [11:31:58]CreateOFDProtocolMessage done [11:31:58]OFDSenderStorePacket 49611 [11:31:58]StoreOFDPacket docnum=49611 [11:31:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 96 BA 18 01 AA F2 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 30 8A C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CB C1 00 00 35 04 06 00 66 DD EB 39 B5 42 51 F3 C2 86 73 40 1F 2D [11:31:58]CheckFolder [11:31:58]dirname=/storage/ofd_packets [11:31:58]CheckFolder done [11:31:58]ProducePacketName [11:31:58]name=ofd_packets/00049611 [11:31:58]NVStorageSaveData ofd_packets/00049611 [11:31:58]File name is /storage/ofd_packets/00049611 [11:31:58]Write 318 bytes [11:31:58]NVStorageSaveData done [11:31:58]OFDSenderStorePacket done [11:31:58]KKMCreateOFDPacket done [11:31:58]NVStorageSaveData kkm_last_timestamp [11:31:58]File name is /storage/kkm_last_timestamp [11:31:58]Write 4 bytes [11:31:58]NVStorageSaveData done [11:31:58]ExternCall_PrintAddStr [11:31:58]wPrintStart [11:31:58]Write to MH i2c: 01 00 00 95 17 AC [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: 01 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: 01 07 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: 01 07 00 95 17 00 00 00 00 00 FF 0F C1 [11:31:58]RasterBufferAndPrint [11:31:58]line Счет N : (3)189801 [11:31:58]line ИНН: 02508201610067 [11:31:58]line Контрольно-Кассовый Чек [11:31:58]line ПРОДАЖА [11:31:58]line Товар: 40822938 [11:31:58]line Напиток Фанта 0,5л [11:31:58]line 2.000 * 75.00 [11:31:58]line = 150.00 [11:31:58]line НДС 12% НСП 1% [11:31:58]line > о реализуемом товаре [11:31:58]line ИТОГО: 150.00 [11:31:58]line НСП 1% : 1.33 [11:31:58]OFD Sender: Processing packet 49611 [packets to send 21, broken 20] [11:31:58]ProducePacketName [11:31:58]name=ofd_packets/00049611 [11:31:58]OFD Sender: To server: pG, [11:31:58]CommunicateWithHost lk.salyk.kg:30040 [11:31:58]ConnectInit lk.salyk.kg [11:31:58]line НДС 12% : 15.93 [11:31:58]line Наличными: 150.00 [11:31:58]line Безнал.: 0.00 [11:31:58]line Место: АЗС № 95 "Партнер Нефть" [11:31:58]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:31:58]line СНО: Общий режим [11:31:58]line Чек 48 17.08.2024 11:32 [11:31:58]line Смена: 465 ФФД: 1.0 [11:31:58]line ЗНМ: 0300000078 [11:31:58]line РНМ: 0000000000092546 [11:31:58]line Версия ККМ: 001 [11:31:58]line ФМ: 0000000000871800 [11:31:58]line ФД: 49611 [11:31:58]line ФПД: 113103320233282 [11:31:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T113200&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49611&fm=113103320233282&tin=02508201610067®Number=0000000000092546&sum=15000 [11:31:59]line 0 [11:31:59]written 0, free lines is 4095 [11:31:59]Write to MH i2c: 01 00 00 BD 17 D4 [11:31:59]Write i2c OK [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: 01 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: 01 07 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: 01 07 00 BD 17 00 00 00 00 00 F1 0C D8 [11:31:59]RasterBufferAndPrint [11:31:59]line [11:31:59]line [11:31:59]line [11:31:59]line [11:31:59]line [11:31:59]written 0, free lines is 3319 [11:31:59]MH_Cut [11:31:59]Write to MH i2c: D1 01 00 C4 17 01 AD [11:31:59]Write i2c OK [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: D1 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: D1 01 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: D1 01 00 C4 17 00 AC [11:31:59]Write to MH i2c: 01 00 00 C5 17 DC [11:31:59]Write i2c OK [11:31:59]MH_I2C_Read... [11:32:00]*** Cut start [11:32:00]*** Purtial cut [11:32:00]*** Stage 1: CUTSNS_PIN = 1 [11:32:00]Read from MH i2c: 01 [11:32:00]MH_I2C_Read... [11:32:00]*** Stop cut motor [11:32:00]*** Cut end [11:32:00]Read from MH i2c: 01 07 00 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: 01 07 00 C5 17 00 00 00 00 00 FF 0F F1 [11:32:00]process_action close_receipt done [11:32:00]requested_data is exist [11:32:00]produce_requested_data [11:32:00]requested_item fm.sn is exist - process it [11:32:00]wFMCommunicate request_size=4 [11:32:00]MH_SAM_APDU [11:32:00]CAPDU: 80 11 00 00 [11:32:00]Write to MH i2c: E2 08 00 C6 17 80 11 00 00 00 00 00 00 57 [11:32:00]Write i2c OK [11:32:00]MH_I2C_Read... [11:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:00]Read from MH i2c: E2 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: E2 17 00 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: E2 17 00 C6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A2 [11:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:32:00]wFMCommunicate OK [11:32:00]requested_item fd.num is exist - process it [11:32:00]SAM_PROTO_GetFieldsCounters [11:32:00]wFMCommunicate request_size=4 [11:32:00]MH_SAM_APDU [11:32:00]CAPDU: 80 13 00 00 [11:32:00]Write to MH i2c: E2 08 00 C7 17 80 13 00 00 00 00 00 00 5A [11:32:00]Write i2c OK [11:32:00]MH_I2C_Read... [11:32:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:00]Read from MH i2c: E2 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: E2 62 00 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: E2 62 00 C7 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CB C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [11:32: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CB C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:00]wFMCommunicate OK [11:32:00]SAM_PROTO_GetFieldsCounters done [11:32:00]requested_item shift.num is exist - process it [11:32:00]requested_item shift.opened is exist - process it [11:32:00]req_shift_opened [11:32:00]FM_GetShiftState [11:32:00]SAM_PROTO_GetShiftState [11:32:00]wFMCommunicate request_size=4 [11:32:00]MH_SAM_APDU [11:32:00]CAPDU: 80 13 01 00 [11:32:00]Write to MH i2c: E2 08 00 C8 17 80 13 01 00 00 00 00 00 5C [11:32:00]Write i2c OK [11:32:00]MH_I2C_Read... [11:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:00]Read from MH i2c: E2 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: E2 0E 00 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: E2 0E 00 C8 17 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 A1 [11:32:00]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:32:00]wFMCommunicate OK [11:32:00]SAM_PROTO_GetShiftState done [11:32:00]FM_GetShiftState done [11:32:00]req_shift_opened done [11:32:00]requested_item shift.open_date is exist - process it [11:32:00]req_shift_open_date [11:32:00]req_shift_open_date done [11:32:00]produce_requested_data done [11:32:00]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49611,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [11:32:00]process_action_free close_receipt [11:32:00]json_value_free [11:32:00]json_value_free done [11:32:00]process_json_proto returns [11:32:00]Send response to host [11:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49611,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [11:32:00]free response buf [11:32:00]execute_script done [11:32:00]execute_script returns [11:32:00]free content buf [11:32:00]Sock 10.Close socket [11:32:00]Sock 10.Thread stoped [11:34:12]ConnectInit Can't connect to host [11:34:12]CommunicateWithHost connect error [11:34:12]CommunicateWithHost err = -1 [11:34:12]OFD Sender: Server communicate error [11:34:17]OFD Sender: Processing packet 49611 [packets to send 21, broken 20] [11:34:17]ProducePacketName [11:34:17]name=ofd_packets/00049611 [11:34:17]OFD Sender: To server: pG, [11:34:17]CommunicateWithHost lk.salyk.kg:30040 [11:34:17]ConnectInit lk.salyk.kg [11:34:17]Connected sock=9 [11:34:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 96 BA 18 01 AA F2 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 30 8A C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CB C1 00 00 35 04 06 00 66 DD EB 39 B5 42 51 F3 C2 86 73 40 1F 2D [11:34:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F3 6A 47 00 1A 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CB C1 00 00 F4 03 04 00 F6 35 C0 66 B6 04 01 00 00 AA C6 FB FF A2 3E 37 C8 [11:34:17]CommunicateWithHost err = 0 [11:34:17]CheckOFDResponse [11:34:17]1017 (14) - 77093643461234 [11:34:17]1041 (16) - 0000000000871800 [11:34:17]1040 (4) - 49611 [11:34:17]1012 (4) - 17.08.2024 05:32 [11:34:17]1206 (1) - 0 [11:34:17]OFD Sender: Remove packet 49611 [11:34:17]ProducePacketName [11:34:17]name=ofd_packets/00049611 [11:34:17]NVStorageDeleteData [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:27]accept exits with 7 [11:48:27]New connection [11:48:27]New thread 3066944868 created [11:48:27]Thread 3066801508 joined [11:48:27]Waiting for new connection... [11:48:27] Sock 7.Parse request [11:48:27]Sock 7.Check first char [11:48:27]Sock 7.First char is OK [11:48:27]request: POST /json_proto HTTP/1.0 [11:48:27]Method: POST [11:48:27]URL: /json_proto [11:48:27]Method is POST - this is cgi request [11:48:27]url: /json_proto [11:48:27]query_string will be loaded in cgi processing [11:48:27]execute_cgi json_proto POST (null) [11:48:27]execute_cgi path=json_proto method=POST [11:48:27]POST find Content-Length [11:48:27]Host: 172.17.46.196:8080 [11:48:27]Content-Length: 735 [11:48:27]Content-Type: application/json [11:48:27] [11:48:27]POST finish read [11:48:27]Found Content-Length = 735 [11:48:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189802", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:27]execute_script... [11:48:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189802", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:27]POST & json_proto [11:48:27]process_json_proto [11:48:27]json parsed OK: [11:48:27]protocol is kg_v1.0 [11:48:27]action value=close_receipt [11:48:27]process_action close_receipt [11:48:27]cmd_close_receipt [11:48:27]MH_GetDate [11:48:27]Write to MH i2c: F0 00 00 C9 17 CF [11:48:27]Write i2c OK [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: F0 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: F0 09 00 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: F0 09 00 C9 17 00 0E 8E C0 66 07 E8 5D 66 4C [11:48:27]GetLastDocTimeStamp 1723894320 [11:48:27]current date 1723895310 [11:48:27]FM_GetShiftState [11:48:27]SAM_PROTO_GetShiftState [11:48:27]wFMCommunicate request_size=4 [11:48:27]MH_SAM_APDU [11:48:27]CAPDU: 80 13 01 00 [11:48:27]Write to MH i2c: E2 08 00 CA 17 80 13 01 00 00 00 00 00 5E [11:48:27]Write i2c OK [11:48:27]MH_I2C_Read... [11:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:27]Read from MH i2c: E2 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 0E 00 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 0E 00 CA 17 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 A3 [11:48:27]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:48:27]wFMCommunicate OK [11:48:27]SAM_PROTO_GetShiftState done [11:48:27]FM_GetShiftState done [11:48:27]opened in 1723853354 [11:48:27]opened+sec_in_day 1723939754 [11:48:27]quantity*price = 9000 [11:48:27]sum+1 = 9001 [11:48:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 49 17.08.2024 11:48 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49612 ФПД: 68763946512178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T114830&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49612&fm=68763946512178&tin=02508201610067®Number=0000000000092546&sum=9000 0 [11:48:28]StoreToDocumentArchive [11:48:28]shift 465 fd 49612 [11:48:28]save to /storage/0465/doc_00049612 [11:48:28]save last doc name /storage/0465/doc_00049612 to /storage/kkm_last_doc_name [11:48:28]save OK [11:48:28]Clear old archive folders... [11:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=310 [11:48:28]tlvbuf is 018D4B70 [11:48:28]SAM_PROTO_ClearQueue [11:48:28]wFMCommunicate request_size=4 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 09 00 00 [11:48:28]Write to MH i2c: E2 08 00 D7 17 80 09 00 00 00 00 00 00 60 [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 D7 17 00 90 00 62 [11:48:28]RAPDU: 90 00 [11:48:28]wFMCommunicate OK [11:48:28]SAM_PROTO_ClearQueue done [11:48:28]KKMCreateOFDPacket [11:48:28]OFDProtocolAddRootSTLVToBuf [11:48:28]FM_MakeSignedData [11:48:28]FM_MakeSignedData [11:48:28]SAM_PROTO_SignData [11:48:28]wFMCommunicate request_size=4 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 0D 01 02 [11:48:28]Write to MH i2c: E2 08 00 D8 17 80 0D 01 02 00 00 00 00 68 [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 D8 17 00 90 00 63 [11:48:28]RAPDU: 90 00 [11:48:28]wFMCommunicate OK [11:48:28]wFMCommunicate request_size=255 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 0E 8E C0 66 0E 04 04 00 D1 01 00 [11:48:28]Write to MH i2c: E2 02 01 D9 17 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 0E 8E C0 66 0E 04 04 00 D1 01 00 00 00 62 [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 D9 17 00 90 00 64 [11:48:28]RAPDU: 90 00 [11:48:28]wFMCommunicate OK [11:48:28]wFMCommunicate request_size=69 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CC C1 00 00 35 04 06 00 3E 8A 5A 9A EF 32 [11:48:28]Write to MH i2c: E2 48 00 DA 17 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CC C1 00 00 35 04 06 00 3E 8A 5A 9A EF 32 00 00 E3 [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 03 00 DA 17 00 90 00 65 [11:48:28]RAPDU: 90 00 [11:48:28]wFMCommunicate OK [11:48:28]wFMCommunicate request_size=4 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 0D 03 02 [11:48:28]Write to MH i2c: E2 08 00 DB 17 80 0D 03 02 00 00 00 00 6D [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 0B 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 0B 00 DB 17 00 AF 66 34 A6 C1 10 2C DD 90 00 37 [11:48:28]RAPDU: AF 66 34 A6 C1 10 2C DD 90 00 [11:48:28]wFMCommunicate OK [11:48:28]SAM_PROTO_SignData done [11:48:28]FM_MakeSignedData done [11:48:28]CreateOFDProtocolMessage [11:48:28]wFMCommunicate request_size=4 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 11 00 00 [11:48:28]Write to MH i2c: E2 08 00 DC 17 80 11 00 00 00 00 00 00 6D [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]OFD Sender: No OFD packet to send [11:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 17 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 17 00 DC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B8 [11:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:48:28]wFMCommunicate OK [11:48:28]CreateOFDProtocolMessage done [11:48:28]OFDSenderStorePacket 49612 [11:48:28]StoreOFDPacket docnum=49612 [11:48:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4A 01 00 00 73 C3 42 01 9A AE 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 0E 8E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CC C1 00 00 35 04 06 00 3E 8A 5A 9A EF 32 AF 66 34 A6 C1 10 2C DD [11:48:28]CheckFolder [11:48:28]dirname=/storage/ofd_packets [11:48:28]CheckFolder done [11:48:28]ProducePacketName [11:48:28]name=ofd_packets/00049612 [11:48:28]NVStorageSaveData ofd_packets/00049612 [11:48:28]File name is /storage/ofd_packets/00049612 [11:48:28]Write 360 bytes [11:48:28]NVStorageSaveData done [11:48:28]OFDSenderStorePacket done [11:48:28]KKMCreateOFDPacket done [11:48:28]NVStorageSaveData kkm_last_timestamp [11:48:28]File name is /storage/kkm_last_timestamp [11:48:28]Write 4 bytes [11:48:28]NVStorageSaveData done [11:48:28]ExternCall_PrintAddStr [11:48:28]wPrintStart [11:48:28]Write to MH i2c: 01 00 00 DD 17 F4 [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: 01 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: 01 07 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: 01 07 00 DD 17 00 00 00 00 00 FF 0F 09 [11:48:28]RasterBufferAndPrint [11:48:28]line Счет N : (3)189802 [11:48:28]line ИНН: 02508201610067 [11:48:28]line Контрольно-Кассовый Чек [11:48:28]line ПРОДАЖА [11:48:28]line Товар: 4870145004982 [11:48:28]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [11:48:28]line 1.000 * 90.00 [11:48:28]line = 90.00 [11:48:28]line НДС 12% НСП 1% [11:48:28]line > о реализуемом товаре [11:48:28]line ИТОГО: 90.00 [11:48:28]line НСП 1% : 0.80 [11:48:28]line НДС 12% : 9.56 [11:48:28]line Наличными: 90.00 [11:48:28]line Безнал.: 0.00 [11:48:28]line Место: АЗС № 95 "Партнер Нефть" [11:48:28]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:48:28]line СНО: Общий режим [11:48:28]line Чек 49 17.08.2024 11:48 [11:48:28]line Смена: 465 ФФД: 1.0 [11:48:28]line ЗНМ: 0300000078 [11:48:28]line РНМ: 0000000000092546 [11:48:28]line Версия ККМ: 001 [11:48:28]line ФМ: 0000000000871800 [11:48:28]line ФД: 49612 [11:48:28]line ФПД: 68763946512178 [11:48:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T114830&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49612&fm=68763946512178&tin=02508201610067®Number=0000000000092546&sum=9000 [11:48:28]line 0 [11:48:28]written 0, free lines is 4095 [11:48:28]OFD Sender: Processing packet 49612 [packets to send 21, broken 20] [11:48:28]ProducePacketName [11:48:28]name=ofd_packets/00049612 [11:48:28]OFD Sender: To server: pG, [11:48:28]CommunicateWithHost lk.salyk.kg:30040 [11:48:28]ConnectInit lk.salyk.kg [11:48:29]Connected sock=10 [11:48:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4A 01 00 00 73 C3 42 01 9A AE 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 0E 8E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CC C1 00 00 35 04 06 00 3E 8A 5A 9A EF 32 AF 66 34 A6 C1 10 2C DD [11:48:29]Write to MH i2c: 01 00 00 06 18 1E [11:48:29]Write i2c OK [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: 01 [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: 01 07 00 [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: 01 07 00 06 18 00 00 00 00 00 FB 0C 2C [11:48:29]RasterBufferAndPrint [11:48:29]line [11:48:29]line [11:48:29]line [11:48:29]line [11:48:29]line [11:48:29]written 0, free lines is 3332 [11:48:29]MH_Cut [11:48:29]Write to MH i2c: D1 01 00 0D 18 01 F7 [11:48:29]Write i2c OK [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: D1 [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: D1 01 00 [11:48:29]MH_I2C_Read... [11:48:29]Read from MH i2c: D1 01 00 0D 18 00 F6 [11:48:29]Write to MH i2c: 01 00 00 0E 18 26 [11:48:29]Write i2c OK [11:48:29]MH_I2C_Read... [11:48:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C2 4A 47 00 0A 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 31 38 30 30 10 04 04 00 CC C1 00 00 F4 03 04 00 4A 39 C0 66 B6 04 01 00 00 90 3C 21 EF 4B 76 B0 90 [11:48:29]CommunicateWithHost err = 0 [11:48:29]CheckOFDResponse [11:48:29]1017 (14) - 77093643461234 [11:48:29]1041 (16) - 0000000000871800 [11:48:29]1040 (4) - 49612 [11:48:29]1012 (4) - 17.08.2024 05:46 [11:48:29]1206 (1) - 0 [11:48:29]OFD Sender: Remove packet 49612 [11:48:29]ProducePacketName [11:48:29]name=ofd_packets/00049612 [11:48:29]NVStorageDeleteData [11:48:29]OFD Sender: No OFD packet to send [11:48:30]*** Cut start [11:48:30]*** Purtial cut [11:48:30]*** CUTSNS_PIN = 0 [11:48:30]*** Stage 1: CUTSNS_PIN = 1 [11:48:32]Read from MH i2c: 01 [11:48:32]MH_I2C_Read... [11:48:32]*** Stop cut motor [11:48:32]*** Cut end [11:48:32]Read from MH i2c: 01 07 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: 01 07 00 0E 18 00 00 00 00 00 FF 0F 3B [11:48:32]process_action close_receipt done [11:48:32]requested_data is exist [11:48:32]produce_requested_data [11:48:32]requested_item fm.sn is exist - process it [11:48:32]wFMCommunicate request_size=4 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 11 00 00 [11:48:32]Write to MH i2c: E2 08 00 0F 18 80 11 00 00 00 00 00 00 A1 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:32]Read from MH i2c: E2 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 17 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 17 00 0F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EC [11:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:48:32]wFMCommunicate OK [11:48:32]requested_item fd.num is exist - process it [11:48:32]SAM_PROTO_GetFieldsCounters [11:48:32]wFMCommunicate request_size=4 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 13 00 00 [11:48:32]Write to MH i2c: E2 08 00 10 18 80 13 00 00 00 00 00 00 A4 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:32]Read from MH i2c: E2 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 62 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 62 00 10 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CC C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [11:48: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CC C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:32]wFMCommunicate OK [11:48:32]SAM_PROTO_GetFieldsCounters done [11:48:32]requested_item shift.num is exist - process it [11:48:32]requested_item shift.opened is exist - process it [11:48:32]req_shift_opened [11:48:32]FM_GetShiftState [11:48:32]SAM_PROTO_GetShiftState [11:48:32]wFMCommunicate request_size=4 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 13 01 00 [11:48:32]Write to MH i2c: E2 08 00 11 18 80 13 01 00 00 00 00 00 A6 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:32]Read from MH i2c: E2 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 0E 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 0E 00 11 18 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 EB [11:48:32]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:48:32]wFMCommunicate OK [11:48:32]SAM_PROTO_GetShiftState done [11:48:32]FM_GetShiftState done [11:48:32]req_shift_opened done [11:48:32]requested_item shift.open_date is exist - process it [11:48:32]req_shift_open_date [11:48:32]req_shift_open_date done [11:48:32]produce_requested_data done [11:48:32]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49612,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [11:48:32]process_action_free close_receipt [11:48:32]json_value_free [11:48:32]json_value_free done [11:48:32]process_json_proto returns [11:48:32]Send response to host [11:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49612,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [11:48:32]free response buf [11:48:32]execute_script done [11:48:32]execute_script returns [11:48:32]free content buf [11:48:32]Sock 7.Close socket [11:48:32]Sock 7.Thread stoped [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:45]accept exits with 9 [11:50:45]New connection [11:50:45]New thread 3066801508 created [11:50:45]Thread 3066944868 joined [11:50:45]Waiting for new connection... [11:50:45] Sock 9.Parse request [11:50:45]Sock 9.Check first char [11:50:45]Sock 9.First char is OK [11:50:45]request: POST /json_proto HTTP/1.0 [11:50:45]Method: POST [11:50:45]URL: /json_proto [11:50:45]Method is POST - this is cgi request [11:50:45]url: /json_proto [11:50:45]query_string will be loaded in cgi processing [11:50:45]execute_cgi json_proto POST (null) [11:50:45]execute_cgi path=json_proto method=POST [11:50:45]POST find Content-Length [11:50:45]Host: 172.17.46.196:8080 [11:50:45]Content-Length: 620 [11:50:45]Content-Type: application/json [11:50:45] [11:50:45]POST finish read [11:50:45]Found Content-Length = 620 [11:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189803", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:45]execute_script... [11:50: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 : (3)189803", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:45]POST & json_proto [11:50:45]process_json_proto [11:50:45]json parsed OK: [11:50:45]protocol is kg_v1.0 [11:50:45]action value=close_receipt [11:50:45]process_action close_receipt [11:50:45]cmd_close_receipt [11:50:45]MH_GetDate [11:50:45]Write to MH i2c: F0 00 00 12 18 19 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: F0 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: F0 09 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: F0 09 00 12 18 00 98 8E C0 66 07 E8 5D 66 20 [11:50:45]GetLastDocTimeStamp 1723895310 [11:50:45]current date 1723895448 [11:50:45]FM_GetShiftState [11:50:45]SAM_PROTO_GetShiftState [11:50:45]wFMCommunicate request_size=4 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 13 01 00 [11:50:45]Write to MH i2c: E2 08 00 13 18 80 13 01 00 00 00 00 00 A8 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 0E 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 0E 00 13 18 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 ED [11:50:45]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:50:45]wFMCommunicate OK [11:50:45]SAM_PROTO_GetShiftState done [11:50:45]FM_GetShiftState done [11:50:45]opened in 1723853354 [11:50:45]opened+sec_in_day 1723939754 [11:50:45]quantity*price = 13500 [11:50:45]sum+1 = 13501 [11:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 50 17.08.2024 11:50 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49613 ФПД: 61342424297008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T115048&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49613&fm=61342424297008&tin=02508201610067®Number=0000000000092546&sum=13500 0 [11:50:46]StoreToDocumentArchive [11:50:46]shift 465 fd 49613 [11:50:46]save to /storage/0465/doc_00049613 [11:50:46]save last doc name /storage/0465/doc_00049613 to /storage/kkm_last_doc_name [11:50:46]save OK [11:50:46]Clear old archive folders... [11:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=272 [11:50:46]tlvbuf is 01898130 [11:50:46]SAM_PROTO_ClearQueue [11:50:46]wFMCommunicate request_size=4 [11:50:46]MH_SAM_APDU [11:50:46]CAPDU: 80 09 00 00 [11:50:46]Write to MH i2c: E2 08 00 20 18 80 09 00 00 00 00 00 00 AA [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:46]Read from MH i2c: E2 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 03 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 03 00 20 18 00 90 00 AC [11:50:46]RAPDU: 90 00 [11:50:46]wFMCommunicate OK [11:50:46]SAM_PROTO_ClearQueue done [11:50:46]KKMCreateOFDPacket [11:50:46]OFDProtocolAddRootSTLVToBuf [11:50:46]FM_MakeSignedData [11:50:46]FM_MakeSignedData [11:50:46]SAM_PROTO_SignData [11:50:46]wFMCommunicate request_size=4 [11:50:46]MH_SAM_APDU [11:50:46]CAPDU: 80 0D 01 02 [11:50:46]Write to MH i2c: E2 08 00 21 18 80 0D 01 02 00 00 00 00 B2 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:46]Read from MH i2c: E2 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 03 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 03 00 21 18 00 90 00 AD [11:50:46]RAPDU: 90 00 [11:50:46]wFMCommunicate OK [11:50:46]wFMCommunicate request_size=255 [11:50:46]MH_SAM_APDU [11:50:46]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 98 8E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [11:50:46]Write to MH i2c: E2 02 01 22 18 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 98 8E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 BE [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:46]Read from MH i2c: E2 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 03 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 03 00 22 18 00 90 00 AE [11:50:46]RAPDU: 90 00 [11:50:46]wFMCommunicate OK [11:50:46]wFMCommunicate request_size=31 [11:50:46]MH_SAM_APDU [11:50:46]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 CD C1 00 00 35 04 06 00 37 CA 65 68 EE 30 [11:50:46]Write to MH i2c: E2 22 00 23 18 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 CD C1 00 00 35 04 06 00 37 CA 65 68 EE 30 00 00 52 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:46]Read from MH i2c: E2 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 03 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 03 00 23 18 00 90 00 AF [11:50:46]RAPDU: 90 00 [11:50:46]wFMCommunicate OK [11:50:46]wFMCommunicate request_size=4 [11:50:46]MH_SAM_APDU [11:50:46]CAPDU: 80 0D 03 02 [11:50:46]Write to MH i2c: E2 08 00 24 18 80 0D 03 02 00 00 00 00 B7 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:46]Read from MH i2c: E2 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 0B 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 0B 00 24 18 00 D9 6F B2 9F 77 A9 67 EE 90 00 C6 [11:50:46]RAPDU: D9 6F B2 9F 77 A9 67 EE 90 00 [11:50:46]wFMCommunicate OK [11:50:46]SAM_PROTO_SignData done [11:50:46]FM_MakeSignedData done [11:50:46]CreateOFDProtocolMessage [11:50:46]wFMCommunicate request_size=4 [11:50:46]MH_SAM_APDU [11:50:46]CAPDU: 80 11 00 00 [11:50:46]Write to MH i2c: E2 08 00 25 18 80 11 00 00 00 00 00 00 B7 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:46]Read from MH i2c: E2 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 17 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 17 00 25 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 02 [11:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:50:46]wFMCommunicate OK [11:50:46]CreateOFDProtocolMessage done [11:50:46]OFDSenderStorePacket 49613 [11:50:46]StoreOFDPacket docnum=49613 [11:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 FB 7A 1C 01 48 D5 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 98 8E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CD C1 00 00 35 04 06 00 37 CA 65 68 EE 30 D9 6F B2 9F 77 A9 67 EE [11:50:46]CheckFolder [11:50:46]dirname=/storage/ofd_packets [11:50:46]CheckFolder done [11:50:46]ProducePacketName [11:50:46]name=ofd_packets/00049613 [11:50:46]NVStorageSaveData ofd_packets/00049613 [11:50:46]File name is /storage/ofd_packets/00049613 [11:50:46]Write 322 bytes [11:50:46]NVStorageSaveData done [11:50:46]OFDSenderStorePacket done [11:50:46]KKMCreateOFDPacket done [11:50:46]NVStorageSaveData kkm_last_timestamp [11:50:46]File name is /storage/kkm_last_timestamp [11:50:46]Write 4 bytes [11:50:46]NVStorageSaveData done [11:50:46]ExternCall_PrintAddStr [11:50:46]wPrintStart [11:50:46]Write to MH i2c: 01 00 00 26 18 3E [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: 01 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: 01 07 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: 01 07 00 26 18 00 00 00 00 00 FF 0F 53 [11:50:46]RasterBufferAndPrint [11:50:46]line Счет N : (3)189803 [11:50:46]line ИНН: 02508201610067 [11:50:46]line Контрольно-Кассовый Чек [11:50:46]line ПРОДАЖА [11:50:46]line Товар: 48745000 [11:50:46]line Сигареты Winston Purple Mix [11:50:46]line 1.000 * 135.00 [11:50:46]line = 135.00 [11:50:46]line НДС 12% НСП 1% [11:50:46]line > о реализуемом товаре [11:50:46]line ИТОГО: 135.00 [11:50:46]line НСП 1% : 1.19 [11:50:46]line НДС 12% : 14.34 [11:50:46]line Наличными: 135.00 [11:50:46]line Безнал.: 0.00 [11:50:46]line Место: АЗС № 95 "Партнер Нефть" [11:50:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:50:46]line СНО: Общий режим [11:50:46]line Чек 50 17.08.2024 11:50 [11:50:46]line Смена: 465 ФФД: 1.0 [11:50:46]line ЗНМ: 0300000078 [11:50:46]line РНМ: 0000000000092546 [11:50:46]line Версия ККМ: 001 [11:50:46]line ФМ: 0000000000871800 [11:50:46]line ФД: 49613 [11:50:46]line ФПД: 61342424297008 [11:50:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T115048&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49613&fm=61342424297008&tin=02508201610067®Number=0000000000092546&sum=13500 [11:50:47]OFD Sender: Processing packet 49613 [packets to send 21, broken 20] [11:50:47]ProducePacketName [11:50:47]name=ofd_packets/00049613 [11:50:47]OFD Sender: To server: pG, [11:50:47]CommunicateWithHost lk.salyk.kg:30040 [11:50:47]ConnectInit lk.salyk.kg [11:50:47]line 0 [11:50:47]written 0, free lines is 4095 [11:50:47]Connected sock=10 [11:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 FB 7A 1C 01 48 D5 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 98 8E C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CD C1 00 00 35 04 06 00 37 CA 65 68 EE 30 D9 6F B2 9F 77 A9 67 EE [11:50:47]Write to MH i2c: 01 00 00 4E 18 66 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: 01 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: 01 07 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: 01 07 00 4E 18 00 00 00 00 00 EA 0C 63 [11:50:47]RasterBufferAndPrint [11:50:47]line [11:50:47]line [11:50:47]line [11:50:47]line [11:50:47]line [11:50:47]written 0, free lines is 3312 [11:50:47]MH_Cut [11:50:47]Write to MH i2c: D1 01 00 55 18 01 3F [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: D1 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: D1 01 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: D1 01 00 55 18 00 3E [11:50:47]Write to MH i2c: 01 00 00 56 18 6E [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4D 84 47 00 39 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CD C1 00 00 F4 03 04 00 D4 39 C0 66 B6 04 01 00 00 B2 FC CC E3 48 95 47 6D [11:50:47]CommunicateWithHost err = 0 [11:50:47]CheckOFDResponse [11:50:47]1017 (14) - 77093643461234 [11:50:47]1041 (16) - 0000000000871800 [11:50:47]1040 (4) - 49613 [11:50:47]1012 (4) - 17.08.2024 05:49 [11:50:47]1206 (1) - 0 [11:50:47]OFD Sender: Remove packet 49613 [11:50:47]ProducePacketName [11:50:47]name=ofd_packets/00049613 [11:50:47]NVStorageDeleteData [11:50:48]OFD Sender: No OFD packet to send [11:50:48]*** Cut start [11:50:48]*** Purtial cut [11:50:48]*** Stage 1: CUTSNS_PIN = 1 [11:50:48]Read from MH i2c: 01 [11:50:48]MH_I2C_Read... [11:50:48]*** Stop cut motor [11:50:48]*** Cut end [11:50:48]Read from MH i2c: 01 07 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: 01 07 00 56 18 00 00 00 00 00 FF 0F 83 [11:50:48]process_action close_receipt done [11:50:48]requested_data is exist [11:50:48]produce_requested_data [11:50:48]requested_item fm.sn is exist - process it [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 11 00 00 [11:50:48]Write to MH i2c: E2 08 00 57 18 80 11 00 00 00 00 00 00 E9 [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 17 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 17 00 57 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 34 [11:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:50:48]wFMCommunicate OK [11:50:48]requested_item fd.num is exist - process it [11:50:48]SAM_PROTO_GetFieldsCounters [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 13 00 00 [11:50:48]Write to MH i2c: E2 08 00 58 18 80 13 00 00 00 00 00 00 EC [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 62 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 62 00 58 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CD C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [11:50: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CD C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:48]wFMCommunicate OK [11:50:48]SAM_PROTO_GetFieldsCounters done [11:50:48]requested_item shift.num is exist - process it [11:50:48]requested_item shift.opened is exist - process it [11:50:48]req_shift_opened [11:50:48]FM_GetShiftState [11:50:48]SAM_PROTO_GetShiftState [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 13 01 00 [11:50:48]Write to MH i2c: E2 08 00 59 18 80 13 01 00 00 00 00 00 EE [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:48]Read from MH i2c: E2 0E 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 0E 00 59 18 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 33 [11:50:48]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:50:48]wFMCommunicate OK [11:50:48]SAM_PROTO_GetShiftState done [11:50:48]FM_GetShiftState done [11:50:48]req_shift_opened done [11:50:48]requested_item shift.open_date is exist - process it [11:50:48]req_shift_open_date [11:50:48]req_shift_open_date done [11:50:48]produce_requested_data done [11:50:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49613,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [11:50:48]process_action_free close_receipt [11:50:48]json_value_free [11:50:48]json_value_free done [11:50:48]process_json_proto returns [11:50:48]Send response to host [11:50:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49613,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [11:50:48]free response buf [11:50:48]execute_script done [11:50:48]execute_script returns [11:50:48]free content buf [11:50:48]Sock 9.Close socket [11:50:48]Sock 9.Thread stoped [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:25]int [11:57:25]Write to MH i2c: 01 00 00 5A 18 72 [11:57:25]*** FLAG_PRN_KEY set [11:57:25]Write i2c OK [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: 01 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: 01 07 00 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: 01 07 00 5A 18 00 08 00 00 00 FF 0F 8F [11:57:25]state=0 [11:57:25]Key pressed [11:57:25]Feed [11:57:25]Write to MH i2c: D8 00 00 5B 18 4A [11:57:25]Write i2c OK [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: D8 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: D8 01 00 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: D8 01 00 5B 18 00 4B [11:57:25]int [11:57:25]Write to MH i2c: 01 00 00 5C 18 74 [11:57:25]Write i2c OK [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: 01 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: 01 07 00 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: 01 07 00 5C 18 00 48 00 00 00 3C 00 FF [11:57:25]state=2 [11:57:25]Key pressed [11:57:25]int [11:57:25]Write to MH i2c: 01 00 00 5D 18 75 [11:57:25]*** FLAG_PRN_KEY reset [11:57:25]Write i2c OK [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: 01 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: 01 07 00 [11:57:25]MH_I2C_Read... [11:57:25]Read from MH i2c: 01 07 00 5D 18 00 00 00 00 00 F6 0F 81 [11:57:25]state=2 [11:57:25]Stop feed [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:56]accept exits with 7 [11:57:56]New connection [11:57:56]New thread 3066944868 created [11:57:56]Thread 3066801508 joined [11:57:56]Waiting for new connection... [11:57:56] Sock 7.Parse request [11:57:56]Sock 7.Check first char [11:57:56]Sock 7.First char is OK [11:57:56]request: POST /json_proto HTTP/1.0 [11:57:56]Method: POST [11:57:56]URL: /json_proto [11:57:56]Method is POST - this is cgi request [11:57:56]url: /json_proto [11:57:56]query_string will be loaded in cgi processing [11:57:56]execute_cgi json_proto POST (null) [11:57:56]execute_cgi path=json_proto method=POST [11:57:56]POST find Content-Length [11:57:56]Host: 172.17.46.196:8080 [11:57:56]Content-Length: 756 [11:57:56]Content-Type: application/json [11:57:56] [11:57:56]POST finish read [11:57:56]Found Content-Length = 756 [11:57:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30039368", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:56]execute_script... [11:57: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)11326131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30039368", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:56]POST & json_proto [11:57:56]process_json_proto [11:57:56]json parsed OK: [11:57:56]protocol is kg_v1.0 [11:57:56]action value=close_receipt [11:57:56]process_action close_receipt [11:57:56]cmd_close_receipt [11:57:56]MH_GetDate [11:57:56]Write to MH i2c: F0 00 00 5E 18 65 [11:57:56]Write i2c OK [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: F0 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: F0 09 00 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: F0 09 00 5E 18 00 47 90 C0 66 07 E8 5D 66 1D [11:57:56]GetLastDocTimeStamp 1723895448 [11:57:56]current date 1723895879 [11:57:56]FM_GetShiftState [11:57:56]SAM_PROTO_GetShiftState [11:57:56]wFMCommunicate request_size=4 [11:57:56]MH_SAM_APDU [11:57:56]CAPDU: 80 13 01 00 [11:57:56]Write to MH i2c: E2 08 00 5F 18 80 13 01 00 00 00 00 00 F4 [11:57:56]Write i2c OK [11:57:56]MH_I2C_Read... [11:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:56]Read from MH i2c: E2 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 0E 00 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 0E 00 5F 18 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 39 [11:57:56]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:57:56]wFMCommunicate OK [11:57:56]SAM_PROTO_GetShiftState done [11:57:56]FM_GetShiftState done [11:57:56]opened in 1723853354 [11:57:56]opened+sec_in_day 1723939754 [11:57:56]quantity*price = 0 [11:57:56]sum+1 = 1 [11:57:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 51 17.08.2024 11:57 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30039368 ФМ: 0000000000871800 ФД: 49614 ФПД: 236981148869962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T115759&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49614&fm=236981148869962&tin=02508201610067®Number=0000000000092546&sum=0 [11:57:57]StoreToDocumentArchive [11:57:57]shift 465 fd 49614 [11:57:57]save to /storage/0465/doc_00049614 [11:57:57]save last doc name /storage/0465/doc_00049614 to /storage/kkm_last_doc_name [11:57:57]save OK [11:57:57]Clear old archive folders... [11:57:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:57]tlvbuf is 01864FD0 [11:57:57]SAM_PROTO_ClearQueue [11:57:57]wFMCommunicate request_size=4 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 09 00 00 [11:57:57]Write to MH i2c: E2 08 00 6C 18 80 09 00 00 00 00 00 00 F6 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 6C 18 00 90 00 F8 [11:57:57]RAPDU: 90 00 [11:57:57]wFMCommunicate OK [11:57:57]SAM_PROTO_ClearQueue done [11:57:57]KKMCreateOFDPacket [11:57:57]OFDProtocolAddRootSTLVToBuf [11:57:57]FM_MakeSignedData [11:57:57]FM_MakeSignedData [11:57:57]SAM_PROTO_SignData [11:57:57]wFMCommunicate request_size=4 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 0D 01 02 [11:57:57]Write to MH i2c: E2 08 00 6D 18 80 0D 01 02 00 00 00 00 FE [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 6D 18 00 90 00 F9 [11:57:57]RAPDU: 90 00 [11:57:57]wFMCommunicate OK [11:57:57]wFMCommunicate request_size=255 [11:57:57]MH_SAM_APDU [11:57: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 34 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 33 00 00 00 F4 03 04 00 47 90 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CE C1 00 00 35 04 06 00 D7 [11:57:57]Write to MH i2c: E2 02 01 6E 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 33 00 00 00 F4 03 04 00 47 90 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CE C1 00 00 35 04 06 00 D7 00 00 D6 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 6E 18 00 90 00 FA [11:57:57]RAPDU: 90 00 [11:57:57]wFMCommunicate OK [11:57:57]wFMCommunicate request_size=10 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 0D 02 02 05 88 79 32 65 4A [11:57:57]Write to MH i2c: E2 0D 00 6F 18 80 0D 02 02 05 00 88 79 32 65 4A 00 00 ED [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 6F 18 00 90 00 FB [11:57:57]RAPDU: 90 00 [11:57:57]wFMCommunicate OK [11:57:57]wFMCommunicate request_size=4 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 0D 03 02 [11:57:57]Write to MH i2c: E2 08 00 70 18 80 0D 03 02 00 00 00 00 03 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 0B 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 0B 00 70 18 00 D0 6D ED 12 53 A4 E0 96 90 00 AD [11:57:57]RAPDU: D0 6D ED 12 53 A4 E0 96 90 00 [11:57:57]wFMCommunicate OK [11:57:57]SAM_PROTO_SignData done [11:57:57]FM_MakeSignedData done [11:57:57]CreateOFDProtocolMessage [11:57:57]wFMCommunicate request_size=4 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 11 00 00 [11:57:57]Write to MH i2c: E2 08 00 71 18 80 11 00 00 00 00 00 00 03 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 17 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 17 00 71 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4E [11:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:57:57]wFMCommunicate OK [11:57:57]CreateOFDProtocolMessage done [11:57:57]OFDSenderStorePacket 49614 [11:57:57]StoreOFDPacket docnum=49614 [11:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 FF 00 07 01 CA DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 33 00 00 00 F4 03 04 00 47 90 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CE C1 00 00 35 04 06 00 D7 88 79 32 65 4A D0 6D ED 12 53 A4 E0 96 [11:57:57]CheckFolder [11:57:57]dirname=/storage/ofd_packets [11:57:57]CheckFolder done [11:57:57]ProducePacketName [11:57:57]name=ofd_packets/00049614 [11:57:57]NVStorageSaveData ofd_packets/00049614 [11:57:57]File name is /storage/ofd_packets/00049614 [11:57:57]Write 301 bytes [11:57:57]NVStorageSaveData done [11:57:57]OFDSenderStorePacket done [11:57:57]KKMCreateOFDPacket done [11:57:57]NVStorageSaveData kkm_last_timestamp [11:57:57]File name is /storage/kkm_last_timestamp [11:57:57]Write 4 bytes [11:57:57]NVStorageSaveData done [11:57:57]ExternCall_PrintAddStr [11:57:57]wPrintStart [11:57:57]Write to MH i2c: 01 00 00 72 18 8A [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: 01 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: 01 07 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: 01 07 00 72 18 00 00 00 00 00 FF 0F 9F [11:57:57]RasterBufferAndPrint [11:57:57]line Счет N : (1)11326131 [11:57:57]line ИНН: 02508201610067 [11:57:57]line Контрольно-Кассовый Чек [11:57:57]line ПРОДАЖА [11:57:57]line ТРК (МРК, ГНК) : 12 [11:57:57]line Товар: 2710124130 [11:57:57]line Аи-92-К-4 [11:57:57]line 20.000 * 0.00 [11:57:57]line = 0.00 [11:57:57]line НДС 12% НСП 1% [11:57:57]line > о реализуемом товаре [11:57:57]line ИТОГО: 0.00 [11:57:57]line НСП 1% : 0.00 [11:57:57]line НДС 12% : 0.00 [11:57:57]line Наличными: 0.00 [11:57:57]line Безнал.: 0.00 [11:57:57]line Место: АЗС № 95 "Партнер Нефть" [11:57:57]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:57:57]line СНО: Общий режим [11:57:57]line Чек 51 17.08.2024 11:57 [11:57:57]line Смена: 465 ФФД: 1.0 [11:57:57]line ЗНМ: 0300000078 [11:57:57]line РНМ: 0000000000092546 [11:57:57]line Версия ККМ: 001 [11:57:57]line Талоны: ТК ГПНА Online [11:57:57]line 30039368 [11:57:57]line ФМ: 0000000000871800 [11:57:57]line ФД: 49614 [11:57:57]line ФПД: 236981148869962 [11:57:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T115759&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49614&fm=236981148869962&tin=02508201610067®Number=0000000000092546&sum=0 [11:57:58]written 0, free lines is 4095 [11:57:58]OFD Sender: Processing packet 49614 [packets to send 21, broken 20] [11:57:58]ProducePacketName [11:57:58]name=ofd_packets/00049614 [11:57:58]OFD Sender: To server: pG, [11:57:58]CommunicateWithHost lk.salyk.kg:30040 [11:57:58]ConnectInit lk.salyk.kg [11:57:58]Connected sock=10 [11:57:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 FF 00 07 01 CA DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 33 00 00 00 F4 03 04 00 47 90 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CE C1 00 00 35 04 06 00 D7 88 79 32 65 4A D0 6D ED 12 53 A4 E0 96 [11:57:58]Write to MH i2c: 01 00 00 9C 18 B4 [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: 01 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: 01 07 00 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: 01 07 00 9C 18 00 00 00 00 00 D5 0C 9C [11:57:58]RasterBufferAndPrint [11:57:58]line [11:57:58]line [11:57:58]line [11:57:58]line [11:57:58]line [11:57:58]written 0, free lines is 3291 [11:57:58]MH_Cut [11:57:58]Write to MH i2c: D1 01 00 A3 18 01 8D [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: D1 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: D1 01 00 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: D1 01 00 A3 18 00 8C [11:57:58]Write to MH i2c: 01 00 00 A4 18 BC [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FA CF 47 00 13 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CE C1 00 00 F4 03 04 00 83 3B C0 66 B6 04 01 00 00 8D 5A 3B B5 09 C2 26 A6 [11:57:58]CommunicateWithHost err = 0 [11:57:58]CheckOFDResponse [11:57:58]1017 (14) - 77093643461234 [11:57:58]1041 (16) - 0000000000871800 [11:57:58]1040 (4) - 49614 [11:57:58]1012 (4) - 17.08.2024 05:56 [11:57:58]1206 (1) - 0 [11:57:58]OFD Sender: Remove packet 49614 [11:57:58]ProducePacketName [11:57:58]name=ofd_packets/00049614 [11:57:58]NVStorageDeleteData [11:57:59]OFD Sender: No OFD packet to send [11:57:59]*** Cut start [11:57:59]*** Purtial cut [11:57:59]*** CUTSNS_PIN = 0 [11:57:59]*** Stage 1: CUTSNS_PIN = 1 [11:58:01]Read from MH i2c: 01 [11:58:01]*** Stop cut motor [11:58:01]*** Cut end [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: 01 07 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: 01 07 00 A4 18 00 00 00 00 00 FF 0F D1 [11:58:01]process_action close_receipt done [11:58:01]requested_data is exist [11:58:01]produce_requested_data [11:58:01]requested_item fm.sn is exist - process it [11:58:01]wFMCommunicate request_size=4 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 11 00 00 [11:58:01]Write to MH i2c: E2 08 00 A5 18 80 11 00 00 00 00 00 00 37 [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 17 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 17 00 A5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 82 [11:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:58:01]wFMCommunicate OK [11:58:01]requested_item fd.num is exist - process it [11:58:01]SAM_PROTO_GetFieldsCounters [11:58:01]wFMCommunicate request_size=4 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 13 00 00 [11:58:01]Write to MH i2c: E2 08 00 A6 18 80 13 00 00 00 00 00 00 3A [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 62 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 62 00 A6 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CE C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [11:58: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CE C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:01]wFMCommunicate OK [11:58:01]SAM_PROTO_GetFieldsCounters done [11:58:01]requested_item shift.num is exist - process it [11:58:01]requested_item shift.opened is exist - process it [11:58:01]req_shift_opened [11:58:01]FM_GetShiftState [11:58:01]SAM_PROTO_GetShiftState [11:58:01]wFMCommunicate request_size=4 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 13 01 00 [11:58:01]Write to MH i2c: E2 08 00 A7 18 80 13 01 00 00 00 00 00 3C [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 0E 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 0E 00 A7 18 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 81 [11:58:01]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:58:01]wFMCommunicate OK [11:58:01]SAM_PROTO_GetShiftState done [11:58:01]FM_GetShiftState done [11:58:01]req_shift_opened done [11:58:01]requested_item shift.open_date is exist - process it [11:58:01]req_shift_open_date [11:58:01]req_shift_open_date done [11:58:01]produce_requested_data done [11:58:01]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49614,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [11:58:01]process_action_free close_receipt [11:58:01]json_value_free [11:58:01]json_value_free done [11:58:01]process_json_proto returns [11:58:01]Send response to host [11:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49614,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [11:58:01]free response buf [11:58:01]execute_script done [11:58:01]execute_script returns [11:58:01]free content buf [11:58:01]Sock 7.Close socket [11:58:01]Sock 7.Thread stoped [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:47]accept exits with 9 [11:58:47]New connection [11:58:47]New thread 3066801508 created [11:58:47]Thread 3066944868 joined [11:58:47]Waiting for new connection... [11:58:47] Sock 9.Parse request [11:58:47]Sock 9.Check first char [11:58:47]Sock 9.First char is OK [11:58:47]request: POST /json_proto HTTP/1.0 [11:58:47]Method: POST [11:58:47]URL: /json_proto [11:58:47]Method is POST - this is cgi request [11:58:47]url: /json_proto [11:58:47]query_string will be loaded in cgi processing [11:58:47]execute_cgi json_proto POST (null) [11:58:47]execute_cgi path=json_proto method=POST [11:58:47]POST find Content-Length [11:58:47]Host: 172.17.46.196:8080 [11:58:47]Content-Length: 756 [11:58:47]Content-Type: application/json [11:58:47] [11:58:47]POST finish read [11:58:47]Found Content-Length = 756 [11:58:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 35.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\u000A30076790", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:47]execute_script... [11:58: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)11326132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 35.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\u000A30076790", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:47]POST & json_proto [11:58:47]process_json_proto [11:58:47]json parsed OK: [11:58:47]protocol is kg_v1.0 [11:58:47]action value=close_receipt [11:58:47]process_action close_receipt [11:58:47]cmd_close_receipt [11:58:47]MH_GetDate [11:58:47]Write to MH i2c: F0 00 00 A8 18 AF [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: F0 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: F0 09 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: F0 09 00 A8 18 00 7B 90 C0 66 07 E8 5D 66 9B [11:58:47]GetLastDocTimeStamp 1723895879 [11:58:47]current date 1723895931 [11:58:47]FM_GetShiftState [11:58:47]SAM_PROTO_GetShiftState [11:58:47]wFMCommunicate request_size=4 [11:58:47]MH_SAM_APDU [11:58:47]CAPDU: 80 13 01 00 [11:58:47]Write to MH i2c: E2 08 00 A9 18 80 13 01 00 00 00 00 00 3E [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:47]Read from MH i2c: E2 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 0E 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 0E 00 A9 18 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 83 [11:58:47]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:58:47]wFMCommunicate OK [11:58:47]SAM_PROTO_GetShiftState done [11:58:47]FM_GetShiftState done [11:58:47]opened in 1723853354 [11:58:47]opened+sec_in_day 1723939754 [11:58:47]quantity*price = 0 [11:58:47]sum+1 = 1 [11:58:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 52 17.08.2024 11:58 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30076790 ФМ: 0000000000871800 ФД: 49615 ФПД: 263854007513207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T115851&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49615&fm=263854007513207&tin=02508201610067®Number=0000000000092546&sum=0 [11:58:48]StoreToDocumentArchive [11:58:48]shift 465 fd 49615 [11:58:48]save to /storage/0465/doc_00049615 [11:58:48]save last doc name /storage/0465/doc_00049615 to /storage/kkm_last_doc_name [11:58:48]save OK [11:58:48]Clear old archive folders... [11:58:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:48]tlvbuf is B6F569A0 [11:58:48]SAM_PROTO_ClearQueue [11:58:48]wFMCommunicate request_size=4 [11:58:48]MH_SAM_APDU [11:58:48]CAPDU: 80 09 00 00 [11:58:48]Write to MH i2c: E2 08 00 B6 18 80 09 00 00 00 00 00 00 40 [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:48]Read from MH i2c: E2 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 03 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 03 00 B6 18 00 90 00 42 [11:58:48]RAPDU: 90 00 [11:58:48]wFMCommunicate OK [11:58:48]SAM_PROTO_ClearQueue done [11:58:48]KKMCreateOFDPacket [11:58:48]OFDProtocolAddRootSTLVToBuf [11:58:48]FM_MakeSignedData [11:58:48]FM_MakeSignedData [11:58:48]SAM_PROTO_SignData [11:58:48]wFMCommunicate request_size=4 [11:58:48]MH_SAM_APDU [11:58:48]CAPDU: 80 0D 01 02 [11:58:48]Write to MH i2c: E2 08 00 B7 18 80 0D 01 02 00 00 00 00 48 [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:48]Read from MH i2c: E2 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 03 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 03 00 B7 18 00 90 00 43 [11:58:48]RAPDU: 90 00 [11:58:48]wFMCommunicate OK [11:58:48]wFMCommunicate request_size=255 [11:58:48]MH_SAM_APDU [11:58: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 34 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 7B 90 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CF C1 00 00 35 04 06 00 EF [11:58:48]Write to MH i2c: E2 02 01 B8 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 7B 90 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CF C1 00 00 35 04 06 00 EF 00 00 40 [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:49]OFD Sender: No OFD packet to send [11:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 03 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 03 00 B8 18 00 90 00 44 [11:58:49]RAPDU: 90 00 [11:58:49]wFMCommunicate OK [11:58:49]wFMCommunicate request_size=10 [11:58:49]MH_SAM_APDU [11:58:49]CAPDU: 80 0D 02 02 05 F9 4C 63 F0 77 [11:58:49]Write to MH i2c: E2 0D 00 B9 18 80 0D 02 02 05 00 F9 4C 63 F0 77 00 00 64 [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 03 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 03 00 B9 18 00 90 00 45 [11:58:49]RAPDU: 90 00 [11:58:49]wFMCommunicate OK [11:58:49]wFMCommunicate request_size=4 [11:58:49]MH_SAM_APDU [11:58:49]CAPDU: 80 0D 03 02 [11:58:49]Write to MH i2c: E2 08 00 BA 18 80 0D 03 02 00 00 00 00 4D [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 0B 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 0B 00 BA 18 00 EC 4B 36 78 0A F3 CF 8D 90 00 8C [11:58:49]RAPDU: EC 4B 36 78 0A F3 CF 8D 90 00 [11:58:49]wFMCommunicate OK [11:58:49]SAM_PROTO_SignData done [11:58:49]FM_MakeSignedData done [11:58:49]CreateOFDProtocolMessage [11:58:49]wFMCommunicate request_size=4 [11:58:49]MH_SAM_APDU [11:58:49]CAPDU: 80 11 00 00 [11:58:49]Write to MH i2c: E2 08 00 BB 18 80 11 00 00 00 00 00 00 4D [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 17 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 17 00 BB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 98 [11:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:58:49]wFMCommunicate OK [11:58:49]CreateOFDProtocolMessage done [11:58:49]OFDSenderStorePacket 49615 [11:58:49]StoreOFDPacket docnum=49615 [11:58:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 00 D7 07 01 8C 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 34 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 7B 90 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CF C1 00 00 35 04 06 00 EF F9 4C 63 F0 77 EC 4B 36 78 0A F3 CF 8D [11:58:49]CheckFolder [11:58:49]dirname=/storage/ofd_packets [11:58:49]CheckFolder done [11:58:49]ProducePacketName [11:58:49]name=ofd_packets/00049615 [11:58:49]NVStorageSaveData ofd_packets/00049615 [11:58:49]File name is /storage/ofd_packets/00049615 [11:58:49]Write 301 bytes [11:58:49]NVStorageSaveData done [11:58:49]OFDSenderStorePacket done [11:58:49]KKMCreateOFDPacket done [11:58:49]NVStorageSaveData kkm_last_timestamp [11:58:49]File name is /storage/kkm_last_timestamp [11:58:49]Write 4 bytes [11:58:49]NVStorageSaveData done [11:58:49]ExternCall_PrintAddStr [11:58:49]wPrintStart [11:58:49]Write to MH i2c: 01 00 00 BC 18 D4 [11:58:49]OFD Sender: Processing packet 49615 [packets to send 21, broken 20] [11:58:49]ProducePacketName [11:58:49]name=ofd_packets/00049615 [11:58:49]OFD Sender: To server: pG, [11:58:49]CommunicateWithHost lk.salyk.kg:30040 [11:58:49]ConnectInit lk.salyk.kg [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: 01 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: 01 07 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: 01 07 00 BC 18 00 00 00 00 00 FF 0F E9 [11:58:49]RasterBufferAndPrint [11:58:49]line Счет N : (1)11326132 [11:58:49]line ИНН: 02508201610067 [11:58:49]line Контрольно-Кассовый Чек [11:58:49]line ПРОДАЖА [11:58:49]line ТРК (МРК, ГНК) : 42 [11:58:49]line Товар: 2710124130 [11:58:49]line Аи-92-К-4 [11:58:49]line 35.000 * 0.00 [11:58:49]line = 0.00 [11:58:49]line НДС 12% НСП 1% [11:58:49]line > о реализуемом товаре [11:58:49]line ИТОГО: 0.00 [11:58:49]line НСП 1% : 0.00 [11:58:49]line НДС 12% : 0.00 [11:58:49]line Наличными: 0.00 [11:58:49]line Безнал.: 0.00 [11:58:49]line Место: АЗС № 95 "Партнер Нефть" [11:58:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:58:49]line СНО: Общий режим [11:58:49]line Чек 52 17.08.2024 11:58 [11:58:49]line Смена: 465 ФФД: 1.0 [11:58:49]line ЗНМ: 0300000078 [11:58:49]line РНМ: 0000000000092546 [11:58:49]line Версия ККМ: 001 [11:58:49]line Талоны: ТК ГПНА Online [11:58:49]line 30076790 [11:58:49]line ФМ: 0000000000871800 [11:58:49]line ФД: 49615 [11:58:49]line ФПД: 263854007513207 [11:58:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T115851&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49615&fm=263854007513207&tin=02508201610067®Number=0000000000092546&sum=0 [11:58:49]Connected sock=10 [11:58:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 00 D7 07 01 8C 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 34 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 7B 90 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CF C1 00 00 35 04 06 00 EF F9 4C 63 F0 77 EC 4B 36 78 0A F3 CF 8D [11:58:49]written 0, free lines is 4095 [11:58:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0B 2A 47 00 F7 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 31 38 30 30 10 04 04 00 CF C1 00 00 F4 03 04 00 B7 3B C0 66 B6 04 01 00 00 5B 92 86 71 F4 D1 F4 2F [11:58:49]CommunicateWithHost err = 0 [11:58:49]CheckOFDResponse [11:58:49]1017 (14) - 77093643461234 [11:58:49]1041 (16) - 0000000000871800 [11:58:49]1040 (4) - 49615 [11:58:49]1012 (4) - 17.08.2024 05:57 [11:58:49]1206 (1) - 0 [11:58:49]OFD Sender: Remove packet 49615 [11:58:49]ProducePacketName [11:58:49]name=ofd_packets/00049615 [11:58:49]NVStorageDeleteData [11:58:50]Write to MH i2c: 01 00 00 E6 18 FE [11:58:50]Write i2c OK [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: 01 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: 01 07 00 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: 01 07 00 E6 18 00 00 00 00 00 CE 0C DF [11:58:50]RasterBufferAndPrint [11:58:50]line [11:58:50]line [11:58:50]line [11:58:50]line [11:58:50]line [11:58:50]written 0, free lines is 3284 [11:58:50]MH_Cut [11:58:50]Write to MH i2c: D1 01 00 ED 18 01 D7 [11:58:50]Write i2c OK [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: D1 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: D1 01 00 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: D1 01 00 ED 18 00 D6 [11:58:50]Write to MH i2c: 01 00 00 EE 18 06 [11:58:50]Write i2c OK [11:58:50]MH_I2C_Read... [11:58:50]OFD Sender: No OFD packet to send [11:58:50]*** Cut start [11:58:50]*** Purtial cut [11:58:50]*** Stage 1: CUTSNS_PIN = 1 [11:58:51]Read from MH i2c: 01 [11:58:51]MH_I2C_Read... [11:58:51]*** Stop cut motor [11:58:51]*** Cut end [11:58:51]Read from MH i2c: 01 07 00 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: 01 07 00 EE 18 00 00 00 00 00 FF 0F 1B [11:58:51]process_action close_receipt done [11:58:51]requested_data is exist [11:58:51]produce_requested_data [11:58:51]requested_item fm.sn is exist - process it [11:58:51]wFMCommunicate request_size=4 [11:58:51]MH_SAM_APDU [11:58:51]CAPDU: 80 11 00 00 [11:58:51]Write to MH i2c: E2 08 00 EF 18 80 11 00 00 00 00 00 00 81 [11:58:51]Write i2c OK [11:58:51]MH_I2C_Read... [11:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:51]Read from MH i2c: E2 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: E2 17 00 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: E2 17 00 EF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CC [11:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:58:51]wFMCommunicate OK [11:58:51]requested_item fd.num is exist - process it [11:58:51]SAM_PROTO_GetFieldsCounters [11:58:51]wFMCommunicate request_size=4 [11:58:51]MH_SAM_APDU [11:58:51]CAPDU: 80 13 00 00 [11:58:51]Write to MH i2c: E2 08 00 F0 18 80 13 00 00 00 00 00 00 84 [11:58:51]Write i2c OK [11:58:51]MH_I2C_Read... [11:58:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:51]Read from MH i2c: E2 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: E2 62 00 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: E2 62 00 F0 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CF C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [11:58: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CF C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:51]wFMCommunicate OK [11:58:51]SAM_PROTO_GetFieldsCounters done [11:58:51]requested_item shift.num is exist - process it [11:58:51]requested_item shift.opened is exist - process it [11:58:51]req_shift_opened [11:58:51]FM_GetShiftState [11:58:51]SAM_PROTO_GetShiftState [11:58:51]wFMCommunicate request_size=4 [11:58:51]MH_SAM_APDU [11:58:51]CAPDU: 80 13 01 00 [11:58:51]Write to MH i2c: E2 08 00 F1 18 80 13 01 00 00 00 00 00 86 [11:58:51]Write i2c OK [11:58:51]MH_I2C_Read... [11:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:51]Read from MH i2c: E2 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: E2 0E 00 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: E2 0E 00 F1 18 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 CB [11:58:51]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:58:51]wFMCommunicate OK [11:58:51]SAM_PROTO_GetShiftState done [11:58:51]FM_GetShiftState done [11:58:51]req_shift_opened done [11:58:51]requested_item shift.open_date is exist - process it [11:58:51]req_shift_open_date [11:58:51]req_shift_open_date done [11:58:51]produce_requested_data done [11:58:51]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49615,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [11:58:51]process_action_free close_receipt [11:58:51]json_value_free [11:58:51]json_value_free done [11:58:51]process_json_proto returns [11:58:51]Send response to host [11:58:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49615,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [11:58:51]free response buf [11:58:51]execute_script done [11:58:51]execute_script returns [11:58:51]free content buf [11:58:51]Sock 9.Close socket [11:58:51]Sock 9.Thread stoped [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:27]accept exits with 7 [11:59:27]New connection [11:59:27]New thread 3066944868 created [11:59:27]Thread 3066801508 joined [11:59:27]Waiting for new connection... [11:59:27] Sock 7.Parse request [11:59:27]Sock 7.Check first char [11:59:27]Sock 7.First char is OK [11:59:27]request: POST /json_proto HTTP/1.0 [11:59:27]Method: POST [11:59:27]URL: /json_proto [11:59:27]Method is POST - this is cgi request [11:59:27]url: /json_proto [11:59:27]query_string will be loaded in cgi processing [11:59:27]execute_cgi json_proto POST (null) [11:59:27]execute_cgi path=json_proto method=POST [11:59:27]POST find Content-Length [11:59:27]Host: 172.17.46.196:8080 [11:59:27]Content-Length: 893 [11:59:27]Content-Type: application/json [11:59:27] [11:59:27]POST finish read [11:59:27]Found Content-Length = 893 [11:59:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189804", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:27]execute_script... [11:59:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189804", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:27]POST & json_proto [11:59:27]process_json_proto [11:59:27]json parsed OK: [11:59:27]protocol is kg_v1.0 [11:59:27]action value=close_receipt [11:59:27]process_action close_receipt [11:59:27]cmd_close_receipt [11:59:27]MH_GetDate [11:59:27]Write to MH i2c: F0 00 00 F2 18 F9 [11:59:27]Write i2c OK [11:59:27]MH_I2C_Read... [11:59:27]Read from MH i2c: F0 [11:59:27]MH_I2C_Read... [11:59:27]Read from MH i2c: F0 09 00 [11:59:27]MH_I2C_Read... [11:59:27]Read from MH i2c: F0 09 00 F2 18 00 A2 90 C0 66 07 E8 5D 66 0C [11:59:27]GetLastDocTimeStamp 1723895931 [11:59:27]current date 1723895970 [11:59:27]FM_GetShiftState [11:59:27]SAM_PROTO_GetShiftState [11:59:27]wFMCommunicate request_size=4 [11:59:27]MH_SAM_APDU [11:59:27]CAPDU: 80 13 01 00 [11:59:27]Write to MH i2c: E2 08 00 F3 18 80 13 01 00 00 00 00 00 88 [11:59:27]Write i2c OK [11:59:27]MH_I2C_Read... [11:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:27]Read from MH i2c: E2 [11:59:27]MH_I2C_Read... [11:59:27]Read from MH i2c: E2 0E 00 [11:59:27]MH_I2C_Read... [11:59:27]Read from MH i2c: E2 0E 00 F3 18 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 CD [11:59:27]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:59:27]wFMCommunicate OK [11:59:27]SAM_PROTO_GetShiftState done [11:59:27]FM_GetShiftState done [11:59:27]opened in 1723853354 [11:59:27]opened+sec_in_day 1723939754 [11:59:27]quantity*price = 5000 [11:59:27]sum+1 = 5001 [11:59:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 53 17.08.2024 11:59 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49616 ФПД: 236006758895858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T115930&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49616&fm=236006758895858&tin=02508201610067®Number=0000000000092546&sum=18000 0 [11:59:28]StoreToDocumentArchive [11:59:28]shift 465 fd 49616 [11:59:28]save to /storage/0465/doc_00049616 [11:59:28]save last doc name /storage/0465/doc_00049616 to /storage/kkm_last_doc_name [11:59:28]save OK [11:59:28]Clear old archive folders... [11:59:28]ProcessDocumentItem done err = 0, tmpTLVsize=381 [11:59:28]tlvbuf is B6F53700 [11:59:28]SAM_PROTO_ClearQueue [11:59:28]wFMCommunicate request_size=4 [11:59:28]MH_SAM_APDU [11:59:28]CAPDU: 80 09 00 00 [11:59:28]Write to MH i2c: E2 08 00 00 19 80 09 00 00 00 00 00 00 8B [11:59:28]Write i2c OK [11:59:28]MH_I2C_Read... [11:59:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:28]Read from MH i2c: E2 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 03 00 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 03 00 00 19 00 90 00 8D [11:59:28]RAPDU: 90 00 [11:59:28]wFMCommunicate OK [11:59:28]SAM_PROTO_ClearQueue done [11:59:28]KKMCreateOFDPacket [11:59:28]OFDProtocolAddRootSTLVToBuf [11:59:28]FM_MakeSignedData [11:59:28]FM_MakeSignedData [11:59:28]SAM_PROTO_SignData [11:59:28]wFMCommunicate request_size=4 [11:59:28]MH_SAM_APDU [11:59:28]CAPDU: 80 0D 01 02 [11:59:28]Write to MH i2c: E2 08 00 01 19 80 0D 01 02 00 00 00 00 93 [11:59:28]Write i2c OK [11:59:28]MH_I2C_Read... [11:59:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:28]Read from MH i2c: E2 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 03 00 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 03 00 01 19 00 90 00 8E [11:59:28]RAPDU: 90 00 [11:59:28]wFMCommunicate OK [11:59:28]wFMCommunicate request_size=255 [11:59:28]MH_SAM_APDU [11:59:28]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 [11:59:28]Write to MH i2c: E2 02 01 02 19 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 55 [11:59:28]Write i2c OK [11:59:28]MH_I2C_Read... [11:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:28]Read from MH i2c: E2 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 03 00 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 03 00 02 19 00 90 00 8F [11:59:28]RAPDU: 90 00 [11:59:28]wFMCommunicate OK [11:59:28]wFMCommunicate request_size=140 [11:59:28]MH_SAM_APDU [11:59:28]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A2 90 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D0 C1 00 00 35 04 06 00 D6 A5 9B 07 50 F2 [11:59:28]Write to MH i2c: E2 8F 00 03 19 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A2 90 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D0 C1 00 00 35 04 06 00 D6 A5 9B 07 50 F2 00 00 2D [11:59:28]Write i2c OK [11:59:28]MH_I2C_Read... [11:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:28]Read from MH i2c: E2 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 03 00 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 03 00 03 19 00 90 00 90 [11:59:28]RAPDU: 90 00 [11:59:28]wFMCommunicate OK [11:59:28]wFMCommunicate request_size=4 [11:59:28]MH_SAM_APDU [11:59:28]CAPDU: 80 0D 03 02 [11:59:28]Write to MH i2c: E2 08 00 04 19 80 0D 03 02 00 00 00 00 98 [11:59:28]Write i2c OK [11:59:28]MH_I2C_Read... [11:59:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:28]Read from MH i2c: E2 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 0B 00 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 0B 00 04 19 00 86 56 13 91 E6 EE 50 A2 90 00 DF [11:59:28]RAPDU: 86 56 13 91 E6 EE 50 A2 90 00 [11:59:28]wFMCommunicate OK [11:59:28]SAM_PROTO_SignData done [11:59:28]FM_MakeSignedData done [11:59:28]CreateOFDProtocolMessage [11:59:28]wFMCommunicate request_size=4 [11:59:28]MH_SAM_APDU [11:59:28]CAPDU: 80 11 00 00 [11:59:28]Write to MH i2c: E2 08 00 05 19 80 11 00 00 00 00 00 00 98 [11:59:28]Write i2c OK [11:59:28]MH_I2C_Read... [11:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:29]Read from MH i2c: E2 [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: E2 17 00 [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: E2 17 00 05 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E3 [11:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:59:29]wFMCommunicate OK [11:59:29]CreateOFDProtocolMessage done [11:59:29]OFDSenderStorePacket 49616 [11:59:29]StoreOFDPacket docnum=49616 [11:59:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 91 01 00 00 74 4C 89 01 99 51 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A2 90 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D0 C1 00 00 35 04 06 00 D6 A5 9B 07 50 F2 86 56 13 91 E6 EE 50 A2 [11:59:29]CheckFolder [11:59:29]dirname=/storage/ofd_packets [11:59:29]CheckFolder done [11:59:29]ProducePacketName [11:59:29]name=ofd_packets/00049616 [11:59:29]NVStorageSaveData ofd_packets/00049616 [11:59:29]File name is /storage/ofd_packets/00049616 [11:59:29]Write 431 bytes [11:59:29]NVStorageSaveData done [11:59:29]OFDSenderStorePacket done [11:59:29]KKMCreateOFDPacket done [11:59:29]NVStorageSaveData kkm_last_timestamp [11:59:29]File name is /storage/kkm_last_timestamp [11:59:29]Write 4 bytes [11:59:29]NVStorageSaveData done [11:59:29]ExternCall_PrintAddStr [11:59:29]wPrintStart [11:59:29]Write to MH i2c: 01 00 00 06 19 1F [11:59:29]Write i2c OK [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: 01 [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: 01 07 00 [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: 01 07 00 06 19 00 00 00 00 00 FF 0F 34 [11:59:29]RasterBufferAndPrint [11:59:29]line Счет N : (3)189804 [11:59:29]line ИНН: 02508201610067 [11:59:29]line Контрольно-Кассовый Чек [11:59:29]line ПРОДАЖА [11:59:29]line Товар: 4700000160358 [11:59:29]line Вода Легенда 1л [11:59:29]line 1.000 * 50.00 [11:59:29]line = 50.00 [11:59:29]line НДС 12% НСП 1% [11:59:29]line > о реализуемом товаре [11:59:29]line Товар: 2000036220012 [11:59:29]line Кофе Капучино XL(GABB TRADE) [11:59:29]line 1.000 * 130.00 [11:59:29]line = 130.00 [11:59:29]line НДС 12% НСП 1% [11:59:29]line > о реализуемом товаре [11:59:29]line ИТОГО: 180.00 [11:59:29]line НСП 1% : 1.59 [11:59:29]line НДС 12% : 19.11 [11:59:29]line Наличными: 180.00 [11:59:29]line Безнал.: 0.00 [11:59:29]line Место: АЗС № 95 "Партнер Нефть" [11:59:29]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:59:29]line СНО: Общий режим [11:59:29]line Чек 53 17.08.2024 11:59 [11:59:29]line Смена: 465 ФФД: 1.0 [11:59:29]line ЗНМ: 0300000078 [11:59:29]line РНМ: 0000000000092546 [11:59:29]line Версия ККМ: 001 [11:59:29]line ФМ: 0000000000871800 [11:59:29]line ФД: 49616 [11:59:29]line ФПД: 236006758895858 [11:59:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T115930&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49616&fm=236006758895858&tin=02508201610067®Number=0000000000092546&sum=18000 [11:59:29]line 0 [11:59:29]OFD Sender: Processing packet 49616 [packets to send 21, broken 20] [11:59:29]ProducePacketName [11:59:29]name=ofd_packets/00049616 [11:59:29]OFD Sender: To server: pG, [11:59:29]CommunicateWithHost lk.salyk.kg:30040 [11:59:29]ConnectInit lk.salyk.kg [11:59:29]written 0, free lines is 4095 [11:59:29]Connected sock=10 [11:59:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 91 01 00 00 74 4C 89 01 99 51 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A2 90 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D0 C1 00 00 35 04 06 00 D6 A5 9B 07 50 F2 86 56 13 91 E6 EE 50 A2 [11:59:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 87 55 47 00 1A AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D0 C1 00 00 F4 03 04 00 DE 3B C0 66 B6 04 01 00 00 B2 D5 FA 91 53 7F 7D FD [11:59:29]CommunicateWithHost err = 0 [11:59:29]CheckOFDResponse [11:59:29]1017 (14) - 77093643461234 [11:59:29]1041 (16) - 0000000000871800 [11:59:29]1040 (4) - 49616 [11:59:29]1012 (4) - 17.08.2024 05:57 [11:59:29]1206 (1) - 0 [11:59:29]OFD Sender: Remove packet 49616 [11:59:29]ProducePacketName [11:59:29]name=ofd_packets/00049616 [11:59:29]NVStorageDeleteData [11:59:29]Write to MH i2c: 01 00 00 35 19 4E [11:59:29]Write i2c OK [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: 01 [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: 01 07 00 [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: 01 07 00 35 19 00 00 00 00 00 89 0C EA [11:59:29]RasterBufferAndPrint [11:59:29]line [11:59:29]line [11:59:29]line [11:59:29]line [11:59:29]line [11:59:29]written 0, free lines is 3214 [11:59:29]MH_Cut [11:59:29]Write to MH i2c: D1 01 00 3C 19 01 27 [11:59:29]Write i2c OK [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: D1 [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: D1 01 00 [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: D1 01 00 3C 19 00 26 [11:59:29]Write to MH i2c: 01 00 00 3D 19 56 [11:59:29]Write i2c OK [11:59:29]MH_I2C_Read... [11:59:30]OFD Sender: No OFD packet to send [11:59:30]*** Cut start [11:59:30]*** Purtial cut [11:59:30]*** CUTSNS_PIN = 0 [11:59:30]*** Stage 1: CUTSNS_PIN = 1 [11:59:32]Read from MH i2c: 01 [11:59:32]MH_I2C_Read... [11:59:32]*** Stop cut motor [11:59:32]*** Cut end [11:59:32]Read from MH i2c: 01 07 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: 01 07 00 3D 19 00 00 00 00 00 FF 0F 6B [11:59:32]process_action close_receipt done [11:59:32]requested_data is exist [11:59:32]produce_requested_data [11:59:32]requested_item fm.sn is exist - process it [11:59:32]wFMCommunicate request_size=4 [11:59:32]MH_SAM_APDU [11:59:32]CAPDU: 80 11 00 00 [11:59:32]Write to MH i2c: E2 08 00 3E 19 80 11 00 00 00 00 00 00 D1 [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:32]Read from MH i2c: E2 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 17 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 17 00 3E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1C [11:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:59:32]wFMCommunicate OK [11:59:32]requested_item fd.num is exist - process it [11:59:32]SAM_PROTO_GetFieldsCounters [11:59:32]wFMCommunicate request_size=4 [11:59:32]MH_SAM_APDU [11:59:32]CAPDU: 80 13 00 00 [11:59:32]Write to MH i2c: E2 08 00 3F 19 80 13 00 00 00 00 00 00 D4 [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:32]Read from MH i2c: E2 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 62 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 62 00 3F 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D0 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [11:59: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D0 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:32]wFMCommunicate OK [11:59:32]SAM_PROTO_GetFieldsCounters done [11:59:32]requested_item shift.num is exist - process it [11:59:32]requested_item shift.opened is exist - process it [11:59:32]req_shift_opened [11:59:32]FM_GetShiftState [11:59:32]SAM_PROTO_GetShiftState [11:59:32]wFMCommunicate request_size=4 [11:59:32]MH_SAM_APDU [11:59:32]CAPDU: 80 13 01 00 [11:59:32]Write to MH i2c: E2 08 00 40 19 80 13 01 00 00 00 00 00 D6 [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: E2 [11:59:32]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:33]Read from MH i2c: E2 0E 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 0E 00 40 19 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 1B [11:59:33]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [11:59:33]wFMCommunicate OK [11:59:33]SAM_PROTO_GetShiftState done [11:59:33]FM_GetShiftState done [11:59:33]req_shift_opened done [11:59:33]requested_item shift.open_date is exist - process it [11:59:33]req_shift_open_date [11:59:33]req_shift_open_date done [11:59:33]produce_requested_data done [11:59:33]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49616,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [11:59:33]process_action_free close_receipt [11:59:33]json_value_free [11:59:33]json_value_free done [11:59:33]process_json_proto returns [11:59:33]Send response to host [11:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49616,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [11:59:33]free response buf [11:59:33]execute_script done [11:59:33]execute_script returns [11:59:33]free content buf [11:59:33]Sock 7.Close socket [11:59:33]Sock 7.Thread stoped [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:41]accept exits with 9 [12:02:41]New connection [12:02:41]New thread 3066801508 created [12:02:41]Thread 3066944868 joined [12:02:41]Waiting for new connection... [12:02:41] Sock 9.Parse request [12:02:41]Sock 9.Check first char [12:02:41]Sock 9.First char is OK [12:02:41]request: POST /json_proto HTTP/1.0 [12:02:41]Method: POST [12:02:41]URL: /json_proto [12:02:41]Method is POST - this is cgi request [12:02:41]url: /json_proto [12:02:41]query_string will be loaded in cgi processing [12:02:41]execute_cgi json_proto POST (null) [12:02:41]execute_cgi path=json_proto method=POST [12:02:41]POST find Content-Length [12:02:41]Host: 172.17.46.196:8080 [12:02:41]Content-Length: 644 [12:02:41]Content-Type: application/json [12:02:41] [12:02:41]POST finish read [12:02:41]Found Content-Length = 644 [12:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189805", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:41]execute_script... [12:02: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 : (3)189805", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:41]POST & json_proto [12:02:41]process_json_proto [12:02:41]json parsed OK: [12:02:41]protocol is kg_v1.0 [12:02:41]action value=close_receipt [12:02:41]process_action close_receipt [12:02:41]cmd_close_receipt [12:02:41]MH_GetDate [12:02:41]Write to MH i2c: F0 00 00 41 19 49 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: F0 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: F0 09 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: F0 09 00 41 19 00 64 91 C0 66 07 E8 5D 66 1F [12:02:41]GetLastDocTimeStamp 1723895970 [12:02:41]current date 1723896164 [12:02:41]FM_GetShiftState [12:02:41]SAM_PROTO_GetShiftState [12:02:41]wFMCommunicate request_size=4 [12:02:41]MH_SAM_APDU [12:02:41]CAPDU: 80 13 01 00 [12:02:41]Write to MH i2c: E2 08 00 42 19 80 13 01 00 00 00 00 00 D8 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:41]Read from MH i2c: E2 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 0E 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 0E 00 42 19 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 1D [12:02:41]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:02:41]wFMCommunicate OK [12:02:41]SAM_PROTO_GetShiftState done [12:02:41]FM_GetShiftState done [12:02:41]opened in 1723853354 [12:02:41]opened+sec_in_day 1723939754 [12:02:41]quantity*price = 11500 [12:02:41]sum+1 = 11501 [12:02:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 54 17.08.2024 12:02 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49617 ФПД: 131045633359257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T120244&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49617&fm=131045633359257&tin=02508201610067®Number=0000000000092546&sum=11500 0 [12:02:42]StoreToDocumentArchive [12:02:42]shift 465 fd 49617 [12:02:42]save to /storage/0465/doc_00049617 [12:02:42]save last doc name /storage/0465/doc_00049617 to /storage/kkm_last_doc_name [12:02:42]save OK [12:02:42]Clear old archive folders... [12:02:42]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:02:42]tlvbuf is 018A1320 [12:02:42]SAM_PROTO_ClearQueue [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 09 00 00 [12:02:42]Write to MH i2c: E2 08 00 4F 19 80 09 00 00 00 00 00 00 DA [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 03 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 03 00 4F 19 00 90 00 DC [12:02:42]RAPDU: 90 00 [12:02:42]wFMCommunicate OK [12:02:42]SAM_PROTO_ClearQueue done [12:02:42]KKMCreateOFDPacket [12:02:42]OFDProtocolAddRootSTLVToBuf [12:02:42]FM_MakeSignedData [12:02:42]FM_MakeSignedData [12:02:42]SAM_PROTO_SignData [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 0D 01 02 [12:02:42]Write to MH i2c: E2 08 00 50 19 80 0D 01 02 00 00 00 00 E2 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 03 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 03 00 50 19 00 90 00 DD [12:02:42]RAPDU: 90 00 [12:02:42]wFMCommunicate OK [12:02:42]wFMCommunicate request_size=255 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 64 91 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [12:02:42]Write to MH i2c: E2 02 01 51 19 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 64 91 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 46 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 03 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 03 00 51 19 00 90 00 DE [12:02:42]RAPDU: 90 00 [12:02:42]wFMCommunicate OK [12:02:42]wFMCommunicate request_size=39 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D1 C1 00 00 35 04 06 00 77 2F 70 6C FD 99 [12:02:42]Write to MH i2c: E2 2A 00 52 19 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D1 C1 00 00 35 04 06 00 77 2F 70 6C FD 99 00 00 42 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 03 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 03 00 52 19 00 90 00 DF [12:02:42]RAPDU: 90 00 [12:02:42]wFMCommunicate OK [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 0D 03 02 [12:02:42]Write to MH i2c: E2 08 00 53 19 80 0D 03 02 00 00 00 00 E7 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 0B 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 0B 00 53 19 00 6F 2F 19 16 38 51 EF 78 90 00 A5 [12:02:42]RAPDU: 6F 2F 19 16 38 51 EF 78 90 00 [12:02:42]wFMCommunicate OK [12:02:42]SAM_PROTO_SignData done [12:02:42]FM_MakeSignedData done [12:02:42]CreateOFDProtocolMessage [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 11 00 00 [12:02:42]Write to MH i2c: E2 08 00 54 19 80 11 00 00 00 00 00 00 E7 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 17 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 17 00 54 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 32 [12:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:02:42]wFMCommunicate OK [12:02:42]CreateOFDProtocolMessage done [12:02:42]OFDSenderStorePacket 49617 [12:02:42]StoreOFDPacket docnum=49617 [12:02:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 89 53 24 01 B7 A9 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 64 91 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D1 C1 00 00 35 04 06 00 77 2F 70 6C FD 99 6F 2F 19 16 38 51 EF 78 [12:02:42]CheckFolder [12:02:42]dirname=/storage/ofd_packets [12:02:42]CheckFolder done [12:02:42]ProducePacketName [12:02:42]name=ofd_packets/00049617 [12:02:42]NVStorageSaveData ofd_packets/00049617 [12:02:42]File name is /storage/ofd_packets/00049617 [12:02:42]Write 330 bytes [12:02:42]NVStorageSaveData done [12:02:42]OFDSenderStorePacket done [12:02:42]KKMCreateOFDPacket done [12:02:42]NVStorageSaveData kkm_last_timestamp [12:02:42]File name is /storage/kkm_last_timestamp [12:02:42]Write 4 bytes [12:02:42]NVStorageSaveData done [12:02:42]ExternCall_PrintAddStr [12:02:42]wPrintStart [12:02:42]Write to MH i2c: 01 00 00 55 19 6E [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 07 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 07 00 55 19 00 00 00 00 00 FF 0F 83 [12:02:42]RasterBufferAndPrint [12:02:42]line Счет N : (3)189805 [12:02:42]line ИНН: 02508201610067 [12:02:42]line Контрольно-Кассовый Чек [12:02:42]line ПРОДАЖА [12:02:42]line Товар: 2000036210013 [12:02:42]line Кофе Капучино (GABB TRADE) [12:02:42]line 1.000 * 115.00 [12:02:42]line = 115.00 [12:02:42]line НДС 12% НСП 1% [12:02:42]line > о реализуемом товаре [12:02:42]line ИТОГО: 115.00 [12:02:42]line НСП 1% : 1.02 [12:02:42]line НДС 12% : 12.21 [12:02:42]line Наличными: 115.00 [12:02:42]line Безнал.: 0.00 [12:02:42]line Место: АЗС № 95 "Партнер Нефть" [12:02:42]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:02:42]line СНО: Общий режим [12:02:42]line Чек 54 17.08.2024 12:02 [12:02:42]line Смена: 465 ФФД: 1.0 [12:02:42]line ЗНМ: 0300000078 [12:02:42]line РНМ: 0000000000092546 [12:02:42]line Версия ККМ: 001 [12:02:42]line ФМ: 0000000000871800 [12:02:42]line ФД: 49617 [12:02:42]line ФПД: 131045633359257 [12:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T120244&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49617&fm=131045633359257&tin=02508201610067®Number=0000000000092546&sum=11500 [12:02:43]line 0 [12:02:43]OFD Sender: Processing packet 49617 [packets to send 21, broken 20] [12:02:43]ProducePacketName [12:02:43]name=ofd_packets/00049617 [12:02:43]OFD Sender: To server: pG, [12:02:43]CommunicateWithHost lk.salyk.kg:30040 [12:02:43]ConnectInit lk.salyk.kg [12:02:43]written 0, free lines is 4095 [12:02:43]Connected sock=10 [12:02:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 89 53 24 01 B7 A9 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 64 91 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D1 C1 00 00 35 04 06 00 77 2F 70 6C FD 99 6F 2F 19 16 38 51 EF 78 [12:02:43]Write to MH i2c: 01 00 00 7D 19 96 [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: 01 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: 01 07 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: 01 07 00 7D 19 00 00 00 00 00 FE 0C A7 [12:02:43]RasterBufferAndPrint [12:02:43]line [12:02:43]line [12:02:43]line [12:02:43]line [12:02:43]line [12:02:43]written 0, free lines is 3332 [12:02:43]MH_Cut [12:02:43]Write to MH i2c: D1 01 00 84 19 01 6F [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: D1 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: D1 01 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: D1 01 00 84 19 00 6E [12:02:43]Write to MH i2c: 01 00 00 85 19 9E [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 07 08 47 00 AA AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D1 C1 00 00 F4 03 04 00 A0 3C C0 66 B6 04 01 00 00 35 C1 65 47 B9 C1 BF F0 [12:02:43]CommunicateWithHost err = 0 [12:02:43]CheckOFDResponse [12:02:43]1017 (14) - 77093643461234 [12:02:43]1041 (16) - 0000000000871800 [12:02:43]1040 (4) - 49617 [12:02:43]1012 (4) - 17.08.2024 06:01 [12:02:43]1206 (1) - 0 [12:02:43]OFD Sender: Remove packet 49617 [12:02:43]ProducePacketName [12:02:43]name=ofd_packets/00049617 [12:02:43]NVStorageDeleteData [12:02:44]OFD Sender: No OFD packet to send [12:02:44]*** Cut start [12:02:44]*** Purtial cut [12:02:44]*** Stage 1: CUTSNS_PIN = 1 [12:02:44]Read from MH i2c: 01 [12:02:44]MH_I2C_Read... [12:02:44]*** Stop cut motor [12:02:44]*** Cut end [12:02:44]Read from MH i2c: 01 07 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 07 00 85 19 00 00 00 00 00 FF 0F B3 [12:02:44]process_action close_receipt done [12:02:44]requested_data is exist [12:02:44]produce_requested_data [12:02:44]requested_item fm.sn is exist - process it [12:02:44]wFMCommunicate request_size=4 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 11 00 00 [12:02:44]Write to MH i2c: E2 08 00 86 19 80 11 00 00 00 00 00 00 19 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:44]Read from MH i2c: E2 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 17 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 17 00 86 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 64 [12:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:02:44]wFMCommunicate OK [12:02:44]requested_item fd.num is exist - process it [12:02:44]SAM_PROTO_GetFieldsCounters [12:02:44]wFMCommunicate request_size=4 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 13 00 00 [12:02:44]Write to MH i2c: E2 08 00 87 19 80 13 00 00 00 00 00 00 1C [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:44]Read from MH i2c: E2 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 62 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 62 00 87 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D1 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [12:02: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D1 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:44]wFMCommunicate OK [12:02:44]SAM_PROTO_GetFieldsCounters done [12:02:44]requested_item shift.num is exist - process it [12:02:44]requested_item shift.opened is exist - process it [12:02:44]req_shift_opened [12:02:44]FM_GetShiftState [12:02:44]SAM_PROTO_GetShiftState [12:02:44]wFMCommunicate request_size=4 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 13 01 00 [12:02:44]Write to MH i2c: E2 08 00 88 19 80 13 01 00 00 00 00 00 1E [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:44]Read from MH i2c: E2 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 0E 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 0E 00 88 19 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 63 [12:02:44]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:02:44]wFMCommunicate OK [12:02:44]SAM_PROTO_GetShiftState done [12:02:44]FM_GetShiftState done [12:02:44]req_shift_opened done [12:02:44]requested_item shift.open_date is exist - process it [12:02:44]req_shift_open_date [12:02:44]req_shift_open_date done [12:02:44]produce_requested_data done [12:02:44]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49617,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:02:44]process_action_free close_receipt [12:02:44]json_value_free [12:02:44]json_value_free done [12:02:44]process_json_proto returns [12:02:44]Send response to host [12:02:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49617,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:02:44]free response buf [12:02:44]execute_script done [12:02:44]execute_script returns [12:02:44]free content buf [12:02:44]Sock 9.Close socket [12:02:44]Sock 9.Thread stoped [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:32]accept exits with 7 [12:05:32]New connection [12:05:32]New thread 3066944868 created [12:05:32]Thread 3066801508 joined [12:05:32]Waiting for new connection... [12:05:32] Sock 7.Parse request [12:05:32]Sock 7.Check first char [12:05:32]Sock 7.First char is OK [12:05:32]request: POST /json_proto HTTP/1.0 [12:05:32]Method: POST [12:05:32]URL: /json_proto [12:05:32]Method is POST - this is cgi request [12:05:32]url: /json_proto [12:05:32]query_string will be loaded in cgi processing [12:05:32]execute_cgi json_proto POST (null) [12:05:32]execute_cgi path=json_proto method=POST [12:05:32]POST find Content-Length [12:05:32]Host: 172.17.46.196:8080 [12:05:32]Content-Length: 689 [12:05:32]Content-Type: application/json [12:05:32] [12:05:32]POST finish read [12:05:32]Found Content-Length = 689 [12:05:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189806", "tax_sys" : 0, "items" : [ { "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:32]execute_script... [12:05:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189806", "tax_sys" : 0, "items" : [ { "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:32]POST & json_proto [12:05:32]process_json_proto [12:05:32]json parsed OK: [12:05:32]protocol is kg_v1.0 [12:05:32]action value=close_receipt [12:05:32]process_action close_receipt [12:05:32]cmd_close_receipt [12:05:32]MH_GetDate [12:05:32]Write to MH i2c: F0 00 00 89 19 91 [12:05:32]Write i2c OK [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: F0 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: F0 09 00 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: F0 09 00 89 19 00 0F 92 C0 66 07 E8 5D 66 13 [12:05:32]GetLastDocTimeStamp 1723896164 [12:05:32]current date 1723896335 [12:05:32]FM_GetShiftState [12:05:32]SAM_PROTO_GetShiftState [12:05:32]wFMCommunicate request_size=4 [12:05:32]MH_SAM_APDU [12:05:32]CAPDU: 80 13 01 00 [12:05:32]Write to MH i2c: E2 08 00 8A 19 80 13 01 00 00 00 00 00 20 [12:05:32]Write i2c OK [12:05:32]MH_I2C_Read... [12:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:32]Read from MH i2c: E2 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: E2 0E 00 [12:05:32]MH_I2C_Read... [12:05:32]Read from MH i2c: E2 0E 00 8A 19 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 65 [12:05:32]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:05:32]wFMCommunicate OK [12:05:32]SAM_PROTO_GetShiftState done [12:05:32]FM_GetShiftState done [12:05:32]opened in 1723853354 [12:05:32]opened+sec_in_day 1723939754 [12:05:32]quantity*price = 8100 [12:05:32]sum+1 = 8101 [12:05:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 81.00 НСП 1% : 0.72 НДС 12% : 8.60 Наличными: 81.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 55 17.08.2024 12:05 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49618 ФПД: 223165768143420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T120535&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49618&fm=223165768143420&tin=02508201610067®Number=0000000000092546&sum=8100 0 [12:05:33]StoreToDocumentArchive [12:05:33]shift 465 fd 49618 [12:05:33]save to /storage/0465/doc_00049618 [12:05:33]save last doc name /storage/0465/doc_00049618 to /storage/kkm_last_doc_name [12:05:33]save OK [12:05:33]Clear old archive folders... [12:05:33]ProcessDocumentItem done err = 0, tmpTLVsize=292 [12:05:33]tlvbuf is B6ED86D0 [12:05:33]SAM_PROTO_ClearQueue [12:05:33]wFMCommunicate request_size=4 [12:05:33]MH_SAM_APDU [12:05:33]CAPDU: 80 09 00 00 [12:05:33]Write to MH i2c: E2 08 00 97 19 80 09 00 00 00 00 00 00 22 [12:05:33]Write i2c OK [12:05:33]MH_I2C_Read... [12:05:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:33]Read from MH i2c: E2 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: E2 03 00 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: E2 03 00 97 19 00 90 00 24 [12:05:33]RAPDU: 90 00 [12:05:33]wFMCommunicate OK [12:05:33]SAM_PROTO_ClearQueue done [12:05:33]KKMCreateOFDPacket [12:05:33]OFDProtocolAddRootSTLVToBuf [12:05:33]FM_MakeSignedData [12:05:33]FM_MakeSignedData [12:05:33]SAM_PROTO_SignData [12:05:33]wFMCommunicate request_size=4 [12:05:33]MH_SAM_APDU [12:05:33]CAPDU: 80 0D 01 02 [12:05:33]Write to MH i2c: E2 08 00 98 19 80 0D 01 02 00 00 00 00 2A [12:05:33]Write i2c OK [12:05:33]MH_I2C_Read... [12:05:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:33]Read from MH i2c: E2 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: E2 03 00 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: E2 03 00 98 19 00 90 00 25 [12:05:33]RAPDU: 90 00 [12:05:33]wFMCommunicate OK [12:05:33]wFMCommunicate request_size=255 [12:05:33]MH_SAM_APDU [12:05:33]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0F 92 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [12:05:33]Write to MH i2c: E2 02 01 99 19 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0F 92 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 31 [12:05:33]Write i2c OK [12:05:33]MH_I2C_Read... [12:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:33]Read from MH i2c: E2 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: E2 03 00 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: E2 03 00 99 19 00 90 00 26 [12:05:33]RAPDU: 90 00 [12:05:33]wFMCommunicate OK [12:05:33]wFMCommunicate request_size=51 [12:05:33]MH_SAM_APDU [12:05:33]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D2 C1 00 00 35 04 06 00 CA F7 D4 56 12 3C [12:05:33]Write to MH i2c: E2 36 00 9A 19 80 0D 02 02 2E 00 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D2 C1 00 00 35 04 06 00 CA F7 D4 56 12 3C 00 00 83 [12:05:33]Write i2c OK [12:05:33]MH_I2C_Read... [12:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:33]Read from MH i2c: E2 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: E2 03 00 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: E2 03 00 9A 19 00 90 00 27 [12:05:33]RAPDU: 90 00 [12:05:33]wFMCommunicate OK [12:05:33]wFMCommunicate request_size=4 [12:05:33]MH_SAM_APDU [12:05:33]CAPDU: 80 0D 03 02 [12:05:33]Write to MH i2c: E2 08 00 9B 19 80 0D 03 02 00 00 00 00 2F [12:05:33]Write i2c OK [12:05:33]MH_I2C_Read... [12:05:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:33]Read from MH i2c: E2 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: E2 0B 00 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: E2 0B 00 9B 19 00 08 4C D0 F2 7E 2B 63 0B 90 00 5D [12:05:33]RAPDU: 08 4C D0 F2 7E 2B 63 0B 90 00 [12:05:33]wFMCommunicate OK [12:05:33]SAM_PROTO_SignData done [12:05:33]FM_MakeSignedData done [12:05:33]CreateOFDProtocolMessage [12:05:33]wFMCommunicate request_size=4 [12:05:33]MH_SAM_APDU [12:05:33]CAPDU: 80 11 00 00 [12:05:33]Write to MH i2c: E2 08 00 9C 19 80 11 00 00 00 00 00 00 2F [12:05:33]Write i2c OK [12:05:33]MH_I2C_Read... [12:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:33]Read from MH i2c: E2 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: E2 17 00 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: E2 17 00 9C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7A [12:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:05:33]wFMCommunicate OK [12:05:33]CreateOFDProtocolMessage done [12:05:33]OFDSenderStorePacket 49618 [12:05:33]StoreOFDPacket docnum=49618 [12:05:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 38 01 00 00 B6 4E 30 01 38 D0 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0F 92 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D2 C1 00 00 35 04 06 00 CA F7 D4 56 12 3C 08 4C D0 F2 7E 2B 63 0B [12:05:33]CheckFolder [12:05:33]dirname=/storage/ofd_packets [12:05:33]CheckFolder done [12:05:33]ProducePacketName [12:05:33]name=ofd_packets/00049618 [12:05:33]NVStorageSaveData ofd_packets/00049618 [12:05:33]File name is /storage/ofd_packets/00049618 [12:05:33]Write 342 bytes [12:05:33]NVStorageSaveData done [12:05:33]OFDSenderStorePacket done [12:05:33]KKMCreateOFDPacket done [12:05:33]NVStorageSaveData kkm_last_timestamp [12:05:33]File name is /storage/kkm_last_timestamp [12:05:33]OFD Sender: Processing packet 49618 [packets to send 21, broken 20] [12:05:33]ProducePacketName [12:05:33]name=ofd_packets/00049618 [12:05:33]OFD Sender: To server: pG, [12:05:33]CommunicateWithHost lk.salyk.kg:30040 [12:05:33]ConnectInit lk.salyk.kg [12:05:33]Write 4 bytes [12:05:33]NVStorageSaveData done [12:05:33]ExternCall_PrintAddStr [12:05:33]wPrintStart [12:05:33]Write to MH i2c: 01 00 00 9D 19 B6 [12:05:33]Write i2c OK [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: 01 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: 01 07 00 [12:05:33]MH_I2C_Read... [12:05:33]Read from MH i2c: 01 07 00 9D 19 00 00 00 00 00 FF 0F CB [12:05:33]RasterBufferAndPrint [12:05:33]line Счет N : (3)189806 [12:05:33]line ИНН: 02508201610067 [12:05:33]line Контрольно-Кассовый Чек [12:05:33]line ПРОДАЖА [12:05:33]line Товар: 4603290004824 [12:05:33]line Печ зат Яшкино слив Крем 182г [12:05:33]line 1.000 * 81.00 [12:05:33]line = 81.00 [12:05:33]line НДС 12% НСП 1% [12:05:33]line > о реализуемом товаре [12:05:33]line ИТОГО: 81.00 [12:05:33]line НСП 1% : 0.72 [12:05:33]line НДС 12% : 8.60 [12:05:33]line Наличными: 81.00 [12:05:33]line Безнал.: 0.00 [12:05:33]line Место: АЗС № 95 "Партнер Нефть" [12:05:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:05:33]line СНО: Общий режим [12:05:33]line Чек 55 17.08.2024 12:05 [12:05:33]line Смена: 465 ФФД: 1.0 [12:05:33]line ЗНМ: 0300000078 [12:05:33]line РНМ: 0000000000092546 [12:05:33]line Версия ККМ: 001 [12:05:33]line ФМ: 0000000000871800 [12:05:33]line ФД: 49618 [12:05:33]line ФПД: 223165768143420 [12:05:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T120535&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49618&fm=223165768143420&tin=02508201610067®Number=0000000000092546&sum=8100 [12:05:34]line 0 [12:05:34]Connected sock=11 [12:05:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 38 01 00 00 B6 4E 30 01 38 D0 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0F 92 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D2 C1 00 00 35 04 06 00 CA F7 D4 56 12 3C 08 4C D0 F2 7E 2B 63 0B [12:05:34]written 0, free lines is 4095 [12:05:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 34 25 47 00 16 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D2 C1 00 00 F4 03 04 00 4B 3D C0 66 B6 04 01 00 00 26 5C DB E1 83 94 CD ED [12:05:34]CommunicateWithHost err = 0 [12:05:34]CheckOFDResponse [12:05:34]1017 (14) - 77093643461234 [12:05:34]1041 (16) - 0000000000871800 [12:05:34]1040 (4) - 49618 [12:05:34]1012 (4) - 17.08.2024 06:03 [12:05:34]1206 (1) - 0 [12:05:34]OFD Sender: Remove packet 49618 [12:05:34]ProducePacketName [12:05:34]name=ofd_packets/00049618 [12:05:34]NVStorageDeleteData [12:05:34]Write to MH i2c: 01 00 00 C6 19 DF [12:05:34]Write i2c OK [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: 01 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: 01 07 00 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: 01 07 00 C6 19 00 00 00 00 00 D9 0C CB [12:05:34]RasterBufferAndPrint [12:05:34]line [12:05:34]line [12:05:34]line [12:05:34]line [12:05:34]line [12:05:34]written 0, free lines is 3298 [12:05:34]MH_Cut [12:05:34]Write to MH i2c: D1 01 00 CD 19 01 B8 [12:05:34]Write i2c OK [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: D1 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: D1 01 00 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: D1 01 00 CD 19 00 B7 [12:05:34]Write to MH i2c: 01 00 00 CE 19 E7 [12:05:34]Write i2c OK [12:05:34]MH_I2C_Read... [12:05:34]OFD Sender: No OFD packet to send [12:05:35]*** Cut start [12:05:35]*** Purtial cut [12:05:35]*** CUTSNS_PIN = 0 [12:05:35]*** Stage 1: CUTSNS_PIN = 1 [12:05:37]Read from MH i2c: 01 [12:05:37]MH_I2C_Read... [12:05:37]*** Stop cut motor [12:05:37]*** Cut end [12:05:37]Read from MH i2c: 01 07 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: 01 07 00 CE 19 00 00 00 00 00 FF 0F FC [12:05:37]process_action close_receipt done [12:05:37]requested_data is exist [12:05:37]produce_requested_data [12:05:37]requested_item fm.sn is exist - process it [12:05:37]wFMCommunicate request_size=4 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 11 00 00 [12:05:37]Write to MH i2c: E2 08 00 CF 19 80 11 00 00 00 00 00 00 62 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 17 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 17 00 CF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AD [12:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:05:37]wFMCommunicate OK [12:05:37]requested_item fd.num is exist - process it [12:05:37]SAM_PROTO_GetFieldsCounters [12:05:37]wFMCommunicate request_size=4 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 13 00 00 [12:05:37]Write to MH i2c: E2 08 00 D0 19 80 13 00 00 00 00 00 00 65 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 62 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 62 00 D0 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D2 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [12:05: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D2 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:37]wFMCommunicate OK [12:05:37]SAM_PROTO_GetFieldsCounters done [12:05:37]requested_item shift.num is exist - process it [12:05:37]requested_item shift.opened is exist - process it [12:05:37]req_shift_opened [12:05:37]FM_GetShiftState [12:05:37]SAM_PROTO_GetShiftState [12:05:37]wFMCommunicate request_size=4 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 13 01 00 [12:05:37]Write to MH i2c: E2 08 00 D1 19 80 13 01 00 00 00 00 00 67 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 0E 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 0E 00 D1 19 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 AC [12:05:37]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:05:37]wFMCommunicate OK [12:05:37]SAM_PROTO_GetShiftState done [12:05:37]FM_GetShiftState done [12:05:37]req_shift_opened done [12:05:37]requested_item shift.open_date is exist - process it [12:05:37]req_shift_open_date [12:05:37]req_shift_open_date done [12:05:37]produce_requested_data done [12:05:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49618,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:05:37]process_action_free close_receipt [12:05:37]json_value_free [12:05:37]json_value_free done [12:05:37]process_json_proto returns [12:05:37]Send response to host [12:05:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49618,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:05:37]free response buf [12:05:37]execute_script done [12:05:37]execute_script returns [12:05:37]free content buf [12:05:37]Sock 7.Close socket [12:05:37]Sock 7.Thread stoped [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]accept exits with 9 [12:13:55]New connection [12:13:55]New thread 3066801508 created [12:13:55]Thread 3066944868 joined [12:13:55]Waiting for new connection... [12:13:55] Sock 9.Parse request [12:13:55]Sock 9.Check first char [12:13:55]Sock 9.First char is OK [12:13:55]request: POST /json_proto HTTP/1.0 [12:13:55]Method: POST [12:13:55]URL: /json_proto [12:13:55]Method is POST - this is cgi request [12:13:55]url: /json_proto [12:13:55]query_string will be loaded in cgi processing [12:13:55]execute_cgi json_proto POST (null) [12:13:55]execute_cgi path=json_proto method=POST [12:13:55]POST find Content-Length [12:13:55]Host: 172.17.46.196:8080 [12:13:55]Content-Length: 621 [12:13:55]Content-Type: application/json [12:13:55] [12:13:55]POST finish read [12:13:55]Found Content-Length = 621 [12:13:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189807", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:55]execute_script... [12:13:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189807", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:55]POST & json_proto [12:13:55]process_json_proto [12:13:55]json parsed OK: [12:13:55]protocol is kg_v1.0 [12:13:55]action value=close_receipt [12:13:55]process_action close_receipt [12:13:55]cmd_close_receipt [12:13:55]MH_GetDate [12:13:55]Write to MH i2c: F0 00 00 D2 19 DA [12:13:55]Write i2c OK [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: F0 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: F0 09 00 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: F0 09 00 D2 19 00 06 94 C0 66 07 E8 5D 66 55 [12:13:55]GetLastDocTimeStamp 1723896335 [12:13:55]current date 1723896838 [12:13:55]FM_GetShiftState [12:13:55]SAM_PROTO_GetShiftState [12:13:55]wFMCommunicate request_size=4 [12:13:55]MH_SAM_APDU [12:13:55]CAPDU: 80 13 01 00 [12:13:55]Write to MH i2c: E2 08 00 D3 19 80 13 01 00 00 00 00 00 69 [12:13:55]Write i2c OK [12:13:55]MH_I2C_Read... [12:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:55]Read from MH i2c: E2 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 0E 00 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 0E 00 D3 19 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 AE [12:13:55]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:13:55]wFMCommunicate OK [12:13:55]SAM_PROTO_GetShiftState done [12:13:55]FM_GetShiftState done [12:13:55]opened in 1723853354 [12:13:55]opened+sec_in_day 1723939754 [12:13:55]quantity*price = 13000 [12:13:55]sum+1 = 13001 [12:13:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 56 17.08.2024 12:13 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49619 ФПД: 240344160018886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T121358&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49619&fm=240344160018886&tin=02508201610067®Number=0000000000092546&sum=13000 0 [12:13:56]StoreToDocumentArchive [12:13:56]shift 465 fd 49619 [12:13:56]save to /storage/0465/doc_00049619 [12:13:56]save last doc name /storage/0465/doc_00049619 to /storage/kkm_last_doc_name [12:13:56]save OK [12:13:56]Clear old archive folders... [12:13:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:13:56]tlvbuf is B6EBF6B0 [12:13:56]SAM_PROTO_ClearQueue [12:13:56]wFMCommunicate request_size=4 [12:13:56]MH_SAM_APDU [12:13:56]CAPDU: 80 09 00 00 [12:13:56]Write to MH i2c: E2 08 00 E0 19 80 09 00 00 00 00 00 00 6B [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:56]Read from MH i2c: E2 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 03 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 03 00 E0 19 00 90 00 6D [12:13:56]RAPDU: 90 00 [12:13:56]wFMCommunicate OK [12:13:56]SAM_PROTO_ClearQueue done [12:13:56]KKMCreateOFDPacket [12:13:56]OFDProtocolAddRootSTLVToBuf [12:13:56]FM_MakeSignedData [12:13:56]FM_MakeSignedData [12:13:56]SAM_PROTO_SignData [12:13:56]wFMCommunicate request_size=4 [12:13:56]MH_SAM_APDU [12:13:56]CAPDU: 80 0D 01 02 [12:13:56]Write to MH i2c: E2 08 00 E1 19 80 0D 01 02 00 00 00 00 73 [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:56]Read from MH i2c: E2 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 03 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 03 00 E1 19 00 90 00 6E [12:13:56]RAPDU: 90 00 [12:13:56]wFMCommunicate OK [12:13:56]wFMCommunicate request_size=255 [12:13:56]MH_SAM_APDU [12:13:56]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 06 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [12:13:56]Write to MH i2c: E2 02 01 E2 19 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 06 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 38 [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:56]Read from MH i2c: E2 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 03 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 03 00 E2 19 00 90 00 6F [12:13:56]RAPDU: 90 00 [12:13:56]wFMCommunicate OK [12:13:56]wFMCommunicate request_size=32 [12:13:56]MH_SAM_APDU [12:13:56]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 D3 C1 00 00 35 04 06 00 DA 97 7C 48 21 C6 [12:13:56]Write to MH i2c: E2 23 00 E3 19 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 D3 C1 00 00 35 04 06 00 DA 97 7C 48 21 C6 00 00 7B [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:56]Read from MH i2c: E2 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 03 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 03 00 E3 19 00 90 00 70 [12:13:56]RAPDU: 90 00 [12:13:56]wFMCommunicate OK [12:13:56]wFMCommunicate request_size=4 [12:13:56]MH_SAM_APDU [12:13:56]CAPDU: 80 0D 03 02 [12:13:56]Write to MH i2c: E2 08 00 E4 19 80 0D 03 02 00 00 00 00 78 [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:56]Read from MH i2c: E2 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 0B 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 0B 00 E4 19 00 DE 13 0E 55 E0 3C C1 24 90 00 CE [12:13:56]RAPDU: DE 13 0E 55 E0 3C C1 24 90 00 [12:13:56]wFMCommunicate OK [12:13:56]SAM_PROTO_SignData done [12:13:56]FM_MakeSignedData done [12:13:56]CreateOFDProtocolMessage [12:13:56]wFMCommunicate request_size=4 [12:13:56]MH_SAM_APDU [12:13:56]CAPDU: 80 11 00 00 [12:13:56]Write to MH i2c: E2 08 00 E5 19 80 11 00 00 00 00 00 00 78 [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:56]Read from MH i2c: E2 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 17 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 17 00 E5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C3 [12:13:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:13:56]wFMCommunicate OK [12:13:56]CreateOFDProtocolMessage done [12:13:56]OFDSenderStorePacket 49619 [12:13:56]StoreOFDPacket docnum=49619 [12:13:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 8D 07 1D 01 9E 75 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 06 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D3 C1 00 00 35 04 06 00 DA 97 7C 48 21 C6 DE 13 0E 55 E0 3C C1 24 [12:13:56]CheckFolder [12:13:56]dirname=/storage/ofd_packets [12:13:56]CheckFolder done [12:13:56]ProducePacketName [12:13:56]name=ofd_packets/00049619 [12:13:56]NVStorageSaveData ofd_packets/00049619 [12:13:56]File name is /storage/ofd_packets/00049619 [12:13:56]Write 323 bytes [12:13:56]NVStorageSaveData done [12:13:56]OFDSenderStorePacket done [12:13:56]KKMCreateOFDPacket done [12:13:56]NVStorageSaveData kkm_last_timestamp [12:13:56]File name is /storage/kkm_last_timestamp [12:13:56]Write 4 bytes [12:13:56]NVStorageSaveData done [12:13:56]ExternCall_PrintAddStr [12:13:56]wPrintStart [12:13:56]Write to MH i2c: 01 00 00 E6 19 FF [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: 01 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: 01 07 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: 01 07 00 E6 19 00 00 00 00 00 FF 0F 14 [12:13:56]RasterBufferAndPrint [12:13:56]line Счет N : (3)189807 [12:13:56]line ИНН: 02508201610067 [12:13:56]line Контрольно-Кассовый Чек [12:13:56]line ПРОДАЖА [12:13:56]line Товар: 4780014240406 [12:13:56]line Сигареты Sovereign Blue [12:13:56]line 1.000 * 130.00 [12:13:56]line = 130.00 [12:13:56]line НДС 12% НСП 1% [12:13:56]line > о реализуемом товаре [12:13:56]line ИТОГО: 130.00 [12:13:56]line НСП 1% : 1.15 [12:13:56]line НДС 12% : 13.80 [12:13:56]line Наличными: 130.00 [12:13:56]line Безнал.: 0.00 [12:13:56]line Место: АЗС № 95 "Партнер Нефть" [12:13:56]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:13:56]line СНО: Общий режим [12:13:56]line Чек 56 17.08.2024 12:13 [12:13:56]line Смена: 465 ФФД: 1.0 [12:13:56]line ЗНМ: 0300000078 [12:13:56]line РНМ: 0000000000092546 [12:13:56]line Версия ККМ: 001 [12:13:56]line ФМ: 0000000000871800 [12:13:56]line ФД: 49619 [12:13:57]line ФПД: 240344160018886 [12:13:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T121358&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49619&fm=240344160018886&tin=02508201610067®Number=0000000000092546&sum=13000 [12:13:57]line 0 [12:13:57]OFD Sender: Processing packet 49619 [packets to send 21, broken 20] [12:13:57]ProducePacketName [12:13:57]name=ofd_packets/00049619 [12:13:57]OFD Sender: To server: pG, [12:13:57]CommunicateWithHost lk.salyk.kg:30040 [12:13:57]ConnectInit lk.salyk.kg [12:13:57]written 0, free lines is 4095 [12:13:57]Connected sock=11 [12:13:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 8D 07 1D 01 9E 75 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 06 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D3 C1 00 00 35 04 06 00 DA 97 7C 48 21 C6 DE 13 0E 55 E0 3C C1 24 [12:13:57]Write to MH i2c: 01 00 00 0E 1A 28 [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: 01 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: 01 07 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: 01 07 00 0E 1A 00 00 00 00 00 04 0D 40 [12:13:57]RasterBufferAndPrint [12:13:57]line [12:13:57]line [12:13:57]line [12:13:57]line [12:13:57]line [12:13:57]written 0, free lines is 3341 [12:13:57]MH_Cut [12:13:57]Write to MH i2c: D1 01 00 15 1A 01 01 [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: D1 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: D1 01 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: D1 01 00 15 1A 00 00 [12:13:57]Write to MH i2c: 01 00 00 16 1A 30 [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BF 15 47 00 CA EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D3 C1 00 00 F4 03 04 00 42 3F C0 66 B6 04 01 00 00 C1 F3 1B 01 0E B3 36 5D [12:13:57]CommunicateWithHost err = 0 [12:13:57]CheckOFDResponse [12:13:57]1017 (14) - 77093643461234 [12:13:57]1041 (16) - 0000000000871800 [12:13:57]1040 (4) - 49619 [12:13:57]1012 (4) - 17.08.2024 06:12 [12:13:57]1206 (1) - 0 [12:13:57]OFD Sender: Remove packet 49619 [12:13:57]ProducePacketName [12:13:57]name=ofd_packets/00049619 [12:13:57]NVStorageDeleteData [12:13:58]OFD Sender: No OFD packet to send [12:13:58]*** Cut start [12:13:58]*** Purtial cut [12:13:58]*** Stage 1: CUTSNS_PIN = 1 [12:13:58]Read from MH i2c: 01 [12:13:58]MH_I2C_Read... [12:13:58]*** Stop cut motor [12:13:58]*** Cut end [12:13:58]Read from MH i2c: 01 07 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: 01 07 00 16 1A 00 00 00 00 00 FF 0F 45 [12:13:58]process_action close_receipt done [12:13:58]requested_data is exist [12:13:58]produce_requested_data [12:13:58]requested_item fm.sn is exist - process it [12:13:58]wFMCommunicate request_size=4 [12:13:58]MH_SAM_APDU [12:13:58]CAPDU: 80 11 00 00 [12:13:58]Write to MH i2c: E2 08 00 17 1A 80 11 00 00 00 00 00 00 AB [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 [12:13:58]MH_I2C_Read... [12:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:58]Read from MH i2c: E2 17 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 17 00 17 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F6 [12:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:13:58]wFMCommunicate OK [12:13:58]requested_item fd.num is exist - process it [12:13:58]SAM_PROTO_GetFieldsCounters [12:13:58]wFMCommunicate request_size=4 [12:13:58]MH_SAM_APDU [12:13:58]CAPDU: 80 13 00 00 [12:13:58]Write to MH i2c: E2 08 00 18 1A 80 13 00 00 00 00 00 00 AE [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:58]Read from MH i2c: E2 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 62 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 62 00 18 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D3 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [12:13: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D3 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:58]wFMCommunicate OK [12:13:58]SAM_PROTO_GetFieldsCounters done [12:13:58]requested_item shift.num is exist - process it [12:13:58]requested_item shift.opened is exist - process it [12:13:58]req_shift_opened [12:13:58]FM_GetShiftState [12:13:58]SAM_PROTO_GetShiftState [12:13:58]wFMCommunicate request_size=4 [12:13:58]MH_SAM_APDU [12:13:58]CAPDU: 80 13 01 00 [12:13:58]Write to MH i2c: E2 08 00 19 1A 80 13 01 00 00 00 00 00 B0 [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:58]Read from MH i2c: E2 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 0E 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 0E 00 19 1A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 F5 [12:13:58]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:13:58]wFMCommunicate OK [12:13:58]SAM_PROTO_GetShiftState done [12:13:58]FM_GetShiftState done [12:13:58]req_shift_opened done [12:13:58]requested_item shift.open_date is exist - process it [12:13:58]req_shift_open_date [12:13:58]req_shift_open_date done [12:13:58]produce_requested_data done [12:13:58]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49619,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:13:58]process_action_free close_receipt [12:13:58]json_value_free [12:13:58]json_value_free done [12:13:58]process_json_proto returns [12:13:58]Send response to host [12:13:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49619,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:13:58]free response buf [12:13:58]execute_script done [12:13:58]execute_script returns [12:13:58]free content buf [12:13:58]Sock 9.Close socket [12:13:58]Sock 9.Thread stoped [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:19]accept exits with 10 [12:14:19]New connection [12:14:19]New thread 3066944868 created [12:14:19]Thread 3066801508 joined [12:14:19]Waiting for new connection... [12:14:19] Sock 10.Parse request [12:14:19]Sock 10.Check first char [12:14:19]Sock 10.First char is OK [12:14:19]request: POST /json_proto HTTP/1.0 [12:14:19]Method: POST [12:14:19]URL: /json_proto [12:14:19]Method is POST - this is cgi request [12:14:19]url: /json_proto [12:14:19]query_string will be loaded in cgi processing [12:14:19]execute_cgi json_proto POST (null) [12:14:19]execute_cgi path=json_proto method=POST [12:14:19]POST find Content-Length [12:14:19]Host: 172.17.46.196:8080 [12:14:19]Content-Length: 654 [12:14:19]Content-Type: application/json [12:14:19] [12:14:19]POST finish read [12:14:19]Found Content-Length = 654 [12:14:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189808", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:19]execute_script... [12:14:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189808", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:19]POST & json_proto [12:14:19]process_json_proto [12:14:19]json parsed OK: [12:14:19]protocol is kg_v1.0 [12:14:19]action value=close_receipt [12:14:19]process_action close_receipt [12:14:19]cmd_close_receipt [12:14:19]MH_GetDate [12:14:19]Write to MH i2c: F0 00 00 1A 1A 23 [12:14:19]Write i2c OK [12:14:19]MH_I2C_Read... [12:14:19]Read from MH i2c: F0 [12:14:19]MH_I2C_Read... [12:14:19]Read from MH i2c: F0 09 00 [12:14:19]MH_I2C_Read... [12:14:19]Read from MH i2c: F0 09 00 1A 1A 00 1E 94 C0 66 07 E8 5D 66 B6 [12:14:19]GetLastDocTimeStamp 1723896838 [12:14:19]current date 1723896862 [12:14:19]FM_GetShiftState [12:14:19]SAM_PROTO_GetShiftState [12:14:19]wFMCommunicate request_size=4 [12:14:19]MH_SAM_APDU [12:14:19]CAPDU: 80 13 01 00 [12:14:19]Write to MH i2c: E2 08 00 1B 1A 80 13 01 00 00 00 00 00 B2 [12:14:19]Write i2c OK [12:14:19]MH_I2C_Read... [12:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:19]Read from MH i2c: E2 [12:14:19]MH_I2C_Read... [12:14:19]Read from MH i2c: E2 0E 00 [12:14:19]MH_I2C_Read... [12:14:19]Read from MH i2c: E2 0E 00 1B 1A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 F7 [12:14:19]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:14:19]wFMCommunicate OK [12:14:19]SAM_PROTO_GetShiftState done [12:14:19]FM_GetShiftState done [12:14:19]opened in 1723853354 [12:14:19]opened+sec_in_day 1723939754 [12:14:19]quantity*price = 9500 [12:14:19]sum+1 = 9501 [12:14:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 57 17.08.2024 12:14 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49620 ФПД: 78355281690333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T121422&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49620&fm=78355281690333&tin=02508201610067®Number=0000000000092546&sum=9500 0 [12:14:19]StoreToDocumentArchive [12:14:19]shift 465 fd 49620 [12:14:19]save to /storage/0465/doc_00049620 [12:14:19]save last doc name /storage/0465/doc_00049620 to /storage/kkm_last_doc_name [12:14:19]save OK [12:14:19]Clear old archive folders... [12:14:19]ProcessDocumentItem done err = 0, tmpTLVsize=293 [12:14:19]tlvbuf is 01901760 [12:14:19]SAM_PROTO_ClearQueue [12:14:19]wFMCommunicate request_size=4 [12:14:19]MH_SAM_APDU [12:14:19]CAPDU: 80 09 00 00 [12:14:19]Write to MH i2c: E2 08 00 28 1A 80 09 00 00 00 00 00 00 B4 [12:14:19]Write i2c OK [12:14:19]MH_I2C_Read... [12:14:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:20]Read from MH i2c: E2 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 28 1A 00 90 00 B6 [12:14:20]RAPDU: 90 00 [12:14:20]wFMCommunicate OK [12:14:20]SAM_PROTO_ClearQueue done [12:14:20]KKMCreateOFDPacket [12:14:20]OFDProtocolAddRootSTLVToBuf [12:14:20]FM_MakeSignedData [12:14:20]FM_MakeSignedData [12:14:20]SAM_PROTO_SignData [12:14:20]wFMCommunicate request_size=4 [12:14:20]MH_SAM_APDU [12:14:20]CAPDU: 80 0D 01 02 [12:14:20]Write to MH i2c: E2 08 00 29 1A 80 0D 01 02 00 00 00 00 BC [12:14:20]Write i2c OK [12:14:20]MH_I2C_Read... [12:14:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:20]Read from MH i2c: E2 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 29 1A 00 90 00 B7 [12:14:20]RAPDU: 90 00 [12:14:20]wFMCommunicate OK [12:14:20]wFMCommunicate request_size=255 [12:14:20]MH_SAM_APDU [12:14:20]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1E 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [12:14:20]Write to MH i2c: E2 02 01 2A 1A 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1E 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 3F [12:14:20]Write i2c OK [12:14:20]MH_I2C_Read... [12:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:20]Read from MH i2c: E2 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 2A 1A 00 90 00 B8 [12:14:20]RAPDU: 90 00 [12:14:20]wFMCommunicate OK [12:14:20]wFMCommunicate request_size=52 [12:14:20]MH_SAM_APDU [12:14:20]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D4 C1 00 00 35 04 06 00 47 43 82 BB 3E DD [12:14:20]Write to MH i2c: E2 37 00 2B 1A 80 0D 02 02 2F 00 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D4 C1 00 00 35 04 06 00 47 43 82 BB 3E DD 00 00 F2 [12:14:20]Write i2c OK [12:14:20]MH_I2C_Read... [12:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:20]Read from MH i2c: E2 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 2B 1A 00 90 00 B9 [12:14:20]RAPDU: 90 00 [12:14:20]wFMCommunicate OK [12:14:20]wFMCommunicate request_size=4 [12:14:20]MH_SAM_APDU [12:14:20]CAPDU: 80 0D 03 02 [12:14:20]Write to MH i2c: E2 08 00 2C 1A 80 0D 03 02 00 00 00 00 C1 [12:14:20]Write i2c OK [12:14:20]MH_I2C_Read... [12:14:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:20]Read from MH i2c: E2 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 0B 00 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 0B 00 2C 1A 00 C5 4A 48 7F 13 45 58 A3 90 00 EB [12:14:20]RAPDU: C5 4A 48 7F 13 45 58 A3 90 00 [12:14:20]wFMCommunicate OK [12:14:20]SAM_PROTO_SignData done [12:14:20]FM_MakeSignedData done [12:14:20]CreateOFDProtocolMessage [12:14:20]wFMCommunicate request_size=4 [12:14:20]MH_SAM_APDU [12:14:20]CAPDU: 80 11 00 00 [12:14:20]Write to MH i2c: E2 08 00 2D 1A 80 11 00 00 00 00 00 00 C1 [12:14:20]Write i2c OK [12:14:20]MH_I2C_Read... [12:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:20]Read from MH i2c: E2 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 17 00 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 17 00 2D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0C [12:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:14:20]wFMCommunicate OK [12:14:20]CreateOFDProtocolMessage done [12:14:20]OFDSenderStorePacket 49620 [12:14:20]StoreOFDPacket docnum=49620 [12:14:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 3C 4B 31 01 AF EA 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1E 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D4 C1 00 00 35 04 06 00 47 43 82 BB 3E DD C5 4A 48 7F 13 45 58 A3 [12:14:20]CheckFolder [12:14:20]dirname=/storage/ofd_packets [12:14:20]CheckFolder done [12:14:20]ProducePacketName [12:14:20]name=ofd_packets/00049620 [12:14:20]NVStorageSaveData ofd_packets/00049620 [12:14:20]File name is /storage/ofd_packets/00049620 [12:14:20]Write 343 bytes [12:14:20]NVStorageSaveData done [12:14:20]OFDSenderStorePacket done [12:14:20]KKMCreateOFDPacket done [12:14:20]NVStorageSaveData kkm_last_timestamp [12:14:20]File name is /storage/kkm_last_timestamp [12:14:20]Write 4 bytes [12:14:20]NVStorageSaveData done [12:14:20]ExternCall_PrintAddStr [12:14:20]wPrintStart [12:14:20]Write to MH i2c: 01 00 00 2E 1A 48 [12:14:20]Write i2c OK [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: 01 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: 01 07 00 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: 01 07 00 2E 1A 00 00 00 00 00 FF 0F 5D [12:14:20]RasterBufferAndPrint [12:14:20]line Счет N : (3)189808 [12:14:20]line ИНН: 02508201610067 [12:14:20]line Контрольно-Кассовый Чек [12:14:20]line ПРОДАЖА [12:14:20]line Товар: 4700000480050 [12:14:20]line Напиток Nitro Energy эн green ж/б 0,45л [12:14:20]line 1.000 * 95.00 [12:14:20]line = 95.00 [12:14:20]line НДС 12% НСП 1% [12:14:20]line > о реализуемом товаре [12:14:20]line ИТОГО: 95.00 [12:14:20]line НСП 1% : 0.84 [12:14:20]line НДС 12% : 10.09 [12:14:20]line Наличными: 95.00 [12:14:20]line Безнал.: 0.00 [12:14:20]line Место: АЗС № 95 "Партнер Нефть" [12:14:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:14:20]line СНО: Общий режим [12:14:20]line Чек 57 17.08.2024 12:14 [12:14:20]line Смена: 465 ФФД: 1.0 [12:14:20]line ЗНМ: 0300000078 [12:14:20]line РНМ: 0000000000092546 [12:14:21]line Версия ККМ: 001 [12:14:21]line ФМ: 0000000000871800 [12:14:21]line ФД: 49620 [12:14:21]line ФПД: 78355281690333 [12:14:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T121422&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49620&fm=78355281690333&tin=02508201610067®Number=0000000000092546&sum=9500 [12:14:21]line 0 [12:14:21]OFD Sender: Processing packet 49620 [packets to send 21, broken 20] [12:14:21]ProducePacketName [12:14:21]name=ofd_packets/00049620 [12:14:21]OFD Sender: To server: pG, [12:14:21]CommunicateWithHost lk.salyk.kg:30040 [12:14:21]ConnectInit lk.salyk.kg [12:14:21]written 0, free lines is 4095 [12:14:21]Connected sock=11 [12:14:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 3C 4B 31 01 AF EA 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1E 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D4 C1 00 00 35 04 06 00 47 43 82 BB 3E DD C5 4A 48 7F 13 45 58 A3 [12:14:21]Write to MH i2c: 01 00 00 57 1A 71 [12:14:21]Write i2c OK [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: 01 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: 01 07 00 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: 01 07 00 57 1A 00 00 00 00 00 D4 0C 58 [12:14:21]RasterBufferAndPrint [12:14:21]line [12:14:21]line [12:14:21]line [12:14:21]line [12:14:21]line [12:14:21]written 0, free lines is 3300 [12:14:21]MH_Cut [12:14:21]Write to MH i2c: D1 01 00 5E 1A 01 4A [12:14:21]Write i2c OK [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: D1 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: D1 01 00 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: D1 01 00 5E 1A 00 49 [12:14:21]Write to MH i2c: 01 00 00 5F 1A 79 [12:14:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F8 C1 47 00 0D 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D4 C1 00 00 F4 03 04 00 5A 3F C0 66 B6 04 01 00 00 8A 9E 66 87 B8 55 7E B1 [12:14:21]CommunicateWithHost err = 0 [12:14:21]CheckOFDResponse [12:14:21]1017 (14) - 77093643461234 [12:14:21]1041 (16) - 0000000000871800 [12:14:21]1040 (4) - 49620 [12:14:21]1012 (4) - 17.08.2024 06:12 [12:14:21]1206 (1) - 0 [12:14:21]OFD Sender: Remove packet 49620 [12:14:21]ProducePacketName [12:14:21]name=ofd_packets/00049620 [12:14:21]NVStorageDeleteData [12:14:21]Write i2c OK [12:14:21]MH_I2C_Read... [12:14:22]OFD Sender: No OFD packet to send [12:14:22]*** Cut start [12:14:22]*** Purtial cut [12:14:22]*** CUTSNS_PIN = 0 [12:14:22]*** Stage 1: CUTSNS_PIN = 1 [12:14:24]Read from MH i2c: 01 [12:14:24]MH_I2C_Read... [12:14:24]*** Stop cut motor [12:14:24]*** Cut end [12:14:24]Read from MH i2c: 01 07 00 [12:14:24]MH_I2C_Read... [12:14:24]Read from MH i2c: 01 07 00 5F 1A 00 00 00 00 00 FF 0F 8E [12:14:24]process_action close_receipt done [12:14:24]requested_data is exist [12:14:24]produce_requested_data [12:14:24]requested_item fm.sn is exist - process it [12:14:24]wFMCommunicate request_size=4 [12:14:24]MH_SAM_APDU [12:14:24]CAPDU: 80 11 00 00 [12:14:24]Write to MH i2c: E2 08 00 60 1A 80 11 00 00 00 00 00 00 F4 [12:14:24]Write i2c OK [12:14:24]MH_I2C_Read... [12:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:24]Read from MH i2c: E2 [12:14:24]MH_I2C_Read... [12:14:24]Read from MH i2c: E2 17 00 [12:14:24]MH_I2C_Read... [12:14:24]Read from MH i2c: E2 17 00 60 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3F [12:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:14:24]wFMCommunicate OK [12:14:24]requested_item fd.num is exist - process it [12:14:24]SAM_PROTO_GetFieldsCounters [12:14:24]wFMCommunicate request_size=4 [12:14:24]MH_SAM_APDU [12:14:24]CAPDU: 80 13 00 00 [12:14:24]Write to MH i2c: E2 08 00 61 1A 80 13 00 00 00 00 00 00 F7 [12:14:24]Write i2c OK [12:14:24]MH_I2C_Read... [12:14:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:24]Read from MH i2c: E2 [12:14:24]MH_I2C_Read... [12:14:24]Read from MH i2c: E2 62 00 [12:14:24]MH_I2C_Read... [12:14:24]Read from MH i2c: E2 62 00 61 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D4 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [12:14:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D4 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:24]wFMCommunicate OK [12:14:24]SAM_PROTO_GetFieldsCounters done [12:14:24]requested_item shift.num is exist - process it [12:14:24]requested_item shift.opened is exist - process it [12:14:24]req_shift_opened [12:14:24]FM_GetShiftState [12:14:24]SAM_PROTO_GetShiftState [12:14:24]wFMCommunicate request_size=4 [12:14:24]MH_SAM_APDU [12:14:24]CAPDU: 80 13 01 00 [12:14:24]Write to MH i2c: E2 08 00 62 1A 80 13 01 00 00 00 00 00 F9 [12:14:24]Write i2c OK [12:14:24]MH_I2C_Read... [12:14:24]Read from MH i2c: E2 [12:14:24]MH_I2C_Read... [12:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:24]Read from MH i2c: E2 0E 00 [12:14:24]MH_I2C_Read... [12:14:24]Read from MH i2c: E2 0E 00 62 1A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 3E [12:14:24]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:14:24]wFMCommunicate OK [12:14:24]SAM_PROTO_GetShiftState done [12:14:24]FM_GetShiftState done [12:14:24]req_shift_opened done [12:14:24]requested_item shift.open_date is exist - process it [12:14:24]req_shift_open_date [12:14:24]req_shift_open_date done [12:14:24]produce_requested_data done [12:14:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49620,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:14:24]process_action_free close_receipt [12:14:24]json_value_free [12:14:24]json_value_free done [12:14:24]process_json_proto returns [12:14:24]Send response to host [12:14:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49620,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:14:24]free response buf [12:14:24]execute_script done [12:14:24]execute_script returns [12:14:24]free content buf [12:14:24]Sock 10.Close socket [12:14:24]Sock 10.Thread stoped [12:14:25]int [12:14:25]Write to MH i2c: 01 00 00 63 1A 7D [12:14:25]*** FLAG_PRN_KEY set [12:14:25]Write i2c OK [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: 01 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: 01 07 00 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: 01 07 00 63 1A 00 08 00 00 00 FF 0F 9A [12:14:25]state=0 [12:14:25]Key pressed [12:14:25]Feed [12:14:25]Write to MH i2c: D8 00 00 64 1A 55 [12:14:25]Write i2c OK [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: D8 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: D8 01 00 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: D8 01 00 64 1A 00 56 [12:14:25]int line is 0 - check status [12:14:25]Write to MH i2c: 01 00 00 65 1A 7F [12:14:25]Write i2c OK [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: 01 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: 01 07 00 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: 01 07 00 65 1A 00 48 00 00 00 3C 00 0A [12:14:25]state=2 [12:14:25]Key pressed [12:14:25]int [12:14:25]Write to MH i2c: 01 00 00 66 1A 80 [12:14:25]Write i2c OK [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: 01 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: 01 07 00 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: 01 07 00 66 1A 00 48 00 00 00 3C 00 0B [12:14:25]state=2 [12:14:25]Key pressed [12:14:25]int [12:14:25]Write to MH i2c: 01 00 00 67 1A 81 [12:14:25]*** FLAG_PRN_KEY reset [12:14:25]Write i2c OK [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: 01 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: 01 07 00 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: 01 07 00 67 1A 00 00 00 00 00 F7 0F 8E [12:14:25]state=2 [12:14:25]Stop feed [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:04]ConnectInit Can't connect to host [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:26]accept exits with 9 [12:16:26]New connection [12:16:26]New thread 3066801508 created [12:16:26]Thread 3066944868 joined [12:16:26]Waiting for new connection... [12:16:26] Sock 9.Parse request [12:16:26]Sock 9.Check first char [12:16:26]Sock 9.First char is OK [12:16:26]request: POST /json_proto HTTP/1.0 [12:16:26]Method: POST [12:16:26]URL: /json_proto [12:16:26]Method is POST - this is cgi request [12:16:26]url: /json_proto [12:16:26]query_string will be loaded in cgi processing [12:16:26]execute_cgi json_proto POST (null) [12:16:26]execute_cgi path=json_proto method=POST [12:16:26]POST find Content-Length [12:16:26]Host: 172.17.46.196:8080 [12:16:26]Content-Length: 633 [12:16:26]Content-Type: application/json [12:16:26] [12:16:26]POST finish read [12:16:26]Found Content-Length = 633 [12:16:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189809", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:26]execute_script... [12: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 : (3)189809", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:26]POST & json_proto [12:16:26]process_json_proto [12:16:26]json parsed OK: [12:16:26]protocol is kg_v1.0 [12:16:26]action value=close_receipt [12:16:26]process_action close_receipt [12:16:26]cmd_close_receipt [12:16:26]MH_GetDate [12:16:26]Write to MH i2c: F0 00 00 68 1A 71 [12:16:26]Write i2c OK [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: F0 [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: F0 09 00 [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: F0 09 00 68 1A 00 9D 94 C0 66 07 E8 5D 66 83 [12:16:26]GetLastDocTimeStamp 1723896862 [12:16:26]current date 1723896989 [12:16:26]FM_GetShiftState [12:16:26]SAM_PROTO_GetShiftState [12:16:26]wFMCommunicate request_size=4 [12:16:26]MH_SAM_APDU [12:16:26]CAPDU: 80 13 01 00 [12:16:26]Write to MH i2c: E2 08 00 69 1A 80 13 01 00 00 00 00 00 00 [12:16:26]Write i2c OK [12:16:26]MH_I2C_Read... [12:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:26]Read from MH i2c: E2 [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: E2 0E 00 [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: E2 0E 00 69 1A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 45 [12:16:26]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:16:26]wFMCommunicate OK [12:16:26]SAM_PROTO_GetShiftState done [12:16:26]FM_GetShiftState done [12:16:26]opened in 1723853354 [12:16:26]opened+sec_in_day 1723939754 [12:16:26]quantity*price = 7500 [12:16:26]sum+1 = 7501 [12:16:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 58 17.08.2024 12:16 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49621 ФПД: 134378781733233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T121629&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49621&fm=134378781733233&tin=02508201610067®Number=0000000000092546&sum=7500 0 [12:16:27]StoreToDocumentArchive [12:16:27]shift 465 fd 49621 [12:16:27]save to /storage/0465/doc_00049621 [12:16:27]save last doc name /storage/0465/doc_00049621 to /storage/kkm_last_doc_name [12:16:27]save OK [12:16:27]Clear old archive folders... [12:16:27]ProcessDocumentItem done err = 0, tmpTLVsize=268 [12:16:27]tlvbuf is B6ED8870 [12:16:27]SAM_PROTO_ClearQueue [12:16:27]wFMCommunicate request_size=4 [12:16:27]MH_SAM_APDU [12:16:27]CAPDU: 80 09 00 00 [12:16:27]Write to MH i2c: E2 08 00 76 1A 80 09 00 00 00 00 00 00 02 [12:16:27]Write i2c OK [12:16:27]MH_I2C_Read... [12:16:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:27]Read from MH i2c: E2 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 76 1A 00 90 00 04 [12:16:27]RAPDU: 90 00 [12:16:27]wFMCommunicate OK [12:16:27]SAM_PROTO_ClearQueue done [12:16:27]KKMCreateOFDPacket [12:16:27]OFDProtocolAddRootSTLVToBuf [12:16:27]FM_MakeSignedData [12:16:27]FM_MakeSignedData [12:16:27]SAM_PROTO_SignData [12:16:27]wFMCommunicate request_size=4 [12:16:27]MH_SAM_APDU [12:16:27]CAPDU: 80 0D 01 02 [12:16:27]Write to MH i2c: E2 08 00 77 1A 80 0D 01 02 00 00 00 00 0A [12:16:27]Write i2c OK [12:16:27]MH_I2C_Read... [12:16:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:27]Read from MH i2c: E2 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 77 1A 00 90 00 05 [12:16:27]RAPDU: 90 00 [12:16:27]wFMCommunicate OK [12:16:27]wFMCommunicate request_size=255 [12:16:27]MH_SAM_APDU [12:16:27]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9D 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [12:16:27]Write to MH i2c: E2 02 01 78 1A 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9D 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 C9 [12:16:27]Write i2c OK [12:16:27]MH_I2C_Read... [12:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:27]Read from MH i2c: E2 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 78 1A 00 90 00 06 [12:16:27]RAPDU: 90 00 [12:16:27]wFMCommunicate OK [12:16:27]wFMCommunicate request_size=27 [12:16:27]MH_SAM_APDU [12:16:27]CAPDU: 80 0D 02 02 16 31 38 30 30 10 04 04 00 D5 C1 00 00 35 04 06 00 7A 37 7F 8C F1 71 [12:16:27]Write to MH i2c: E2 1E 00 79 1A 80 0D 02 02 16 00 31 38 30 30 10 04 04 00 D5 C1 00 00 35 04 06 00 7A 37 7F 8C F1 71 00 00 0D [12:16:27]Write i2c OK [12:16:27]MH_I2C_Read... [12:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:27]Read from MH i2c: E2 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 79 1A 00 90 00 07 [12:16:27]RAPDU: 90 00 [12:16:27]wFMCommunicate OK [12:16:27]wFMCommunicate request_size=4 [12:16:27]MH_SAM_APDU [12:16:27]CAPDU: 80 0D 03 02 [12:16:27]Write to MH i2c: E2 08 00 7A 1A 80 0D 03 02 00 00 00 00 0F [12:16:27]Write i2c OK [12:16:27]MH_I2C_Read... [12:16:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:27]Read from MH i2c: E2 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 0B 00 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 0B 00 7A 1A 00 60 BA 5D F1 28 50 FB DA 90 00 C5 [12:16:27]RAPDU: 60 BA 5D F1 28 50 FB DA 90 00 [12:16:27]wFMCommunicate OK [12:16:27]SAM_PROTO_SignData done [12:16:27]FM_MakeSignedData done [12:16:27]CreateOFDProtocolMessage [12:16:27]wFMCommunicate request_size=4 [12:16:27]MH_SAM_APDU [12:16:27]CAPDU: 80 11 00 00 [12:16:27]Write to MH i2c: E2 08 00 7B 1A 80 11 00 00 00 00 00 00 0F [12:16:27]Write i2c OK [12:16:27]MH_I2C_Read... [12:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:27]Read from MH i2c: E2 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 17 00 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 17 00 7B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5A [12:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:16:27]wFMCommunicate OK [12:16:27]CreateOFDProtocolMessage done [12:16:27]OFDSenderStorePacket 49621 [12:16:27]StoreOFDPacket docnum=49621 [12:16:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 22 E5 18 01 6D FA 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9D 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D5 C1 00 00 35 04 06 00 7A 37 7F 8C F1 71 60 BA 5D F1 28 50 FB DA [12:16:27]CheckFolder [12:16:27]dirname=/storage/ofd_packets [12:16:27]CheckFolder done [12:16:27]ProducePacketName [12:16:27]name=ofd_packets/00049621 [12:16:27]NVStorageSaveData ofd_packets/00049621 [12:16:27]File name is /storage/ofd_packets/00049621 [12:16:27]Write 318 bytes [12:16:27]NVStorageSaveData done [12:16:27]OFDSenderStorePacket done [12:16:27]KKMCreateOFDPacket done [12:16:27]NVStorageSaveData kkm_last_timestamp [12:16:27]File name is /storage/kkm_last_timestamp [12:16:27]Write 4 bytes [12:16:27]NVStorageSaveData done [12:16:27]ExternCall_PrintAddStr [12:16:27]wPrintStart [12:16:27]Write to MH i2c: 01 00 00 7C 1A 96 [12:16:27]Write i2c OK [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: 01 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: 01 07 00 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: 01 07 00 7C 1A 00 00 00 00 00 FF 0F AB [12:16:27]RasterBufferAndPrint [12:16:27]line Счет N : (3)189809 [12:16:27]line ИНН: 02508201610067 [12:16:27]line Контрольно-Кассовый Чек [12:16:27]line ПРОДАЖА [12:16:27]line Товар: 40822938 [12:16:27]line Напиток Фанта 0,5л [12:16:27]line 1.000 * 75.00 [12:16:27]line = 75.00 [12:16:27]line НДС 12% НСП 1% [12:16:27]line > о реализуемом товаре [12:16:27]line ИТОГО: 75.00 [12:16:27]line НСП 1% : 0.66 [12:16:27]line НДС 12% : 7.96 [12:16:27]line Наличными: 75.00 [12:16:27]line Безнал.: 0.00 [12:16:27]line Место: АЗС № 95 "Партнер Нефть" [12:16:27]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:16:27]line СНО: Общий режим [12:16:27]line Чек 58 17.08.2024 12:16 [12:16:27]line Смена: 465 ФФД: 1.0 [12:16:27]line ЗНМ: 0300000078 [12:16:27]line РНМ: 0000000000092546 [12:16:27]line Версия ККМ: 001 [12:16:27]line ФМ: 0000000000871800 [12:16:27]line ФД: 49621 [12:16:27]line ФПД: 134378781733233 [12:16:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T121629&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49621&fm=134378781733233&tin=02508201610067®Number=0000000000092546&sum=7500 [12:16:27]line 0 [12:16:28]written 0, free lines is 4095 [12:16:28]OFD Sender: Processing packet 49621 [packets to send 21, broken 20] [12:16:28]ProducePacketName [12:16:28]name=ofd_packets/00049621 [12:16:28]OFD Sender: To server: pG, [12:16:28]CommunicateWithHost lk.salyk.kg:30040 [12:16:28]ConnectInit lk.salyk.kg [12:16:28]Connected sock=7 [12: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 31 38 30 30 20 01 00 00 22 E5 18 01 6D FA 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9D 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D5 C1 00 00 35 04 06 00 7A 37 7F 8C F1 71 60 BA 5D F1 28 50 FB DA [12:16:28]Write to MH i2c: 01 00 00 A4 1A BE [12:16:28]Write i2c OK [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: 01 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: 01 07 00 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: 01 07 00 A4 1A 00 00 00 00 00 EE 0C BF [12:16:28]RasterBufferAndPrint [12:16:28]line [12:16:28]line [12:16:28]line [12:16:28]line [12:16:28]line [12:16:28]written 0, free lines is 3316 [12:16:28]MH_Cut [12:16:28]Write to MH i2c: D1 01 00 AB 1A 01 97 [12:16:28]Write i2c OK [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: D1 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: D1 01 00 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: D1 01 00 AB 1A 00 96 [12:16:28]Write to MH i2c: 01 00 00 AC 1A C6 [12:16:28]Write i2c OK [12:16:28]MH_I2C_Read... [12:16:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 82 24 47 00 7A B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D5 C1 00 00 F4 03 04 00 D9 3F C0 66 B6 04 01 00 00 A3 61 E8 22 29 B5 F4 3D [12:16:28]CommunicateWithHost err = 0 [12:16:28]CheckOFDResponse [12:16:28]1017 (14) - 77093643461234 [12:16:28]1041 (16) - 0000000000871800 [12:16:28]1040 (4) - 49621 [12:16:28]1012 (4) - 17.08.2024 06:14 [12:16:28]1206 (1) - 0 [12:16:28]OFD Sender: Remove packet 49621 [12:16:28]ProducePacketName [12:16:28]name=ofd_packets/00049621 [12:16:28]NVStorageDeleteData [12:16:29]OFD Sender: No OFD packet to send [12:16:29]*** Cut start [12:16:29]*** Purtial cut [12:16:29]*** Stage 1: CUTSNS_PIN = 1 [12:16:29]Read from MH i2c: 01 [12:16:29]MH_I2C_Read... [12:16:29]*** Stop cut motor [12:16:29]*** Cut end [12:16:29]Read from MH i2c: 01 07 00 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: 01 07 00 AC 1A 00 00 00 00 00 FF 0F DB [12:16:29]process_action close_receipt done [12:16:29]requested_data is exist [12:16:29]produce_requested_data [12:16:29]requested_item fm.sn is exist - process it [12:16:29]wFMCommunicate request_size=4 [12:16:29]MH_SAM_APDU [12:16:29]CAPDU: 80 11 00 00 [12:16:29]Write to MH i2c: E2 08 00 AD 1A 80 11 00 00 00 00 00 00 41 [12:16:29]Write i2c OK [12:16:29]MH_I2C_Read... [12:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:29]Read from MH i2c: E2 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: E2 17 00 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: E2 17 00 AD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8C [12:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:16:29]wFMCommunicate OK [12:16:29]requested_item fd.num is exist - process it [12:16:29]SAM_PROTO_GetFieldsCounters [12:16:29]wFMCommunicate request_size=4 [12:16:29]MH_SAM_APDU [12:16:29]CAPDU: 80 13 00 00 [12:16:29]Write to MH i2c: E2 08 00 AE 1A 80 13 00 00 00 00 00 00 44 [12:16:29]Write i2c OK [12:16:29]MH_I2C_Read... [12:16:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:29]Read from MH i2c: E2 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: E2 62 00 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: E2 62 00 AE 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D5 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [12: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D5 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:29]wFMCommunicate OK [12:16:29]SAM_PROTO_GetFieldsCounters done [12:16:29]requested_item shift.num is exist - process it [12:16:29]requested_item shift.opened is exist - process it [12:16:29]req_shift_opened [12:16:29]FM_GetShiftState [12:16:29]SAM_PROTO_GetShiftState [12:16:29]wFMCommunicate request_size=4 [12:16:29]MH_SAM_APDU [12:16:29]CAPDU: 80 13 01 00 [12:16:29]Write to MH i2c: E2 08 00 AF 1A 80 13 01 00 00 00 00 00 46 [12:16:29]Write i2c OK [12:16:29]MH_I2C_Read... [12:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:29]Read from MH i2c: E2 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: E2 0E 00 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: E2 0E 00 AF 1A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 8B [12:16:29]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:16:29]wFMCommunicate OK [12:16:29]SAM_PROTO_GetShiftState done [12:16:29]FM_GetShiftState done [12:16:29]req_shift_opened done [12:16:29]requested_item shift.open_date is exist - process it [12:16:29]req_shift_open_date [12:16:29]req_shift_open_date done [12:16:29]produce_requested_data done [12:16:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49621,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:16:29]process_action_free close_receipt [12:16:29]json_value_free [12:16:29]json_value_free done [12:16:29]process_json_proto returns [12:16:29]Send response to host [12:16:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49621,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:16:29]free response buf [12:16:29]execute_script done [12:16:29]execute_script returns [12:16:29]free content buf [12:16:29]Sock 9.Close socket [12:16:29]Sock 9.Thread stoped [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:58]accept exits with 10 [12:17:58]New connection [12:17:58]New thread 3066944868 created [12:17:58]Thread 3066801508 joined [12:17:58]Waiting for new connection... [12:17:58] Sock 10.Parse request [12:17:58]Sock 10.Check first char [12:17:58]Sock 10.First char is OK [12:17:58]request: POST /json_proto HTTP/1.0 [12:17:58]Method: POST [12:17:58]URL: /json_proto [12:17:58]Method is POST - this is cgi request [12:17:58]url: /json_proto [12:17:58]query_string will be loaded in cgi processing [12:17:58]execute_cgi json_proto POST (null) [12:17:58]execute_cgi path=json_proto method=POST [12:17:58]POST find Content-Length [12:17:58]Host: 172.17.46.196:8080 [12:17:58]Content-Length: 628 [12:17:58]Content-Type: application/json [12:17:58] [12:17:58]POST finish read [12:17:58]Found Content-Length = 628 [12:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189810", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:58]execute_script... [12:17:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189810", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:58]POST & json_proto [12:17:58]process_json_proto [12:17:58]json parsed OK: [12:17:58]protocol is kg_v1.0 [12:17:58]action value=close_receipt [12:17:58]process_action close_receipt [12:17:58]cmd_close_receipt [12:17:58]MH_GetDate [12:17:58]Write to MH i2c: F0 00 00 B0 1A B9 [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: F0 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: F0 09 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: F0 09 00 B0 1A 00 F9 94 C0 66 07 E8 5D 66 27 [12:17:58]GetLastDocTimeStamp 1723896989 [12:17:58]current date 1723897081 [12:17:58]FM_GetShiftState [12:17:58]SAM_PROTO_GetShiftState [12:17:58]wFMCommunicate request_size=4 [12:17:58]MH_SAM_APDU [12:17:58]CAPDU: 80 13 01 00 [12:17:58]Write to MH i2c: E2 08 00 B1 1A 80 13 01 00 00 00 00 00 48 [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:58]Read from MH i2c: E2 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 0E 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 0E 00 B1 1A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 8D [12:17:58]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:17:58]wFMCommunicate OK [12:17:58]SAM_PROTO_GetShiftState done [12:17:58]FM_GetShiftState done [12:17:58]opened in 1723853354 [12:17:58]opened+sec_in_day 1723939754 [12:17:58]quantity*price = 13000 [12:17:58]sum+1 = 13001 [12:17:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 59 17.08.2024 12:18 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49622 ФПД: 275154513316626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T121801&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49622&fm=275154513316626&tin=02508201610067®Number=0000000000092546&sum=13000 0 [12:17:59]StoreToDocumentArchive [12:17:59]shift 465 fd 49622 [12:17:59]save to /storage/0465/doc_00049622 [12:17:59]save last doc name /storage/0465/doc_00049622 to /storage/kkm_last_doc_name [12:17:59]save OK [12:17:59]Clear old archive folders... [12:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:17:59]tlvbuf is B6ED8610 [12:17:59]SAM_PROTO_ClearQueue [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 09 00 00 [12:17:59]Write to MH i2c: E2 08 00 BE 1A 80 09 00 00 00 00 00 00 4A [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 03 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 03 00 BE 1A 00 90 00 4C [12:17:59]RAPDU: 90 00 [12:17:59]wFMCommunicate OK [12:17:59]SAM_PROTO_ClearQueue done [12:17:59]KKMCreateOFDPacket [12:17:59]OFDProtocolAddRootSTLVToBuf [12:17:59]FM_MakeSignedData [12:17:59]FM_MakeSignedData [12:17:59]SAM_PROTO_SignData [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 0D 01 02 [12:17:59]Write to MH i2c: E2 08 00 BF 1A 80 0D 01 02 00 00 00 00 52 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 03 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 03 00 BF 1A 00 90 00 4D [12:17:59]RAPDU: 90 00 [12:17:59]wFMCommunicate OK [12:17:59]wFMCommunicate request_size=255 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 F9 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [12:17:59]Write to MH i2c: E2 02 01 C0 1A 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 F9 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 2E [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 03 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 03 00 C0 1A 00 90 00 4E [12:17:59]RAPDU: 90 00 [12:17:59]wFMCommunicate OK [12:17:59]wFMCommunicate request_size=35 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D6 C1 00 00 35 04 06 00 FA 40 67 06 4B 12 [12:17:59]Write to MH i2c: E2 26 00 C1 1A 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D6 C1 00 00 35 04 06 00 FA 40 67 06 4B 12 00 00 DB [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 03 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 03 00 C1 1A 00 90 00 4F [12:17:59]RAPDU: 90 00 [12:17:59]wFMCommunicate OK [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 0D 03 02 [12:17:59]Write to MH i2c: E2 08 00 C2 1A 80 0D 03 02 00 00 00 00 57 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 0B 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 0B 00 C2 1A 00 EA 2B 93 3F 3A 1B 73 62 90 00 69 [12:17:59]RAPDU: EA 2B 93 3F 3A 1B 73 62 90 00 [12:17:59]wFMCommunicate OK [12:17:59]SAM_PROTO_SignData done [12:17:59]FM_MakeSignedData done [12:17:59]CreateOFDProtocolMessage [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 11 00 00 [12:17:59]Write to MH i2c: E2 08 00 C3 1A 80 11 00 00 00 00 00 00 57 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 17 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 17 00 C3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A2 [12:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:17:59]wFMCommunicate OK [12:17:59]CreateOFDProtocolMessage done [12:17:59]OFDSenderStorePacket 49622 [12:17:59]StoreOFDPacket docnum=49622 [12:17:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 4D B7 20 01 EF ED 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 F9 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D6 C1 00 00 35 04 06 00 FA 40 67 06 4B 12 EA 2B 93 3F 3A 1B 73 62 [12:17:59]CheckFolder [12:17:59]dirname=/storage/ofd_packets [12:17:59]CheckFolder done [12:17:59]ProducePacketName [12:17:59]name=ofd_packets/00049622 [12:17:59]NVStorageSaveData ofd_packets/00049622 [12:17:59]File name is /storage/ofd_packets/00049622 [12:17:59]Write 326 bytes [12:17:59]NVStorageSaveData done [12:17:59]OFDSenderStorePacket done [12:17:59]KKMCreateOFDPacket done [12:17:59]NVStorageSaveData kkm_last_timestamp [12:17:59]File name is /storage/kkm_last_timestamp [12:17:59]Write 4 bytes [12:17:59]NVStorageSaveData done [12:17:59]ExternCall_PrintAddStr [12:17:59]wPrintStart [12:17:59]Write to MH i2c: 01 00 00 C4 1A DE [12:17:59]OFD Sender: Processing packet 49622 [packets to send 21, broken 20] [12:17:59]ProducePacketName [12:17:59]name=ofd_packets/00049622 [12:17:59]OFD Sender: To server: pG, [12:17:59]CommunicateWithHost lk.salyk.kg:30040 [12:17:59]ConnectInit lk.salyk.kg [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: 01 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: 01 07 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: 01 07 00 C4 1A 00 00 00 00 00 FF 0F F3 [12:17:59]RasterBufferAndPrint [12:17:59]line Счет N : (3)189810 [12:17:59]line ИНН: 02508201610067 [12:17:59]line Контрольно-Кассовый Чек [12:17:59]line ПРОДАЖА [12:17:59]line Товар: 2000036230011 [12:17:59]line Кофе Латте XL(GABB TRADE) [12:17:59]line 1.000 * 130.00 [12:17:59]line = 130.00 [12:17:59]line НДС 12% НСП 1% [12:17:59]line > о реализуемом товаре [12:17:59]line ИТОГО: 130.00 [12:17:59]line НСП 1% : 1.15 [12:17:59]line НДС 12% : 13.80 [12:17:59]line Наличными: 130.00 [12:17:59]line Безнал.: 0.00 [12:17:59]line Место: АЗС № 95 "Партнер Нефть" [12:17:59]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:17:59]line СНО: Общий режим [12:17:59]line Чек 59 17.08.2024 12:18 [12:17:59]line Смена: 465 ФФД: 1.0 [12:17:59]line ЗНМ: 0300000078 [12:17:59]line РНМ: 0000000000092546 [12:17:59]line Версия ККМ: 001 [12:17:59]line ФМ: 0000000000871800 [12:17:59]line ФД: 49622 [12:17:59]line ФПД: 275154513316626 [12:17:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T121801&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49622&fm=275154513316626&tin=02508201610067®Number=0000000000092546&sum=13000 [12:18:00]Connected sock=7 [12:18:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 4D B7 20 01 EF ED 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 F9 94 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D6 C1 00 00 35 04 06 00 FA 40 67 06 4B 12 EA 2B 93 3F 3A 1B 73 62 [12:18:00]line 0 [12:18:00]written 0, free lines is 4095 [12:18:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 04 89 47 00 18 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D6 C1 00 00 F4 03 04 00 35 40 C0 66 B6 04 01 00 00 62 30 67 87 DF 24 D1 55 [12:18:00]CommunicateWithHost err = 0 [12:18:00]CheckOFDResponse [12:18:00]1017 (14) - 77093643461234 [12:18:00]1041 (16) - 0000000000871800 [12:18:00]1040 (4) - 49622 [12:18:00]1012 (4) - 17.08.2024 06:16 [12:18:00]1206 (1) - 0 [12:18:00]OFD Sender: Remove packet 49622 [12:18:00]ProducePacketName [12:18:00]name=ofd_packets/00049622 [12:18:00]NVStorageDeleteData [12:18:00]Write to MH i2c: 01 00 00 EC 1A 06 [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 07 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 07 00 EC 1A 00 00 00 00 00 EA 0C 03 [12:18:00]RasterBufferAndPrint [12:18:00]line [12:18:00]line [12:18:00]line [12:18:00]line [12:18:00]line [12:18:00]written 0, free lines is 3312 [12:18:00]MH_Cut [12:18:00]Write to MH i2c: D1 01 00 F3 1A 01 DF [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: D1 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: D1 01 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: D1 01 00 F3 1A 00 DE [12:18:00]Write to MH i2c: 01 00 00 F4 1A 0E [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]OFD Sender: No OFD packet to send [12:18:01]*** Cut start [12:18:01]*** Purtial cut [12:18:01]*** CUTSNS_PIN = 0 [12:18:01]*** Stage 1: CUTSNS_PIN = 1 [12:18:03]Read from MH i2c: 01 [12:18:03]MH_I2C_Read... [12:18:03]*** Stop cut motor [12:18:03]*** Cut end [12:18:03]Read from MH i2c: 01 07 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: 01 07 00 F4 1A 00 00 00 00 00 FF 0F 23 [12:18:03]process_action close_receipt done [12:18:03]requested_data is exist [12:18:03]produce_requested_data [12:18:03]requested_item fm.sn is exist - process it [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 11 00 00 [12:18:03]Write to MH i2c: E2 08 00 F5 1A 80 11 00 00 00 00 00 00 89 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 17 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 17 00 F5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D4 [12:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:18:03]wFMCommunicate OK [12:18:03]requested_item fd.num is exist - process it [12:18:03]SAM_PROTO_GetFieldsCounters [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 13 00 00 [12:18:03]Write to MH i2c: E2 08 00 F6 1A 80 13 00 00 00 00 00 00 8C [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 62 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 62 00 F6 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D6 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [12:18: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D6 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:03]wFMCommunicate OK [12:18:03]SAM_PROTO_GetFieldsCounters done [12:18:03]requested_item shift.num is exist - process it [12:18:03]requested_item shift.opened is exist - process it [12:18:03]req_shift_opened [12:18:03]FM_GetShiftState [12:18:03]SAM_PROTO_GetShiftState [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 13 01 00 [12:18:03]Write to MH i2c: E2 08 00 F7 1A 80 13 01 00 00 00 00 00 8E [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 0E 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 0E 00 F7 1A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D3 [12:18:03]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:18:03]wFMCommunicate OK [12:18:03]SAM_PROTO_GetShiftState done [12:18:03]FM_GetShiftState done [12:18:03]req_shift_opened done [12:18:03]requested_item shift.open_date is exist - process it [12:18:03]req_shift_open_date [12:18:03]req_shift_open_date done [12:18:03]produce_requested_data done [12:18:03]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49622,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:18:03]process_action_free close_receipt [12:18:03]json_value_free [12:18:03]json_value_free done [12:18:03]process_json_proto returns [12:18:03]Send response to host [12:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49622,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:18:03]free response buf [12:18:03]execute_script done [12:18:03]execute_script returns [12:18:03]free content buf [12:18:03]Sock 10.Close socket [12:18:03]Sock 10.Thread stoped [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:44]accept exits with 9 [12:19:44]New connection [12:19:44]New thread 3066801508 created [12:19:44]Thread 3066944868 joined [12:19:44]Waiting for new connection... [12:19:44] Sock 9.Parse request [12:19:44]Sock 9.Check first char [12:19:44]Sock 9.First char is OK [12:19:44]request: POST /json_proto HTTP/1.0 [12:19:44]Method: POST [12:19:44]URL: /json_proto [12:19:44]Method is POST - this is cgi request [12:19:44]url: /json_proto [12:19:44]query_string will be loaded in cgi processing [12:19:44]execute_cgi json_proto POST (null) [12:19:44]execute_cgi path=json_proto method=POST [12:19:44]POST find Content-Length [12:19:44]Host: 172.17.46.196:8080 [12:19:44]Content-Length: 809 [12:19:44]Content-Type: application/json [12:19:44] [12:19:44]POST finish read [12:19:44]Found Content-Length = 809 [12:19:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189811", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:44]execute_script... [12:19:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189811", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:44]POST & json_proto [12:19:44]process_json_proto [12:19:44]json parsed OK: [12:19:44]protocol is kg_v1.0 [12:19:44]action value=close_receipt [12:19:44]process_action close_receipt [12:19:44]cmd_close_receipt [12:19:44]MH_GetDate [12:19:44]Write to MH i2c: F0 00 00 F8 1A 01 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: F0 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: F0 09 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: F0 09 00 F8 1A 00 64 95 C0 66 07 E8 5D 66 DB [12:19:44]GetLastDocTimeStamp 1723897081 [12:19:44]current date 1723897188 [12:19:44]FM_GetShiftState [12:19:44]SAM_PROTO_GetShiftState [12:19:44]wFMCommunicate request_size=4 [12:19:44]MH_SAM_APDU [12:19:44]CAPDU: 80 13 01 00 [12:19:44]Write to MH i2c: E2 08 00 F9 1A 80 13 01 00 00 00 00 00 90 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 0E 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 0E 00 F9 1A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D5 [12:19:44]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:19:44]wFMCommunicate OK [12:19:44]SAM_PROTO_GetShiftState done [12:19:44]FM_GetShiftState done [12:19:44]opened in 1723853354 [12:19:44]opened+sec_in_day 1723939754 [12:19:44]quantity*price = 8000 [12:19:44]sum+1 = 8001 [12:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 0.00 Безнал.: 80.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 60 17.08.2024 12:19 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49623 ФПД: 133728476763701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T121948&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49623&fm=133728476763701&tin=02508201610067®Number=0000000000092546&sum=8000 0 [12:19:46]StoreToDocumentArchive [12:19:46]shift 465 fd 49623 [12:19:46]save to /storage/0465/doc_00049623 [12:19:46]save last doc name /storage/0465/doc_00049623 to /storage/kkm_last_doc_name [12:19:46]save OK [12:19:46]Clear old archive folders... [12:19:46]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:19:46]tlvbuf is 0188BA40 [12:19:46]SAM_PROTO_ClearQueue [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 09 00 00 [12:19:46]Write to MH i2c: E2 08 00 06 1B 80 09 00 00 00 00 00 00 93 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 06 1B 00 90 00 95 [12:19:46]RAPDU: 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_ClearQueue done [12:19:46]KKMCreateOFDPacket [12:19:46]OFDProtocolAddRootSTLVToBuf [12:19:46]FM_MakeSignedData [12:19:46]FM_MakeSignedData [12:19:46]SAM_PROTO_SignData [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 0D 01 02 [12:19:46]Write to MH i2c: E2 08 00 07 1B 80 0D 01 02 00 00 00 00 9B [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 07 1B 00 90 00 96 [12:19:46]RAPDU: 90 00 [12:19:46]wFMCommunicate OK [12:19:46]wFMCommunicate request_size=255 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 64 95 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:19:46]Write to MH i2c: E2 02 01 08 1B 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 64 95 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 79 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 08 1B 00 90 00 97 [12:19:46]RAPDU: 90 00 [12:19:46]wFMCommunicate OK [12:19:46]wFMCommunicate request_size=30 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 D7 C1 00 00 35 04 06 00 79 A0 16 5A 96 35 [12:19:46]Write to MH i2c: E2 21 00 09 1B 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 D7 C1 00 00 35 04 06 00 79 A0 16 5A 96 35 00 00 7B [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 09 1B 00 90 00 98 [12:19:46]RAPDU: 90 00 [12:19:46]wFMCommunicate OK [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 0D 03 02 [12:19:46]Write to MH i2c: E2 08 00 0A 1B 80 0D 03 02 00 00 00 00 A0 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0B 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0B 00 0A 1B 00 05 D3 9B 85 C5 EF 40 A2 90 00 2F [12:19:46]RAPDU: 05 D3 9B 85 C5 EF 40 A2 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_SignData done [12:19:46]FM_MakeSignedData done [12:19:46]CreateOFDProtocolMessage [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 11 00 00 [12:19:46]Write to MH i2c: E2 08 00 0B 1B 80 11 00 00 00 00 00 00 A0 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 17 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 17 00 0B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EB [12:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:19:46]wFMCommunicate OK [12:19:46]CreateOFDProtocolMessage done [12:19:46]OFDSenderStorePacket 49623 [12:19:46]StoreOFDPacket docnum=49623 [12:19:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 03 BF 1B 01 E9 19 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 64 95 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D7 C1 00 00 35 04 06 00 79 A0 16 5A 96 35 05 D3 9B 85 C5 EF 40 A2 [12:19:46]CheckFolder [12:19:46]dirname=/storage/ofd_packets [12:19:46]CheckFolder done [12:19:46]ProducePacketName [12:19:46]name=ofd_packets/00049623 [12:19:46]NVStorageSaveData ofd_packets/00049623 [12:19:46]File name is /storage/ofd_packets/00049623 [12:19:46]Write 321 bytes [12:19:46]NVStorageSaveData done [12:19:46]OFDSenderStorePacket done [12:19:46]KKMCreateOFDPacket done [12:19:46]NVStorageSaveData kkm_last_timestamp [12:19:46]File name is /storage/kkm_last_timestamp [12:19:46]Write 4 bytes [12:19:46]NVStorageSaveData done [12:19:46]ExternCall_PrintAddStr [12:19:46]wPrintStart [12:19:46]Write to MH i2c: 01 00 00 0C 1B 27 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: 01 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: 01 07 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: 01 07 00 0C 1B 00 00 00 00 00 FF 0F 3C [12:19:46]RasterBufferAndPrint [12:19:46]line Счет N : (3)189811 [12:19:46]line ИНН: 02508201610067 [12:19:46]line Контрольно-Кассовый Чек [12:19:46]line ПРОДАЖА [12:19:46]line Товар: 4700000160211 [12:19:46]line Вода Легенда 0,5л [12:19:46]line 2.000 * 40.00 [12:19:46]line = 80.00 [12:19:46]line НДС 12% НСП 1% [12:19:46]line > о реализуемом товаре [12:19:46]line ИТОГО: 80.00 [12:19:46]line НСП 1% : 0.71 [12:19:46]line НДС 12% : 8.50 [12:19:46]line Наличными: 0.00 [12:19:46]line Безнал.: 80.00 [12:19:46]line Место: АЗС № 95 "Партнер Нефть" [12:19:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:19:46]line СНО: Общий режим [12:19:46]line Чек 60 17.08.2024 12:19 [12:19:46]line Смена: 465 ФФД: 1.0 [12:19:46]line ЗНМ: 0300000078 [12:19:46]line РНМ: 0000000000092546 [12:19:46]line Версия ККМ: 001 [12:19:46]line Платежная система: Бакай Банк [12:19:46]line ФМ: 0000000000871800 [12:19:46]line ФД: 49623 [12:19:46]line ФПД: 133728476763701 [12:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T121948&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49623&fm=133728476763701&tin=02508201610067®Number=0000000000092546&sum=8000 [12:19:46]line 0 [12:19:47]written 0, free lines is 4095 [12:19:47]OFD Sender: Processing packet 49623 [packets to send 21, broken 20] [12:19:47]ProducePacketName [12:19:47]name=ofd_packets/00049623 [12:19:47]OFD Sender: To server: pG, [12:19:47]CommunicateWithHost lk.salyk.kg:30040 [12:19:47]ConnectInit lk.salyk.kg [12:19:47]Connected sock=11 [12:19:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 03 BF 1B 01 E9 19 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 64 95 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D7 C1 00 00 35 04 06 00 79 A0 16 5A 96 35 05 D3 9B 85 C5 EF 40 A2 [12:19:47]Write to MH i2c: 01 00 00 36 1B 51 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: 01 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: 01 07 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: 01 07 00 36 1B 00 00 00 00 00 CB 0C 2F [12:19:47]RasterBufferAndPrint [12:19:47]line [12:19:47]line [12:19:47]line [12:19:47]line [12:19:47]line [12:19:47]written 0, free lines is 3281 [12:19:47]MH_Cut [12:19:47]Write to MH i2c: D1 01 00 3D 1B 01 2A [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: D1 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: D1 01 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: D1 01 00 3D 1B 00 29 [12:19:47]Write to MH i2c: 01 00 00 3E 1B 59 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FE 6E 47 00 C2 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 31 38 30 30 10 04 04 00 D7 C1 00 00 F4 03 04 00 A0 40 C0 66 B6 04 01 00 00 9C D7 87 DE 6A 13 64 6F [12:19:47]CommunicateWithHost err = 0 [12:19:47]CheckOFDResponse [12:19:47]1017 (14) - 77093643461234 [12:19:47]1041 (16) - 0000000000871800 [12:19:47]1040 (4) - 49623 [12:19:47]1012 (4) - 17.08.2024 06:18 [12:19:47]1206 (1) - 0 [12:19:47]OFD Sender: Remove packet 49623 [12:19:47]ProducePacketName [12:19:47]name=ofd_packets/00049623 [12:19:47]NVStorageDeleteData [12:19:47]OFD Sender: No OFD packet to send [12:19:48]*** Cut start [12:19:48]*** Purtial cut [12:19:48]*** Stage 1: CUTSNS_PIN = 1 [12:19:48]Read from MH i2c: 01 [12:19:48]MH_I2C_Read... [12:19:48]*** Stop cut motor [12:19:48]*** Cut end [12:19:48]Read from MH i2c: 01 07 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 3E 1B 00 00 00 00 00 FF 0F 6E [12:19:48]process_action close_receipt done [12:19:48]requested_data is exist [12:19:48]produce_requested_data [12:19:48]requested_item fm.sn is exist - process it [12:19:48]wFMCommunicate request_size=4 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 11 00 00 [12:19:48]Write to MH i2c: E2 08 00 3F 1B 80 11 00 00 00 00 00 00 D4 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 17 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 17 00 3F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1F [12:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:19:48]wFMCommunicate OK [12:19:48]requested_item fd.num is exist - process it [12:19:48]SAM_PROTO_GetFieldsCounters [12:19:48]wFMCommunicate request_size=4 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 13 00 00 [12:19:48]Write to MH i2c: E2 08 00 40 1B 80 13 00 00 00 00 00 00 D7 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 62 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 62 00 40 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D7 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [12:19: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D7 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:48]wFMCommunicate OK [12:19:48]SAM_PROTO_GetFieldsCounters done [12:19:48]requested_item shift.num is exist - process it [12:19:48]requested_item shift.opened is exist - process it [12:19:48]req_shift_opened [12:19:48]FM_GetShiftState [12:19:48]SAM_PROTO_GetShiftState [12:19:48]wFMCommunicate request_size=4 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 13 01 00 [12:19:48]Write to MH i2c: E2 08 00 41 1B 80 13 01 00 00 00 00 00 D9 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 0E 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 0E 00 41 1B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 1E [12:19:48]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:19:48]wFMCommunicate OK [12:19:48]SAM_PROTO_GetShiftState done [12:19:48]FM_GetShiftState done [12:19:48]req_shift_opened done [12:19:48]requested_item shift.open_date is exist - process it [12:19:48]req_shift_open_date [12:19:48]req_shift_open_date done [12:19:48]produce_requested_data done [12:19:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49623,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:19:48]process_action_free close_receipt [12:19:48]json_value_free [12:19:48]json_value_free done [12:19:48]process_json_proto returns [12:19:48]Send response to host [12:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49623,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:19:48]free response buf [12:19:48]execute_script done [12:19:48]execute_script returns [12:19:48]free content buf [12:19:48]Sock 9.Close socket [12:19:48]Sock 9.Thread stoped [12:19:52]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:43]int [12:20:43]Write to MH i2c: 01 00 00 42 1B 5D [12:20:43]*** FLAG_PRN_KEY set [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 42 1B 00 08 00 00 00 FF 0F 7A [12:20:43]state=0 [12:20:43]Key pressed [12:20:43]Feed [12:20:43]Write to MH i2c: D8 00 00 43 1B 35 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: D8 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: D8 01 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: D8 01 00 43 1B 00 36 [12:20:43]int [12:20:43]Write to MH i2c: 01 00 00 44 1B 5F [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 44 1B 00 48 00 00 00 3C 00 EA [12:20:43]state=2 [12:20:43]Key pressed [12:20:43]int [12:20:43]Write to MH i2c: 01 00 00 45 1B 60 [12:20:43]*** FLAG_PRN_KEY reset [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 45 1B 00 00 00 00 00 F5 0F 6B [12:20:43]state=2 [12:20:43]Stop feed [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]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: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:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [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: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: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:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:28:59]accept exits with 7 [12:28:59]New connection [12:28:59]New thread 3066944868 created [12:28:59]Thread 3066801508 joined [12:28:59]Waiting for new connection... [12:28:59] Sock 7.Parse request [12:28:59]Sock 7.Check first char [12:28:59]Sock 7.First char is OK [12:28:59]request: POST /json_proto HTTP/1.0 [12:28:59]Method: POST [12:28:59]URL: /json_proto [12:28:59]Method is POST - this is cgi request [12:28:59]url: /json_proto [12:28:59]query_string will be loaded in cgi processing [12:28:59]execute_cgi json_proto POST (null) [12:28:59]execute_cgi path=json_proto method=POST [12:28:59]POST find Content-Length [12:28:59]Host: 172.17.46.196:8080 [12:28:59]Content-Length: 677 [12:28:59]Content-Type: application/json [12:28:59] [12:28:59]POST finish read [12:28:59]Found Content-Length = 677 [12:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189812", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 3.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:59]execute_script... [12:28:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189812", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 3.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:59]POST & json_proto [12:28:59]process_json_proto [12:28:59]json parsed OK: [12:28:59]protocol is kg_v1.0 [12:28:59]action value=close_receipt [12:28:59]process_action close_receipt [12:28:59]cmd_close_receipt [12:28:59]MH_GetDate [12:28:59]Write to MH i2c: F0 00 00 46 1B 50 [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: F0 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: F0 09 00 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: F0 09 00 46 1B 00 8F 97 C0 66 07 E8 5D 66 57 [12:28:59]GetLastDocTimeStamp 1723897188 [12:28:59]current date 1723897743 [12:28:59]FM_GetShiftState [12:28:59]SAM_PROTO_GetShiftState [12:28:59]wFMCommunicate request_size=4 [12:28:59]MH_SAM_APDU [12:28:59]CAPDU: 80 13 01 00 [12:28:59]Write to MH i2c: E2 08 00 47 1B 80 13 01 00 00 00 00 00 DF [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:00]Read from MH i2c: E2 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 0E 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 0E 00 47 1B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 24 [12:29:00]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:29:00]wFMCommunicate OK [12:29:00]SAM_PROTO_GetShiftState done [12:29:00]FM_GetShiftState done [12:29:00]opened in 1723853354 [12:29:00]opened+sec_in_day 1723939754 [12:29:00]quantity*price = 27000 [12:29:00]sum+1 = 27001 [12:29:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 61 17.08.2024 12:29 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49624 ФПД: 126931560768206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T122903&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49624&fm=126931560768206&tin=02508201610067®Number=0000000000092546&sum=27000 0 [12:29:01]StoreToDocumentArchive [12:29:01]shift 465 fd 49624 [12:29:01]save to /storage/0465/doc_00049624 [12:29:01]save last doc name /storage/0465/doc_00049624 to /storage/kkm_last_doc_name [12:29:01]save OK [12:29:01]Clear old archive folders... [12:29:01]ProcessDocumentItem done err = 0, tmpTLVsize=294 [12:29:01]tlvbuf is 01884780 [12:29:01]SAM_PROTO_ClearQueue [12:29:01]wFMCommunicate request_size=4 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 09 00 00 [12:29:01]Write to MH i2c: E2 08 00 54 1B 80 09 00 00 00 00 00 00 E1 [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 54 1B 00 90 00 E3 [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]SAM_PROTO_ClearQueue done [12:29:01]KKMCreateOFDPacket [12:29:01]OFDProtocolAddRootSTLVToBuf [12:29:01]FM_MakeSignedData [12:29:01]FM_MakeSignedData [12:29:01]SAM_PROTO_SignData [12:29:01]wFMCommunicate request_size=4 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 01 02 [12:29:01]Write to MH i2c: E2 08 00 55 1B 80 0D 01 02 00 00 00 00 E9 [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 55 1B 00 90 00 E4 [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]wFMCommunicate request_size=255 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8F 97 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [12:29:01]Write to MH i2c: E2 02 01 56 1B 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8F 97 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 9A [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 56 1B 00 90 00 E5 [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]wFMCommunicate request_size=53 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C1 00 00 35 04 06 00 73 71 8E 97 22 CE [12:29:01]Write to MH i2c: E2 38 00 57 1B 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C1 00 00 35 04 06 00 73 71 8E 97 22 CE 00 00 6C [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 57 1B 00 90 00 E6 [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]wFMCommunicate request_size=4 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 03 02 [12:29:01]Write to MH i2c: E2 08 00 58 1B 80 0D 03 02 00 00 00 00 EE [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 0B 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 0B 00 58 1B 00 2D DE E3 66 46 20 2C 7C 90 00 51 [12:29:01]RAPDU: 2D DE E3 66 46 20 2C 7C 90 00 [12:29:01]wFMCommunicate OK [12:29:01]SAM_PROTO_SignData done [12:29:01]FM_MakeSignedData done [12:29:01]CreateOFDProtocolMessage [12:29:01]wFMCommunicate request_size=4 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 11 00 00 [12:29:01]Write to MH i2c: E2 08 00 59 1B 80 11 00 00 00 00 00 00 EE [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 17 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 17 00 59 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 39 [12:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:29:01]wFMCommunicate OK [12:29:01]CreateOFDProtocolMessage done [12:29:01]OFDSenderStorePacket 49624 [12:29:01]StoreOFDPacket docnum=49624 [12:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 A1 38 32 01 34 45 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8F 97 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C1 00 00 35 04 06 00 73 71 8E 97 22 CE 2D DE E3 66 46 20 2C 7C [12:29:01]CheckFolder [12:29:01]dirname=/storage/ofd_packets [12:29:01]CheckFolder done [12:29:01]ProducePacketName [12:29:01]name=ofd_packets/00049624 [12:29:01]NVStorageSaveData ofd_packets/00049624 [12:29:01]File name is /storage/ofd_packets/00049624 [12:29:01]Write 344 bytes [12:29:01]NVStorageSaveData done [12:29:01]OFDSenderStorePacket done [12:29:01]KKMCreateOFDPacket done [12:29:01]NVStorageSaveData kkm_last_timestamp [12:29:01]File name is /storage/kkm_last_timestamp [12:29:01]Write 4 bytes [12:29:01]NVStorageSaveData done [12:29:01]ExternCall_PrintAddStr [12:29:01]wPrintStart [12:29:01]Write to MH i2c: 01 00 00 5A 1B 75 [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: 01 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: 01 07 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: 01 07 00 5A 1B 00 00 00 00 00 FF 0F 8A [12:29:01]RasterBufferAndPrint [12:29:01]line Счет N : (3)189812 [12:29:01]line ИНН: 02508201610067 [12:29:01]line Контрольно-Кассовый Чек [12:29:01]line ПРОДАЖА [12:29:01]line Товар: 4650243871828 [12:29:01]line Gorilla эн нап манго-кокос 0,45 ж/б [12:29:01]line 3.000 * 90.00 [12:29:01]line = 270.00 [12:29:01]line НДС 12% НСП 1% [12:29:01]line > о реализуемом товаре [12:29:01]line ИТОГО: 270.00 [12:29:01]line НСП 1% : 2.39 [12:29:01]line НДС 12% : 28.67 [12:29:01]line Наличными: 270.00 [12:29:01]line Безнал.: 0.00 [12:29:01]line Место: АЗС № 95 "Партнер Нефть" [12:29:01]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:29:01]line СНО: Общий режим [12:29:01]line Чек 61 17.08.2024 12:29 [12:29:01]line Смена: 465 ФФД: 1.0 [12:29:01]line ЗНМ: 0300000078 [12:29:01]line РНМ: 0000000000092546 [12:29:01]line Версия ККМ: 001 [12:29:01]line ФМ: 0000000000871800 [12:29:01]line ФД: 49624 [12:29:01]line ФПД: 126931560768206 [12:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T122903&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49624&fm=126931560768206&tin=02508201610067®Number=0000000000092546&sum=27000 [12:29:02]line 0 [12:29:02]OFD Sender: Processing packet 49624 [packets to send 21, broken 20] [12:29:02]ProducePacketName [12:29:02]name=ofd_packets/00049624 [12:29:02]OFD Sender: To server: pG, [12:29:02]CommunicateWithHost lk.salyk.kg:30040 [12:29:02]ConnectInit lk.salyk.kg [12:29:02]written 0, free lines is 4095 [12:29:02]Connected sock=10 [12:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 A1 38 32 01 34 45 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8F 97 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C1 00 00 35 04 06 00 73 71 8E 97 22 CE 2D DE E3 66 46 20 2C 7C [12:29:02]Write to MH i2c: 01 00 00 83 1B 9E [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: 01 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: 01 07 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: 01 07 00 83 1B 00 00 00 00 00 DF 0C 90 [12:29:02]RasterBufferAndPrint [12:29:02]line [12:29:02]line [12:29:02]line [12:29:02]line [12:29:02]line [12:29:02]written 0, free lines is 3301 [12:29:02]MH_Cut [12:29:02]Write to MH i2c: D1 01 00 8A 1B 01 77 [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: D1 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: D1 01 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: D1 01 00 8A 1B 00 76 [12:29:02]Write to MH i2c: 01 00 00 8B 1B A6 [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 05 7E 47 00 1C 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C1 00 00 F4 03 04 00 CB 42 C0 66 B6 04 01 00 00 EC 27 92 5F 84 A9 19 5F [12:29:02]CommunicateWithHost err = 0 [12:29:02]CheckOFDResponse [12:29:02]1017 (14) - 77093643461234 [12:29:02]1041 (16) - 0000000000871800 [12:29:02]1040 (4) - 49624 [12:29:02]1012 (4) - 17.08.2024 06:27 [12:29:02]1206 (1) - 0 [12:29:02]OFD Sender: Remove packet 49624 [12:29:02]ProducePacketName [12:29:02]name=ofd_packets/00049624 [12:29:02]NVStorageDeleteData [12:29:03]OFD Sender: No OFD packet to send [12:29:03]*** Cut start [12:29:03]*** Purtial cut [12:29:03]*** CUTSNS_PIN = 0 [12:29:03]*** Stage 1: CUTSNS_PIN = 1 [12:29:05]Read from MH i2c: 01 [12:29:05]MH_I2C_Read... [12:29:05]*** Stop cut motor [12:29:05]*** Cut end [12:29:05]Read from MH i2c: 01 07 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: 01 07 00 8B 1B 00 00 00 00 00 FF 0F BB [12:29:05]process_action close_receipt done [12:29:05]requested_data is exist [12:29:05]produce_requested_data [12:29:05]requested_item fm.sn is exist - process it [12:29:05]wFMCommunicate request_size=4 [12:29:05]MH_SAM_APDU [12:29:05]CAPDU: 80 11 00 00 [12:29:05]Write to MH i2c: E2 08 00 8C 1B 80 11 00 00 00 00 00 00 21 [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 17 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 17 00 8C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6C [12:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:29:05]wFMCommunicate OK [12:29:05]requested_item fd.num is exist - process it [12:29:05]SAM_PROTO_GetFieldsCounters [12:29:05]wFMCommunicate request_size=4 [12:29:05]MH_SAM_APDU [12:29:05]CAPDU: 80 13 00 00 [12:29:05]Write to MH i2c: E2 08 00 8D 1B 80 13 00 00 00 00 00 00 24 [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 62 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 62 00 8D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D8 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [12:29:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D8 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:05]wFMCommunicate OK [12:29:05]SAM_PROTO_GetFieldsCounters done [12:29:05]requested_item shift.num is exist - process it [12:29:05]requested_item shift.opened is exist - process it [12:29:05]req_shift_opened [12:29:05]FM_GetShiftState [12:29:05]SAM_PROTO_GetShiftState [12:29:05]wFMCommunicate request_size=4 [12:29:05]MH_SAM_APDU [12:29:05]CAPDU: 80 13 01 00 [12:29:05]Write to MH i2c: E2 08 00 8E 1B 80 13 01 00 00 00 00 00 26 [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 0E 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 0E 00 8E 1B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 6B [12:29:05]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:29:05]wFMCommunicate OK [12:29:05]SAM_PROTO_GetShiftState done [12:29:05]FM_GetShiftState done [12:29:05]req_shift_opened done [12:29:05]requested_item shift.open_date is exist - process it [12:29:05]req_shift_open_date [12:29:05]req_shift_open_date done [12:29:05]produce_requested_data done [12:29:05]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49624,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:29:05]process_action_free close_receipt [12:29:05]json_value_free [12:29:05]json_value_free done [12:29:05]process_json_proto returns [12:29:05]Send response to host [12:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49624,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:29:05]free response buf [12:29:05]execute_script done [12:29:05]execute_script returns [12:29:05]free content buf [12:29:05]Sock 7.Close socket [12:29:05]Sock 7.Thread stoped [12:29:07]accept exits with 9 [12:29:07]New connection [12:29:07]New thread 3066801508 created [12:29:07]Thread 3066944868 joined [12:29:07]Waiting for new connection... [12:29:07] Sock 9.Parse request [12:29:07]Sock 9.Check first char [12:29:07]Sock 9.First char is OK [12:29:07]request: POST /json_proto HTTP/1.0 [12:29:07]Method: POST [12:29:07]URL: /json_proto [12:29:07]Method is POST - this is cgi request [12:29:07]url: /json_proto [12:29:07]query_string will be loaded in cgi processing [12:29:07]execute_cgi json_proto POST (null) [12:29:07]execute_cgi path=json_proto method=POST [12:29:07]POST find Content-Length [12:29:07]Host: 172.17.46.196:8080 [12:29:07]Content-Length: 642 [12:29:07]Content-Type: application/json [12:29:07] [12:29:07]POST finish read [12:29:07]Found Content-Length = 642 [12:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189813", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:07]execute_script... [12:29:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189813", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:07]POST & json_proto [12:29:07]process_json_proto [12:29:07]json parsed OK: [12:29:07]protocol is kg_v1.0 [12:29:07]action value=close_receipt [12:29:07]process_action close_receipt [12:29:07]cmd_close_receipt [12:29:07]MH_GetDate [12:29:07]Write to MH i2c: F0 00 00 8F 1B 99 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: F0 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: F0 09 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: F0 09 00 8F 1B 00 97 97 C0 66 07 E8 5D 66 A8 [12:29:07]GetLastDocTimeStamp 1723897743 [12:29:07]current date 1723897751 [12:29:07]FM_GetShiftState [12:29:07]SAM_PROTO_GetShiftState [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 13 01 00 [12:29:07]Write to MH i2c: E2 08 00 90 1B 80 13 01 00 00 00 00 00 28 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 0E 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 0E 00 90 1B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 6D [12:29:07]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:29:07]wFMCommunicate OK [12:29:07]SAM_PROTO_GetShiftState done [12:29:07]FM_GetShiftState done [12:29:07]opened in 1723853354 [12:29:07]opened+sec_in_day 1723939754 [12:29:07]quantity*price = 5900 [12:29:07]sum+1 = 5901 [12:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 62 17.08.2024 12:29 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49625 ФПД: 17298756274711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T122911&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49625&fm=17298756274711&tin=02508201610067®Number=0000000000092546&sum=5900 0 [12:29:09]StoreToDocumentArchive [12:29:09]shift 465 fd 49625 [12:29:09]save to /storage/0465/doc_00049625 [12:29:09]save last doc name /storage/0465/doc_00049625 to /storage/kkm_last_doc_name [12:29:09]save OK [12:29:09]Clear old archive folders... [12:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=281 [12:29:09]tlvbuf is 018811B0 [12:29:09]SAM_PROTO_ClearQueue [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 09 00 00 [12:29:09]Write to MH i2c: E2 08 00 9D 1B 80 09 00 00 00 00 00 00 2A [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 9D 1B 00 90 00 2C [12:29:09]RAPDU: 90 00 [12:29:09]wFMCommunicate OK [12:29:09]SAM_PROTO_ClearQueue done [12:29:09]KKMCreateOFDPacket [12:29:09]OFDProtocolAddRootSTLVToBuf [12:29:09]FM_MakeSignedData [12:29:09]FM_MakeSignedData [12:29:09]SAM_PROTO_SignData [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 0D 01 02 [12:29:09]Write to MH i2c: E2 08 00 9E 1B 80 0D 01 02 00 00 00 00 32 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 9E 1B 00 90 00 2D [12:29:09]RAPDU: 90 00 [12:29:09]wFMCommunicate OK [12:29:09]wFMCommunicate request_size=255 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 97 97 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 [12:29:09]Write to MH i2c: E2 02 01 9F 1B 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 97 97 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 24 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 9F 1B 00 90 00 2E [12:29:09]RAPDU: 90 00 [12:29:09]wFMCommunicate OK [12:29:09]wFMCommunicate request_size=40 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C1 00 00 35 04 06 00 0F BB AE 39 0A 17 [12:29:09]Write to MH i2c: E2 2B 00 A0 1B 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C1 00 00 35 04 06 00 0F BB AE 39 0A 17 00 00 56 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 03 00 A0 1B 00 90 00 2F [12:29:09]RAPDU: 90 00 [12:29:09]wFMCommunicate OK [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 0D 03 02 [12:29:09]Write to MH i2c: E2 08 00 A1 1B 80 0D 03 02 00 00 00 00 37 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 0B 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 0B 00 A1 1B 00 88 21 61 5E 02 96 11 C9 90 00 12 [12:29:09]RAPDU: 88 21 61 5E 02 96 11 C9 90 00 [12:29:09]wFMCommunicate OK [12:29:09]SAM_PROTO_SignData done [12:29:09]FM_MakeSignedData done [12:29:09]CreateOFDProtocolMessage [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 11 00 00 [12:29:09]Write to MH i2c: E2 08 00 A2 1B 80 11 00 00 00 00 00 00 37 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 17 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 17 00 A2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 82 [12:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:29:09]wFMCommunicate OK [12:29:09]CreateOFDProtocolMessage done [12:29:09]OFDSenderStorePacket 49625 [12:29:09]StoreOFDPacket docnum=49625 [12:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 55 5A 25 01 20 71 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 97 97 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C1 00 00 35 04 06 00 0F BB AE 39 0A 17 88 21 61 5E 02 96 11 C9 [12:29:09]CheckFolder [12:29:09]dirname=/storage/ofd_packets [12:29:09]CheckFolder done [12:29:09]ProducePacketName [12:29:09]name=ofd_packets/00049625 [12:29:09]NVStorageSaveData ofd_packets/00049625 [12:29:09]File name is /storage/ofd_packets/00049625 [12:29:09]Write 331 bytes [12:29:09]NVStorageSaveData done [12:29:09]OFDSenderStorePacket done [12:29:09]KKMCreateOFDPacket done [12:29:09]NVStorageSaveData kkm_last_timestamp [12:29:09]File name is /storage/kkm_last_timestamp [12:29:09]Write 4 bytes [12:29:09]NVStorageSaveData done [12:29:09]ExternCall_PrintAddStr [12:29:09]wPrintStart [12:29:09]Write to MH i2c: 01 00 00 A3 1B BE [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: 01 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: 01 07 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: 01 07 00 A3 1B 00 00 00 00 00 FF 0F D3 [12:29:09]RasterBufferAndPrint [12:29:09]line Счет N : (3)189813 [12:29:09]line ИНН: 02508201610067 [12:29:09]line Контрольно-Кассовый Чек [12:29:09]line ПРОДАЖА [12:29:09]line Товар: 4607065001445 [12:29:09]line Шок батончик Snickers 50,5г [12:29:09]line 1.000 * 59.00 [12:29:09]line = 59.00 [12:29:09]line НДС 12% НСП 1% [12:29:09]line > о реализуемом товаре [12:29:09]line ИТОГО: 59.00 [12:29:09]line НСП 1% : 0.52 [12:29:09]line НДС 12% : 6.26 [12:29:09]line Наличными: 59.00 [12:29:09]line Безнал.: 0.00 [12:29:09]line Место: АЗС № 95 "Партнер Нефть" [12:29:09]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:29:09]line СНО: Общий режим [12:29:09]line Чек 62 17.08.2024 12:29 [12:29:09]line Смена: 465 ФФД: 1.0 [12:29:09]line ЗНМ: 0300000078 [12:29:09]line РНМ: 0000000000092546 [12:29:09]line Версия ККМ: 001 [12:29:09]line ФМ: 0000000000871800 [12:29:09]line ФД: 49625 [12:29:09]line ФПД: 17298756274711 [12:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T122911&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49625&fm=17298756274711&tin=02508201610067®Number=0000000000092546&sum=5900 [12:29:09]line 0 [12:29:09]written 0, free lines is 4095 [12:29:09]OFD Sender: Processing packet 49625 [packets to send 21, broken 20] [12:29:09]ProducePacketName [12:29:09]name=ofd_packets/00049625 [12:29:09]OFD Sender: To server: pG, [12:29:09]CommunicateWithHost lk.salyk.kg:30040 [12:29:09]ConnectInit lk.salyk.kg [12:29:10]Connected sock=10 [12:29:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 55 5A 25 01 20 71 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 97 97 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C1 00 00 35 04 06 00 0F BB AE 39 0A 17 88 21 61 5E 02 96 11 C9 [12:29:10]Write to MH i2c: 01 00 00 CB 1B E6 [12:29:10]Write i2c OK [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: 01 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: 01 07 00 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: 01 07 00 CB 1B 00 00 00 00 00 01 0D FB [12:29:10]RasterBufferAndPrint [12:29:10]line [12:29:10]line [12:29:10]line [12:29:10]line [12:29:10]line [12:29:10]written 0, free lines is 3338 [12:29:10]MH_Cut [12:29:10]Write to MH i2c: D1 01 00 D2 1B 01 BF [12:29:10]Write i2c OK [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: D1 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: D1 01 00 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: D1 01 00 D2 1B 00 BE [12:29:10]Write to MH i2c: 01 00 00 D3 1B EE [12:29:10]Write i2c OK [12:29:10]MH_I2C_Read... [12:29:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7F 51 47 00 0B B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C1 00 00 F4 03 04 00 D3 42 C0 66 B6 04 01 00 00 1D F6 2E DC A2 7F 06 5F [12:29:10]CommunicateWithHost err = 0 [12:29:10]CheckOFDResponse [12:29:10]1017 (14) - 77093643461234 [12:29:10]1041 (16) - 0000000000871800 [12:29:10]1040 (4) - 49625 [12:29:10]1012 (4) - 17.08.2024 06:27 [12:29:10]1206 (1) - 0 [12:29:10]OFD Sender: Remove packet 49625 [12:29:10]ProducePacketName [12:29:10]name=ofd_packets/00049625 [12:29:10]NVStorageDeleteData [12:29:10]OFD Sender: No OFD packet to send [12:29:10]*** Cut start [12:29:10]*** Purtial cut [12:29:10]*** Stage 1: CUTSNS_PIN = 1 [12:29:11]Read from MH i2c: 01 [12:29:11]MH_I2C_Read... [12:29:11]*** Stop cut motor [12:29:11]*** Cut end [12:29:11]Read from MH i2c: 01 07 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 D3 1B 00 00 00 00 00 FF 0F 03 [12:29:11]process_action close_receipt done [12:29:11]requested_data is exist [12:29:11]produce_requested_data [12:29:11]requested_item fm.sn is exist - process it [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 11 00 00 [12:29:11]Write to MH i2c: E2 08 00 D4 1B 80 11 00 00 00 00 00 00 69 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 17 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 17 00 D4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B4 [12:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:29:11]wFMCommunicate OK [12:29:11]requested_item fd.num is exist - process it [12:29:11]SAM_PROTO_GetFieldsCounters [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 13 00 00 [12:29:11]Write to MH i2c: E2 08 00 D5 1B 80 13 00 00 00 00 00 00 6C [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 62 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 62 00 D5 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D9 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [12:29: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D9 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:11]wFMCommunicate OK [12:29:11]SAM_PROTO_GetFieldsCounters done [12:29:11]requested_item shift.num is exist - process it [12:29:11]requested_item shift.opened is exist - process it [12:29:11]req_shift_opened [12:29:11]FM_GetShiftState [12:29:11]SAM_PROTO_GetShiftState [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 13 01 00 [12:29:11]Write to MH i2c: E2 08 00 D6 1B 80 13 01 00 00 00 00 00 6E [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 0E 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 0E 00 D6 1B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 B3 [12:29:11]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:29:11]wFMCommunicate OK [12:29:11]SAM_PROTO_GetShiftState done [12:29:11]FM_GetShiftState done [12:29:11]req_shift_opened done [12:29:11]requested_item shift.open_date is exist - process it [12:29:11]req_shift_open_date [12:29:11]req_shift_open_date done [12:29:11]produce_requested_data done [12:29:11]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49625,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:29:11]process_action_free close_receipt [12:29:11]json_value_free [12:29:11]json_value_free done [12:29:11]process_json_proto returns [12:29:11]Send response to host [12:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49625,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:29:11]free response buf [12:29:11]execute_script done [12:29:11]execute_script returns [12:29:11]free content buf [12:29:11]Sock 9.Close socket [12:29:11]Sock 9.Thread stoped [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:28]accept exits with 7 [12:30:28]New connection [12:30:28]New thread 3066944868 created [12:30:28]Thread 3066801508 joined [12:30:28]Waiting for new connection... [12:30:28] Sock 7.Parse request [12:30:28]Sock 7.Check first char [12:30:28]Sock 7.First char is OK [12:30:28]request: POST /json_proto HTTP/1.0 [12:30:28]Method: POST [12:30:28]URL: /json_proto [12:30:28]Method is POST - this is cgi request [12:30:28]url: /json_proto [12:30:28]query_string will be loaded in cgi processing [12:30:28]execute_cgi json_proto POST (null) [12:30:28]execute_cgi path=json_proto method=POST [12:30:28]POST find Content-Length [12:30:28]Host: 172.17.46.196:8080 [12:30:28]Content-Length: 756 [12:30:28]Content-Type: application/json [12:30:28] [12:30:28]POST finish read [12:30:28]Found Content-Length = 756 [12:30:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30038402", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:28]execute_script... [12:30: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)11326157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30038402", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:28]POST & json_proto [12:30:28]process_json_proto [12:30:28]json parsed OK: [12:30:28]protocol is kg_v1.0 [12:30:28]action value=close_receipt [12:30:28]process_action close_receipt [12:30:28]cmd_close_receipt [12:30:28]MH_GetDate [12:30:28]Write to MH i2c: F0 00 00 D7 1B E1 [12:30:28]Write i2c OK [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: F0 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: F0 09 00 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: F0 09 00 D7 1B 00 E8 97 C0 66 07 E8 5D 66 41 [12:30:28]GetLastDocTimeStamp 1723897751 [12:30:28]current date 1723897832 [12:30:28]FM_GetShiftState [12:30:28]SAM_PROTO_GetShiftState [12:30:28]wFMCommunicate request_size=4 [12:30:28]MH_SAM_APDU [12:30:28]CAPDU: 80 13 01 00 [12:30:28]Write to MH i2c: E2 08 00 D8 1B 80 13 01 00 00 00 00 00 70 [12:30:28]Write i2c OK [12:30:28]MH_I2C_Read... [12:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:28]Read from MH i2c: E2 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 0E 00 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 0E 00 D8 1B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 B5 [12:30:28]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:30:28]wFMCommunicate OK [12:30:28]SAM_PROTO_GetShiftState done [12:30:28]FM_GetShiftState done [12:30:28]opened in 1723853354 [12:30:28]opened+sec_in_day 1723939754 [12:30:28]quantity*price = 0 [12:30:28]sum+1 = 1 [12:30:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 63 17.08.2024 12:30 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30038402 ФМ: 0000000000871800 ФД: 49626 ФПД: 192265112435560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T123032&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49626&fm=192265112435560&tin=02508201610067®Number=0000000000092546&sum=0 [12:30:29]StoreToDocumentArchive [12:30:29]shift 465 fd 49626 [12:30:29]save to /storage/0465/doc_00049626 [12:30:29]save last doc name /storage/0465/doc_00049626 to /storage/kkm_last_doc_name [12:30:29]save OK [12:30:29]Clear old archive folders... [12:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:29]tlvbuf is 0187BF40 [12:30:29]SAM_PROTO_ClearQueue [12:30:29]wFMCommunicate request_size=4 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 09 00 00 [12:30:29]Write to MH i2c: E2 08 00 E5 1B 80 09 00 00 00 00 00 00 72 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 E5 1B 00 90 00 74 [12:30:29]RAPDU: 90 00 [12:30:29]wFMCommunicate OK [12:30:29]SAM_PROTO_ClearQueue done [12:30:29]KKMCreateOFDPacket [12:30:29]OFDProtocolAddRootSTLVToBuf [12:30:29]FM_MakeSignedData [12:30:29]FM_MakeSignedData [12:30:29]SAM_PROTO_SignData [12:30:29]wFMCommunicate request_size=4 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 0D 01 02 [12:30:29]Write to MH i2c: E2 08 00 E6 1B 80 0D 01 02 00 00 00 00 7A [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 E6 1B 00 90 00 75 [12:30:29]RAPDU: 90 00 [12:30:29]wFMCommunicate OK [12:30:29]wFMCommunicate request_size=255 [12:30:29]MH_SAM_APDU [12:30: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 34 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 3F 00 00 00 F4 03 04 00 E8 97 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DA C1 00 00 35 04 06 00 AE [12:30:29]Write to MH i2c: E2 02 01 E7 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 3F 00 00 00 F4 03 04 00 E8 97 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DA C1 00 00 35 04 06 00 AE 00 00 20 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 E7 1B 00 90 00 76 [12:30:29]RAPDU: 90 00 [12:30:29]wFMCommunicate OK [12:30:29]wFMCommunicate request_size=10 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 0D 02 02 05 DD 35 BA BB 68 [12:30:29]Write to MH i2c: E2 0D 00 E8 1B 80 0D 02 02 05 00 DD 35 BA BB 68 00 00 76 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 E8 1B 00 90 00 77 [12:30:29]RAPDU: 90 00 [12:30:29]wFMCommunicate OK [12:30:29]wFMCommunicate request_size=4 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 0D 03 02 [12:30:29]Write to MH i2c: E2 08 00 E9 1B 80 0D 03 02 00 00 00 00 7F [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 0B 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 0B 00 E9 1B 00 BC 12 4D 3D 7E 57 CF 56 90 00 D2 [12:30:30]RAPDU: BC 12 4D 3D 7E 57 CF 56 90 00 [12:30:30]wFMCommunicate OK [12:30:30]SAM_PROTO_SignData done [12:30:30]FM_MakeSignedData done [12:30:30]CreateOFDProtocolMessage [12:30:30]wFMCommunicate request_size=4 [12:30:30]MH_SAM_APDU [12:30:30]CAPDU: 80 11 00 00 [12:30:30]Write to MH i2c: E2 08 00 EA 1B 80 11 00 00 00 00 00 00 7F [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:30]Read from MH i2c: E2 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 17 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 17 00 EA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CA [12:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:30:30]wFMCommunicate OK [12:30:30]CreateOFDProtocolMessage done [12:30:30]OFDSenderStorePacket 49626 [12:30:30]StoreOFDPacket docnum=49626 [12:30:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 BB C5 07 01 B9 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 34 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 3F 00 00 00 F4 03 04 00 E8 97 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DA C1 00 00 35 04 06 00 AE DD 35 BA BB 68 BC 12 4D 3D 7E 57 CF 56 [12:30:30]CheckFolder [12:30:30]dirname=/storage/ofd_packets [12:30:30]CheckFolder done [12:30:30]ProducePacketName [12:30:30]name=ofd_packets/00049626 [12:30:30]NVStorageSaveData ofd_packets/00049626 [12:30:30]File name is /storage/ofd_packets/00049626 [12:30:30]Write 301 bytes [12:30:30]NVStorageSaveData done [12:30:30]OFDSenderStorePacket done [12:30:30]KKMCreateOFDPacket done [12:30:30]NVStorageSaveData kkm_last_timestamp [12:30:30]File name is /storage/kkm_last_timestamp [12:30:30]Write 4 bytes [12:30:30]NVStorageSaveData done [12:30:30]ExternCall_PrintAddStr [12:30:30]wPrintStart [12:30:30]Write to MH i2c: 01 00 00 EB 1B 06 [12:30:30]OFD Sender: Processing packet 49626 [packets to send 21, broken 20] [12:30:30]ProducePacketName [12:30:30]name=ofd_packets/00049626 [12:30:30]OFD Sender: To server: pG, [12:30:30]CommunicateWithHost lk.salyk.kg:30040 [12:30:30]ConnectInit lk.salyk.kg [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 07 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 07 00 EB 1B 00 00 00 00 00 FF 0F 1B [12:30:30]RasterBufferAndPrint [12:30:30]line Счет N : (1)11326157 [12:30:30]line ИНН: 02508201610067 [12:30:30]line Контрольно-Кассовый Чек [12:30:30]line ПРОДАЖА [12:30:30]line ТРК (МРК, ГНК) : 32 [12:30:30]line Товар: 2710124130 [12:30:30]line Аи-92-К-4 [12:30:30]line 30.000 * 0.00 [12:30:30]line = 0.00 [12:30:30]line НДС 12% НСП 1% [12:30:30]line > о реализуемом товаре [12:30:30]line ИТОГО: 0.00 [12:30:30]line НСП 1% : 0.00 [12:30:30]line НДС 12% : 0.00 [12:30:30]line Наличными: 0.00 [12:30:30]line Безнал.: 0.00 [12:30:30]line Место: АЗС № 95 "Партнер Нефть" [12:30:30]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:30:30]line СНО: Общий режим [12:30:30]line Чек 63 17.08.2024 12:30 [12:30:30]line Смена: 465 ФФД: 1.0 [12:30:30]line ЗНМ: 0300000078 [12:30:30]line РНМ: 0000000000092546 [12:30:30]line Версия ККМ: 001 [12:30:30]line Талоны: ТК ГПНА Online [12:30:30]line 30038402 [12:30:30]line ФМ: 0000000000871800 [12:30:30]line ФД: 49626 [12:30:30]line ФПД: 192265112435560 [12:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T123032&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49626&fm=192265112435560&tin=02508201610067®Number=0000000000092546&sum=0 [12:30:30]written 0, free lines is 4095 [12:30:30]Connected sock=9 [12:30:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 BB C5 07 01 B9 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 34 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 3F 00 00 00 F4 03 04 00 E8 97 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DA C1 00 00 35 04 06 00 AE DD 35 BA BB 68 BC 12 4D 3D 7E 57 CF 56 [12:30:30]Write to MH i2c: 01 00 00 15 1C 31 [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 07 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 07 00 15 1C 00 00 00 00 00 E4 0C 28 [12:30:30]RasterBufferAndPrint [12:30:30]line [12:30:30]line [12:30:30]line [12:30:30]line [12:30:30]line [12:30:30]written 0, free lines is 3309 [12:30:30]MH_Cut [12:30:30]Write to MH i2c: D1 01 00 1C 1C 01 0A [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: D1 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: D1 01 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: D1 01 00 1C 1C 00 09 [12:30:30]Write to MH i2c: 01 00 00 1D 1C 39 [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EF A4 47 00 36 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DA C1 00 00 F4 03 04 00 23 43 C0 66 B6 04 01 00 00 77 AB AF A6 F0 D9 97 15 [12:30:30]CommunicateWithHost err = 0 [12:30:30]CheckOFDResponse [12:30:30]1017 (14) - 77093643461234 [12:30:30]1041 (16) - 0000000000871800 [12:30:30]1040 (4) - 49626 [12:30:30]1012 (4) - 17.08.2024 06:28 [12:30:30]1206 (1) - 0 [12:30:30]OFD Sender: Remove packet 49626 [12:30:30]ProducePacketName [12:30:30]name=ofd_packets/00049626 [12:30:30]NVStorageDeleteData [12:30:31]OFD Sender: No OFD packet to send [12:30:31]*** Cut start [12:30:31]*** Purtial cut [12:30:31]*** CUTSNS_PIN = 0 [12:30:31]*** Stage 1: CUTSNS_PIN = 1 [12:30:33]Read from MH i2c: 01 [12:30:33]MH_I2C_Read... [12:30:33]*** Stop cut motor [12:30:33]*** Cut end [12:30:33]Read from MH i2c: 01 07 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: 01 07 00 1D 1C 00 00 00 00 00 FF 0F 4E [12:30:33]process_action close_receipt done [12:30:33]requested_data is exist [12:30:33]produce_requested_data [12:30:33]requested_item fm.sn is exist - process it [12:30:33]wFMCommunicate request_size=4 [12:30:33]MH_SAM_APDU [12:30:33]CAPDU: 80 11 00 00 [12:30:33]Write to MH i2c: E2 08 00 1E 1C 80 11 00 00 00 00 00 00 B4 [12:30:33]Write i2c OK [12:30:33]MH_I2C_Read... [12:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:33]Read from MH i2c: E2 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 17 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 17 00 1E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FF [12:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:30:33]wFMCommunicate OK [12:30:33]requested_item fd.num is exist - process it [12:30:33]SAM_PROTO_GetFieldsCounters [12:30:33]wFMCommunicate request_size=4 [12:30:33]MH_SAM_APDU [12:30:33]CAPDU: 80 13 00 00 [12:30:33]Write to MH i2c: E2 08 00 1F 1C 80 13 00 00 00 00 00 00 B7 [12:30:33]Write i2c OK [12:30:33]MH_I2C_Read... [12:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:33]Read from MH i2c: E2 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 62 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 62 00 1F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DA C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [12:30: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DA C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:33]wFMCommunicate OK [12:30:33]SAM_PROTO_GetFieldsCounters done [12:30:33]requested_item shift.num is exist - process it [12:30:33]requested_item shift.opened is exist - process it [12:30:33]req_shift_opened [12:30:33]FM_GetShiftState [12:30:33]SAM_PROTO_GetShiftState [12:30:33]wFMCommunicate request_size=4 [12:30:33]MH_SAM_APDU [12:30:33]CAPDU: 80 13 01 00 [12:30:33]Write to MH i2c: E2 08 00 20 1C 80 13 01 00 00 00 00 00 B9 [12:30:33]Write i2c OK [12:30:33]MH_I2C_Read... [12:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:33]Read from MH i2c: E2 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 0E 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 0E 00 20 1C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 FE [12:30:33]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:30:33]wFMCommunicate OK [12:30:33]SAM_PROTO_GetShiftState done [12:30:33]FM_GetShiftState done [12:30:33]req_shift_opened done [12:30:33]requested_item shift.open_date is exist - process it [12:30:33]req_shift_open_date [12:30:33]req_shift_open_date done [12:30:33]produce_requested_data done [12:30:33]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49626,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:30:33]process_action_free close_receipt [12:30:33]json_value_free [12:30:33]json_value_free done [12:30:33]process_json_proto returns [12:30:33]Send response to host [12:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49626,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:30:33]free response buf [12:30:33]execute_script done [12:30:33]execute_script returns [12:30:33]free content buf [12:30:33]Sock 7.Close socket [12:30:33]Sock 7.Thread stoped [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]accept exits with 10 [12:31:46]New connection [12:31:46]New thread 3066801508 created [12:31:46]Thread 3066944868 joined [12:31:46]Waiting for new connection... [12:31:46] Sock 10.Parse request [12:31:46]Sock 10.Check first char [12:31:46]Sock 10.First char is OK [12:31:46]request: POST /json_proto HTTP/1.0 [12:31:46]Method: POST [12:31:46]URL: /json_proto [12:31:46]Method is POST - this is cgi request [12:31:46]url: /json_proto [12:31:46]query_string will be loaded in cgi processing [12:31:46]execute_cgi json_proto POST (null) [12:31:46]execute_cgi path=json_proto method=POST [12:31:46]POST find Content-Length [12:31:46]Host: 172.17.46.196:8080 [12:31:46]Content-Length: 827 [12:31:46]Content-Type: application/json [12:31:46] [12:31:46]POST finish read [12:31:46]Found Content-Length = 827 [12:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189814", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:46]execute_script... [12:31:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189814", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:46]POST & json_proto [12:31:46]process_json_proto [12:31:46]json parsed OK: [12:31:46]protocol is kg_v1.0 [12:31:46]action value=close_receipt [12:31:46]process_action close_receipt [12:31:46]cmd_close_receipt [12:31:46]MH_GetDate [12:31:46]Write to MH i2c: F0 00 00 21 1C 2C [12:31:46]Write i2c OK [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: F0 [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: F0 09 00 [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: F0 09 00 21 1C 00 35 98 C0 66 07 E8 5D 66 DA [12:31:46]GetLastDocTimeStamp 1723897832 [12:31:46]current date 1723897909 [12:31:46]FM_GetShiftState [12:31:46]SAM_PROTO_GetShiftState [12:31:46]wFMCommunicate request_size=4 [12:31:46]MH_SAM_APDU [12:31:46]CAPDU: 80 13 01 00 [12:31:46]Write to MH i2c: E2 08 00 22 1C 80 13 01 00 00 00 00 00 BB [12:31:46]Write i2c OK [12:31:46]MH_I2C_Read... [12:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:46]Read from MH i2c: E2 [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: E2 0E 00 [12:31:46]MH_I2C_Read... [12:31:46]Read from MH i2c: E2 0E 00 22 1C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 00 [12:31:46]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:31:46]wFMCommunicate OK [12:31:46]SAM_PROTO_GetShiftState done [12:31:46]FM_GetShiftState done [12:31:46]opened in 1723853354 [12:31:46]opened+sec_in_day 1723939754 [12:31:46]quantity*price = 9000 [12:31:46]sum+1 = 9001 [12:31:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 64 17.08.2024 12:31 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49627 ФПД: 173420699451087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T123149&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49627&fm=173420699451087&tin=02508201610067®Number=0000000000092546&sum=9000 0 [12:31:47]StoreToDocumentArchive [12:31:47]shift 465 fd 49627 [12:31:47]save to /storage/0465/doc_00049627 [12:31:47]save last doc name /storage/0465/doc_00049627 to /storage/kkm_last_doc_name [12:31:47]save OK [12:31:47]Clear old archive folders... [12:31:47]ProcessDocumentItem done err = 0, tmpTLVsize=293 [12:31:47]tlvbuf is 018D9830 [12:31:47]SAM_PROTO_ClearQueue [12:31:47]wFMCommunicate request_size=4 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 09 00 00 [12:31:47]Write to MH i2c: E2 08 00 2F 1C 80 09 00 00 00 00 00 00 BD [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 2F 1C 00 90 00 BF [12:31:47]RAPDU: 90 00 [12:31:47]wFMCommunicate OK [12:31:47]SAM_PROTO_ClearQueue done [12:31:47]KKMCreateOFDPacket [12:31:47]OFDProtocolAddRootSTLVToBuf [12:31:47]FM_MakeSignedData [12:31:47]FM_MakeSignedData [12:31:47]SAM_PROTO_SignData [12:31:47]wFMCommunicate request_size=4 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 0D 01 02 [12:31:47]Write to MH i2c: E2 08 00 30 1C 80 0D 01 02 00 00 00 00 C5 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 30 1C 00 90 00 C0 [12:31:47]RAPDU: 90 00 [12:31:47]wFMCommunicate OK [12:31:47]wFMCommunicate request_size=255 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 35 98 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [12:31:47]Write to MH i2c: E2 02 01 31 1C 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 35 98 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 A2 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 31 1C 00 90 00 C1 [12:31:47]RAPDU: 90 00 [12:31:47]wFMCommunicate OK [12:31:47]wFMCommunicate request_size=52 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C1 00 00 35 04 06 00 9D B9 A7 2F FE CF [12:31:47]Write to MH i2c: E2 37 00 32 1C 80 0D 02 02 2F 00 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C1 00 00 35 04 06 00 9D B9 A7 2F FE CF 00 00 19 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 03 00 32 1C 00 90 00 C2 [12:31:47]RAPDU: 90 00 [12:31:47]wFMCommunicate OK [12:31:47]wFMCommunicate request_size=4 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 0D 03 02 [12:31:47]Write to MH i2c: E2 08 00 33 1C 80 0D 03 02 00 00 00 00 CA [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 0B 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 0B 00 33 1C 00 3E 76 74 BB 98 C0 2C B1 90 00 E3 [12:31:47]RAPDU: 3E 76 74 BB 98 C0 2C B1 90 00 [12:31:47]wFMCommunicate OK [12:31:47]SAM_PROTO_SignData done [12:31:47]FM_MakeSignedData done [12:31:47]CreateOFDProtocolMessage [12:31:47]wFMCommunicate request_size=4 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 11 00 00 [12:31:47]Write to MH i2c: E2 08 00 34 1C 80 11 00 00 00 00 00 00 CA [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 17 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 17 00 34 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 15 [12:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:31:47]wFMCommunicate OK [12:31:47]CreateOFDProtocolMessage done [12:31:47]OFDSenderStorePacket 49627 [12:31:47]StoreOFDPacket docnum=49627 [12:31:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 50 0A 31 01 47 6E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 35 98 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C1 00 00 35 04 06 00 9D B9 A7 2F FE CF 3E 76 74 BB 98 C0 2C B1 [12:31:47]CheckFolder [12:31:47]dirname=/storage/ofd_packets [12:31:47]CheckFolder done [12:31:47]ProducePacketName [12:31:47]name=ofd_packets/00049627 [12:31:47]NVStorageSaveData ofd_packets/00049627 [12:31:47]File name is /storage/ofd_packets/00049627 [12:31:47]Write 343 bytes [12:31:47]NVStorageSaveData done [12:31:47]OFDSenderStorePacket done [12:31:47]KKMCreateOFDPacket done [12:31:47]NVStorageSaveData kkm_last_timestamp [12:31:47]File name is /storage/kkm_last_timestamp [12:31:47]Write 4 bytes [12:31:47]NVStorageSaveData done [12:31:47]ExternCall_PrintAddStr [12:31:47]wPrintStart [12:31:47]Write to MH i2c: 01 00 00 35 1C 51 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: 01 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: 01 07 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: 01 07 00 35 1C 00 00 00 00 00 FF 0F 66 [12:31:47]RasterBufferAndPrint [12:31:47]line Счет N : (3)189814 [12:31:47]line ИНН: 02508201610067 [12:31:47]line Контрольно-Кассовый Чек [12:31:47]line ПРОДАЖА [12:31:47]line Товар: 4870022003305 [12:31:47]line Напиток Gorilla эн нат ж/б 0,5/0,45л [12:31:47]line 1.000 * 90.00 [12:31:47]line = 90.00 [12:31:47]line НДС 12% НСП 1% [12:31:47]line > о реализуемом товаре [12:31:47]line ИТОГО: 90.00 [12:31:47]line НСП 1% : 0.80 [12:31:47]line НДС 12% : 9.56 [12:31:47]line Наличными: 0.00 [12:31:47]line Безнал.: 90.00 [12:31:47]line Место: АЗС № 95 "Партнер Нефть" [12:31:47]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:31:47]line СНО: Общий режим [12:31:47]line Чек 64 17.08.2024 12:31 [12:31:47]line Смена: 465 ФФД: 1.0 [12:31:47]line ЗНМ: 0300000078 [12:31:47]line РНМ: 0000000000092546 [12:31:47]line Версия ККМ: 001 [12:31:47]line Платежная система: O! деньги [12:31:47]line ФМ: 0000000000871800 [12:31:47]line ФД: 49627 [12:31:47]line ФПД: 173420699451087 [12:31:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T123149&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49627&fm=173420699451087&tin=02508201610067®Number=0000000000092546&sum=9000 [12:31:48]OFD Sender: Processing packet 49627 [packets to send 21, broken 20] [12:31:48]ProducePacketName [12:31:48]name=ofd_packets/00049627 [12:31:48]OFD Sender: To server: pG, [12:31:48]CommunicateWithHost lk.salyk.kg:30040 [12:31:48]ConnectInit lk.salyk.kg [12:31:48]line 0 [12:31:48]written 0, free lines is 4095 [12:31:48]Connected sock=9 [12:31:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 50 0A 31 01 47 6E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 35 98 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C1 00 00 35 04 06 00 9D B9 A7 2F FE CF 3E 76 74 BB 98 C0 2C B1 [12:31:48]Write to MH i2c: 01 00 00 60 1C 7C [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: 01 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: 01 07 00 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: 01 07 00 60 1C 00 00 00 00 00 D4 0C 63 [12:31:48]RasterBufferAndPrint [12:31:48]line [12:31:48]line [12:31:48]line [12:31:48]line [12:31:48]line [12:31:48]written 0, free lines is 3290 [12:31:48]MH_Cut [12:31:48]Write to MH i2c: D1 01 00 67 1C 01 55 [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: D1 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: D1 01 00 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: D1 01 00 67 1C 00 54 [12:31:48]Write to MH i2c: 01 00 00 68 1C 84 [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 32 6B 47 00 17 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 31 38 30 30 10 04 04 00 DB C1 00 00 F4 03 04 00 71 43 C0 66 B6 04 01 00 00 4F C6 D8 C2 37 E8 9D CA [12:31:48]CommunicateWithHost err = 0 [12:31:48]CheckOFDResponse [12:31:48]1017 (14) - 77093643461234 [12:31:48]1041 (16) - 0000000000871800 [12:31:48]1040 (4) - 49627 [12:31:48]1012 (4) - 17.08.2024 06:30 [12:31:48]1206 (1) - 0 [12:31:48]OFD Sender: Remove packet 49627 [12:31:48]ProducePacketName [12:31:48]name=ofd_packets/00049627 [12:31:48]NVStorageDeleteData [12:31:49]OFD Sender: No OFD packet to send [12:31:49]*** Cut start [12:31:49]*** Purtial cut [12:31:49]*** Stage 1: CUTSNS_PIN = 1 [12:31:49]Read from MH i2c: 01 [12:31:49]MH_I2C_Read... [12:31:49]*** Stop cut motor [12:31:49]*** Cut end [12:31:49]Read from MH i2c: 01 07 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: 01 07 00 68 1C 00 00 00 00 00 FF 0F 99 [12:31:49]process_action close_receipt done [12:31:49]requested_data is exist [12:31:49]produce_requested_data [12:31:49]requested_item fm.sn is exist - process it [12:31:49]wFMCommunicate request_size=4 [12:31:49]MH_SAM_APDU [12:31:49]CAPDU: 80 11 00 00 [12:31:49]Write to MH i2c: E2 08 00 69 1C 80 11 00 00 00 00 00 00 FF [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:49]Read from MH i2c: E2 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 17 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 17 00 69 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4A [12:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:31:49]wFMCommunicate OK [12:31:49]requested_item fd.num is exist - process it [12:31:49]SAM_PROTO_GetFieldsCounters [12:31:49]wFMCommunicate request_size=4 [12:31:49]MH_SAM_APDU [12:31:49]CAPDU: 80 13 00 00 [12:31:49]Write to MH i2c: E2 08 00 6A 1C 80 13 00 00 00 00 00 00 02 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:49]Read from MH i2c: E2 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 62 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 62 00 6A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DB C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [12:31: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DB C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:49]wFMCommunicate OK [12:31:49]SAM_PROTO_GetFieldsCounters done [12:31:49]requested_item shift.num is exist - process it [12:31:49]requested_item shift.opened is exist - process it [12:31:49]req_shift_opened [12:31:49]FM_GetShiftState [12:31:49]SAM_PROTO_GetShiftState [12:31:49]wFMCommunicate request_size=4 [12:31:49]MH_SAM_APDU [12:31:49]CAPDU: 80 13 01 00 [12:31:49]Write to MH i2c: E2 08 00 6B 1C 80 13 01 00 00 00 00 00 04 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:49]Read from MH i2c: E2 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 0E 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 0E 00 6B 1C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 49 [12:31:49]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:31:49]wFMCommunicate OK [12:31:49]SAM_PROTO_GetShiftState done [12:31:49]FM_GetShiftState done [12:31:49]req_shift_opened done [12:31:49]requested_item shift.open_date is exist - process it [12:31:49]req_shift_open_date [12:31:49]req_shift_open_date done [12:31:49]produce_requested_data done [12:31:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49627,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:31:49]process_action_free close_receipt [12:31:49]json_value_free [12:31:49]json_value_free done [12:31:49]process_json_proto returns [12:31:49]Send response to host [12:31:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49627,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:31:49]free response buf [12:31:49]execute_script done [12:31:49]execute_script returns [12:31:49]free content buf [12:31:49]Sock 10.Close socket [12:31:49]Sock 10.Thread stoped [12:31:54]OFD Sender: No OFD packet to send [12:31:55]int [12:31:55]Write to MH i2c: 01 00 00 6C 1C 88 [12:31:55]*** FLAG_PRN_KEY set [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: 01 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: 01 07 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: 01 07 00 6C 1C 00 08 00 00 00 FF 0F A5 [12:31:55]state=0 [12:31:55]Key pressed [12:31:55]Feed [12:31:55]Write to MH i2c: D8 00 00 6D 1C 60 [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: D8 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: D8 01 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: D8 01 00 6D 1C 00 61 [12:31:55]int [12:31:55]Write to MH i2c: 01 00 00 6E 1C 8A [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: 01 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: 01 07 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: 01 07 00 6E 1C 00 48 00 00 00 3C 00 15 [12:31:55]state=2 [12:31:55]Key pressed [12:31:56]int [12:31:56]Write to MH i2c: 01 00 00 6F 1C 8B [12:31:56]*** FLAG_PRN_KEY reset [12:31:56]Write i2c OK [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: 01 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: 01 07 00 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: 01 07 00 6F 1C 00 00 00 00 00 F8 0F 99 [12:31:56]state=2 [12:31:56]Stop feed [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:27]accept exits with 7 [12:34:27]New connection [12:34:27]New thread 3066944868 created [12:34:27]Thread 3066801508 joined [12:34:27]Waiting for new connection... [12:34:27] Sock 7.Parse request [12:34:27]Sock 7.Check first char [12:34:27]Sock 7.First char is OK [12:34:27]request: POST /json_proto HTTP/1.0 [12:34:27]Method: POST [12:34:27]URL: /json_proto [12:34:27]Method is POST - this is cgi request [12:34:27]url: /json_proto [12:34:27]query_string will be loaded in cgi processing [12:34:27]execute_cgi json_proto POST (null) [12:34:27]execute_cgi path=json_proto method=POST [12:34:27]POST find Content-Length [12:34:27]Host: 172.17.46.196:8080 [12:34:27]Content-Length: 688 [12:34:27]Content-Type: application/json [12:34:27] [12:34:27]POST finish read [12:34:27]Found Content-Length = 688 [12:34:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189815", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:27]execute_script... [12:34:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189815", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:27]POST & json_proto [12:34:27]process_json_proto [12:34:27]json parsed OK: [12:34:27]protocol is kg_v1.0 [12:34:27]action value=close_receipt [12:34:27]process_action close_receipt [12:34:27]cmd_close_receipt [12:34:27]MH_GetDate [12:34:27]Write to MH i2c: F0 00 00 70 1C 7B [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: F0 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: F0 09 00 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: F0 09 00 70 1C 00 D7 98 C0 66 07 E8 5D 66 CB [12:34:27]GetLastDocTimeStamp 1723897909 [12:34:27]current date 1723898071 [12:34:27]FM_GetShiftState [12:34:27]SAM_PROTO_GetShiftState [12:34:27]wFMCommunicate request_size=4 [12:34:27]MH_SAM_APDU [12:34:27]CAPDU: 80 13 01 00 [12:34:27]Write to MH i2c: E2 08 00 71 1C 80 13 01 00 00 00 00 00 0A [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:28]Read from MH i2c: E2 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 0E 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 0E 00 71 1C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 4F [12:34:28]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:34:28]wFMCommunicate OK [12:34:28]SAM_PROTO_GetShiftState done [12:34:28]FM_GetShiftState done [12:34:28]opened in 1723853354 [12:34:28]opened+sec_in_day 1723939754 [12:34:28]quantity*price = 9500 [12:34:28]sum+1 = 9501 [12:34:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 65 17.08.2024 12:34 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49628 ФПД: 167101693618640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T123431&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49628&fm=167101693618640&tin=02508201610067®Number=0000000000092546&sum=9500 0 [12:34:29]StoreToDocumentArchive [12:34:29]shift 465 fd 49628 [12:34:29]save to /storage/0465/doc_00049628 [12:34:29]save last doc name /storage/0465/doc_00049628 to /storage/kkm_last_doc_name [12:34:29]save OK [12:34:29]Clear old archive folders... [12:34:29]ProcessDocumentItem done err = 0, tmpTLVsize=299 [12:34:29]tlvbuf is 0180F230 [12:34:29]SAM_PROTO_ClearQueue [12:34:29]wFMCommunicate request_size=4 [12:34:29]MH_SAM_APDU [12:34:29]CAPDU: 80 09 00 00 [12:34:29]Write to MH i2c: E2 08 00 7E 1C 80 09 00 00 00 00 00 00 0C [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:29]Read from MH i2c: E2 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 03 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 03 00 7E 1C 00 90 00 0E [12:34:29]RAPDU: 90 00 [12:34:29]wFMCommunicate OK [12:34:29]SAM_PROTO_ClearQueue done [12:34:29]KKMCreateOFDPacket [12:34:29]OFDProtocolAddRootSTLVToBuf [12:34:29]FM_MakeSignedData [12:34:29]FM_MakeSignedData [12:34:29]SAM_PROTO_SignData [12:34:29]wFMCommunicate request_size=4 [12:34:29]MH_SAM_APDU [12:34:29]CAPDU: 80 0D 01 02 [12:34:29]Write to MH i2c: E2 08 00 7F 1C 80 0D 01 02 00 00 00 00 14 [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:29]Read from MH i2c: E2 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 03 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 03 00 7F 1C 00 90 00 0F [12:34:29]RAPDU: 90 00 [12:34:29]wFMCommunicate OK [12:34:29]wFMCommunicate request_size=255 [12:34:29]MH_SAM_APDU [12:34:29]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 D7 98 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [12:34:29]Write to MH i2c: E2 02 01 80 1C 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 D7 98 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 63 [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]OFD Sender: No OFD packet to send [12:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:29]Read from MH i2c: E2 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 03 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 03 00 80 1C 00 90 00 10 [12:34:29]RAPDU: 90 00 [12:34:29]wFMCommunicate OK [12:34:29]wFMCommunicate request_size=58 [12:34:29]MH_SAM_APDU [12:34:29]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C1 00 00 35 04 06 00 97 FA 65 16 E9 D0 [12:34:29]Write to MH i2c: E2 3D 00 81 1C 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C1 00 00 35 04 06 00 97 FA 65 16 E9 D0 00 00 61 [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:29]Read from MH i2c: E2 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 03 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 03 00 81 1C 00 90 00 11 [12:34:29]RAPDU: 90 00 [12:34:29]wFMCommunicate OK [12:34:29]wFMCommunicate request_size=4 [12:34:29]MH_SAM_APDU [12:34:29]CAPDU: 80 0D 03 02 [12:34:29]Write to MH i2c: E2 08 00 82 1C 80 0D 03 02 00 00 00 00 19 [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:29]Read from MH i2c: E2 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 0B 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 0B 00 82 1C 00 FC AA 24 35 71 25 96 E5 90 00 2A [12:34:29]RAPDU: FC AA 24 35 71 25 96 E5 90 00 [12:34:29]wFMCommunicate OK [12:34:29]SAM_PROTO_SignData done [12:34:29]FM_MakeSignedData done [12:34:29]CreateOFDProtocolMessage [12:34:29]wFMCommunicate request_size=4 [12:34:29]MH_SAM_APDU [12:34:29]CAPDU: 80 11 00 00 [12:34:29]Write to MH i2c: E2 08 00 83 1C 80 11 00 00 00 00 00 00 19 [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:29]Read from MH i2c: E2 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 17 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 17 00 83 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 64 [12:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:34:29]wFMCommunicate OK [12:34:29]CreateOFDProtocolMessage done [12:34:29]OFDSenderStorePacket 49628 [12:34:29]StoreOFDPacket docnum=49628 [12:34:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3F 01 00 00 0E 49 37 01 E4 0C 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 D7 98 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C1 00 00 35 04 06 00 97 FA 65 16 E9 D0 FC AA 24 35 71 25 96 E5 [12:34:29]CheckFolder [12:34:29]dirname=/storage/ofd_packets [12:34:29]CheckFolder done [12:34:29]ProducePacketName [12:34:29]name=ofd_packets/00049628 [12:34:29]NVStorageSaveData ofd_packets/00049628 [12:34:29]File name is /storage/ofd_packets/00049628 [12:34:29]Write 349 bytes [12:34:29]NVStorageSaveData done [12:34:29]OFDSenderStorePacket done [12:34:29]KKMCreateOFDPacket done [12:34:29]NVStorageSaveData kkm_last_timestamp [12:34:29]File name is /storage/kkm_last_timestamp [12:34:29]Write 4 bytes [12:34:29]NVStorageSaveData done [12:34:29]ExternCall_PrintAddStr [12:34:29]wPrintStart [12:34:29]Write to MH i2c: 01 00 00 84 1C A0 [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: 01 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: 01 07 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: 01 07 00 84 1C 00 00 00 00 00 FF 0F B5 [12:34:29]RasterBufferAndPrint [12:34:29]line Счет N : (3)189815 [12:34:29]line ИНН: 02508201610067 [12:34:29]line Контрольно-Кассовый Чек [12:34:29]line ПРОДАЖА [12:34:29]line Товар: 4700003010070 [12:34:29]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [12:34:29]line 1.000 * 95.00 [12:34:29]line = 95.00 [12:34:29]line НДС 12% НСП 1% [12:34:29]line > о реализуемом товаре [12:34:29]line ИТОГО: 95.00 [12:34:29]line НСП 1% : 0.84 [12:34:29]line НДС 12% : 10.09 [12:34:29]line Наличными: 95.00 [12:34:29]line Безнал.: 0.00 [12:34:29]line Место: АЗС № 95 "Партнер Нефть" [12:34:29]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:34:29]line СНО: Общий режим [12:34:29]line Чек 65 17.08.2024 12:34 [12:34:29]line Смена: 465 ФФД: 1.0 [12:34:29]line ЗНМ: 0300000078 [12:34:29]line РНМ: 0000000000092546 [12:34:29]line Версия ККМ: 001 [12:34:29]line ФМ: 0000000000871800 [12:34:29]line ФД: 49628 [12:34:29]line ФПД: 167101693618640 [12:34:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T123431&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49628&fm=167101693618640&tin=02508201610067®Number=0000000000092546&sum=9500 [12:34:30]line 0 [12:34:30]OFD Sender: Processing packet 49628 [packets to send 21, broken 20] [12:34:30]ProducePacketName [12:34:30]name=ofd_packets/00049628 [12:34:30]OFD Sender: To server: pG, [12:34:30]CommunicateWithHost lk.salyk.kg:30040 [12:34:30]ConnectInit lk.salyk.kg [12:34:30]written 0, free lines is 4095 [12:34:30]Connected sock=10 [12:34:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3F 01 00 00 0E 49 37 01 E4 0C 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 D7 98 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C1 00 00 35 04 06 00 97 FA 65 16 E9 D0 FC AA 24 35 71 25 96 E5 [12:34:30]Write to MH i2c: 01 00 00 AD 1C C9 [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: 01 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: 01 07 00 [12:34:30]MH_I2C_Read... [12:34:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 21 4E 47 00 10 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 31 38 30 30 10 04 04 00 DC C1 00 00 F4 03 04 00 13 44 C0 66 B6 04 01 00 00 29 70 F9 07 8B 5D 55 AF [12:34:30]CommunicateWithHost err = 0 [12:34:30]CheckOFDResponse [12:34:30]1017 (14) - 77093643461234 [12:34:30]1041 (16) - 0000000000871800 [12:34:30]1040 (4) - 49628 [12:34:30]1012 (4) - 17.08.2024 06:32 [12:34:30]1206 (1) - 0 [12:34:30]OFD Sender: Remove packet 49628 [12:34:30]ProducePacketName [12:34:30]name=ofd_packets/00049628 [12:34:30]NVStorageDeleteData [12:34:30]Read from MH i2c: 01 07 00 AD 1C 00 00 00 00 00 FB 0C D7 [12:34:30]RasterBufferAndPrint [12:34:30]line [12:34:30]line [12:34:30]line [12:34:30]line [12:34:30]line [12:34:30]written 0, free lines is 3338 [12:34:30]MH_Cut [12:34:30]Write to MH i2c: D1 01 00 B4 1C 01 A2 [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: D1 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: D1 01 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: D1 01 00 B4 1C 00 A1 [12:34:30]Write to MH i2c: 01 00 00 B5 1C D1 [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:31]OFD Sender: No OFD packet to send [12:34:31]*** Cut start [12:34:31]*** Purtial cut [12:34:31]*** CUTSNS_PIN = 0 [12:34:31]*** Stage 1: CUTSNS_PIN = 1 [12:34:33]Read from MH i2c: 01 [12:34:33]MH_I2C_Read... [12:34:33]*** Stop cut motor [12:34:33]*** Cut end [12:34:33]Read from MH i2c: 01 07 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: 01 07 00 B5 1C 00 00 00 00 00 FF 0F E6 [12:34:33]process_action close_receipt done [12:34:33]requested_data is exist [12:34:33]produce_requested_data [12:34:33]requested_item fm.sn is exist - process it [12:34:33]wFMCommunicate request_size=4 [12:34:33]MH_SAM_APDU [12:34:33]CAPDU: 80 11 00 00 [12:34:33]Write to MH i2c: E2 08 00 B6 1C 80 11 00 00 00 00 00 00 4C [12:34:33]Write i2c OK [12:34:33]MH_I2C_Read... [12:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:33]Read from MH i2c: E2 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 17 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 17 00 B6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 97 [12:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:34:33]wFMCommunicate OK [12:34:33]requested_item fd.num is exist - process it [12:34:33]SAM_PROTO_GetFieldsCounters [12:34:33]wFMCommunicate request_size=4 [12:34:33]MH_SAM_APDU [12:34:33]CAPDU: 80 13 00 00 [12:34:33]Write to MH i2c: E2 08 00 B7 1C 80 13 00 00 00 00 00 00 4F [12:34:33]Write i2c OK [12:34:33]MH_I2C_Read... [12:34:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:33]Read from MH i2c: E2 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 62 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 62 00 B7 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DC C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [12:34: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DC C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:33]wFMCommunicate OK [12:34:33]SAM_PROTO_GetFieldsCounters done [12:34:33]requested_item shift.num is exist - process it [12:34:33]requested_item shift.opened is exist - process it [12:34:33]req_shift_opened [12:34:33]FM_GetShiftState [12:34:33]SAM_PROTO_GetShiftState [12:34:33]wFMCommunicate request_size=4 [12:34:33]MH_SAM_APDU [12:34:33]CAPDU: 80 13 01 00 [12:34:33]Write to MH i2c: E2 08 00 B8 1C 80 13 01 00 00 00 00 00 51 [12:34:33]Write i2c OK [12:34:33]MH_I2C_Read... [12:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:33]Read from MH i2c: E2 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 0E 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 0E 00 B8 1C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 96 [12:34:33]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:34:33]wFMCommunicate OK [12:34:33]SAM_PROTO_GetShiftState done [12:34:33]FM_GetShiftState done [12:34:33]req_shift_opened done [12:34:33]requested_item shift.open_date is exist - process it [12:34:33]req_shift_open_date [12:34:33]req_shift_open_date done [12:34:33]produce_requested_data done [12:34:33]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49628,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:34:33]process_action_free close_receipt [12:34:33]json_value_free [12:34:33]json_value_free done [12:34:33]process_json_proto returns [12:34:33]Send response to host [12:34:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49628,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:34:33]free response buf [12:34:33]execute_script done [12:34:33]execute_script returns [12:34:33]free content buf [12:34:33]Sock 7.Close socket [12:34:33]Sock 7.Thread stoped [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:18]accept exits with 9 [12:48:18]New connection [12:48:18]New thread 3066801508 created [12:48:18]Thread 3066944868 joined [12:48:18]Waiting for new connection... [12:48:18] Sock 9.Parse request [12:48:18]Sock 9.Check first char [12:48:18]Sock 9.First char is OK [12:48:18]request: POST /json_proto HTTP/1.0 [12:48:18]Method: POST [12:48:18]URL: /json_proto [12:48:18]Method is POST - this is cgi request [12:48:18]url: /json_proto [12:48:18]query_string will be loaded in cgi processing [12:48:18]execute_cgi json_proto POST (null) [12:48:18]execute_cgi path=json_proto method=POST [12:48:18]POST find Content-Length [12:48:18]Host: 172.17.46.196:8080 [12:48:18]Content-Length: 675 [12:48:18]Content-Type: application/json [12:48:18] [12:48:18]POST finish read [12:48:18]Found Content-Length = 675 [12:48:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189816", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:18]execute_script... [12:48:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189816", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:18]POST & json_proto [12:48:18]process_json_proto [12:48:18]json parsed OK: [12:48:18]protocol is kg_v1.0 [12:48:18]action value=close_receipt [12:48:18]process_action close_receipt [12:48:18]cmd_close_receipt [12:48:18]MH_GetDate [12:48:18]Write to MH i2c: F0 00 00 B9 1C C4 [12:48:18]Write i2c OK [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: F0 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: F0 09 00 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: F0 09 00 B9 1C 00 16 9C C0 66 07 E8 5D 66 57 [12:48:18]GetLastDocTimeStamp 1723898071 [12:48:18]current date 1723898902 [12:48:18]FM_GetShiftState [12:48:18]SAM_PROTO_GetShiftState [12:48:18]wFMCommunicate request_size=4 [12:48:18]MH_SAM_APDU [12:48:18]CAPDU: 80 13 01 00 [12:48:18]Write to MH i2c: E2 08 00 BA 1C 80 13 01 00 00 00 00 00 53 [12:48:18]Write i2c OK [12:48:18]MH_I2C_Read... [12:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:18]Read from MH i2c: E2 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 0E 00 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 0E 00 BA 1C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 98 [12:48:18]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:48:18]wFMCommunicate OK [12:48:18]SAM_PROTO_GetShiftState done [12:48:18]FM_GetShiftState done [12:48:18]opened in 1723853354 [12:48:18]opened+sec_in_day 1723939754 [12:48:18]quantity*price = 9000 [12:48:18]sum+1 = 9001 [12:48:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 66 17.08.2024 12:48 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49629 ФПД: 153671794316387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T124822&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49629&fm=153671794316387&tin=02508201610067®Number=0000000000092546&sum=9000 0 [12:48:20]StoreToDocumentArchive [12:48:20]shift 465 fd 49629 [12:48:20]save to /storage/0465/doc_00049629 [12:48:20]save last doc name /storage/0465/doc_00049629 to /storage/kkm_last_doc_name [12:48:20]save OK [12:48:20]Clear old archive folders... [12:48:20]ProcessDocumentItem done err = 0, tmpTLVsize=294 [12:48:20]tlvbuf is 018C6A40 [12:48:20]SAM_PROTO_ClearQueue [12:48:20]wFMCommunicate request_size=4 [12:48:20]MH_SAM_APDU [12:48:20]CAPDU: 80 09 00 00 [12:48:20]Write to MH i2c: E2 08 00 C7 1C 80 09 00 00 00 00 00 00 55 [12:48:20]Write i2c OK [12:48:20]MH_I2C_Read... [12:48:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:20]Read from MH i2c: E2 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 03 00 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 03 00 C7 1C 00 90 00 57 [12:48:20]RAPDU: 90 00 [12:48:20]wFMCommunicate OK [12:48:20]SAM_PROTO_ClearQueue done [12:48:20]KKMCreateOFDPacket [12:48:20]OFDProtocolAddRootSTLVToBuf [12:48:20]FM_MakeSignedData [12:48:20]FM_MakeSignedData [12:48:20]SAM_PROTO_SignData [12:48:20]wFMCommunicate request_size=4 [12:48:20]MH_SAM_APDU [12:48:20]CAPDU: 80 0D 01 02 [12:48:20]Write to MH i2c: E2 08 00 C8 1C 80 0D 01 02 00 00 00 00 5D [12:48:20]Write i2c OK [12:48:20]MH_I2C_Read... [12:48:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:20]Read from MH i2c: E2 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 03 00 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 03 00 C8 1C 00 90 00 58 [12:48:20]RAPDU: 90 00 [12:48:20]wFMCommunicate OK [12:48:20]wFMCommunicate request_size=255 [12:48:20]MH_SAM_APDU [12:48:20]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 16 9C C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [12:48:20]Write to MH i2c: E2 02 01 C9 1C 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 16 9C C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 E7 [12:48:20]Write i2c OK [12:48:20]MH_I2C_Read... [12:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:20]Read from MH i2c: E2 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 03 00 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 03 00 C9 1C 00 90 00 59 [12:48:20]RAPDU: 90 00 [12:48:20]wFMCommunicate OK [12:48:20]wFMCommunicate request_size=53 [12:48:20]MH_SAM_APDU [12:48:20]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C1 00 00 35 04 06 00 8B C3 80 B6 54 63 [12:48:20]Write to MH i2c: E2 38 00 CA 1C 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C1 00 00 35 04 06 00 8B C3 80 B6 54 63 00 00 27 [12:48:20]Write i2c OK [12:48:20]MH_I2C_Read... [12:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:20]Read from MH i2c: E2 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 03 00 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 03 00 CA 1C 00 90 00 5A [12:48:20]RAPDU: 90 00 [12:48:20]wFMCommunicate OK [12:48:20]wFMCommunicate request_size=4 [12:48:20]MH_SAM_APDU [12:48:20]CAPDU: 80 0D 03 02 [12:48:20]Write to MH i2c: E2 08 00 CB 1C 80 0D 03 02 00 00 00 00 62 [12:48:20]Write i2c OK [12:48:20]MH_I2C_Read... [12:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:20]Read from MH i2c: E2 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 0B 00 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 0B 00 CB 1C 00 CD 28 BE BE 4F FB E8 5F 90 00 65 [12:48:20]RAPDU: CD 28 BE BE 4F FB E8 5F 90 00 [12:48:20]wFMCommunicate OK [12:48:20]SAM_PROTO_SignData done [12:48:20]FM_MakeSignedData done [12:48:20]CreateOFDProtocolMessage [12:48:20]wFMCommunicate request_size=4 [12:48:20]MH_SAM_APDU [12:48:20]CAPDU: 80 11 00 00 [12:48:20]Write to MH i2c: E2 08 00 CC 1C 80 11 00 00 00 00 00 00 62 [12:48:20]Write i2c OK [12:48:20]MH_I2C_Read... [12:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:20]Read from MH i2c: E2 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 17 00 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 17 00 CC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AD [12:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:48:20]wFMCommunicate OK [12:48:20]CreateOFDProtocolMessage done [12:48:20]OFDSenderStorePacket 49629 [12:48:20]StoreOFDPacket docnum=49629 [12:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 4A D6 32 01 64 50 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 16 9C C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C1 00 00 35 04 06 00 8B C3 80 B6 54 63 CD 28 BE BE 4F FB E8 5F [12:48:20]CheckFolder [12:48:20]dirname=/storage/ofd_packets [12:48:20]CheckFolder done [12:48:20]ProducePacketName [12:48:20]name=ofd_packets/00049629 [12:48:20]NVStorageSaveData ofd_packets/00049629 [12:48:20]File name is /storage/ofd_packets/00049629 [12:48:20]Write 344 bytes [12:48:20]NVStorageSaveData done [12:48:20]OFDSenderStorePacket done [12:48:20]KKMCreateOFDPacket done [12:48:20]NVStorageSaveData kkm_last_timestamp [12:48:20]File name is /storage/kkm_last_timestamp [12:48:20]Write 4 bytes [12:48:20]NVStorageSaveData done [12:48:20]ExternCall_PrintAddStr [12:48:20]wPrintStart [12:48:20]Write to MH i2c: 01 00 00 CD 1C E9 [12:48:20]Write i2c OK [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: 01 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: 01 07 00 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: 01 07 00 CD 1C 00 00 00 00 00 FF 0F FE [12:48:20]RasterBufferAndPrint [12:48:20]line Счет N : (3)189816 [12:48:20]line ИНН: 02508201610067 [12:48:20]line Контрольно-Кассовый Чек [12:48:20]line ПРОДАЖА [12:48:20]line Товар: 4650243871828 [12:48:20]line Gorilla эн нап манго-кокос 0,45 ж/б [12:48:20]line 1.000 * 90.00 [12:48:20]line = 90.00 [12:48:20]line НДС 12% НСП 1% [12:48:20]line > о реализуемом товаре [12:48:20]line ИТОГО: 90.00 [12:48:20]line НСП 1% : 0.80 [12:48:20]line НДС 12% : 9.56 [12:48:20]line Наличными: 90.00 [12:48:20]line Безнал.: 0.00 [12:48:20]line Место: АЗС № 95 "Партнер Нефть" [12:48:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:48:20]line СНО: Общий режим [12:48:20]line Чек 66 17.08.2024 12:48 [12:48:20]line Смена: 465 ФФД: 1.0 [12:48:20]line ЗНМ: 0300000078 [12:48:20]line РНМ: 0000000000092546 [12:48:20]line Версия ККМ: 001 [12:48:20]line ФМ: 0000000000871800 [12:48:20]line ФД: 49629 [12:48:20]line ФПД: 153671794316387 [12:48:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T124822&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49629&fm=153671794316387&tin=02508201610067®Number=0000000000092546&sum=9000 [12:48:21]line 0 [12:48:21]OFD Sender: Processing packet 49629 [packets to send 21, broken 20] [12:48:21]ProducePacketName [12:48:21]name=ofd_packets/00049629 [12:48:21]OFD Sender: To server: pG, [12:48:21]CommunicateWithHost lk.salyk.kg:30040 [12:48:21]ConnectInit lk.salyk.kg [12:48:21]written 0, free lines is 4095 [12:48:21]Connected sock=10 [12:48:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 4A D6 32 01 64 50 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 16 9C C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C1 00 00 35 04 06 00 8B C3 80 B6 54 63 CD 28 BE BE 4F FB E8 5F [12:48:21]Write to MH i2c: 01 00 00 F6 1C 12 [12:48:21]Write i2c OK [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: 01 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: 01 07 00 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: 01 07 00 F6 1C 00 00 00 00 00 EE 0C 13 [12:48:21]RasterBufferAndPrint [12:48:21]line [12:48:21]line [12:48:21]line [12:48:21]line [12:48:21]line [12:48:21]written 0, free lines is 3316 [12:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FC 63 47 00 28 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C1 00 00 F4 03 04 00 52 47 C0 66 B6 04 01 00 00 B7 73 DF 6C 29 3B 77 F0 [12:48:21]CommunicateWithHost err = 0 [12:48:21]CheckOFDResponse [12:48:21]1017 (14) - 77093643461234 [12:48:21]1041 (16) - 0000000000871800 [12:48:21]1040 (4) - 49629 [12:48:21]1012 (4) - 17.08.2024 06:46 [12:48:21]1206 (1) - 0 [12:48:21]OFD Sender: Remove packet 49629 [12:48:21]ProducePacketName [12:48:21]name=ofd_packets/00049629 [12:48:21]NVStorageDeleteData [12:48:21]MH_Cut [12:48:21]Write to MH i2c: D1 01 00 FD 1C 01 EB [12:48:21]Write i2c OK [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: D1 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: D1 01 00 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: D1 01 00 FD 1C 00 EA [12:48:21]Write to MH i2c: 01 00 00 FE 1C 1A [12:48:21]Write i2c OK [12:48:21]MH_I2C_Read... [12:48:21]OFD Sender: No OFD packet to send [12:48:22]*** Cut start [12:48:22]*** Purtial cut [12:48:22]*** Stage 1: CUTSNS_PIN = 1 [12:48:22]Read from MH i2c: 01 [12:48:22]MH_I2C_Read... [12:48:22]*** Stop cut motor [12:48:22]*** Cut end [12:48:22]Read from MH i2c: 01 07 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: 01 07 00 FE 1C 00 00 00 00 00 FF 0F 2F [12:48:22]process_action close_receipt done [12:48:22]requested_data is exist [12:48:22]produce_requested_data [12:48:22]requested_item fm.sn is exist - process it [12:48:22]wFMCommunicate request_size=4 [12:48:22]MH_SAM_APDU [12:48:22]CAPDU: 80 11 00 00 [12:48:22]Write to MH i2c: E2 08 00 FF 1C 80 11 00 00 00 00 00 00 95 [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:22]Read from MH i2c: E2 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 17 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 17 00 FF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E0 [12:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:48:22]wFMCommunicate OK [12:48:22]requested_item fd.num is exist - process it [12:48:22]SAM_PROTO_GetFieldsCounters [12:48:22]wFMCommunicate request_size=4 [12:48:22]MH_SAM_APDU [12:48:22]CAPDU: 80 13 00 00 [12:48:22]Write to MH i2c: E2 08 00 00 1D 80 13 00 00 00 00 00 00 99 [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:22]Read from MH i2c: E2 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 62 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 62 00 00 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DD C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [12:48: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DD C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:22]wFMCommunicate OK [12:48:22]SAM_PROTO_GetFieldsCounters done [12:48:22]requested_item shift.num is exist - process it [12:48:22]requested_item shift.opened is exist - process it [12:48:22]req_shift_opened [12:48:22]FM_GetShiftState [12:48:22]SAM_PROTO_GetShiftState [12:48:22]wFMCommunicate request_size=4 [12:48:22]MH_SAM_APDU [12:48:22]CAPDU: 80 13 01 00 [12:48:22]Write to MH i2c: E2 08 00 01 1D 80 13 01 00 00 00 00 00 9B [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:22]Read from MH i2c: E2 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 0E 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 0E 00 01 1D 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 E0 [12:48:22]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [12:48:22]wFMCommunicate OK [12:48:22]SAM_PROTO_GetShiftState done [12:48:22]FM_GetShiftState done [12:48:22]req_shift_opened done [12:48:22]requested_item shift.open_date is exist - process it [12:48:22]req_shift_open_date [12:48:22]req_shift_open_date done [12:48:22]produce_requested_data done [12:48:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49629,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [12:48:22]process_action_free close_receipt [12:48:22]json_value_free [12:48:22]json_value_free done [12:48:22]process_json_proto returns [12:48:22]Send response to host [12:48:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49629,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [12:48:22]free response buf [12:48:22]execute_script done [12:48:22]execute_script returns [12:48:22]free content buf [12:48:22]Sock 9.Close socket [12:48:22]Sock 9.Thread stoped [12:48:26]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:48]accept exits with 7 [13:09:48]New connection [13:09:48]New thread 3066944868 created [13:09:48]Thread 3066801508 joined [13:09:48]Waiting for new connection... [13:09:48] Sock 7.Parse request [13:09:48]Sock 7.Check first char [13:09:48]Sock 7.First char is OK [13:09:48]request: POST /json_proto HTTP/1.0 [13:09:48]Method: POST [13:09:48]URL: /json_proto [13:09:48]Method is POST - this is cgi request [13:09:48]url: /json_proto [13:09:48]query_string will be loaded in cgi processing [13:09:48]execute_cgi json_proto POST (null) [13:09:48]execute_cgi path=json_proto method=POST [13:09:48]POST find Content-Length [13:09:48]Host: 172.17.46.196:8080 [13:09:48]Content-Length: 655 [13:09:48]Content-Type: application/json [13:09:48] [13:09:48]POST finish read [13:09:48]Found Content-Length = 655 [13:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189817", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:48]execute_script... [13:09:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189817", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:48]POST & json_proto [13:09:48]process_json_proto [13:09:48]json parsed OK: [13:09:48]protocol is kg_v1.0 [13:09:48]action value=close_receipt [13:09:48]process_action close_receipt [13:09:48]cmd_close_receipt [13:09:48]MH_GetDate [13:09:48]Write to MH i2c: F0 00 00 02 1D 0E [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: F0 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: F0 09 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: F0 09 00 02 1D 00 20 A1 C0 66 07 E8 5D 66 B0 [13:09:48]GetLastDocTimeStamp 1723898902 [13:09:48]current date 1723900192 [13:09:48]FM_GetShiftState [13:09:48]SAM_PROTO_GetShiftState [13:09:48]wFMCommunicate request_size=4 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 13 01 00 [13:09:48]Write to MH i2c: E2 08 00 03 1D 80 13 01 00 00 00 00 00 9D [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 0E 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 0E 00 03 1D 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 E2 [13:09:48]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [13:09:48]wFMCommunicate OK [13:09:48]SAM_PROTO_GetShiftState done [13:09:48]FM_GetShiftState done [13:09:48]opened in 1723853354 [13:09:48]opened+sec_in_day 1723939754 [13:09:48]quantity*price = 8500 [13:09:48]sum+1 = 8501 [13:09:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 67 17.08.2024 13:09 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49630 ФПД: 41393256691239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T130952&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49630&fm=41393256691239&tin=02508201610067®Number=0000000000092546&sum=8500 0 [13:09:50]StoreToDocumentArchive [13:09:50]shift 465 fd 49630 [13:09:50]save to /storage/0465/doc_00049630 [13:09:50]save last doc name /storage/0465/doc_00049630 to /storage/kkm_last_doc_name [13:09:50]save OK [13:09:50]Clear old archive folders... [13:09:50]ProcessDocumentItem done err = 0, tmpTLVsize=294 [13:09:50]tlvbuf is B6ED8C50 [13:09:50]SAM_PROTO_ClearQueue [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 09 00 00 [13:09:50]Write to MH i2c: E2 08 00 10 1D 80 09 00 00 00 00 00 00 9F [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 10 1D 00 90 00 A1 [13:09:50]RAPDU: 90 00 [13:09:50]wFMCommunicate OK [13:09:50]SAM_PROTO_ClearQueue done [13:09:50]KKMCreateOFDPacket [13:09:50]OFDProtocolAddRootSTLVToBuf [13:09:50]FM_MakeSignedData [13:09:50]FM_MakeSignedData [13:09:50]SAM_PROTO_SignData [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 0D 01 02 [13:09:50]Write to MH i2c: E2 08 00 11 1D 80 0D 01 02 00 00 00 00 A7 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 11 1D 00 90 00 A2 [13:09:50]RAPDU: 90 00 [13:09:50]wFMCommunicate OK [13:09:50]wFMCommunicate request_size=255 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 20 A1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [13:09:50]Write to MH i2c: E2 02 01 12 1D 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 20 A1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 87 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 12 1D 00 90 00 A3 [13:09:50]RAPDU: 90 00 [13:09:50]wFMCommunicate OK [13:09:50]wFMCommunicate request_size=53 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C1 00 00 35 04 06 00 25 A5 9E 5C 76 27 [13:09:50]Write to MH i2c: E2 38 00 13 1D 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C1 00 00 35 04 06 00 25 A5 9E 5C 76 27 00 00 98 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 13 1D 00 90 00 A4 [13:09:50]RAPDU: 90 00 [13:09:50]wFMCommunicate OK [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 0D 03 02 [13:09:50]Write to MH i2c: E2 08 00 14 1D 80 0D 03 02 00 00 00 00 AC [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 0B 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 0B 00 14 1D 00 81 98 D7 83 34 DF D7 9B 90 00 A5 [13:09:50]RAPDU: 81 98 D7 83 34 DF D7 9B 90 00 [13:09:50]wFMCommunicate OK [13:09:50]SAM_PROTO_SignData done [13:09:50]FM_MakeSignedData done [13:09:50]CreateOFDProtocolMessage [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 11 00 00 [13:09:50]Write to MH i2c: E2 08 00 15 1D 80 11 00 00 00 00 00 00 AC [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 17 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 17 00 15 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F7 [13:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:09:50]wFMCommunicate OK [13:09:50]CreateOFDProtocolMessage done [13:09:50]OFDSenderStorePacket 49630 [13:09:50]StoreOFDPacket docnum=49630 [13:09:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 45 2A 32 01 BD 12 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 20 A1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C1 00 00 35 04 06 00 25 A5 9E 5C 76 27 81 98 D7 83 34 DF D7 9B [13:09:50]CheckFolder [13:09:50]dirname=/storage/ofd_packets [13:09:50]CheckFolder done [13:09:50]ProducePacketName [13:09:50]name=ofd_packets/00049630 [13:09:50]NVStorageSaveData ofd_packets/00049630 [13:09:50]File name is /storage/ofd_packets/00049630 [13:09:50]Write 344 bytes [13:09:50]NVStorageSaveData done [13:09:50]OFDSenderStorePacket done [13:09:50]KKMCreateOFDPacket done [13:09:50]NVStorageSaveData kkm_last_timestamp [13:09:50]File name is /storage/kkm_last_timestamp [13:09:50]Write 4 bytes [13:09:50]NVStorageSaveData done [13:09:50]ExternCall_PrintAddStr [13:09:50]wPrintStart [13:09:50]Write to MH i2c: 01 00 00 16 1D 33 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 07 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 07 00 16 1D 00 00 00 00 00 FF 0F 48 [13:09:50]RasterBufferAndPrint [13:09:50]line Счет N : (3)189817 [13:09:50]line ИНН: 02508201610067 [13:09:50]line Контрольно-Кассовый Чек [13:09:50]line ПРОДАЖА [13:09:50]line Товар: 4600682557456 [13:09:50]line Напиток FLash up energy эн ж/б 0,5/0,45л [13:09:50]line 1.000 * 85.00 [13:09:50]line = 85.00 [13:09:50]line НДС 12% НСП 1% [13:09:50]line > о реализуемом товаре [13:09:50]line ИТОГО: 85.00 [13:09:50]line НСП 1% : 0.75 [13:09:50]line НДС 12% : 9.03 [13:09:50]line Наличными: 85.00 [13:09:50]line Безнал.: 0.00 [13:09:50]line Место: АЗС № 95 "Партнер Нефть" [13:09:50]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:09:50]line СНО: Общий режим [13:09:50]line Чек 67 17.08.2024 13:09 [13:09:50]line Смена: 465 ФФД: 1.0 [13:09:50]line ЗНМ: 0300000078 [13:09:50]line РНМ: 0000000000092546 [13:09:50]line Версия ККМ: 001 [13:09:50]line ФМ: 0000000000871800 [13:09:50]line ФД: 49630 [13:09:50]line ФПД: 41393256691239 [13:09:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T130952&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49630&fm=41393256691239&tin=02508201610067®Number=0000000000092546&sum=8500 [13:09:51]line 0 [13:09:51]OFD Sender: Processing packet 49630 [packets to send 21, broken 20] [13:09:51]ProducePacketName [13:09:51]name=ofd_packets/00049630 [13:09:51]OFD Sender: To server: pG, [13:09:51]CommunicateWithHost lk.salyk.kg:30040 [13:09:51]ConnectInit lk.salyk.kg [13:09:51]written 0, free lines is 4095 [13:09:51]Connected sock=11 [13:09:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 45 2A 32 01 BD 12 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 20 A1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C1 00 00 35 04 06 00 25 A5 9E 5C 76 27 81 98 D7 83 34 DF D7 9B [13:09:51]Write to MH i2c: 01 00 00 3F 1D 5C [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: 01 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: 01 07 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: 01 07 00 3F 1D 00 00 00 00 00 CD 0C 3C [13:09:51]RasterBufferAndPrint [13:09:51]line [13:09:51]line [13:09:51]line [13:09:51]line [13:09:51]line [13:09:51]written 0, free lines is 3281 [13:09:51]MH_Cut [13:09:51]Write to MH i2c: D1 01 00 46 1D 01 35 [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: D1 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: D1 01 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: D1 01 00 46 1D 00 34 [13:09:51]Write to MH i2c: 01 00 00 47 1D 64 [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 14 F3 47 00 A6 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C1 00 00 F4 03 04 00 5C 4C C0 66 B6 04 01 00 00 13 D0 0A 01 09 1B CE 1F [13:09:51]CommunicateWithHost err = 0 [13:09:51]CheckOFDResponse [13:09:51]1017 (14) - 77093643461234 [13:09:51]1041 (16) - 0000000000871800 [13:09:51]1040 (4) - 49630 [13:09:51]1012 (4) - 17.08.2024 07:08 [13:09:51]1206 (1) - 0 [13:09:51]OFD Sender: Remove packet 49630 [13:09:51]ProducePacketName [13:09:51]name=ofd_packets/00049630 [13:09:51]NVStorageDeleteData [13:09:52]OFD Sender: No OFD packet to send [13:09:52]*** Cut start [13:09:52]*** Purtial cut [13:09:52]*** CUTSNS_PIN = 0 [13:09:52]*** Stage 1: CUTSNS_PIN = 1 [13:09:54]Read from MH i2c: 01 [13:09:54]MH_I2C_Read... [13:09:54]*** Stop cut motor [13:09:54]*** Cut end [13:09:54]Read from MH i2c: 01 07 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 07 00 47 1D 00 00 00 00 00 FF 0F 79 [13:09:54]process_action close_receipt done [13:09:54]requested_data is exist [13:09:54]produce_requested_data [13:09:54]requested_item fm.sn is exist - process it [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 11 00 00 [13:09:54]Write to MH i2c: E2 08 00 48 1D 80 11 00 00 00 00 00 00 DF [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 17 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 17 00 48 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2A [13:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:09:54]wFMCommunicate OK [13:09:54]requested_item fd.num is exist - process it [13:09:54]SAM_PROTO_GetFieldsCounters [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 13 00 00 [13:09:54]Write to MH i2c: E2 08 00 49 1D 80 13 00 00 00 00 00 00 E2 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 62 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 62 00 49 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DE C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [13:09: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DE C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:54]wFMCommunicate OK [13:09:54]SAM_PROTO_GetFieldsCounters done [13:09:54]requested_item shift.num is exist - process it [13:09:54]requested_item shift.opened is exist - process it [13:09:54]req_shift_opened [13:09:54]FM_GetShiftState [13:09:54]SAM_PROTO_GetShiftState [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 13 01 00 [13:09:54]Write to MH i2c: E2 08 00 4A 1D 80 13 01 00 00 00 00 00 E4 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 0E 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 0E 00 4A 1D 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 29 [13:09:54]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [13:09:54]wFMCommunicate OK [13:09:54]SAM_PROTO_GetShiftState done [13:09:54]FM_GetShiftState done [13:09:54]req_shift_opened done [13:09:54]requested_item shift.open_date is exist - process it [13:09:54]req_shift_open_date [13:09:54]req_shift_open_date done [13:09:54]produce_requested_data done [13:09:54]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49630,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [13:09:54]process_action_free close_receipt [13:09:54]json_value_free [13:09:54]json_value_free done [13:09:54]process_json_proto returns [13:09:54]Send response to host [13:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49630,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [13:09:54]free response buf [13:09:54]execute_script done [13:09:54]execute_script returns [13:09:54]free content buf [13:09:54]Sock 7.Close socket [13:09:54]Sock 7.Thread stoped [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:15]int [13:10:15]Write to MH i2c: 01 00 00 4B 1D 68 [13:10:15]*** FLAG_PRN_KEY set [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: 01 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: 01 07 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: 01 07 00 4B 1D 00 08 00 00 00 FF 0F 85 [13:10:15]state=0 [13:10:15]Key pressed [13:10:15]Feed [13:10:15]Write to MH i2c: D8 00 00 4C 1D 40 [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: D8 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: D8 01 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: D8 01 00 4C 1D 00 41 [13:10:15]int [13:10:15]Write to MH i2c: 01 00 00 4D 1D 6A [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: 01 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: 01 07 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: 01 07 00 4D 1D 00 48 00 00 00 3C 00 F5 [13:10:15]state=2 [13:10:15]Key pressed [13:10:15]int [13:10:15]Write to MH i2c: 01 00 00 4E 1D 6B [13:10:15]*** FLAG_PRN_KEY reset [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: 01 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: 01 07 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: 01 07 00 4E 1D 00 00 00 00 00 F6 0F 77 [13:10:15]state=2 [13:10:15]Stop feed [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:53:23]ConnectInit Can't connect to host [13:53:26]OFD Sender: Processing packet 49631 [packets to send 24, broken 20] [13:53:26]ProducePacketName [13:53:26]name=ofd_packets/00049631 [13:53:26]OFD Sender: To server: pG, [13:53:26]CommunicateWithHost lk.salyk.kg:30040 [13:53:26]ConnectInit lk.salyk.kg [13:53:26]Connected sock=9 [13:53:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 43 96 24 01 37 C6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 35 A3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DF C1 00 00 35 04 06 00 AA 51 F3 D6 A7 AC 1F 55 0A EE 7F B4 8A 16 [13:53:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 00 A6 47 00 30 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DF C1 00 00 F4 03 04 00 94 56 C0 66 B6 04 01 00 00 B5 07 DA DF 45 B8 7F 68 [13:53:27]CommunicateWithHost err = 0 [13:53:27]CheckOFDResponse [13:53:27]1017 (14) - 77093643461234 [13:53:27]1041 (16) - 0000000000871800 [13:53:27]1040 (4) - 49631 [13:53:27]1012 (4) - 17.08.2024 07:51 [13:53:27]1206 (1) - 0 [13:53:27]OFD Sender: Remove packet 49631 [13:53:27]ProducePacketName [13:53:27]name=ofd_packets/00049631 [13:53:27]NVStorageDeleteData [13:53:27]OFD Sender: Processing packet 49632 [packets to send 23, broken 20] [13:53:27]ProducePacketName [13:53:27]name=ofd_packets/00049632 [13:53:27]OFD Sender: To server: pG, [13:53:27]CommunicateWithHost lk.salyk.kg:30040 [13:53:27]ConnectInit lk.salyk.kg [13:53:27]Connected sock=9 [13:53:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 C3 E7 31 01 C1 BA 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1E A4 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E0 C1 00 00 35 04 06 00 C9 3C 5C A6 D2 1A 44 BA 93 05 DD 4A 1C 9D [13:53:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B1 09 47 00 C6 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E0 C1 00 00 F4 03 04 00 95 56 C0 66 B6 04 01 00 00 E0 68 B1 F9 6F F2 9B EA [13:53:28]CommunicateWithHost err = 0 [13:53:28]CheckOFDResponse [13:53:28]1017 (14) - 77093643461234 [13:53:28]1041 (16) - 0000000000871800 [13:53:28]1040 (4) - 49632 [13:53:28]1012 (4) - 17.08.2024 07:51 [13:53:28]1206 (1) - 0 [13:53:28]OFD Sender: Remove packet 49632 [13:53:28]ProducePacketName [13:53:28]name=ofd_packets/00049632 [13:53:28]NVStorageDeleteData [13:53:28]OFD Sender: Processing packet 49633 [packets to send 22, broken 20] [13:53:28]ProducePacketName [13:53:28]name=ofd_packets/00049633 [13:53:28]OFD Sender: To server: pG, [13:53:28]CommunicateWithHost lk.salyk.kg:30040 [13:53:28]ConnectInit lk.salyk.kg [13:53:28]Connected sock=10 [13:53:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 81 83 18 01 85 9D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 52 A8 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E1 C1 00 00 35 04 06 00 49 D4 EA AC CC 2A 59 9B 55 7E 63 CB 80 86 [13:53:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 2C 6D 47 00 7D 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E1 C1 00 00 F4 03 04 00 96 56 C0 66 B6 04 01 00 00 12 D0 A2 AD DC A6 1C 8B [13:53:28]CommunicateWithHost err = 0 [13:53:28]CheckOFDResponse [13:53:28]1017 (14) - 77093643461234 [13:53:28]1041 (16) - 0000000000871800 [13:53:28]1040 (4) - 49633 [13:53:28]1012 (4) - 17.08.2024 07:51 [13:53:28]1206 (1) - 0 [13:53:28]OFD Sender: Remove packet 49633 [13:53:28]ProducePacketName [13:53:28]name=ofd_packets/00049633 [13:53:28]NVStorageDeleteData [13:53:29]OFD Sender: Processing packet 49634 [packets to send 21, broken 20] [13:53:29]ProducePacketName [13:53:29]name=ofd_packets/00049634 [13:53:29]OFD Sender: To server: pG, [13:53:29]CommunicateWithHost lk.salyk.kg:30040 [13:53:29]ConnectInit lk.salyk.kg [13:53:29]Connected sock=9 [13:53:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 24 96 19 01 59 A7 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 FF A8 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E2 C1 00 00 35 04 06 00 B5 DF BB 60 B7 43 AB 84 F2 B6 15 E5 61 B3 [13:53:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 20 38 47 00 02 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E2 C1 00 00 F4 03 04 00 97 56 C0 66 B6 04 01 00 00 AD 48 4D 6A 29 C6 5D B0 [13:53:29]CommunicateWithHost err = 0 [13:53:29]CheckOFDResponse [13:53:29]1017 (14) - 77093643461234 [13:53:29]1041 (16) - 0000000000871800 [13:53:29]1040 (4) - 49634 [13:53:29]1012 (4) - 17.08.2024 07:51 [13:53:29]1206 (1) - 0 [13:53:29]OFD Sender: Remove packet 49634 [13:53:29]ProducePacketName [13:53:29]name=ofd_packets/00049634 [13:53:29]NVStorageDeleteData [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:47]accept exits with 7 [13:53:47]New connection [13:53:47]New thread 3066801508 created [13:53:47]Thread 3066944868 joined [13:53:47]Waiting for new connection... [13:53:47] Sock 7.Parse request [13:53:47]Sock 7.Check first char [13:53:47]Sock 7.First char is OK [13:53:47]request: POST /json_proto HTTP/1.0 [13:53:47]Method: POST [13:53:47]URL: /json_proto [13:53:47]Method is POST - this is cgi request [13:53:47]url: /json_proto [13:53:47]query_string will be loaded in cgi processing [13:53:47]execute_cgi json_proto POST (null) [13:53:47]execute_cgi path=json_proto method=POST [13:53:47]POST find Content-Length [13:53:47]Host: 172.17.46.196:8080 [13:53:47]Content-Length: 700 [13:53:47]Content-Type: application/json [13:53:47] [13:53:47]POST finish read [13:53:47]Found Content-Length = 700 [13:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189822", "tax_sys" : 0, "items" : [ { "code": "4870001570903", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u044F\u0431\u043B,\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 \u041F\u042D\u0422 1\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:47]execute_script... [13:53:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189822", "tax_sys" : 0, "items" : [ { "code": "4870001570903", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u044F\u0431\u043B,\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 \u041F\u042D\u0422 1\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:47]POST & json_proto [13:53:47]process_json_proto [13:53:47]json parsed OK: [13:53:47]protocol is kg_v1.0 [13:53:47]action value=close_receipt [13:53:47]process_action close_receipt [13:53:47]cmd_close_receipt [13:53:47]MH_GetDate [13:53:47]Write to MH i2c: F0 00 00 74 1E 81 [13:53:47]Write i2c OK [13:53:47]MH_I2C_Read... [13:53:47]Read from MH i2c: F0 [13:53:47]MH_I2C_Read... [13:53:47]Read from MH i2c: F0 09 00 [13:53:47]MH_I2C_Read... [13:53:47]Read from MH i2c: F0 09 00 74 1E 00 6F AB C0 66 07 E8 5D 66 7C [13:53:47]GetLastDocTimeStamp 1723902207 [13:53:47]current date 1723902831 [13:53:47]FM_GetShiftState [13:53:47]SAM_PROTO_GetShiftState [13:53:47]wFMCommunicate request_size=4 [13:53:47]MH_SAM_APDU [13:53:47]CAPDU: 80 13 01 00 [13:53:47]Write to MH i2c: E2 08 00 75 1E 80 13 01 00 00 00 00 00 10 [13:53:47]Write i2c OK [13:53:47]MH_I2C_Read... [13:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:47]Read from MH i2c: E2 [13:53:47]MH_I2C_Read... [13:53:47]Read from MH i2c: E2 0E 00 [13:53:47]MH_I2C_Read... [13:53:47]Read from MH i2c: E2 0E 00 75 1E 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 55 [13:53:47]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [13:53:47]wFMCommunicate OK [13:53:47]SAM_PROTO_GetShiftState done [13:53:47]FM_GetShiftState done [13:53:47]opened in 1723853354 [13:53:47]opened+sec_in_day 1723939754 [13:53:47]quantity*price = 16500 [13:53:47]sum+1 = 16501 [13:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 72 17.08.2024 13:53 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49635 ФПД: 37116125013969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T135351&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49635&fm=37116125013969&tin=02508201610067®Number=0000000000092546&sum=16500 0 [13:53:48]StoreToDocumentArchive [13:53:48]shift 465 fd 49635 [13:53:48]save to /storage/0465/doc_00049635 [13:53:48]save last doc name /storage/0465/doc_00049635 to /storage/kkm_last_doc_name [13:53:48]save OK [13:53:48]Clear old archive folders... [13:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=296 [13:53:49]tlvbuf is 01870F60 [13:53:49]SAM_PROTO_ClearQueue [13:53:49]wFMCommunicate request_size=4 [13:53:49]MH_SAM_APDU [13:53:49]CAPDU: 80 09 00 00 [13:53:49]Write to MH i2c: E2 08 00 82 1E 80 09 00 00 00 00 00 00 12 [13:53:49]Write i2c OK [13:53:49]MH_I2C_Read... [13:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:49]Read from MH i2c: E2 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 03 00 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 03 00 82 1E 00 90 00 14 [13:53:49]RAPDU: 90 00 [13:53:49]wFMCommunicate OK [13:53:49]SAM_PROTO_ClearQueue done [13:53:49]KKMCreateOFDPacket [13:53:49]OFDProtocolAddRootSTLVToBuf [13:53:49]FM_MakeSignedData [13:53:49]FM_MakeSignedData [13:53:49]SAM_PROTO_SignData [13:53:49]wFMCommunicate request_size=4 [13:53:49]MH_SAM_APDU [13:53:49]CAPDU: 80 0D 01 02 [13:53:49]Write to MH i2c: E2 08 00 83 1E 80 0D 01 02 00 00 00 00 1A [13:53:49]Write i2c OK [13:53:49]MH_I2C_Read... [13:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:49]Read from MH i2c: E2 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 03 00 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 03 00 83 1E 00 90 00 15 [13:53:49]RAPDU: 90 00 [13:53:49]wFMCommunicate OK [13:53:49]wFMCommunicate request_size=255 [13:53:49]MH_SAM_APDU [13:53:49]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 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 6F AB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [13:53:49]Write to MH i2c: E2 02 01 84 1E 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 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 6F AB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 1E [13:53:49]Write i2c OK [13:53:49]MH_I2C_Read... [13:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:49]Read from MH i2c: E2 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 03 00 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 03 00 84 1E 00 90 00 16 [13:53:49]RAPDU: 90 00 [13:53:49]wFMCommunicate OK [13:53:49]wFMCommunicate request_size=55 [13:53:49]MH_SAM_APDU [13:53:49]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C1 00 00 35 04 06 00 21 C1 C5 72 67 D1 [13:53:49]Write to MH i2c: E2 3A 00 85 1E 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C1 00 00 35 04 06 00 21 C1 C5 72 67 D1 00 00 64 [13:53:49]Write i2c OK [13:53:49]MH_I2C_Read... [13:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:49]Read from MH i2c: E2 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 03 00 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 03 00 85 1E 00 90 00 17 [13:53:49]RAPDU: 90 00 [13:53:49]wFMCommunicate OK [13:53:49]wFMCommunicate request_size=4 [13:53:49]MH_SAM_APDU [13:53:49]CAPDU: 80 0D 03 02 [13:53:49]Write to MH i2c: E2 08 00 86 1E 80 0D 03 02 00 00 00 00 1F [13:53:49]Write i2c OK [13:53:49]MH_I2C_Read... [13:53:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:49]Read from MH i2c: E2 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 0B 00 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 0B 00 86 1E 00 23 B0 46 81 A3 05 AD ED 90 00 FC [13:53:49]RAPDU: 23 B0 46 81 A3 05 AD ED 90 00 [13:53:49]wFMCommunicate OK [13:53:49]SAM_PROTO_SignData done [13:53:49]FM_MakeSignedData done [13:53:49]CreateOFDProtocolMessage [13:53:49]wFMCommunicate request_size=4 [13:53:49]MH_SAM_APDU [13:53:49]CAPDU: 80 11 00 00 [13:53:49]Write to MH i2c: E2 08 00 87 1E 80 11 00 00 00 00 00 00 1F [13:53:49]Write i2c OK [13:53:49]MH_I2C_Read... [13:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:49]Read from MH i2c: E2 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 17 00 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: E2 17 00 87 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6A [13:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:53:49]wFMCommunicate OK [13:53:49]CreateOFDProtocolMessage done [13:53:49]OFDSenderStorePacket 49635 [13:53:49]StoreOFDPacket docnum=49635 [13:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3C 01 00 00 41 C9 34 01 DB 62 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 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 6F AB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C1 00 00 35 04 06 00 21 C1 C5 72 67 D1 23 B0 46 81 A3 05 AD ED [13:53:49]CheckFolder [13:53:49]dirname=/storage/ofd_packets [13:53:49]CheckFolder done [13:53:49]ProducePacketName [13:53:49]name=ofd_packets/00049635 [13:53:49]NVStorageSaveData ofd_packets/00049635 [13:53:49]File name is /storage/ofd_packets/00049635 [13:53:49]Write 346 bytes [13:53:49]NVStorageSaveData done [13:53:49]OFDSenderStorePacket done [13:53:49]KKMCreateOFDPacket done [13:53:49]NVStorageSaveData kkm_last_timestamp [13:53:49]File name is /storage/kkm_last_timestamp [13:53:49]Write 4 bytes [13:53:49]NVStorageSaveData done [13:53:49]ExternCall_PrintAddStr [13:53:49]wPrintStart [13:53:49]Write to MH i2c: 01 00 00 88 1E A6 [13:53:49]Write i2c OK [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: 01 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: 01 07 00 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: 01 07 00 88 1E 00 00 00 00 00 FF 0F BB [13:53:49]RasterBufferAndPrint [13:53:49]line Счет N : (3)189822 [13:53:49]line ИНН: 02508201610067 [13:53:49]line Контрольно-Кассовый Чек [13:53:49]line ПРОДАЖА [13:53:49]line Товар: 4870001570903 [13:53:49]line Напиток DADA ябл,клубника ПЭТ 1л [13:53:49]line 1.000 * 165.00 [13:53:49]line = 165.00 [13:53:49]line НДС 12% НСП 1% [13:53:49]line > о реализуемом товаре [13:53:49]line ИТОГО: 165.00 [13:53:49]line НСП 1% : 1.46 [13:53:49]line НДС 12% : 17.52 [13:53:49]line Наличными: 165.00 [13:53:49]line Безнал.: 0.00 [13:53:49]line Место: АЗС № 95 "Партнер Нефть" [13:53:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:53:49]line СНО: Общий режим [13:53:49]line Чек 72 17.08.2024 13:53 [13:53:49]line Смена: 465 ФФД: 1.0 [13:53:49]line ЗНМ: 0300000078 [13:53:49]line РНМ: 0000000000092546 [13:53:49]line Версия ККМ: 001 [13:53:49]line ФМ: 0000000000871800 [13:53:49]line ФД: 49635 [13:53:49]line ФПД: 37116125013969 [13:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T135351&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49635&fm=37116125013969&tin=02508201610067®Number=0000000000092546&sum=16500 [13:53:49]line 0 [13:53:49]OFD Sender: Processing packet 49635 [packets to send 21, broken 20] [13:53:49]ProducePacketName [13:53:49]name=ofd_packets/00049635 [13:53:49]OFD Sender: To server: pG, [13:53:49]CommunicateWithHost lk.salyk.kg:30040 [13:53:49]ConnectInit lk.salyk.kg [13:53:49]written 0, free lines is 4095 [13:53:50]Write to MH i2c: 01 00 00 B1 1E CF [13:53:50]Write i2c OK [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: 01 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: 01 07 00 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: 01 07 00 B1 1E 00 00 00 00 00 D5 0C B7 [13:53:50]RasterBufferAndPrint [13:53:50]line [13:53:50]line [13:53:50]line [13:53:50]line [13:53:50]line [13:53:50]written 0, free lines is 3290 [13:53:50]MH_Cut [13:53:50]Write to MH i2c: D1 01 00 B8 1E 01 A8 [13:53:50]Write i2c OK [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: D1 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: D1 01 00 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: D1 01 00 B8 1E 00 A7 [13:53:50]Write to MH i2c: 01 00 00 B9 1E D7 [13:53:50]Write i2c OK [13:53:50]MH_I2C_Read... [13:53:51]*** Cut start [13:53:51]*** Purtial cut [13:53:51]*** Stage 1: CUTSNS_PIN = 1 [13:53:51]Read from MH i2c: 01 [13:53:51]MH_I2C_Read... [13:53:51]*** Stop cut motor [13:53:51]*** Cut end [13:53:51]Read from MH i2c: 01 07 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: 01 07 00 B9 1E 00 00 00 00 00 FF 0F EC [13:53:51]process_action close_receipt done [13:53:51]requested_data is exist [13:53:51]produce_requested_data [13:53:51]requested_item fm.sn is exist - process it [13:53:51]wFMCommunicate request_size=4 [13:53:51]MH_SAM_APDU [13:53:51]CAPDU: 80 11 00 00 [13:53:51]Write to MH i2c: E2 08 00 BA 1E 80 11 00 00 00 00 00 00 52 [13:53:51]Write i2c OK [13:53:51]MH_I2C_Read... [13:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:51]Read from MH i2c: E2 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 17 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 17 00 BA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9D [13:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:53:51]wFMCommunicate OK [13:53:51]requested_item fd.num is exist - process it [13:53:51]SAM_PROTO_GetFieldsCounters [13:53:51]wFMCommunicate request_size=4 [13:53:51]MH_SAM_APDU [13:53:51]CAPDU: 80 13 00 00 [13:53:51]Write to MH i2c: E2 08 00 BB 1E 80 13 00 00 00 00 00 00 55 [13:53:51]Write i2c OK [13:53:51]MH_I2C_Read... [13:53:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:51]Read from MH i2c: E2 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 62 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 62 00 BB 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [13:53: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:51]wFMCommunicate OK [13:53:51]SAM_PROTO_GetFieldsCounters done [13:53:51]requested_item shift.num is exist - process it [13:53:51]requested_item shift.opened is exist - process it [13:53:51]req_shift_opened [13:53:51]FM_GetShiftState [13:53:51]SAM_PROTO_GetShiftState [13:53:51]wFMCommunicate request_size=4 [13:53:51]MH_SAM_APDU [13:53:51]CAPDU: 80 13 01 00 [13:53:51]Write to MH i2c: E2 08 00 BC 1E 80 13 01 00 00 00 00 00 57 [13:53:51]Write i2c OK [13:53:51]MH_I2C_Read... [13:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:51]Read from MH i2c: E2 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 0E 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 0E 00 BC 1E 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 9C [13:53:51]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [13:53:51]wFMCommunicate OK [13:53:51]SAM_PROTO_GetShiftState done [13:53:51]FM_GetShiftState done [13:53:51]req_shift_opened done [13:53:51]requested_item shift.open_date is exist - process it [13:53:51]req_shift_open_date [13:53:51]req_shift_open_date done [13:53:51]produce_requested_data done [13:53:51]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49635,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [13:53:51]process_action_free close_receipt [13:53:51]json_value_free [13:53:51]json_value_free done [13:53:51]process_json_proto returns [13:53:51]Send response to host [13:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49635,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [13:53:51]free response buf [13:53:51]execute_script done [13:53:51]execute_script returns [13:53:51]free content buf [13:53:51]Sock 7.Close socket [13:53:51]Sock 7.Thread stoped [13:56:01]ConnectInit Can't connect to host [13:56:01]CommunicateWithHost connect error [13:56:01]CommunicateWithHost err = -1 [13:56:01]OFD Sender: Server communicate error [13:56:06]OFD Sender: Processing packet 49635 [packets to send 21, broken 20] [13:56:06]ProducePacketName [13:56:06]name=ofd_packets/00049635 [13:56:06]OFD Sender: To server: pG, [13:56:06]CommunicateWithHost lk.salyk.kg:30040 [13:56:06]ConnectInit lk.salyk.kg [13:56:06]Connected sock=10 [13:56:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3C 01 00 00 41 C9 34 01 DB 62 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 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 6F AB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C1 00 00 35 04 06 00 21 C1 C5 72 67 D1 23 B0 46 81 A3 05 AD ED [13:56:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FE F7 47 00 87 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C1 00 00 F4 03 04 00 34 57 C0 66 B6 04 01 00 00 85 71 2B FE 8F A9 BA 73 [13:56:07]CommunicateWithHost err = 0 [13:56:07]CheckOFDResponse [13:56:07]1017 (14) - 77093643461234 [13:56:07]1041 (16) - 0000000000871800 [13:56:07]1040 (4) - 49635 [13:56:07]1012 (4) - 17.08.2024 07:54 [13:56:07]1206 (1) - 0 [13:56:07]OFD Sender: Remove packet 49635 [13:56:07]ProducePacketName [13:56:07]name=ofd_packets/00049635 [13:56:07]NVStorageDeleteData [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:44]accept exits with 9 [13:57:44]New connection [13:57:44]New thread 3066944868 created [13:57:44]Thread 3066801508 joined [13:57:44]Waiting for new connection... [13:57:44] Sock 9.Parse request [13:57:44]Sock 9.Check first char [13:57:44]Sock 9.First char is OK [13:57:44]request: POST /json_proto HTTP/1.0 [13:57:44]Method: POST [13:57:44]URL: /json_proto [13:57:44]Method is POST - this is cgi request [13:57:44]url: /json_proto [13:57:44]query_string will be loaded in cgi processing [13:57:44]execute_cgi json_proto POST (null) [13:57:44]execute_cgi path=json_proto method=POST [13:57:44]POST find Content-Length [13:57:44]Host: 172.17.46.196:8080 [13:57:44]Content-Length: 614 [13:57:44]Content-Type: application/json [13:57:44] [13:57:44]POST finish read [13:57:44]Found Content-Length = 614 [13:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189823", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:44]execute_script... [13:57:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189823", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:44]POST & json_proto [13:57:44]process_json_proto [13:57:44]json parsed OK: [13:57:44]protocol is kg_v1.0 [13:57:44]action value=close_receipt [13:57:44]process_action close_receipt [13:57:44]cmd_close_receipt [13:57:44]MH_GetDate [13:57:44]Write to MH i2c: F0 00 00 BD 1E CA [13:57:44]Write i2c OK [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: F0 [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: F0 09 00 [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: F0 09 00 BD 1E 00 5C AC C0 66 07 E8 5D 66 B3 [13:57:44]GetLastDocTimeStamp 1723902831 [13:57:44]current date 1723903068 [13:57:44]FM_GetShiftState [13:57:44]SAM_PROTO_GetShiftState [13:57:44]wFMCommunicate request_size=4 [13:57:44]MH_SAM_APDU [13:57:44]CAPDU: 80 13 01 00 [13:57:44]Write to MH i2c: E2 08 00 BE 1E 80 13 01 00 00 00 00 00 59 [13:57:44]Write i2c OK [13:57:44]MH_I2C_Read... [13:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:44]Read from MH i2c: E2 [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: E2 0E 00 [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: E2 0E 00 BE 1E 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 9E [13:57:44]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [13:57:44]wFMCommunicate OK [13:57:44]SAM_PROTO_GetShiftState done [13:57:44]FM_GetShiftState done [13:57:44]opened in 1723853354 [13:57:44]opened+sec_in_day 1723939754 [13:57:44]quantity*price = 11100 [13:57:44]sum+1 = 11101 [13:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 73 17.08.2024 13:57 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49636 ФПД: 200632419560056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T135748&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49636&fm=200632419560056&tin=02508201610067®Number=0000000000092546&sum=11100 0 [13:57:46]StoreToDocumentArchive [13:57:46]shift 465 fd 49636 [13:57:46]save to /storage/0465/doc_00049636 [13:57:46]save last doc name /storage/0465/doc_00049636 to /storage/kkm_last_doc_name [13:57:46]save OK [13:57:46]Clear old archive folders... [13:57:46]ProcessDocumentItem done err = 0, tmpTLVsize=266 [13:57:46]tlvbuf is 01870C20 [13:57:46]SAM_PROTO_ClearQueue [13:57:46]wFMCommunicate request_size=4 [13:57:46]MH_SAM_APDU [13:57:46]CAPDU: 80 09 00 00 [13:57:46]Write to MH i2c: E2 08 00 CB 1E 80 09 00 00 00 00 00 00 5B [13:57:46]Write i2c OK [13:57:46]MH_I2C_Read... [13:57:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:46]Read from MH i2c: E2 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: E2 03 00 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: E2 03 00 CB 1E 00 90 00 5D [13:57:46]RAPDU: 90 00 [13:57:46]wFMCommunicate OK [13:57:46]SAM_PROTO_ClearQueue done [13:57:46]KKMCreateOFDPacket [13:57:46]OFDProtocolAddRootSTLVToBuf [13:57:46]FM_MakeSignedData [13:57:46]FM_MakeSignedData [13:57:46]SAM_PROTO_SignData [13:57:46]wFMCommunicate request_size=4 [13:57:46]MH_SAM_APDU [13:57:46]CAPDU: 80 0D 01 02 [13:57:46]Write to MH i2c: E2 08 00 CC 1E 80 0D 01 02 00 00 00 00 63 [13:57:46]Write i2c OK [13:57:46]MH_I2C_Read... [13:57:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:46]Read from MH i2c: E2 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: E2 03 00 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: E2 03 00 CC 1E 00 90 00 5E [13:57:46]RAPDU: 90 00 [13:57:46]wFMCommunicate OK [13:57:46]wFMCommunicate request_size=255 [13:57:46]MH_SAM_APDU [13:57:46]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 5C AC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [13:57:46]Write to MH i2c: E2 02 01 CD 1E 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 5C AC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 C4 [13:57:46]Write i2c OK [13:57:46]MH_I2C_Read... [13:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:46]Read from MH i2c: E2 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: E2 03 00 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: E2 03 00 CD 1E 00 90 00 5F [13:57:46]RAPDU: 90 00 [13:57:46]wFMCommunicate OK [13:57:46]wFMCommunicate request_size=25 [13:57:46]MH_SAM_APDU [13:57:46]CAPDU: 80 0D 02 02 14 30 30 10 04 04 00 E4 C1 00 00 35 04 06 00 B6 79 60 19 2A 78 [13:57:46]Write to MH i2c: E2 1C 00 CE 1E 80 0D 02 02 14 00 30 30 10 04 04 00 E4 C1 00 00 35 04 06 00 B6 79 60 19 2A 78 00 00 34 [13:57:46]Write i2c OK [13:57:46]MH_I2C_Read... [13:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:46]Read from MH i2c: E2 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: E2 03 00 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: E2 03 00 CE 1E 00 90 00 60 [13:57:46]RAPDU: 90 00 [13:57:46]wFMCommunicate OK [13:57:46]wFMCommunicate request_size=4 [13:57:46]MH_SAM_APDU [13:57:46]CAPDU: 80 0D 03 02 [13:57:46]Write to MH i2c: E2 08 00 CF 1E 80 0D 03 02 00 00 00 00 68 [13:57:46]Write i2c OK [13:57:46]MH_I2C_Read... [13:57:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:46]Read from MH i2c: E2 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: E2 0B 00 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: E2 0B 00 CF 1E 00 DA 9D BA F2 22 C3 F1 9B 90 00 FD [13:57:46]RAPDU: DA 9D BA F2 22 C3 F1 9B 90 00 [13:57:46]wFMCommunicate OK [13:57:46]SAM_PROTO_SignData done [13:57:46]FM_MakeSignedData done [13:57:46]CreateOFDProtocolMessage [13:57:46]wFMCommunicate request_size=4 [13:57:46]MH_SAM_APDU [13:57:46]CAPDU: 80 11 00 00 [13:57:46]Write to MH i2c: E2 08 00 D0 1E 80 11 00 00 00 00 00 00 68 [13:57:46]Write i2c OK [13:57:46]MH_I2C_Read... [13:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:46]Read from MH i2c: E2 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: E2 17 00 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: E2 17 00 D0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B3 [13:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:57:46]wFMCommunicate OK [13:57:46]CreateOFDProtocolMessage done [13:57:46]OFDSenderStorePacket 49636 [13:57:46]StoreOFDPacket docnum=49636 [13:57:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 67 80 16 01 BD 10 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 5C AC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E4 C1 00 00 35 04 06 00 B6 79 60 19 2A 78 DA 9D BA F2 22 C3 F1 9B [13:57:46]CheckFolder [13:57:46]dirname=/storage/ofd_packets [13:57:46]CheckFolder done [13:57:46]ProducePacketName [13:57:46]name=ofd_packets/00049636 [13:57:46]NVStorageSaveData ofd_packets/00049636 [13:57:46]File name is /storage/ofd_packets/00049636 [13:57:46]Write 316 bytes [13:57:46]NVStorageSaveData done [13:57:46]OFDSenderStorePacket done [13:57:46]KKMCreateOFDPacket done [13:57:46]NVStorageSaveData kkm_last_timestamp [13:57:46]File name is /storage/kkm_last_timestamp [13:57:46]Write 4 bytes [13:57:46]NVStorageSaveData done [13:57:46]ExternCall_PrintAddStr [13:57:46]wPrintStart [13:57:46]Write to MH i2c: 01 00 00 D1 1E EF [13:57:46]Write i2c OK [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: 01 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: 01 07 00 [13:57:46]MH_I2C_Read... [13:57:46]Read from MH i2c: 01 07 00 D1 1E 00 00 00 00 00 FF 0F 04 [13:57:46]RasterBufferAndPrint [13:57:46]line Счет N : (3)189823 [13:57:46]line ИНН: 02508201610067 [13:57:46]line Контрольно-Кассовый Чек [13:57:46]line ПРОДАЖА [13:57:46]line Товар: 4870001570071 [13:57:46]line Напиток Pepsi 1л [13:57:46]line 1.000 * 111.00 [13:57:46]line = 111.00 [13:57:46]line НДС 12% НСП 1% [13:57:46]line > о реализуемом товаре [13:57:46]line ИТОГО: 111.00 [13:57:46]line НСП 1% : 0.98 [13:57:46]line НДС 12% : 11.79 [13:57:46]line Наличными: 111.00 [13:57:46]line Безнал.: 0.00 [13:57:46]line Место: АЗС № 95 "Партнер Нефть" [13:57:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:57:46]line СНО: Общий режим [13:57:46]line Чек 73 17.08.2024 13:57 [13:57:46]line Смена: 465 ФФД: 1.0 [13:57:46]line ЗНМ: 0300000078 [13:57:46]line РНМ: 0000000000092546 [13:57:46]line Версия ККМ: 001 [13:57:46]line ФМ: 0000000000871800 [13:57:46]line ФД: 49636 [13:57:46]line ФПД: 200632419560056 [13:57:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T135748&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49636&fm=200632419560056&tin=02508201610067®Number=0000000000092546&sum=11100 [13:57:46]OFD Sender: Processing packet 49636 [packets to send 21, broken 20] [13:57:46]ProducePacketName [13:57:46]name=ofd_packets/00049636 [13:57:46]OFD Sender: To server: pG, [13:57:46]CommunicateWithHost lk.salyk.kg:30040 [13:57:46]ConnectInit lk.salyk.kg [13:57:46]line 0 [13:57:46]written 0, free lines is 4095 [13:57:47]Connected sock=10 [13:57:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 67 80 16 01 BD 10 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 5C AC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E4 C1 00 00 35 04 06 00 B6 79 60 19 2A 78 DA 9D BA F2 22 C3 F1 9B [13:57:47]Write to MH i2c: 01 00 00 F9 1E 17 [13:57:47]Write i2c OK [13:57:47]MH_I2C_Read... [13:57:47]Read from MH i2c: 01 [13:57:47]MH_I2C_Read... [13:57:47]Read from MH i2c: 01 07 00 [13:57:47]MH_I2C_Read... [13:57:47]Read from MH i2c: 01 07 00 F9 1E 00 00 00 00 00 F1 0C 1B [13:57:47]RasterBufferAndPrint [13:57:47]line [13:57:47]line [13:57:47]line [13:57:47]line [13:57:47]line [13:57:47]written 0, free lines is 3319 [13:57:47]MH_Cut [13:57:47]Write to MH i2c: D1 01 00 00 1F 01 F1 [13:57:47]Write i2c OK [13:57:47]MH_I2C_Read... [13:57:47]Read from MH i2c: D1 [13:57:47]MH_I2C_Read... [13:57:47]Read from MH i2c: D1 01 00 [13:57:47]MH_I2C_Read... [13:57:47]Read from MH i2c: D1 01 00 00 1F 00 F0 [13:57:47]Write to MH i2c: 01 00 00 01 1F 20 [13:57:47]Write i2c OK [13:57:47]MH_I2C_Read... [13:57:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 38 58 47 00 75 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E4 C1 00 00 F4 03 04 00 98 57 C0 66 B6 04 01 00 00 2B C7 17 0D 4F F7 4F 26 [13:57:47]CommunicateWithHost err = 0 [13:57:47]CheckOFDResponse [13:57:47]1017 (14) - 77093643461234 [13:57:47]1041 (16) - 0000000000871800 [13:57:47]1040 (4) - 49636 [13:57:47]1012 (4) - 17.08.2024 07:56 [13:57:47]1206 (1) - 0 [13:57:47]OFD Sender: Remove packet 49636 [13:57:47]ProducePacketName [13:57:47]name=ofd_packets/00049636 [13:57:47]NVStorageDeleteData [13:57:47]OFD Sender: No OFD packet to send [13:57:48]*** Cut start [13:57:48]*** Purtial cut [13:57:48]*** CUTSNS_PIN = 0 [13:57:48]*** Stage 1: CUTSNS_PIN = 1 [13:57:50]Read from MH i2c: 01 [13:57:50]MH_I2C_Read... [13:57:50]*** Stop cut motor [13:57:50]*** Cut end [13:57:50]Read from MH i2c: 01 07 00 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: 01 07 00 01 1F 00 00 00 00 00 FF 0F 35 [13:57:50]process_action close_receipt done [13:57:50]requested_data is exist [13:57:50]produce_requested_data [13:57:50]requested_item fm.sn is exist - process it [13:57:50]wFMCommunicate request_size=4 [13:57:50]MH_SAM_APDU [13:57:50]CAPDU: 80 11 00 00 [13:57:50]Write to MH i2c: E2 08 00 02 1F 80 11 00 00 00 00 00 00 9B [13:57:50]Write i2c OK [13:57:50]MH_I2C_Read... [13:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:50]Read from MH i2c: E2 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 17 00 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 17 00 02 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E6 [13:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:57:50]wFMCommunicate OK [13:57:50]requested_item fd.num is exist - process it [13:57:50]SAM_PROTO_GetFieldsCounters [13:57:50]wFMCommunicate request_size=4 [13:57:50]MH_SAM_APDU [13:57:50]CAPDU: 80 13 00 00 [13:57:50]Write to MH i2c: E2 08 00 03 1F 80 13 00 00 00 00 00 00 9E [13:57:50]Write i2c OK [13:57:50]MH_I2C_Read... [13:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:50]Read from MH i2c: E2 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 62 00 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 62 00 03 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E4 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [13:57: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E4 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:50]wFMCommunicate OK [13:57:50]SAM_PROTO_GetFieldsCounters done [13:57:50]requested_item shift.num is exist - process it [13:57:50]requested_item shift.opened is exist - process it [13:57:50]req_shift_opened [13:57:50]FM_GetShiftState [13:57:50]SAM_PROTO_GetShiftState [13:57:50]wFMCommunicate request_size=4 [13:57:50]MH_SAM_APDU [13:57:50]CAPDU: 80 13 01 00 [13:57:50]Write to MH i2c: E2 08 00 04 1F 80 13 01 00 00 00 00 00 A0 [13:57:50]Write i2c OK [13:57:50]MH_I2C_Read... [13:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:50]Read from MH i2c: E2 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 0E 00 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 0E 00 04 1F 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 E5 [13:57:50]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [13:57:50]wFMCommunicate OK [13:57:50]SAM_PROTO_GetShiftState done [13:57:50]FM_GetShiftState done [13:57:50]req_shift_opened done [13:57:50]requested_item shift.open_date is exist - process it [13:57:50]req_shift_open_date [13:57:50]req_shift_open_date done [13:57:50]produce_requested_data done [13:57:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49636,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [13:57:50]process_action_free close_receipt [13:57:50]json_value_free [13:57:50]json_value_free done [13:57:50]process_json_proto returns [13:57:50]Send response to host [13:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49636,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [13:57:50]free response buf [13:57:50]execute_script done [13:57:50]execute_script returns [13:57:50]free content buf [13:57:50]Sock 9.Close socket [13:57:50]Sock 9.Thread stoped [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [14:04:16]ConnectInit Can't connect to host [14:04:18]OFD Sender: No OFD packet to send [14:20:01]ConnectInit Can't connect to host [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:12]accept exits with 9 [14:22:12]New connection [14:22:12]New thread 3066944868 created [14:22:12]Thread 3066801508 joined [14:22:12]Waiting for new connection... [14:22:12] Sock 9.Parse request [14:22:12]Sock 9.Check first char [14:22:12]Sock 9.First char is OK [14:22:12]request: POST /json_proto HTTP/1.0 [14:22:12]Method: POST [14:22:12]URL: /json_proto [14:22:12]Method is POST - this is cgi request [14:22:12]url: /json_proto [14:22:12]query_string will be loaded in cgi processing [14:22:12]execute_cgi json_proto POST (null) [14:22:12]execute_cgi path=json_proto method=POST [14:22:12]POST find Content-Length [14:22:12]Host: 172.17.46.196:8080 [14:22:12]Content-Length: 621 [14:22:12]Content-Type: application/json [14:22:12] [14:22:12]POST finish read [14:22:12]Found Content-Length = 621 [14:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189825", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:12]execute_script... [14:22:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189825", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:12]POST & json_proto [14:22:12]process_json_proto [14:22:12]json parsed OK: [14:22:12]protocol is kg_v1.0 [14:22:12]action value=close_receipt [14:22:12]process_action close_receipt [14:22:12]cmd_close_receipt [14:22:12]MH_GetDate [14:22:12]Write to MH i2c: F0 00 00 51 1F 5F [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: F0 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: F0 09 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: F0 09 00 51 1F 00 18 B2 C0 66 07 E8 5D 66 0A [14:22:12]GetLastDocTimeStamp 1723903513 [14:22:12]current date 1723904536 [14:22:12]FM_GetShiftState [14:22:12]SAM_PROTO_GetShiftState [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 13 01 00 [14:22:12]Write to MH i2c: E2 08 00 52 1F 80 13 01 00 00 00 00 00 EE [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 0E 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 0E 00 52 1F 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 33 [14:22:12]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:22:12]wFMCommunicate OK [14:22:12]SAM_PROTO_GetShiftState done [14:22:12]FM_GetShiftState done [14:22:12]opened in 1723853354 [14:22:12]opened+sec_in_day 1723939754 [14:22:12]quantity*price = 14000 [14:22:12]sum+1 = 14001 [14:22:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 75 17.08.2024 14:22 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49638 ФПД: 254362816016483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T142216&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49638&fm=254362816016483&tin=02508201610067®Number=0000000000092546&sum=14000 0 [14:22:13]StoreToDocumentArchive [14:22:13]shift 465 fd 49638 [14:22:13]save to /storage/0465/doc_00049638 [14:22:13]save last doc name /storage/0465/doc_00049638 to /storage/kkm_last_doc_name [14:22:13]save OK [14:22:13]Clear old archive folders... [14:22:13]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:22:13]tlvbuf is 0188E150 [14:22:13]SAM_PROTO_ClearQueue [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 09 00 00 [14:22:13]Write to MH i2c: E2 08 00 5F 1F 80 09 00 00 00 00 00 00 F0 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 03 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 03 00 5F 1F 00 90 00 F2 [14:22:14]RAPDU: 90 00 [14:22:14]wFMCommunicate OK [14:22:14]SAM_PROTO_ClearQueue done [14:22:14]KKMCreateOFDPacket [14:22:14]OFDProtocolAddRootSTLVToBuf [14:22:14]FM_MakeSignedData [14:22:14]FM_MakeSignedData [14:22:14]SAM_PROTO_SignData [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 0D 01 02 [14:22:14]Write to MH i2c: E2 08 00 60 1F 80 0D 01 02 00 00 00 00 F8 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 03 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 03 00 60 1F 00 90 00 F3 [14:22:14]RAPDU: 90 00 [14:22:14]wFMCommunicate OK [14:22:14]wFMCommunicate request_size=255 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 18 B2 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [14:22:14]Write to MH i2c: E2 02 01 61 1F 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 18 B2 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 FB [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 03 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 03 00 61 1F 00 90 00 F4 [14:22:14]RAPDU: 90 00 [14:22:14]wFMCommunicate OK [14:22:14]wFMCommunicate request_size=32 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C1 00 00 35 04 06 00 E7 57 75 4A F0 63 [14:22:14]Write to MH i2c: E2 23 00 62 1F 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C1 00 00 35 04 06 00 E7 57 75 4A F0 63 00 00 47 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 03 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 03 00 62 1F 00 90 00 F5 [14:22:14]RAPDU: 90 00 [14:22:14]wFMCommunicate OK [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 0D 03 02 [14:22:14]Write to MH i2c: E2 08 00 63 1F 80 0D 03 02 00 00 00 00 FD [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 0B 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 0B 00 63 1F 00 D8 1C 07 A7 F2 DC 51 BC 90 00 7B [14:22:14]RAPDU: D8 1C 07 A7 F2 DC 51 BC 90 00 [14:22:14]wFMCommunicate OK [14:22:14]SAM_PROTO_SignData done [14:22:14]FM_MakeSignedData done [14:22:14]CreateOFDProtocolMessage [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 11 00 00 [14:22:14]Write to MH i2c: E2 08 00 64 1F 80 11 00 00 00 00 00 00 FD [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 17 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 17 00 64 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 48 [14:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:22:14]wFMCommunicate OK [14:22:14]CreateOFDProtocolMessage done [14:22:14]OFDSenderStorePacket 49638 [14:22:14]StoreOFDPacket docnum=49638 [14:22:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 30 23 1D 01 0A 2B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 18 B2 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C1 00 00 35 04 06 00 E7 57 75 4A F0 63 D8 1C 07 A7 F2 DC 51 BC [14:22:14]CheckFolder [14:22:14]dirname=/storage/ofd_packets [14:22:14]CheckFolder done [14:22:14]ProducePacketName [14:22:14]name=ofd_packets/00049638 [14:22:14]NVStorageSaveData ofd_packets/00049638 [14:22:14]File name is /storage/ofd_packets/00049638 [14:22:14]Write 323 bytes [14:22:14]NVStorageSaveData done [14:22:14]OFDSenderStorePacket done [14:22:14]KKMCreateOFDPacket done [14:22:14]NVStorageSaveData kkm_last_timestamp [14:22:14]File name is /storage/kkm_last_timestamp [14:22:14]Write 4 bytes [14:22:14]NVStorageSaveData done [14:22:14]ExternCall_PrintAddStr [14:22:14]wPrintStart [14:22:14]Write to MH i2c: 01 00 00 65 1F 84 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: 01 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: 01 07 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: 01 07 00 65 1F 00 00 00 00 00 FF 0F 99 [14:22:14]RasterBufferAndPrint [14:22:14]line Счет N : (3)189825 [14:22:14]line ИНН: 02508201610067 [14:22:14]line Контрольно-Кассовый Чек [14:22:14]line ПРОДАЖА [14:22:14]line Товар: 48743570 [14:22:14]line Сигареты Winston XStyle Blue [14:22:14]line 1.000 * 140.00 [14:22:14]line = 140.00 [14:22:14]line НДС 12% НСП 1% [14:22:14]line > о реализуемом товаре [14:22:14]line ИТОГО: 140.00 [14:22:14]line НСП 1% : 1.24 [14:22:14]line НДС 12% : 14.87 [14:22:14]line Наличными: 140.00 [14:22:14]line Безнал.: 0.00 [14:22:14]line Место: АЗС № 95 "Партнер Нефть" [14:22:14]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:22:14]line СНО: Общий режим [14:22:14]line Чек 75 17.08.2024 14:22 [14:22:14]line Смена: 465 ФФД: 1.0 [14:22:14]line ЗНМ: 0300000078 [14:22:14]line РНМ: 0000000000092546 [14:22:14]line Версия ККМ: 001 [14:22:14]line ФМ: 0000000000871800 [14:22:14]line ФД: 49638 [14:22:14]line ФПД: 254362816016483 [14:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T142216&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49638&fm=254362816016483&tin=02508201610067®Number=0000000000092546&sum=14000 [14:22:14]OFD Sender: Processing packet 49638 [packets to send 21, broken 20] [14:22:14]ProducePacketName [14:22:14]name=ofd_packets/00049638 [14:22:14]OFD Sender: To server: pG, [14:22:14]CommunicateWithHost lk.salyk.kg:30040 [14:22:14]ConnectInit lk.salyk.kg [14:22:14]line 0 [14:22:14]written 0, free lines is 4095 [14:22:15]Connected sock=10 [14:22:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 30 23 1D 01 0A 2B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 18 B2 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C1 00 00 35 04 06 00 E7 57 75 4A F0 63 D8 1C 07 A7 F2 DC 51 BC [14:22:15]Write to MH i2c: 01 00 00 8D 1F AC [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: 01 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: 01 07 00 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: 01 07 00 8D 1F 00 00 00 00 00 DF 0C 9E [14:22:15]RasterBufferAndPrint [14:22:15]line [14:22:15]line [14:22:15]line [14:22:15]line [14:22:15]line [14:22:15]written 0, free lines is 3303 [14:22:15]MH_Cut [14:22:15]Write to MH i2c: D1 01 00 94 1F 01 85 [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: D1 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: D1 01 00 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: D1 01 00 94 1F 00 84 [14:22:15]Write to MH i2c: 01 00 00 95 1F B4 [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7F 79 47 00 72 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C1 00 00 F4 03 04 00 54 5D C0 66 B6 04 01 00 00 30 0D 1D F1 F6 DD DA 56 [14:22:15]CommunicateWithHost err = 0 [14:22:15]CheckOFDResponse [14:22:15]1017 (14) - 77093643461234 [14:22:15]1041 (16) - 0000000000871800 [14:22:15]1040 (4) - 49638 [14:22:15]1012 (4) - 17.08.2024 08:20 [14:22:15]1206 (1) - 0 [14:22:15]OFD Sender: Remove packet 49638 [14:22:15]ProducePacketName [14:22:15]name=ofd_packets/00049638 [14:22:15]NVStorageDeleteData [14:22:15]OFD Sender: No OFD packet to send [14:22:16]*** Cut start [14:22:16]*** Purtial cut [14:22:16]*** CUTSNS_PIN = 0 [14:22:16]*** Stage 1: CUTSNS_PIN = 1 [14:22:18]Read from MH i2c: 01 [14:22:18]MH_I2C_Read... [14:22:18]*** Stop cut motor [14:22:18]*** Cut end [14:22:18]Read from MH i2c: 01 07 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: 01 07 00 95 1F 00 00 00 00 00 FF 0F C9 [14:22:18]process_action close_receipt done [14:22:18]requested_data is exist [14:22:18]produce_requested_data [14:22:18]requested_item fm.sn is exist - process it [14:22:18]wFMCommunicate request_size=4 [14:22:18]MH_SAM_APDU [14:22:18]CAPDU: 80 11 00 00 [14:22:18]Write to MH i2c: E2 08 00 96 1F 80 11 00 00 00 00 00 00 2F [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:18]Read from MH i2c: E2 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 17 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 17 00 96 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7A [14:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:22:18]wFMCommunicate OK [14:22:18]requested_item fd.num is exist - process it [14:22:18]SAM_PROTO_GetFieldsCounters [14:22:18]wFMCommunicate request_size=4 [14:22:18]MH_SAM_APDU [14:22:18]CAPDU: 80 13 00 00 [14:22:18]Write to MH i2c: E2 08 00 97 1F 80 13 00 00 00 00 00 00 32 [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:18]Read from MH i2c: E2 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 62 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 62 00 97 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E6 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [14:22:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E6 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:18]wFMCommunicate OK [14:22:18]SAM_PROTO_GetFieldsCounters done [14:22:18]requested_item shift.num is exist - process it [14:22:18]requested_item shift.opened is exist - process it [14:22:18]req_shift_opened [14:22:18]FM_GetShiftState [14:22:18]SAM_PROTO_GetShiftState [14:22:18]wFMCommunicate request_size=4 [14:22:18]MH_SAM_APDU [14:22:18]CAPDU: 80 13 01 00 [14:22:18]Write to MH i2c: E2 08 00 98 1F 80 13 01 00 00 00 00 00 34 [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:18]Read from MH i2c: E2 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 0E 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 0E 00 98 1F 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 79 [14:22:18]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:22:18]wFMCommunicate OK [14:22:18]SAM_PROTO_GetShiftState done [14:22:18]FM_GetShiftState done [14:22:18]req_shift_opened done [14:22:18]requested_item shift.open_date is exist - process it [14:22:18]req_shift_open_date [14:22:18]req_shift_open_date done [14:22:18]produce_requested_data done [14:22:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49638,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [14:22:18]process_action_free close_receipt [14:22:18]json_value_free [14:22:18]json_value_free done [14:22:18]process_json_proto returns [14:22:18]Send response to host [14:22:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49638,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [14:22:18]free response buf [14:22:18]execute_script done [14:22:18]execute_script returns [14:22:18]free content buf [14:22:18]Sock 9.Close socket [14:22:18]Sock 9.Thread stoped [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:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:37]accept exits with 7 [14:24:37]New connection [14:24:37]New thread 3066801508 created [14:24:37]Thread 3066944868 joined [14:24:37]Waiting for new connection... [14:24:37] Sock 7.Parse request [14:24:37]Sock 7.Check first char [14:24:37]Sock 7.First char is OK [14:24:37]request: POST /json_proto HTTP/1.0 [14:24:37]Method: POST [14:24:37]URL: /json_proto [14:24:37]Method is POST - this is cgi request [14:24:37]url: /json_proto [14:24:37]query_string will be loaded in cgi processing [14:24:37]execute_cgi json_proto POST (null) [14:24:37]execute_cgi path=json_proto method=POST [14:24:37]POST find Content-Length [14:24:37]Host: 172.17.46.196:8080 [14:24:37]Content-Length: 630 [14:24:37]Content-Type: application/json [14:24:37] [14:24:37]POST finish read [14:24:37]Found Content-Length = 630 [14:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189826", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:37]execute_script... [14:24:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189826", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:37]POST & json_proto [14:24:37]process_json_proto [14:24:37]json parsed OK: [14:24:37]protocol is kg_v1.0 [14:24:37]action value=close_receipt [14:24:37]process_action close_receipt [14:24:37]cmd_close_receipt [14:24:37]MH_GetDate [14:24:37]Write to MH i2c: F0 00 00 99 1F A7 [14:24:37]Write i2c OK [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: F0 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: F0 09 00 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: F0 09 00 99 1F 00 A9 B2 C0 66 07 E8 5D 66 E3 [14:24:37]GetLastDocTimeStamp 1723904536 [14:24:37]current date 1723904681 [14:24:37]FM_GetShiftState [14:24:37]SAM_PROTO_GetShiftState [14:24:37]wFMCommunicate request_size=4 [14:24:37]MH_SAM_APDU [14:24:37]CAPDU: 80 13 01 00 [14:24:37]Write to MH i2c: E2 08 00 9A 1F 80 13 01 00 00 00 00 00 36 [14:24:37]Write i2c OK [14:24:37]MH_I2C_Read... [14:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:37]Read from MH i2c: E2 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: E2 0E 00 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: E2 0E 00 9A 1F 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 7B [14:24:37]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:24:37]wFMCommunicate OK [14:24:37]SAM_PROTO_GetShiftState done [14:24:37]FM_GetShiftState done [14:24:37]opened in 1723853354 [14:24:37]opened+sec_in_day 1723939754 [14:24:37]quantity*price = 5000 [14:24:37]sum+1 = 5001 [14:24:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 76 17.08.2024 14:24 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49639 ФПД: 27390948711197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T142441&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49639&fm=27390948711197&tin=02508201610067®Number=0000000000092546&sum=5000 0 [14:24:38]StoreToDocumentArchive [14:24:38]shift 465 fd 49639 [14:24:38]save to /storage/0465/doc_00049639 [14:24:38]save last doc name /storage/0465/doc_00049639 to /storage/kkm_last_doc_name [14:24:38]save OK [14:24:38]Clear old archive folders... [14:24:38]ProcessDocumentItem done err = 0, tmpTLVsize=269 [14:24:38]tlvbuf is 0180AE40 [14:24:38]SAM_PROTO_ClearQueue [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 09 00 00 [14:24:38]Write to MH i2c: E2 08 00 A7 1F 80 09 00 00 00 00 00 00 38 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 A7 1F 00 90 00 3A [14:24:38]RAPDU: 90 00 [14:24:38]wFMCommunicate OK [14:24:38]SAM_PROTO_ClearQueue done [14:24:38]KKMCreateOFDPacket [14:24:38]OFDProtocolAddRootSTLVToBuf [14:24:38]FM_MakeSignedData [14:24:38]FM_MakeSignedData [14:24:38]SAM_PROTO_SignData [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 0D 01 02 [14:24:38]Write to MH i2c: E2 08 00 A8 1F 80 0D 01 02 00 00 00 00 40 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 03 00 A8 1F 00 90 00 3B [14:24:38]RAPDU: 90 00 [14:24:38]wFMCommunicate OK [14:24:38]wFMCommunicate request_size=255 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 A9 B2 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [14:24:38]Write to MH i2c: E2 02 01 A9 1F 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 A9 B2 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 F7 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 A9 1F 00 90 00 3C [14:24:39]RAPDU: 90 00 [14:24:39]wFMCommunicate OK [14:24:39]wFMCommunicate request_size=28 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 E7 C1 00 00 35 04 06 00 18 E9 73 C4 9B 1D [14:24:39]Write to MH i2c: E2 1F 00 AA 1F 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 E7 C1 00 00 35 04 06 00 18 E9 73 C4 9B 1D 00 00 60 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 AA 1F 00 90 00 3D [14:24:39]RAPDU: 90 00 [14:24:39]wFMCommunicate OK [14:24:39]wFMCommunicate request_size=4 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 0D 03 02 [14:24:39]Write to MH i2c: E2 08 00 AB 1F 80 0D 03 02 00 00 00 00 45 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 0B 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 0B 00 AB 1F 00 A4 E0 4B 18 1A 76 C3 1F 90 00 9F [14:24:39]RAPDU: A4 E0 4B 18 1A 76 C3 1F 90 00 [14:24:39]wFMCommunicate OK [14:24:39]SAM_PROTO_SignData done [14:24:39]FM_MakeSignedData done [14:24:39]CreateOFDProtocolMessage [14:24:39]wFMCommunicate request_size=4 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 11 00 00 [14:24:39]Write to MH i2c: E2 08 00 AC 1F 80 11 00 00 00 00 00 00 45 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 17 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 17 00 AC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 90 [14:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:24:39]wFMCommunicate OK [14:24:39]CreateOFDProtocolMessage done [14:24:39]OFDSenderStorePacket 49639 [14:24:39]StoreOFDPacket docnum=49639 [14:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 82 09 19 01 95 05 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 A9 B2 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C1 00 00 35 04 06 00 18 E9 73 C4 9B 1D A4 E0 4B 18 1A 76 C3 1F [14:24:39]CheckFolder [14:24:39]dirname=/storage/ofd_packets [14:24:39]CheckFolder done [14:24:39]ProducePacketName [14:24:39]name=ofd_packets/00049639 [14:24:39]NVStorageSaveData ofd_packets/00049639 [14:24:39]File name is /storage/ofd_packets/00049639 [14:24:39]Write 319 bytes [14:24:39]NVStorageSaveData done [14:24:39]OFDSenderStorePacket done [14:24:39]KKMCreateOFDPacket done [14:24:39]NVStorageSaveData kkm_last_timestamp [14:24:39]File name is /storage/kkm_last_timestamp [14:24:39]Write 4 bytes [14:24:39]NVStorageSaveData done [14:24:39]ExternCall_PrintAddStr [14:24:39]wPrintStart [14:24:39]Write to MH i2c: 01 00 00 AD 1F CC [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: 01 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: 01 07 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: 01 07 00 AD 1F 00 00 00 00 00 FF 0F E1 [14:24:39]RasterBufferAndPrint [14:24:39]line Счет N : (3)189826 [14:24:39]line ИНН: 02508201610067 [14:24:39]line Контрольно-Кассовый Чек [14:24:39]line ПРОДАЖА [14:24:39]line Товар: 4700000160358 [14:24:39]line Вода Легенда 1л [14:24:39]line 1.000 * 50.00 [14:24:39]line = 50.00 [14:24:39]line НДС 12% НСП 1% [14:24:39]line > о реализуемом товаре [14:24:39]line ИТОГО: 50.00 [14:24:39]line НСП 1% : 0.44 [14:24:39]line НДС 12% : 5.31 [14:24:39]line Наличными: 50.00 [14:24:39]line Безнал.: 0.00 [14:24:39]line Место: АЗС № 95 "Партнер Нефть" [14:24:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:24:39]line СНО: Общий режим [14:24:39]line Чек 76 17.08.2024 14:24 [14:24:39]line Смена: 465 ФФД: 1.0 [14:24:39]line ЗНМ: 0300000078 [14:24:39]line РНМ: 0000000000092546 [14:24:39]line Версия ККМ: 001 [14:24:39]line ФМ: 0000000000871800 [14:24:39]line ФД: 49639 [14:24:39]line ФПД: 27390948711197 [14:24:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T142441&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49639&fm=27390948711197&tin=02508201610067®Number=0000000000092546&sum=5000 [14:24:39]line 0 [14:24:39]OFD Sender: Processing packet 49639 [packets to send 21, broken 20] [14:24:39]ProducePacketName [14:24:39]name=ofd_packets/00049639 [14:24:39]OFD Sender: To server: pG, [14:24:39]CommunicateWithHost lk.salyk.kg:30040 [14:24:39]ConnectInit lk.salyk.kg [14:24:39]written 0, free lines is 4095 [14:24:39]Connected sock=10 [14:24:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 82 09 19 01 95 05 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 A9 B2 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C1 00 00 35 04 06 00 18 E9 73 C4 9B 1D A4 E0 4B 18 1A 76 C3 1F [14:24:40]Write to MH i2c: 01 00 00 D5 1F F4 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 07 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 07 00 D5 1F 00 00 00 00 00 E5 0C EC [14:24:40]RasterBufferAndPrint [14:24:40]line [14:24:40]line [14:24:40]line [14:24:40]line [14:24:40]line [14:24:40]written 0, free lines is 3307 [14:24:40]MH_Cut [14:24:40]Write to MH i2c: D1 01 00 DC 1F 01 CD [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: D1 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: D1 01 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: D1 01 00 DC 1F 00 CC [14:24:40]Write to MH i2c: 01 00 00 DD 1F FC [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 65 D2 47 00 D2 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C1 00 00 F4 03 04 00 E5 5D C0 66 B6 04 01 00 00 11 2D 46 34 06 34 C0 E1 [14:24:40]CommunicateWithHost err = 0 [14:24:40]CheckOFDResponse [14:24:40]1017 (14) - 77093643461234 [14:24:40]1041 (16) - 0000000000871800 [14:24:40]1040 (4) - 49639 [14:24:40]1012 (4) - 17.08.2024 08:23 [14:24:40]1206 (1) - 0 [14:24:40]OFD Sender: Remove packet 49639 [14:24:40]ProducePacketName [14:24:40]name=ofd_packets/00049639 [14:24:40]NVStorageDeleteData [14:24:40]OFD Sender: No OFD packet to send [14:24:40]*** Cut start [14:24:40]*** Purtial cut [14:24:40]*** Stage 1: CUTSNS_PIN = 1 [14:24:41]Read from MH i2c: 01 [14:24:41]MH_I2C_Read... [14:24:41]*** Stop cut motor [14:24:41]*** Cut end [14:24:41]Read from MH i2c: 01 07 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: 01 07 00 DD 1F 00 00 00 00 00 FF 0F 11 [14:24:41]process_action close_receipt done [14:24:41]requested_data is exist [14:24:41]produce_requested_data [14:24:41]requested_item fm.sn is exist - process it [14:24:41]wFMCommunicate request_size=4 [14:24:41]MH_SAM_APDU [14:24:41]CAPDU: 80 11 00 00 [14:24:41]Write to MH i2c: E2 08 00 DE 1F 80 11 00 00 00 00 00 00 77 [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 17 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 17 00 DE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C2 [14:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:24:41]wFMCommunicate OK [14:24:41]requested_item fd.num is exist - process it [14:24:41]SAM_PROTO_GetFieldsCounters [14:24:41]wFMCommunicate request_size=4 [14:24:41]MH_SAM_APDU [14:24:41]CAPDU: 80 13 00 00 [14:24:41]Write to MH i2c: E2 08 00 DF 1F 80 13 00 00 00 00 00 00 7A [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 62 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 62 00 DF 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E7 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [14:24: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E7 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:41]wFMCommunicate OK [14:24:41]SAM_PROTO_GetFieldsCounters done [14:24:41]requested_item shift.num is exist - process it [14:24:41]requested_item shift.opened is exist - process it [14:24:41]req_shift_opened [14:24:41]FM_GetShiftState [14:24:41]SAM_PROTO_GetShiftState [14:24:41]wFMCommunicate request_size=4 [14:24:41]MH_SAM_APDU [14:24:41]CAPDU: 80 13 01 00 [14:24:41]Write to MH i2c: E2 08 00 E0 1F 80 13 01 00 00 00 00 00 7C [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 0E 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 0E 00 E0 1F 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 C1 [14:24:41]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:24:41]wFMCommunicate OK [14:24:41]SAM_PROTO_GetShiftState done [14:24:41]FM_GetShiftState done [14:24:41]req_shift_opened done [14:24:41]requested_item shift.open_date is exist - process it [14:24:41]req_shift_open_date [14:24:41]req_shift_open_date done [14:24:41]produce_requested_data done [14:24:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49639,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [14:24:41]process_action_free close_receipt [14:24:41]json_value_free [14:24:41]json_value_free done [14:24:41]process_json_proto returns [14:24:41]Send response to host [14:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49639,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [14:24:41]free response buf [14:24:41]execute_script done [14:24:41]execute_script returns [14:24:41]free content buf [14:24:41]Sock 7.Close socket [14:24:41]Sock 7.Thread stoped [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:42]accept exits with 9 [14:28:42]New connection [14:28:42]New thread 3066944868 created [14:28:42]Thread 3066801508 joined [14:28:42]Waiting for new connection... [14:28:42] Sock 9.Parse request [14:28:42]Sock 9.Check first char [14:28:42]Sock 9.First char is OK [14:28:42]request: POST /json_proto HTTP/1.0 [14:28:42]Method: POST [14:28:42]URL: /json_proto [14:28:42]Method is POST - this is cgi request [14:28:42]url: /json_proto [14:28:42]query_string will be loaded in cgi processing [14:28:42]execute_cgi json_proto POST (null) [14:28:42]execute_cgi path=json_proto method=POST [14:28:42]POST find Content-Length [14:28:42]Host: 172.17.46.196:8080 [14:28:42]Content-Length: 669 [14:28:42]Content-Type: application/json [14:28:42] [14:28:42]POST finish read [14:28:42]Found Content-Length = 669 [14:28:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189827", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:42]execute_script... [14:28:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189827", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:42]POST & json_proto [14:28:42]process_json_proto [14:28:42]json parsed OK: [14:28:42]protocol is kg_v1.0 [14:28:42]action value=close_receipt [14:28:42]process_action close_receipt [14:28:42]cmd_close_receipt [14:28:42]MH_GetDate [14:28:42]Write to MH i2c: F0 00 00 E1 1F EF [14:28:42]Write i2c OK [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: F0 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: F0 09 00 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: F0 09 00 E1 1F 00 9E B3 C0 66 07 E8 5D 66 21 [14:28:42]GetLastDocTimeStamp 1723904681 [14:28:42]current date 1723904926 [14:28:42]FM_GetShiftState [14:28:42]SAM_PROTO_GetShiftState [14:28:42]wFMCommunicate request_size=4 [14:28:42]MH_SAM_APDU [14:28:42]CAPDU: 80 13 01 00 [14:28:42]Write to MH i2c: E2 08 00 E2 1F 80 13 01 00 00 00 00 00 7E [14:28:42]Write i2c OK [14:28:42]MH_I2C_Read... [14:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:42]Read from MH i2c: E2 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 0E 00 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: E2 0E 00 E2 1F 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 C3 [14:28:42]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:28:42]wFMCommunicate OK [14:28:42]SAM_PROTO_GetShiftState done [14:28:42]FM_GetShiftState done [14:28:42]opened in 1723853354 [14:28:42]opened+sec_in_day 1723939754 [14:28:42]quantity*price = 6500 [14:28:42]sum+1 = 6501 [14:28:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 77 17.08.2024 14:28 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49640 ФПД: 66545585238462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T142846&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49640&fm=66545585238462&tin=02508201610067®Number=0000000000092546&sum=6500 0 [14:28:43]StoreToDocumentArchive [14:28:43]shift 465 fd 49640 [14:28:43]save to /storage/0465/doc_00049640 [14:28:43]save last doc name /storage/0465/doc_00049640 to /storage/kkm_last_doc_name [14:28:43]save OK [14:28:43]Clear old archive folders... [14:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:28:43]tlvbuf is B6F53010 [14:28:43]SAM_PROTO_ClearQueue [14:28:43]wFMCommunicate request_size=4 [14:28:43]MH_SAM_APDU [14:28:43]CAPDU: 80 09 00 00 [14:28:43]Write to MH i2c: E2 08 00 EF 1F 80 09 00 00 00 00 00 00 80 [14:28:43]Write i2c OK [14:28:43]MH_I2C_Read... [14:28:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:44]Read from MH i2c: E2 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 03 00 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 03 00 EF 1F 00 90 00 82 [14:28:44]RAPDU: 90 00 [14:28:44]wFMCommunicate OK [14:28:44]SAM_PROTO_ClearQueue done [14:28:44]KKMCreateOFDPacket [14:28:44]OFDProtocolAddRootSTLVToBuf [14:28:44]FM_MakeSignedData [14:28:44]FM_MakeSignedData [14:28:44]SAM_PROTO_SignData [14:28:44]wFMCommunicate request_size=4 [14:28:44]MH_SAM_APDU [14:28:44]CAPDU: 80 0D 01 02 [14:28:44]Write to MH i2c: E2 08 00 F0 1F 80 0D 01 02 00 00 00 00 88 [14:28:44]Write i2c OK [14:28:44]MH_I2C_Read... [14:28:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:44]Read from MH i2c: E2 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 03 00 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 03 00 F0 1F 00 90 00 83 [14:28:44]RAPDU: 90 00 [14:28:44]wFMCommunicate OK [14:28:44]wFMCommunicate request_size=255 [14:28:44]MH_SAM_APDU [14:28:44]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 9E B3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [14:28:44]Write to MH i2c: E2 02 01 F1 1F 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 9E B3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 AB [14:28:44]Write i2c OK [14:28:44]MH_I2C_Read... [14:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:44]Read from MH i2c: E2 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 03 00 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 03 00 F1 1F 00 90 00 84 [14:28:44]RAPDU: 90 00 [14:28:44]wFMCommunicate OK [14:28:44]wFMCommunicate request_size=43 [14:28:44]MH_SAM_APDU [14:28:44]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C1 00 00 35 04 06 00 3C 85 D9 F8 31 BE [14:28:44]Write to MH i2c: E2 2E 00 F2 1F 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C1 00 00 35 04 06 00 3C 85 D9 F8 31 BE 00 00 95 [14:28:44]Write i2c OK [14:28:44]MH_I2C_Read... [14:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:44]Read from MH i2c: E2 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 03 00 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 03 00 F2 1F 00 90 00 85 [14:28:44]RAPDU: 90 00 [14:28:44]wFMCommunicate OK [14:28:44]wFMCommunicate request_size=4 [14:28:44]MH_SAM_APDU [14:28:44]CAPDU: 80 0D 03 02 [14:28:44]Write to MH i2c: E2 08 00 F3 1F 80 0D 03 02 00 00 00 00 8D [14:28:44]Write i2c OK [14:28:44]MH_I2C_Read... [14:28:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:44]Read from MH i2c: E2 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 0B 00 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 0B 00 F3 1F 00 8C B4 3E 07 E9 78 21 E7 90 00 7C [14:28:44]RAPDU: 8C B4 3E 07 E9 78 21 E7 90 00 [14:28:44]wFMCommunicate OK [14:28:44]SAM_PROTO_SignData done [14:28:44]FM_MakeSignedData done [14:28:44]CreateOFDProtocolMessage [14:28:44]wFMCommunicate request_size=4 [14:28:44]MH_SAM_APDU [14:28:44]CAPDU: 80 11 00 00 [14:28:44]Write to MH i2c: E2 08 00 F4 1F 80 11 00 00 00 00 00 00 8D [14:28:44]Write i2c OK [14:28:44]MH_I2C_Read... [14:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:44]Read from MH i2c: E2 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 17 00 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: E2 17 00 F4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D8 [14:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:28:44]wFMCommunicate OK [14:28:44]CreateOFDProtocolMessage done [14:28:44]OFDSenderStorePacket 49640 [14:28:44]StoreOFDPacket docnum=49640 [14:28:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 F0 66 28 01 C4 32 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 9E B3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C1 00 00 35 04 06 00 3C 85 D9 F8 31 BE 8C B4 3E 07 E9 78 21 E7 [14:28:44]CheckFolder [14:28:44]dirname=/storage/ofd_packets [14:28:44]CheckFolder done [14:28:44]ProducePacketName [14:28:44]name=ofd_packets/00049640 [14:28:44]NVStorageSaveData ofd_packets/00049640 [14:28:44]File name is /storage/ofd_packets/00049640 [14:28:44]Write 334 bytes [14:28:44]NVStorageSaveData done [14:28:44]OFDSenderStorePacket done [14:28:44]KKMCreateOFDPacket done [14:28:44]NVStorageSaveData kkm_last_timestamp [14:28:44]File name is /storage/kkm_last_timestamp [14:28:44]Write 4 bytes [14:28:44]NVStorageSaveData done [14:28:44]ExternCall_PrintAddStr [14:28:44]wPrintStart [14:28:44]Write to MH i2c: 01 00 00 F5 1F 14 [14:28:44]Write i2c OK [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: 01 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: 01 07 00 [14:28:44]MH_I2C_Read... [14:28:44]Read from MH i2c: 01 07 00 F5 1F 00 00 00 00 00 FF 0F 29 [14:28:44]RasterBufferAndPrint [14:28:44]line Счет N : (3)189827 [14:28:44]line ИНН: 02508201610067 [14:28:44]line Контрольно-Кассовый Чек [14:28:44]line ПРОДАЖА [14:28:44]line Товар: 4700040114137 [14:28:44]line Султан чай 1л. зел лимон [14:28:44]line 1.000 * 65.00 [14:28:44]line = 65.00 [14:28:44]line НДС 12% НСП 1% [14:28:44]line > о реализуемом товаре [14:28:44]line ИТОГО: 65.00 [14:28:44]line НСП 1% : 0.57 [14:28:44]line НДС 12% : 6.90 [14:28:44]line Наличными: 65.00 [14:28:44]line Безнал.: 0.00 [14:28:44]line Место: АЗС № 95 "Партнер Нефть" [14:28:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:28:44]line СНО: Общий режим [14:28:44]line Чек 77 17.08.2024 14:28 [14:28:44]line Смена: 465 ФФД: 1.0 [14:28:44]line ЗНМ: 0300000078 [14:28:44]line РНМ: 0000000000092546 [14:28:44]line Версия ККМ: 001 [14:28:44]line ФМ: 0000000000871800 [14:28:44]line ФД: 49640 [14:28:44]line ФПД: 66545585238462 [14:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T142846&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49640&fm=66545585238462&tin=02508201610067®Number=0000000000092546&sum=6500 [14:28:44]line 0 [14:28:44]OFD Sender: Processing packet 49640 [packets to send 21, broken 20] [14:28:44]ProducePacketName [14:28:44]name=ofd_packets/00049640 [14:28:44]OFD Sender: To server: pG, [14:28:44]CommunicateWithHost lk.salyk.kg:30040 [14:28:44]ConnectInit lk.salyk.kg [14:28:44]written 0, free lines is 4095 [14:28:45]Connected sock=10 [14:28:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 F0 66 28 01 C4 32 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 9E B3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C1 00 00 35 04 06 00 3C 85 D9 F8 31 BE 8C B4 3E 07 E9 78 21 E7 [14:28:45]Write to MH i2c: 01 00 00 1D 20 3D [14:28:45]Write i2c OK [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: 01 [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: 01 07 00 [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: 01 07 00 1D 20 00 00 00 00 00 F7 0C 47 [14:28:45]RasterBufferAndPrint [14:28:45]line [14:28:45]line [14:28:45]line [14:28:45]line [14:28:45]line [14:28:45]written 0, free lines is 3328 [14:28:45]MH_Cut [14:28:45]Write to MH i2c: D1 01 00 24 20 01 16 [14:28:45]Write i2c OK [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: D1 [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: D1 01 00 [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: D1 01 00 24 20 00 15 [14:28:45]Write to MH i2c: 01 00 00 25 20 45 [14:28:45]Write i2c OK [14:28:45]MH_I2C_Read... [14:28:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 37 BC 47 00 F7 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C1 00 00 F4 03 04 00 DA 5E C0 66 B6 04 01 00 00 96 45 10 DC 15 01 80 2F [14:28:45]CommunicateWithHost err = 0 [14:28:45]CheckOFDResponse [14:28:45]1017 (14) - 77093643461234 [14:28:45]1041 (16) - 0000000000871800 [14:28:45]1040 (4) - 49640 [14:28:45]1012 (4) - 17.08.2024 08:27 [14:28:45]1206 (1) - 0 [14:28:45]OFD Sender: Remove packet 49640 [14:28:45]ProducePacketName [14:28:45]name=ofd_packets/00049640 [14:28:45]NVStorageDeleteData [14:28:45]OFD Sender: No OFD packet to send [14:28:46]*** Cut start [14:28:46]*** Purtial cut [14:28:46]*** CUTSNS_PIN = 0 [14:28:46]*** Stage 1: CUTSNS_PIN = 1 [14:28:48]Read from MH i2c: 01 [14:28:48]MH_I2C_Read... [14:28:48]*** Stop cut motor [14:28:48]*** Cut end [14:28:48]Read from MH i2c: 01 07 00 [14:28:48]MH_I2C_Read... [14:28:48]Read from MH i2c: 01 07 00 25 20 00 00 00 00 00 FF 0F 5A [14:28:48]process_action close_receipt done [14:28:48]requested_data is exist [14:28:48]produce_requested_data [14:28:48]requested_item fm.sn is exist - process it [14:28:48]wFMCommunicate request_size=4 [14:28:48]MH_SAM_APDU [14:28:48]CAPDU: 80 11 00 00 [14:28:48]Write to MH i2c: E2 08 00 26 20 80 11 00 00 00 00 00 00 C0 [14:28:48]Write i2c OK [14:28:48]MH_I2C_Read... [14:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:48]Read from MH i2c: E2 [14:28:48]MH_I2C_Read... [14:28:48]Read from MH i2c: E2 17 00 [14:28:48]MH_I2C_Read... [14:28:48]Read from MH i2c: E2 17 00 26 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0B [14:28:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:28:48]wFMCommunicate OK [14:28:48]requested_item fd.num is exist - process it [14:28:48]SAM_PROTO_GetFieldsCounters [14:28:48]wFMCommunicate request_size=4 [14:28:48]MH_SAM_APDU [14:28:48]CAPDU: 80 13 00 00 [14:28:48]Write to MH i2c: E2 08 00 27 20 80 13 00 00 00 00 00 00 C3 [14:28:48]Write i2c OK [14:28:48]MH_I2C_Read... [14:28:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:48]Read from MH i2c: E2 [14:28:48]MH_I2C_Read... [14:28:48]Read from MH i2c: E2 62 00 [14:28:48]MH_I2C_Read... [14:28:48]Read from MH i2c: E2 62 00 27 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E8 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [14:28: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E8 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:48]wFMCommunicate OK [14:28:48]SAM_PROTO_GetFieldsCounters done [14:28:48]requested_item shift.num is exist - process it [14:28:48]requested_item shift.opened is exist - process it [14:28:48]req_shift_opened [14:28:48]FM_GetShiftState [14:28:48]SAM_PROTO_GetShiftState [14:28:48]wFMCommunicate request_size=4 [14:28:48]MH_SAM_APDU [14:28:48]CAPDU: 80 13 01 00 [14:28:48]Write to MH i2c: E2 08 00 28 20 80 13 01 00 00 00 00 00 C5 [14:28:48]Write i2c OK [14:28:48]MH_I2C_Read... [14:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:48]Read from MH i2c: E2 [14:28:48]MH_I2C_Read... [14:28:48]Read from MH i2c: E2 0E 00 [14:28:48]MH_I2C_Read... [14:28:48]Read from MH i2c: E2 0E 00 28 20 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 0A [14:28:48]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:28:48]wFMCommunicate OK [14:28:48]SAM_PROTO_GetShiftState done [14:28:48]FM_GetShiftState done [14:28:48]req_shift_opened done [14:28:48]requested_item shift.open_date is exist - process it [14:28:48]req_shift_open_date [14:28:48]req_shift_open_date done [14:28:48]produce_requested_data done [14:28:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49640,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [14:28:48]process_action_free close_receipt [14:28:48]json_value_free [14:28:48]json_value_free done [14:28:48]process_json_proto returns [14:28:48]Send response to host [14:28:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49640,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [14:28:48]free response buf [14:28:48]execute_script done [14:28:48]execute_script returns [14:28:48]free content buf [14:28:48]Sock 9.Close socket [14:28:48]Sock 9.Thread stoped [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:38]accept exits with 7 [14:34:38]New connection [14:34:38]New thread 3066801508 created [14:34:38]Thread 3066944868 joined [14:34:38]Waiting for new connection... [14:34:38] Sock 7.Parse request [14:34:38]Sock 7.Check first char [14:34:38]Sock 7.First char is OK [14:34:38]request: POST /json_proto HTTP/1.0 [14:34:38]Method: POST [14:34:38]URL: /json_proto [14:34:38]Method is POST - this is cgi request [14:34:38]url: /json_proto [14:34:38]query_string will be loaded in cgi processing [14:34:38]execute_cgi json_proto POST (null) [14:34:38]execute_cgi path=json_proto method=POST [14:34:38]POST find Content-Length [14:34:38]Host: 172.17.46.196:8080 [14:34:38]Content-Length: 756 [14:34:38]Content-Type: application/json [14:34:38] [14:34:38]POST finish read [14:34:38]Found Content-Length = 756 [14:34:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30138640", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:38]execute_script... [14:34: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)11326256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30138640", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:38]POST & json_proto [14:34:38]process_json_proto [14:34:38]json parsed OK: [14:34:38]protocol is kg_v1.0 [14:34:38]action value=close_receipt [14:34:38]process_action close_receipt [14:34:38]cmd_close_receipt [14:34:38]MH_GetDate [14:34:38]Write to MH i2c: F0 00 00 29 20 38 [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: F0 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: F0 09 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: F0 09 00 29 20 00 02 B5 C0 66 07 E8 5D 66 D0 [14:34:38]GetLastDocTimeStamp 1723904926 [14:34:38]current date 1723905282 [14:34:38]FM_GetShiftState [14:34:38]SAM_PROTO_GetShiftState [14:34:38]wFMCommunicate request_size=4 [14:34:38]MH_SAM_APDU [14:34:38]CAPDU: 80 13 01 00 [14:34:38]Write to MH i2c: E2 08 00 2A 20 80 13 01 00 00 00 00 00 C7 [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:38]Read from MH i2c: E2 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 0E 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 0E 00 2A 20 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 0C [14:34:38]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:34:38]wFMCommunicate OK [14:34:38]SAM_PROTO_GetShiftState done [14:34:38]FM_GetShiftState done [14:34:38]opened in 1723853354 [14:34:38]opened+sec_in_day 1723939754 [14:34:38]quantity*price = 0 [14:34:38]sum+1 = 1 [14:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 78 17.08.2024 14:34 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30138640 ФМ: 0000000000871800 ФД: 49641 ФПД: 191226846728023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T143442&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49641&fm=191226846728023&tin=02508201610067®Number=0000000000092546&sum=0 [14:34:39]StoreToDocumentArchive [14:34:39]shift 465 fd 49641 [14:34:39]save to /storage/0465/doc_00049641 [14:34:39]save last doc name /storage/0465/doc_00049641 to /storage/kkm_last_doc_name [14:34:39]save OK [14:34:39]Clear old archive folders... [14:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:39]tlvbuf is 01821180 [14:34:39]SAM_PROTO_ClearQueue [14:34:39]wFMCommunicate request_size=4 [14:34:39]MH_SAM_APDU [14:34:39]CAPDU: 80 09 00 00 [14:34:39]Write to MH i2c: E2 08 00 37 20 80 09 00 00 00 00 00 00 C9 [14:34:39]Write i2c OK [14:34:39]MH_I2C_Read... [14:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:39]Read from MH i2c: E2 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 03 00 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 03 00 37 20 00 90 00 CB [14:34:39]RAPDU: 90 00 [14:34:39]wFMCommunicate OK [14:34:39]SAM_PROTO_ClearQueue done [14:34:39]KKMCreateOFDPacket [14:34:39]OFDProtocolAddRootSTLVToBuf [14:34:39]FM_MakeSignedData [14:34:39]FM_MakeSignedData [14:34:39]SAM_PROTO_SignData [14:34:39]wFMCommunicate request_size=4 [14:34:39]MH_SAM_APDU [14:34:39]CAPDU: 80 0D 01 02 [14:34:39]Write to MH i2c: E2 08 00 38 20 80 0D 01 02 00 00 00 00 D1 [14:34:39]Write i2c OK [14:34:39]MH_I2C_Read... [14:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:39]Read from MH i2c: E2 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 03 00 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 03 00 38 20 00 90 00 CC [14:34:39]RAPDU: 90 00 [14:34:39]wFMCommunicate OK [14:34:39]wFMCommunicate request_size=255 [14:34:39]MH_SAM_APDU [14:34:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 4E 00 00 00 F4 03 04 00 02 B5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C1 00 00 35 04 06 00 AD [14:34:39]Write to MH i2c: E2 02 01 39 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 4E 00 00 00 F4 03 04 00 02 B5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C1 00 00 35 04 06 00 AD 00 00 9A [14:34:39]Write i2c OK [14:34:39]MH_I2C_Read... [14:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:39]Read from MH i2c: E2 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 03 00 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 03 00 39 20 00 90 00 CD [14:34:39]RAPDU: 90 00 [14:34:39]wFMCommunicate OK [14:34:39]wFMCommunicate request_size=10 [14:34:39]MH_SAM_APDU [14:34:39]CAPDU: 80 0D 02 02 05 EB 78 45 4F 57 [14:34:39]Write to MH i2c: E2 0D 00 3A 20 80 0D 02 02 05 00 EB 78 45 4F 57 00 00 2C [14:34:39]Write i2c OK [14:34:39]MH_I2C_Read... [14:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:39]Read from MH i2c: E2 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 03 00 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 03 00 3A 20 00 90 00 CE [14:34:39]RAPDU: 90 00 [14:34:39]wFMCommunicate OK [14:34:39]wFMCommunicate request_size=4 [14:34:39]MH_SAM_APDU [14:34:39]CAPDU: 80 0D 03 02 [14:34:39]Write to MH i2c: E2 08 00 3B 20 80 0D 03 02 00 00 00 00 D6 [14:34:39]Write i2c OK [14:34:39]MH_I2C_Read... [14:34:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:39]Read from MH i2c: E2 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 0B 00 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 0B 00 3B 20 00 4D E2 14 FF 9F AB 1C F4 90 00 73 [14:34:39]RAPDU: 4D E2 14 FF 9F AB 1C F4 90 00 [14:34:39]wFMCommunicate OK [14:34:39]SAM_PROTO_SignData done [14:34:39]FM_MakeSignedData done [14:34:39]CreateOFDProtocolMessage [14:34:39]wFMCommunicate request_size=4 [14:34:39]MH_SAM_APDU [14:34:39]CAPDU: 80 11 00 00 [14:34:39]Write to MH i2c: E2 08 00 3C 20 80 11 00 00 00 00 00 00 D6 [14:34:39]Write i2c OK [14:34:39]MH_I2C_Read... [14:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:39]Read from MH i2c: E2 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 17 00 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 17 00 3C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 21 [14:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:34:39]wFMCommunicate OK [14:34:39]CreateOFDProtocolMessage done [14:34:39]OFDSenderStorePacket 49641 [14:34:39]StoreOFDPacket docnum=49641 [14:34:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 D4 B7 07 01 9D 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 4E 00 00 00 F4 03 04 00 02 B5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C1 00 00 35 04 06 00 AD EB 78 45 4F 57 4D E2 14 FF 9F AB 1C F4 [14:34:39]CheckFolder [14:34:39]dirname=/storage/ofd_packets [14:34:39]CheckFolder done [14:34:39]ProducePacketName [14:34:39]name=ofd_packets/00049641 [14:34:39]NVStorageSaveData ofd_packets/00049641 [14:34:39]File name is /storage/ofd_packets/00049641 [14:34:39]Write 301 bytes [14:34:39]NVStorageSaveData done [14:34:39]OFDSenderStorePacket done [14:34:39]KKMCreateOFDPacket done [14:34:39]NVStorageSaveData kkm_last_timestamp [14:34:39]File name is /storage/kkm_last_timestamp [14:34:39]Write 4 bytes [14:34:39]NVStorageSaveData done [14:34:39]ExternCall_PrintAddStr [14:34:39]wPrintStart [14:34:39]Write to MH i2c: 01 00 00 3D 20 5D [14:34:39]Write i2c OK [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: 01 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: 01 07 00 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: 01 07 00 3D 20 00 00 00 00 00 FF 0F 72 [14:34:39]RasterBufferAndPrint [14:34:39]line Счет N : (1)11326256 [14:34:39]line ИНН: 02508201610067 [14:34:39]line Контрольно-Кассовый Чек [14:34:39]line ПРОДАЖА [14:34:39]line ТРК (МРК, ГНК) : 41 [14:34:39]line Товар: 2710124500 [14:34:39]line Аи-95-К-5 [14:34:39]line 20.000 * 0.00 [14:34:39]line = 0.00 [14:34:39]line НДС 12% НСП 1% [14:34:39]line > о реализуемом товаре [14:34:39]line ИТОГО: 0.00 [14:34:39]line НСП 1% : 0.00 [14:34:39]line НДС 12% : 0.00 [14:34:39]line Наличными: 0.00 [14:34:39]line Безнал.: 0.00 [14:34:39]line Место: АЗС № 95 "Партнер Нефть" [14:34:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:34:39]line СНО: Общий режим [14:34:39]line Чек 78 17.08.2024 14:34 [14:34:39]line Смена: 465 ФФД: 1.0 [14:34:39]line ЗНМ: 0300000078 [14:34:39]line РНМ: 0000000000092546 [14:34:39]line Версия ККМ: 001 [14:34:39]line Талоны: ТК ГПНА Online [14:34:39]line 30138640 [14:34:39]line ФМ: 0000000000871800 [14:34:39]line ФД: 49641 [14:34:39]line ФПД: 191226846728023 [14:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T143442&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49641&fm=191226846728023&tin=02508201610067®Number=0000000000092546&sum=0 [14:34:40]written 0, free lines is 4095 [14:34:40]OFD Sender: Processing packet 49641 [packets to send 21, broken 20] [14:34:40]ProducePacketName [14:34:40]name=ofd_packets/00049641 [14:34:40]OFD Sender: To server: pG, [14:34:40]CommunicateWithHost lk.salyk.kg:30040 [14:34:40]ConnectInit lk.salyk.kg [14:34:40]Connected sock=10 [14:34:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 D4 B7 07 01 9D 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 4E 00 00 00 F4 03 04 00 02 B5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C1 00 00 35 04 06 00 AD EB 78 45 4F 57 4D E2 14 FF 9F AB 1C F4 [14:34:40]Write to MH i2c: 01 00 00 67 20 87 [14:34:40]Write i2c OK [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: 01 [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: 01 07 00 [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: 01 07 00 67 20 00 00 00 00 00 D3 0C 6D [14:34:40]RasterBufferAndPrint [14:34:40]line [14:34:40]line [14:34:40]line [14:34:40]line [14:34:40]line [14:34:40]written 0, free lines is 3289 [14:34:40]MH_Cut [14:34:40]Write to MH i2c: D1 01 00 6E 20 01 60 [14:34:40]Write i2c OK [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: D1 [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: D1 01 00 [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: D1 01 00 6E 20 00 5F [14:34:40]Write to MH i2c: 01 00 00 6F 20 8F [14:34:40]Write i2c OK [14:34:40]MH_I2C_Read... [14:34:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 AC 24 47 00 A6 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C1 00 00 F4 03 04 00 3E 60 C0 66 B6 04 01 00 00 20 E0 49 68 8F 48 2A 65 [14:34:40]CommunicateWithHost err = 0 [14:34:40]CheckOFDResponse [14:34:40]1017 (14) - 77093643461234 [14:34:40]1041 (16) - 0000000000871800 [14:34:40]1040 (4) - 49641 [14:34:40]1012 (4) - 17.08.2024 08:33 [14:34:40]1206 (1) - 0 [14:34:40]OFD Sender: Remove packet 49641 [14:34:40]ProducePacketName [14:34:40]name=ofd_packets/00049641 [14:34:40]NVStorageDeleteData [14:34:41]OFD Sender: No OFD packet to send [14:34:41]*** Cut start [14:34:41]*** Purtial cut [14:34:41]*** Stage 1: CUTSNS_PIN = 1 [14:34:41]Read from MH i2c: 01 [14:34:41]MH_I2C_Read... [14:34:41]*** Stop cut motor [14:34:41]*** Cut end [14:34:41]Read from MH i2c: 01 07 00 [14:34:41]MH_I2C_Read... [14:34:41]Read from MH i2c: 01 07 00 6F 20 00 00 00 00 00 FF 0F A4 [14:34:41]process_action close_receipt done [14:34:41]requested_data is exist [14:34:41]produce_requested_data [14:34:41]requested_item fm.sn is exist - process it [14:34:41]wFMCommunicate request_size=4 [14:34:41]MH_SAM_APDU [14:34:41]CAPDU: 80 11 00 00 [14:34:41]Write to MH i2c: E2 08 00 70 20 80 11 00 00 00 00 00 00 0A [14:34:41]Write i2c OK [14:34:41]MH_I2C_Read... [14:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:41]Read from MH i2c: E2 [14:34:41]MH_I2C_Read... [14:34:41]Read from MH i2c: E2 17 00 [14:34:41]MH_I2C_Read... [14:34:41]Read from MH i2c: E2 17 00 70 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 55 [14:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:34:41]wFMCommunicate OK [14:34:41]requested_item fd.num is exist - process it [14:34:41]SAM_PROTO_GetFieldsCounters [14:34:41]wFMCommunicate request_size=4 [14:34:41]MH_SAM_APDU [14:34:41]CAPDU: 80 13 00 00 [14:34:41]Write to MH i2c: E2 08 00 71 20 80 13 00 00 00 00 00 00 0D [14:34:41]Write i2c OK [14:34:41]MH_I2C_Read... [14:34:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:41]Read from MH i2c: E2 [14:34:41]MH_I2C_Read... [14:34:41]Read from MH i2c: E2 62 00 [14:34:41]MH_I2C_Read... [14:34:41]Read from MH i2c: E2 62 00 71 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E9 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [14:34: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E9 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:41]wFMCommunicate OK [14:34:41]SAM_PROTO_GetFieldsCounters done [14:34:41]requested_item shift.num is exist - process it [14:34:41]requested_item shift.opened is exist - process it [14:34:41]req_shift_opened [14:34:41]FM_GetShiftState [14:34:41]SAM_PROTO_GetShiftState [14:34:41]wFMCommunicate request_size=4 [14:34:41]MH_SAM_APDU [14:34:41]CAPDU: 80 13 01 00 [14:34:41]Write to MH i2c: E2 08 00 72 20 80 13 01 00 00 00 00 00 0F [14:34:41]Write i2c OK [14:34:41]MH_I2C_Read... [14:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:41]Read from MH i2c: E2 [14:34:41]MH_I2C_Read... [14:34:41]Read from MH i2c: E2 0E 00 [14:34:41]MH_I2C_Read... [14:34:41]Read from MH i2c: E2 0E 00 72 20 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 54 [14:34:41]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:34:41]wFMCommunicate OK [14:34:41]SAM_PROTO_GetShiftState done [14:34:41]FM_GetShiftState done [14:34:41]req_shift_opened done [14:34:41]requested_item shift.open_date is exist - process it [14:34:41]req_shift_open_date [14:34:41]req_shift_open_date done [14:34:41]produce_requested_data done [14:34:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49641,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [14:34:41]process_action_free close_receipt [14:34:41]json_value_free [14:34:41]json_value_free done [14:34:41]process_json_proto returns [14:34:41]Send response to host [14:34:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49641,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [14:34:41]free response buf [14:34:41]execute_script done [14:34:41]execute_script returns [14:34:41]free content buf [14:34:41]Sock 7.Close socket [14:34:41]Sock 7.Thread stoped [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:36]accept exits with 9 [14:37:36]New connection [14:37:36]New thread 3066944868 created [14:37:36]Thread 3066801508 joined [14:37:36]Waiting for new connection... [14:37:36] Sock 9.Parse request [14:37:36]Sock 9.Check first char [14:37:36]Sock 9.First char is OK [14:37:36]request: POST /json_proto HTTP/1.0 [14:37:36]Method: POST [14:37:36]URL: /json_proto [14:37:36]Method is POST - this is cgi request [14:37:36]url: /json_proto [14:37:36]query_string will be loaded in cgi processing [14:37:36]execute_cgi json_proto POST (null) [14:37:36]execute_cgi path=json_proto method=POST [14:37:36]POST find Content-Length [14:37:36]Host: 172.17.46.196:8080 [14:37:36]Content-Length: 646 [14:37:36]Content-Type: application/json [14:37:36] [14:37:36]POST finish read [14:37:36]Found Content-Length = 646 [14:37:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189828", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 152.00, "quantity" : 1.000, "sum" : 152.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 152.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:36]execute_script... [14:37:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189828", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 152.00, "quantity" : 1.000, "sum" : 152.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 152.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:36]POST & json_proto [14:37:36]process_json_proto [14:37:36]json parsed OK: [14:37:36]protocol is kg_v1.0 [14:37:36]action value=close_receipt [14:37:36]process_action close_receipt [14:37:36]cmd_close_receipt [14:37:36]MH_GetDate [14:37:36]Write to MH i2c: F0 00 00 73 20 82 [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: F0 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: F0 09 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: F0 09 00 73 20 00 B4 B5 C0 66 07 E8 5D 66 CC [14:37:36]GetLastDocTimeStamp 1723905282 [14:37:36]current date 1723905460 [14:37:36]FM_GetShiftState [14:37:36]SAM_PROTO_GetShiftState [14:37:36]wFMCommunicate request_size=4 [14:37:36]MH_SAM_APDU [14:37:36]CAPDU: 80 13 01 00 [14:37:36]Write to MH i2c: E2 08 00 74 20 80 13 01 00 00 00 00 00 11 [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:36]Read from MH i2c: E2 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 0E 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 0E 00 74 20 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 56 [14:37:36]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:37:36]wFMCommunicate OK [14:37:36]SAM_PROTO_GetShiftState done [14:37:36]FM_GetShiftState done [14:37:36]opened in 1723853354 [14:37:36]opened+sec_in_day 1723939754 [14:37:36]quantity*price = 15200 [14:37:36]sum+1 = 15201 [14:37:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 152.00 НСП 1% : 1.34 НДС 12% : 16.14 Наличными: 152.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 79 17.08.2024 14:37 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49642 ФПД: 242833845396758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T143741&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49642&fm=242833845396758&tin=02508201610067®Number=0000000000092546&sum=15200 0 [14:37:38]StoreToDocumentArchive [14:37:38]shift 465 fd 49642 [14:37:38]save to /storage/0465/doc_00049642 [14:37:38]save last doc name /storage/0465/doc_00049642 to /storage/kkm_last_doc_name [14:37:38]save OK [14:37:38]Clear old archive folders... [14:37:38]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:37:38]tlvbuf is 01870A40 [14:37:38]SAM_PROTO_ClearQueue [14:37:38]wFMCommunicate request_size=4 [14:37:38]MH_SAM_APDU [14:37:38]CAPDU: 80 09 00 00 [14:37:38]Write to MH i2c: E2 08 00 81 20 80 09 00 00 00 00 00 00 13 [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:38]Read from MH i2c: E2 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 03 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 03 00 81 20 00 90 00 15 [14:37:38]RAPDU: 90 00 [14:37:38]wFMCommunicate OK [14:37:38]SAM_PROTO_ClearQueue done [14:37:38]KKMCreateOFDPacket [14:37:38]OFDProtocolAddRootSTLVToBuf [14:37:38]FM_MakeSignedData [14:37:38]FM_MakeSignedData [14:37:38]SAM_PROTO_SignData [14:37:38]wFMCommunicate request_size=4 [14:37:38]MH_SAM_APDU [14:37:38]CAPDU: 80 0D 01 02 [14:37:38]Write to MH i2c: E2 08 00 82 20 80 0D 01 02 00 00 00 00 1B [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:38]Read from MH i2c: E2 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 03 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 03 00 82 20 00 90 00 16 [14:37:38]RAPDU: 90 00 [14:37:38]wFMCommunicate OK [14:37:38]wFMCommunicate request_size=255 [14:37:38]MH_SAM_APDU [14:37:38]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 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 B5 B5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 [14:37:38]Write to MH i2c: E2 02 01 83 20 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 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 B5 B5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 00 00 F9 [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:38]Read from MH i2c: E2 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 03 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 03 00 83 20 00 90 00 17 [14:37:38]RAPDU: 90 00 [14:37:38]wFMCommunicate OK [14:37:38]wFMCommunicate request_size=37 [14:37:38]MH_SAM_APDU [14:37:38]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C1 00 00 35 04 06 00 DC DB 29 18 25 16 [14:37:38]Write to MH i2c: E2 28 00 84 20 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C1 00 00 35 04 06 00 DC DB 29 18 25 16 00 00 4B [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:38]Read from MH i2c: E2 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 03 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 03 00 84 20 00 90 00 18 [14:37:38]RAPDU: 90 00 [14:37:38]wFMCommunicate OK [14:37:38]wFMCommunicate request_size=4 [14:37:38]MH_SAM_APDU [14:37:38]CAPDU: 80 0D 03 02 [14:37:38]Write to MH i2c: E2 08 00 85 20 80 0D 03 02 00 00 00 00 20 [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:38]Read from MH i2c: E2 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 0B 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 0B 00 85 20 00 5A 08 7A DB 0C 7B E0 EE 90 00 2D [14:37:38]RAPDU: 5A 08 7A DB 0C 7B E0 EE 90 00 [14:37:38]wFMCommunicate OK [14:37:38]SAM_PROTO_SignData done [14:37:38]FM_MakeSignedData done [14:37:38]CreateOFDProtocolMessage [14:37:38]wFMCommunicate request_size=4 [14:37:38]MH_SAM_APDU [14:37:38]CAPDU: 80 11 00 00 [14:37:38]Write to MH i2c: E2 08 00 86 20 80 11 00 00 00 00 00 00 20 [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:38]Read from MH i2c: E2 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 17 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 17 00 86 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6B [14:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:37:38]wFMCommunicate OK [14:37:38]CreateOFDProtocolMessage done [14:37:38]OFDSenderStorePacket 49642 [14:37:38]StoreOFDPacket docnum=49642 [14:37:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 D7 E9 22 01 F8 48 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 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 B5 B5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C1 00 00 35 04 06 00 DC DB 29 18 25 16 5A 08 7A DB 0C 7B E0 EE [14:37:38]CheckFolder [14:37:38]dirname=/storage/ofd_packets [14:37:38]CheckFolder done [14:37:38]ProducePacketName [14:37:38]name=ofd_packets/00049642 [14:37:38]NVStorageSaveData ofd_packets/00049642 [14:37:38]File name is /storage/ofd_packets/00049642 [14:37:38]Write 328 bytes [14:37:38]NVStorageSaveData done [14:37:38]OFDSenderStorePacket done [14:37:38]KKMCreateOFDPacket done [14:37:38]NVStorageSaveData kkm_last_timestamp [14:37:38]File name is /storage/kkm_last_timestamp [14:37:38]Write 4 bytes [14:37:38]NVStorageSaveData done [14:37:38]ExternCall_PrintAddStr [14:37:38]wPrintStart [14:37:38]Write to MH i2c: 01 00 00 87 20 A7 [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 07 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 07 00 87 20 00 00 00 00 00 FF 0F BC [14:37:38]RasterBufferAndPrint [14:37:38]line Счет N : (3)189828 [14:37:38]line ИНН: 02508201610067 [14:37:38]line Контрольно-Кассовый Чек [14:37:38]line ПРОДАЖА [14:37:38]line Товар: 90162602 [14:37:38]line Энерг напиток Red bull 0,25л [14:37:38]line 1.000 * 152.00 [14:37:38]line = 152.00 [14:37:38]line НДС 12% НСП 1% [14:37:38]line > о реализуемом товаре [14:37:38]line ИТОГО: 152.00 [14:37:38]line НСП 1% : 1.34 [14:37:38]line НДС 12% : 16.14 [14:37:38]line Наличными: 152.00 [14:37:38]line Безнал.: 0.00 [14:37:38]line Место: АЗС № 95 "Партнер Нефть" [14:37:38]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:37:38]line СНО: Общий режим [14:37:38]line Чек 79 17.08.2024 14:37 [14:37:38]line Смена: 465 ФФД: 1.0 [14:37:38]line ЗНМ: 0300000078 [14:37:38]line РНМ: 0000000000092546 [14:37:38]line Версия ККМ: 001 [14:37:38]line ФМ: 0000000000871800 [14:37:38]line ФД: 49642 [14:37:38]line ФПД: 242833845396758 [14:37:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T143741&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49642&fm=242833845396758&tin=02508201610067®Number=0000000000092546&sum=15200 [14:37:38]line 0 [14:37:38]OFD Sender: Processing packet 49642 [packets to send 21, broken 20] [14:37:38]ProducePacketName [14:37:38]name=ofd_packets/00049642 [14:37:38]OFD Sender: To server: pG, [14:37:38]CommunicateWithHost lk.salyk.kg:30040 [14:37:38]ConnectInit lk.salyk.kg [14:37:38]written 0, free lines is 4095 [14:37:39]Connected sock=7 [14:37:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 D7 E9 22 01 F8 48 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 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 B5 B5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C1 00 00 35 04 06 00 DC DB 29 18 25 16 5A 08 7A DB 0C 7B E0 EE [14:37:39]Write to MH i2c: 01 00 00 AF 20 CF [14:37:39]Write i2c OK [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: 01 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: 01 07 00 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: 01 07 00 AF 20 00 00 00 00 00 01 0D E4 [14:37:39]RasterBufferAndPrint [14:37:39]line [14:37:39]line [14:37:39]line [14:37:39]line [14:37:39]line [14:37:39]written 0, free lines is 3335 [14:37:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D6 9D 47 00 38 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 31 38 30 30 10 04 04 00 EA C1 00 00 F4 03 04 00 F0 60 C0 66 B6 04 01 00 00 48 1C 57 0A E6 0A 36 4A [14:37:39]CommunicateWithHost err = 0 [14:37:39]CheckOFDResponse [14:37:39]1017 (14) - 77093643461234 [14:37:39]1041 (16) - 0000000000871800 [14:37:39]1040 (4) - 49642 [14:37:39]1012 (4) - 17.08.2024 08:36 [14:37:39]1206 (1) - 0 [14:37:39]OFD Sender: Remove packet 49642 [14:37:39]ProducePacketName [14:37:39]name=ofd_packets/00049642 [14:37:39]NVStorageDeleteData [14:37:39]MH_Cut [14:37:39]Write to MH i2c: D1 01 00 B6 20 01 A8 [14:37:39]Write i2c OK [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: D1 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: D1 01 00 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: D1 01 00 B6 20 00 A7 [14:37:39]Write to MH i2c: 01 00 00 B7 20 D7 [14:37:39]Write i2c OK [14:37:39]MH_I2C_Read... [14:37:39]OFD Sender: No OFD packet to send [14:37:40]*** Cut start [14:37:40]*** Purtial cut [14:37:40]*** CUTSNS_PIN = 0 [14:37:40]*** Stage 1: CUTSNS_PIN = 1 [14:37:42]Read from MH i2c: 01 [14:37:42]MH_I2C_Read... [14:37:42]*** Stop cut motor [14:37:42]*** Cut end [14:37:42]Read from MH i2c: 01 07 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: 01 07 00 B7 20 00 00 00 00 00 FF 0F EC [14:37:42]process_action close_receipt done [14:37:42]requested_data is exist [14:37:42]produce_requested_data [14:37:42]requested_item fm.sn is exist - process it [14:37:42]wFMCommunicate request_size=4 [14:37:42]MH_SAM_APDU [14:37:42]CAPDU: 80 11 00 00 [14:37:42]Write to MH i2c: E2 08 00 B8 20 80 11 00 00 00 00 00 00 52 [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:42]Read from MH i2c: E2 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 17 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 17 00 B8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9D [14:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:37:42]wFMCommunicate OK [14:37:42]requested_item fd.num is exist - process it [14:37:42]SAM_PROTO_GetFieldsCounters [14:37:42]wFMCommunicate request_size=4 [14:37:42]MH_SAM_APDU [14:37:42]CAPDU: 80 13 00 00 [14:37:42]Write to MH i2c: E2 08 00 B9 20 80 13 00 00 00 00 00 00 55 [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:42]Read from MH i2c: E2 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 62 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 62 00 B9 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EA C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [14:37: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EA C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:42]wFMCommunicate OK [14:37:42]SAM_PROTO_GetFieldsCounters done [14:37:42]requested_item shift.num is exist - process it [14:37:42]requested_item shift.opened is exist - process it [14:37:42]req_shift_opened [14:37:42]FM_GetShiftState [14:37:42]SAM_PROTO_GetShiftState [14:37:42]wFMCommunicate request_size=4 [14:37:42]MH_SAM_APDU [14:37:42]CAPDU: 80 13 01 00 [14:37:42]Write to MH i2c: E2 08 00 BA 20 80 13 01 00 00 00 00 00 57 [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:42]Read from MH i2c: E2 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 0E 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 0E 00 BA 20 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 9C [14:37:42]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:37:42]wFMCommunicate OK [14:37:42]SAM_PROTO_GetShiftState done [14:37:42]FM_GetShiftState done [14:37:42]req_shift_opened done [14:37:42]requested_item shift.open_date is exist - process it [14:37:42]req_shift_open_date [14:37:42]req_shift_open_date done [14:37:42]produce_requested_data done [14:37:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49642,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [14:37:42]process_action_free close_receipt [14:37:42]json_value_free [14:37:42]json_value_free done [14:37:42]process_json_proto returns [14:37:42]Send response to host [14:37:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49642,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [14:37:42]free response buf [14:37:42]execute_script done [14:37:42]execute_script returns [14:37:42]free content buf [14:37:42]Sock 9.Close socket [14:37:42]Sock 9.Thread stoped [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:30]int [14:39:30]Write to MH i2c: 01 00 00 BB 20 DB [14:39:30]*** FLAG_PRN_KEY set [14:39:30]Write i2c OK [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: 01 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: 01 07 00 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: 01 07 00 BB 20 00 08 00 00 00 FF 0F F8 [14:39:30]state=0 [14:39:30]Key pressed [14:39:30]Feed [14:39:30]Write to MH i2c: D8 00 00 BC 20 B3 [14:39:30]Write i2c OK [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: D8 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: D8 01 00 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: D8 01 00 BC 20 00 B4 [14:39:30]int [14:39:30]Write to MH i2c: 01 00 00 BD 20 DD [14:39:30]Write i2c OK [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: 01 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: 01 07 00 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: 01 07 00 BD 20 00 48 00 00 00 3C 00 68 [14:39:30]state=2 [14:39:30]Key pressed [14:39:30]int [14:39:30]Write to MH i2c: 01 00 00 BE 20 DE [14:39:30]*** FLAG_PRN_KEY reset [14:39:30]Write i2c OK [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: 01 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: 01 07 00 [14:39:30]MH_I2C_Read... [14:39:30]Read from MH i2c: 01 07 00 BE 20 00 00 00 00 00 F5 0F E9 [14:39:30]state=2 [14:39:30]Stop feed [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:23]accept exits with 10 [14:48:23]New connection [14:48:23]New thread 3066801508 created [14:48:23]Thread 3066944868 joined [14:48:23]Waiting for new connection... [14:48:23] Sock 10.Parse request [14:48:23]Sock 10.Check first char [14:48:23]Sock 10.First char is OK [14:48:23]request: POST /json_proto HTTP/1.0 [14:48:23]Method: POST [14:48:23]URL: /json_proto [14:48:23]Method is POST - this is cgi request [14:48:23]url: /json_proto [14:48:23]query_string will be loaded in cgi processing [14:48:23]execute_cgi json_proto POST (null) [14:48:23]execute_cgi path=json_proto method=POST [14:48:23]POST find Content-Length [14:48:23]Host: 172.17.46.196:8080 [14:48:23]Content-Length: 861 [14:48:23]Content-Type: application/json [14:48:23] [14:48:23]POST finish read [14:48:23]Found Content-Length = 861 [14:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189829", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 161.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:23]execute_script... [14:48:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189829", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 161.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:23]POST & json_proto [14:48:23]process_json_proto [14:48:23]json parsed OK: [14:48:23]protocol is kg_v1.0 [14:48:23]action value=close_receipt [14:48:23]process_action close_receipt [14:48:23]cmd_close_receipt [14:48:23]MH_GetDate [14:48:23]Write to MH i2c: F0 00 00 BF 20 CE [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: F0 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: F0 09 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: F0 09 00 BF 20 00 3B B8 C0 66 07 E8 5D 66 A2 [14:48:23]GetLastDocTimeStamp 1723905461 [14:48:23]current date 1723906107 [14:48:23]FM_GetShiftState [14:48:23]SAM_PROTO_GetShiftState [14:48:23]wFMCommunicate request_size=4 [14:48:23]MH_SAM_APDU [14:48:23]CAPDU: 80 13 01 00 [14:48:23]Write to MH i2c: E2 08 00 C0 20 80 13 01 00 00 00 00 00 5D [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:23]Read from MH i2c: E2 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 0E 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 0E 00 C0 20 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 A2 [14:48:23]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:48:23]wFMCommunicate OK [14:48:23]SAM_PROTO_GetShiftState done [14:48:23]FM_GetShiftState done [14:48:23]opened in 1723853354 [14:48:23]opened+sec_in_day 1723939754 [14:48:23]quantity*price = 5000 [14:48:23]sum+1 = 5001 [14:48:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 161.00 НСП 1% : 1.42 НДС 12% : 17.10 Наличными: 161.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 80 17.08.2024 14:48 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49643 ФПД: 13360995892860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T144827&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49643&fm=13360995892860&tin=02508201610067®Number=0000000000092546&sum=16100 0 [14:48:24]StoreToDocumentArchive [14:48:24]shift 465 fd 49643 [14:48:24]save to /storage/0465/doc_00049643 [14:48:24]save last doc name /storage/0465/doc_00049643 to /storage/kkm_last_doc_name [14:48:24]save OK [14:48:24]Clear old archive folders... [14:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=365 [14:48:24]tlvbuf is 018625E0 [14:48:24]SAM_PROTO_ClearQueue [14:48:24]wFMCommunicate request_size=4 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 09 00 00 [14:48:24]Write to MH i2c: E2 08 00 CD 20 80 09 00 00 00 00 00 00 5F [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:24]Read from MH i2c: E2 03 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 CD 20 00 90 00 61 [14:48:24]RAPDU: 90 00 [14:48:24]wFMCommunicate OK [14:48:24]SAM_PROTO_ClearQueue done [14:48:24]KKMCreateOFDPacket [14:48:24]OFDProtocolAddRootSTLVToBuf [14:48:24]FM_MakeSignedData [14:48:24]FM_MakeSignedData [14:48:24]SAM_PROTO_SignData [14:48:24]wFMCommunicate request_size=4 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 0D 01 02 [14:48:24]Write to MH i2c: E2 08 00 CE 20 80 0D 01 02 00 00 00 00 67 [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 CE 20 00 90 00 62 [14:48:24]RAPDU: 90 00 [14:48:24]wFMCommunicate OK [14:48:24]wFMCommunicate request_size=255 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 0D 02 02 FA 03 00 6D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 [14:48:24]Write to MH i2c: E2 02 01 CF 20 80 0D 02 02 FA 00 03 00 6D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 98 [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 CF 20 00 90 00 63 [14:48:24]RAPDU: 90 00 [14:48:24]wFMCommunicate OK [14:48:24]wFMCommunicate request_size=124 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 0D 02 02 77 AE 06 00 00 00 00 07 04 06 00 E4 3E 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 3B B8 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C1 00 00 35 04 06 00 0C 26 D9 69 FE 7C [14:48:24]Write to MH i2c: E2 7F 00 D0 20 80 0D 02 02 77 00 AE 06 00 00 00 00 07 04 06 00 E4 3E 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 3B B8 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C1 00 00 35 04 06 00 0C 26 D9 69 FE 7C 00 00 36 [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:25]Read from MH i2c: E2 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 03 00 D0 20 00 90 00 64 [14:48:25]RAPDU: 90 00 [14:48:25]wFMCommunicate OK [14:48:25]wFMCommunicate request_size=4 [14:48:25]MH_SAM_APDU [14:48:25]CAPDU: 80 0D 03 02 [14:48:25]Write to MH i2c: E2 08 00 D1 20 80 0D 03 02 00 00 00 00 6C [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:25]Read from MH i2c: E2 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 0B 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 0B 00 D1 20 00 50 12 50 D2 06 2E F4 55 90 00 6E [14:48:25]RAPDU: 50 12 50 D2 06 2E F4 55 90 00 [14:48:25]wFMCommunicate OK [14:48:25]SAM_PROTO_SignData done [14:48:25]FM_MakeSignedData done [14:48:25]CreateOFDProtocolMessage [14:48:25]wFMCommunicate request_size=4 [14:48:25]MH_SAM_APDU [14:48:25]CAPDU: 80 11 00 00 [14:48:25]Write to MH i2c: E2 08 00 D2 20 80 11 00 00 00 00 00 00 6C [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:25]Read from MH i2c: E2 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 17 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: E2 17 00 D2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B7 [14:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:48:25]wFMCommunicate OK [14:48:25]CreateOFDProtocolMessage done [14:48:25]OFDSenderStorePacket 49643 [14:48:25]StoreOFDPacket docnum=49643 [14:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 81 01 00 00 6C 47 79 01 7F B2 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 06 00 00 00 00 07 04 06 00 E4 3E 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 3B B8 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C1 00 00 35 04 06 00 0C 26 D9 69 FE 7C 50 12 50 D2 06 2E F4 55 [14:48:25]CheckFolder [14:48:25]dirname=/storage/ofd_packets [14:48:25]CheckFolder done [14:48:25]ProducePacketName [14:48:25]name=ofd_packets/00049643 [14:48:25]NVStorageSaveData ofd_packets/00049643 [14:48:25]File name is /storage/ofd_packets/00049643 [14:48:25]Write 415 bytes [14:48:25]NVStorageSaveData done [14:48:25]OFDSenderStorePacket done [14:48:25]KKMCreateOFDPacket done [14:48:25]NVStorageSaveData kkm_last_timestamp [14:48:25]File name is /storage/kkm_last_timestamp [14:48:25]Write 4 bytes [14:48:25]NVStorageSaveData done [14:48:25]ExternCall_PrintAddStr [14:48:25]wPrintStart [14:48:25]Write to MH i2c: 01 00 00 D3 20 F3 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 07 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 07 00 D3 20 00 00 00 00 00 FF 0F 08 [14:48:25]RasterBufferAndPrint [14:48:25]line Счет N : (3)189829 [14:48:25]line ИНН: 02508201610067 [14:48:25]line Контрольно-Кассовый Чек [14:48:25]line ПРОДАЖА [14:48:25]line Товар: 4700000160358 [14:48:25]line Вода Легенда 1л [14:48:25]line 1.000 * 50.00 [14:48:25]line = 50.00 [14:48:25]line НДС 12% НСП 1% [14:48:25]line > о реализуемом товаре [14:48:25]line Товар: 4870001570071 [14:48:25]line Напиток Pepsi 1л [14:48:25]line 1.000 * 111.00 [14:48:25]line = 111.00 [14:48:25]line НДС 12% НСП 1% [14:48:25]line > о реализуемом товаре [14:48:25]line ИТОГО: 161.00 [14:48:25]line НСП 1% : 1.42 [14:48:25]line НДС 12% : 17.10 [14:48:25]line Наличными: 161.00 [14:48:25]line Безнал.: 0.00 [14:48:25]line Место: АЗС № 95 "Партнер Нефть" [14:48:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:48:25]line СНО: Общий режим [14:48:25]line Чек 80 17.08.2024 14:48 [14:48:25]line Смена: 465 ФФД: 1.0 [14:48:25]line ЗНМ: 0300000078 [14:48:25]line РНМ: 0000000000092546 [14:48:25]line Версия ККМ: 001 [14:48:25]line ФМ: 0000000000871800 [14:48:25]line ФД: 49643 [14:48:25]line ФПД: 13360995892860 [14:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T144827&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49643&fm=13360995892860&tin=02508201610067®Number=0000000000092546&sum=16100 [14:48:25]line 0 [14:48:25]OFD Sender: Processing packet 49643 [packets to send 21, broken 20] [14:48:25]ProducePacketName [14:48:25]name=ofd_packets/00049643 [14:48:25]OFD Sender: To server: pG, [14:48:25]CommunicateWithHost lk.salyk.kg:30040 [14:48:25]ConnectInit lk.salyk.kg [14:48:25]written 0, free lines is 4095 [14:48:25]Connected sock=9 [14:48:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 81 01 00 00 6C 47 79 01 7F B2 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 06 00 00 00 00 07 04 06 00 E4 3E 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 3B B8 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C1 00 00 35 04 06 00 0C 26 D9 69 FE 7C 50 12 50 D2 06 2E F4 55 [14:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F6 D1 47 00 39 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C1 00 00 F4 03 04 00 77 63 C0 66 B6 04 01 00 00 0B AF 92 B7 6B 07 7A B3 [14:48:25]CommunicateWithHost err = 0 [14:48:25]CheckOFDResponse [14:48:25]1017 (14) - 77093643461234 [14:48:25]1041 (16) - 0000000000871800 [14:48:25]1040 (4) - 49643 [14:48:25]1012 (4) - 17.08.2024 08:46 [14:48:25]1206 (1) - 0 [14:48:25]OFD Sender: Remove packet 49643 [14:48:25]ProducePacketName [14:48:25]name=ofd_packets/00049643 [14:48:25]NVStorageDeleteData [14:48:25]Write to MH i2c: 01 00 00 01 21 22 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 07 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 07 00 01 21 00 00 00 00 00 A6 0C DB [14:48:25]RasterBufferAndPrint [14:48:25]line [14:48:25]line [14:48:25]line [14:48:25]line [14:48:25]line [14:48:25]written 0, free lines is 3243 [14:48:25]MH_Cut [14:48:25]Write to MH i2c: D1 01 00 08 21 01 FB [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: D1 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: D1 01 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: D1 01 00 08 21 00 FA [14:48:25]Write to MH i2c: 01 00 00 09 21 2A [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:26]OFD Sender: No OFD packet to send [14:48:26]*** Cut start [14:48:26]*** Purtial cut [14:48:26]*** Stage 1: CUTSNS_PIN = 1 [14:48:27]Read from MH i2c: 01 [14:48:27]MH_I2C_Read... [14:48:27]*** Stop cut motor [14:48:27]*** Cut end [14:48:27]Read from MH i2c: 01 07 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: 01 07 00 09 21 00 00 00 00 00 FF 0F 3F [14:48:27]process_action close_receipt done [14:48:27]requested_data is exist [14:48:27]produce_requested_data [14:48:27]requested_item fm.sn is exist - process it [14:48:27]wFMCommunicate request_size=4 [14:48:27]MH_SAM_APDU [14:48:27]CAPDU: 80 11 00 00 [14:48:27]Write to MH i2c: E2 08 00 0A 21 80 11 00 00 00 00 00 00 A5 [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:27]Read from MH i2c: E2 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 17 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 17 00 0A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F0 [14:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:48:27]wFMCommunicate OK [14:48:27]requested_item fd.num is exist - process it [14:48:27]SAM_PROTO_GetFieldsCounters [14:48:27]wFMCommunicate request_size=4 [14:48:27]MH_SAM_APDU [14:48:27]CAPDU: 80 13 00 00 [14:48:27]Write to MH i2c: E2 08 00 0B 21 80 13 00 00 00 00 00 00 A8 [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:27]Read from MH i2c: E2 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 62 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 62 00 0B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EB C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [14:48: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EB C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:27]wFMCommunicate OK [14:48:27]SAM_PROTO_GetFieldsCounters done [14:48:27]requested_item shift.num is exist - process it [14:48:27]requested_item shift.opened is exist - process it [14:48:27]req_shift_opened [14:48:27]FM_GetShiftState [14:48:27]SAM_PROTO_GetShiftState [14:48:27]wFMCommunicate request_size=4 [14:48:27]MH_SAM_APDU [14:48:27]CAPDU: 80 13 01 00 [14:48:27]Write to MH i2c: E2 08 00 0C 21 80 13 01 00 00 00 00 00 AA [14:48:27]Write i2c OK [14:48:27]MH_I2C_Read... [14:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:27]Read from MH i2c: E2 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 0E 00 [14:48:27]MH_I2C_Read... [14:48:27]Read from MH i2c: E2 0E 00 0C 21 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 EF [14:48:27]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:48:27]wFMCommunicate OK [14:48:27]SAM_PROTO_GetShiftState done [14:48:27]FM_GetShiftState done [14:48:27]req_shift_opened done [14:48:27]requested_item shift.open_date is exist - process it [14:48:27]req_shift_open_date [14:48:27]req_shift_open_date done [14:48:27]produce_requested_data done [14:48:27]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49643,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [14:48:27]process_action_free close_receipt [14:48:27]json_value_free [14:48:27]json_value_free done [14:48:27]process_json_proto returns [14:48:27]Send response to host [14:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49643,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [14:48:27]free response buf [14:48:27]execute_script done [14:48:27]execute_script returns [14:48:27]free content buf [14:48:27]Sock 10.Close socket [14:48:27]Sock 10.Thread stoped [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:19]accept exits with 7 [14:53:19]New connection [14:53:19]New thread 3066944868 created [14:53:19]Thread 3066801508 joined [14:53:19]Waiting for new connection... [14:53:19] Sock 7.Parse request [14:53:19]Sock 7.Check first char [14:53:19]Sock 7.First char is OK [14:53:19]request: POST /json_proto HTTP/1.0 [14:53:19]Method: POST [14:53:19]URL: /json_proto [14:53:19]Method is POST - this is cgi request [14:53:19]url: /json_proto [14:53:19]query_string will be loaded in cgi processing [14:53:19]execute_cgi json_proto POST (null) [14:53:19]execute_cgi path=json_proto method=POST [14:53:19]POST find Content-Length [14:53:19]Host: 172.17.46.196:8080 [14:53:19]Content-Length: 649 [14:53:19]Content-Type: application/json [14:53:19] [14:53:19]POST finish read [14:53:19]Found Content-Length = 649 [14:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189830", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:19]execute_script... [14:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189830", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:19]POST & json_proto [14:53:19]process_json_proto [14:53:19]json parsed OK: [14:53:19]protocol is kg_v1.0 [14:53:19]action value=close_receipt [14:53:19]process_action close_receipt [14:53:19]cmd_close_receipt [14:53:19]MH_GetDate [14:53:19]Write to MH i2c: F0 00 00 0D 21 1D [14:53:19]Write i2c OK [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: F0 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: F0 09 00 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: F0 09 00 0D 21 00 64 B9 C0 66 07 E8 5D 66 1B [14:53:19]GetLastDocTimeStamp 1723906107 [14:53:19]current date 1723906404 [14:53:19]FM_GetShiftState [14:53:19]SAM_PROTO_GetShiftState [14:53:19]wFMCommunicate request_size=4 [14:53:19]MH_SAM_APDU [14:53:19]CAPDU: 80 13 01 00 [14:53:19]Write to MH i2c: E2 08 00 0E 21 80 13 01 00 00 00 00 00 AC [14:53:19]Write i2c OK [14:53:19]MH_I2C_Read... [14:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:19]Read from MH i2c: E2 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: E2 0E 00 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: E2 0E 00 0E 21 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 F1 [14:53:19]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:53:19]wFMCommunicate OK [14:53:19]SAM_PROTO_GetShiftState done [14:53:19]FM_GetShiftState done [14:53:19]opened in 1723853354 [14:53:19]opened+sec_in_day 1723939754 [14:53:19]quantity*price = 8500 [14:53:19]sum+1 = 8501 [14:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 81 17.08.2024 14:53 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49644 ФПД: 29261654397661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T145324&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49644&fm=29261654397661&tin=02508201610067®Number=0000000000092546&sum=8500 0 [14:53:21]StoreToDocumentArchive [14:53:21]shift 465 fd 49644 [14:53:21]save to /storage/0465/doc_00049644 [14:53:21]save last doc name /storage/0465/doc_00049644 to /storage/kkm_last_doc_name [14:53:21]save OK [14:53:21]Clear old archive folders... [14:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=280 [14:53:21]tlvbuf is 01895B80 [14:53:21]SAM_PROTO_ClearQueue [14:53:21]wFMCommunicate request_size=4 [14:53:21]MH_SAM_APDU [14:53:21]CAPDU: 80 09 00 00 [14:53:21]Write to MH i2c: E2 08 00 1B 21 80 09 00 00 00 00 00 00 AE [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:21]Read from MH i2c: E2 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 03 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 03 00 1B 21 00 90 00 B0 [14:53:21]RAPDU: 90 00 [14:53:21]wFMCommunicate OK [14:53:21]SAM_PROTO_ClearQueue done [14:53:21]KKMCreateOFDPacket [14:53:21]OFDProtocolAddRootSTLVToBuf [14:53:21]FM_MakeSignedData [14:53:21]FM_MakeSignedData [14:53:21]SAM_PROTO_SignData [14:53:21]wFMCommunicate request_size=4 [14:53:21]MH_SAM_APDU [14:53:21]CAPDU: 80 0D 01 02 [14:53:21]Write to MH i2c: E2 08 00 1C 21 80 0D 01 02 00 00 00 00 B6 [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:21]Read from MH i2c: E2 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 03 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 03 00 1C 21 00 90 00 B1 [14:53:21]RAPDU: 90 00 [14:53:21]wFMCommunicate OK [14:53:21]wFMCommunicate request_size=255 [14:53:21]MH_SAM_APDU [14:53:21]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 64 B9 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [14:53:21]Write to MH i2c: E2 02 01 1D 21 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 64 B9 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 F9 [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:21]Read from MH i2c: E2 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 03 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 03 00 1D 21 00 90 00 B2 [14:53:21]RAPDU: 90 00 [14:53:21]wFMCommunicate OK [14:53:21]wFMCommunicate request_size=39 [14:53:21]MH_SAM_APDU [14:53:21]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C1 00 00 35 04 06 00 1A 9D 02 84 12 DD [14:53:21]Write to MH i2c: E2 2A 00 1E 21 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C1 00 00 35 04 06 00 1A 9D 02 84 12 DD 00 00 45 [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:21]Read from MH i2c: E2 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 03 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 03 00 1E 21 00 90 00 B3 [14:53:21]RAPDU: 90 00 [14:53:21]wFMCommunicate OK [14:53:21]wFMCommunicate request_size=4 [14:53:21]MH_SAM_APDU [14:53:21]CAPDU: 80 0D 03 02 [14:53:21]Write to MH i2c: E2 08 00 1F 21 80 0D 03 02 00 00 00 00 BB [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:21]Read from MH i2c: E2 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 0B 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 0B 00 1F 21 00 CF E7 6A A9 5E 00 74 00 90 00 57 [14:53:21]RAPDU: CF E7 6A A9 5E 00 74 00 90 00 [14:53:21]wFMCommunicate OK [14:53:21]SAM_PROTO_SignData done [14:53:21]FM_MakeSignedData done [14:53:21]CreateOFDProtocolMessage [14:53:21]wFMCommunicate request_size=4 [14:53:21]MH_SAM_APDU [14:53:21]CAPDU: 80 11 00 00 [14:53:21]Write to MH i2c: E2 08 00 20 21 80 11 00 00 00 00 00 00 BB [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:21]Read from MH i2c: E2 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 17 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 17 00 20 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 06 [14:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:53:21]wFMCommunicate OK [14:53:21]CreateOFDProtocolMessage done [14:53:21]OFDSenderStorePacket 49644 [14:53:21]StoreOFDPacket docnum=49644 [14:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 47 2A 24 01 90 60 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 64 B9 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C1 00 00 35 04 06 00 1A 9D 02 84 12 DD CF E7 6A A9 5E 00 74 00 [14:53:21]CheckFolder [14:53:21]dirname=/storage/ofd_packets [14:53:21]CheckFolder done [14:53:21]ProducePacketName [14:53:21]name=ofd_packets/00049644 [14:53:21]NVStorageSaveData ofd_packets/00049644 [14:53:21]File name is /storage/ofd_packets/00049644 [14:53:21]Write 330 bytes [14:53:21]NVStorageSaveData done [14:53:21]OFDSenderStorePacket done [14:53:21]KKMCreateOFDPacket done [14:53:21]NVStorageSaveData kkm_last_timestamp [14:53:21]File name is /storage/kkm_last_timestamp [14:53:21]Write 4 bytes [14:53:21]NVStorageSaveData done [14:53:21]ExternCall_PrintAddStr [14:53:21]wPrintStart [14:53:21]Write to MH i2c: 01 00 00 21 21 42 [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: 01 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: 01 07 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: 01 07 00 21 21 00 00 00 00 00 FF 0F 57 [14:53:21]RasterBufferAndPrint [14:53:21]line Счет N : (3)189830 [14:53:21]line ИНН: 02508201610067 [14:53:21]line Контрольно-Кассовый Чек [14:53:21]line ПРОДАЖА [14:53:21]line Товар: 4870227272957 [14:53:21]line Лимонад Sunbel Тархун 1л [14:53:21]line 1.000 * 85.00 [14:53:21]line = 85.00 [14:53:21]line НДС 12% НСП 1% [14:53:21]line > о реализуемом товаре [14:53:21]line ИТОГО: 85.00 [14:53:21]line НСП 1% : 0.75 [14:53:21]line НДС 12% : 9.03 [14:53:21]line Наличными: 85.00 [14:53:21]line Безнал.: 0.00 [14:53:21]line Место: АЗС № 95 "Партнер Нефть" [14:53:21]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:53:21]line СНО: Общий режим [14:53:21]line Чек 81 17.08.2024 14:53 [14:53:21]line Смена: 465 ФФД: 1.0 [14:53:21]line ЗНМ: 0300000078 [14:53:21]line РНМ: 0000000000092546 [14:53:21]line Версия ККМ: 001 [14:53:21]line ФМ: 0000000000871800 [14:53:21]line ФД: 49644 [14:53:21]line ФПД: 29261654397661 [14:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T145324&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49644&fm=29261654397661&tin=02508201610067®Number=0000000000092546&sum=8500 [14:53:21]line 0 [14:53:21]OFD Sender: Processing packet 49644 [packets to send 21, broken 20] [14:53:21]ProducePacketName [14:53:21]name=ofd_packets/00049644 [14:53:21]OFD Sender: To server: pG, [14:53:21]CommunicateWithHost lk.salyk.kg:30040 [14:53:21]ConnectInit lk.salyk.kg [14:53:21]written 0, free lines is 4095 [14:53:22]Connected sock=10 [14:53:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 47 2A 24 01 90 60 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 64 B9 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C1 00 00 35 04 06 00 1A 9D 02 84 12 DD CF E7 6A A9 5E 00 74 00 [14:53:22]Write to MH i2c: 01 00 00 49 21 6A [14:53:22]Write i2c OK [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: 01 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: 01 07 00 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: 01 07 00 49 21 00 00 00 00 00 05 0D 83 [14:53:22]RasterBufferAndPrint [14:53:22]line [14:53:22]line [14:53:22]line [14:53:22]line [14:53:22]line [14:53:22]written 0, free lines is 3342 [14:53:22]MH_Cut [14:53:22]Write to MH i2c: D1 01 00 50 21 01 43 [14:53:22]Write i2c OK [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: D1 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: D1 01 00 [14:53:22]MH_I2C_Read... [14:53:22]Read from MH i2c: D1 01 00 50 21 00 42 [14:53:22]Write to MH i2c: 01 00 00 51 21 72 [14:53:22]Write i2c OK [14:53:22]MH_I2C_Read... [14:53:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E9 C2 47 00 6D 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C1 00 00 F4 03 04 00 9F 64 C0 66 B6 04 01 00 00 EC 89 DC 21 D8 21 6B CB [14:53:22]CommunicateWithHost err = 0 [14:53:22]CheckOFDResponse [14:53:22]1017 (14) - 77093643461234 [14:53:22]1041 (16) - 0000000000871800 [14:53:22]1040 (4) - 49644 [14:53:22]1012 (4) - 17.08.2024 08:51 [14:53:22]1206 (1) - 0 [14:53:22]OFD Sender: Remove packet 49644 [14:53:22]ProducePacketName [14:53:22]name=ofd_packets/00049644 [14:53:22]NVStorageDeleteData [14:53:22]OFD Sender: No OFD packet to send [14:53:23]*** Cut start [14:53:23]*** Purtial cut [14:53:23]*** CUTSNS_PIN = 0 [14:53:23]*** Stage 1: CUTSNS_PIN = 1 [14:53:25]Read from MH i2c: 01 [14:53:25]MH_I2C_Read... [14:53:25]*** Stop cut motor [14:53:25]*** Cut end [14:53:25]Read from MH i2c: 01 07 00 [14:53:25]MH_I2C_Read... [14:53:25]Read from MH i2c: 01 07 00 51 21 00 00 00 00 00 FF 0F 87 [14:53:25]process_action close_receipt done [14:53:25]requested_data is exist [14:53:25]produce_requested_data [14:53:25]requested_item fm.sn is exist - process it [14:53:25]wFMCommunicate request_size=4 [14:53:25]MH_SAM_APDU [14:53:25]CAPDU: 80 11 00 00 [14:53:25]Write to MH i2c: E2 08 00 52 21 80 11 00 00 00 00 00 00 ED [14:53:25]Write i2c OK [14:53:25]MH_I2C_Read... [14:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:25]Read from MH i2c: E2 [14:53:25]MH_I2C_Read... [14:53:25]Read from MH i2c: E2 17 00 [14:53:25]MH_I2C_Read... [14:53:25]Read from MH i2c: E2 17 00 52 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 38 [14:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:53:25]wFMCommunicate OK [14:53:25]requested_item fd.num is exist - process it [14:53:25]SAM_PROTO_GetFieldsCounters [14:53:25]wFMCommunicate request_size=4 [14:53:25]MH_SAM_APDU [14:53:25]CAPDU: 80 13 00 00 [14:53:25]Write to MH i2c: E2 08 00 53 21 80 13 00 00 00 00 00 00 F0 [14:53:25]Write i2c OK [14:53:25]MH_I2C_Read... [14:53:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:25]Read from MH i2c: E2 [14:53:25]MH_I2C_Read... [14:53:25]Read from MH i2c: E2 62 00 [14:53:25]MH_I2C_Read... [14:53:25]Read from MH i2c: E2 62 00 53 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EC C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [14:53: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EC C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:25]wFMCommunicate OK [14:53:25]SAM_PROTO_GetFieldsCounters done [14:53:25]requested_item shift.num is exist - process it [14:53:25]requested_item shift.opened is exist - process it [14:53:25]req_shift_opened [14:53:25]FM_GetShiftState [14:53:25]SAM_PROTO_GetShiftState [14:53:25]wFMCommunicate request_size=4 [14:53:25]MH_SAM_APDU [14:53:25]CAPDU: 80 13 01 00 [14:53:25]Write to MH i2c: E2 08 00 54 21 80 13 01 00 00 00 00 00 F2 [14:53:25]Write i2c OK [14:53:25]MH_I2C_Read... [14:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:25]Read from MH i2c: E2 [14:53:25]MH_I2C_Read... [14:53:25]Read from MH i2c: E2 0E 00 [14:53:25]MH_I2C_Read... [14:53:25]Read from MH i2c: E2 0E 00 54 21 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 37 [14:53:25]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:53:25]wFMCommunicate OK [14:53:25]SAM_PROTO_GetShiftState done [14:53:25]FM_GetShiftState done [14:53:25]req_shift_opened done [14:53:25]requested_item shift.open_date is exist - process it [14:53:25]req_shift_open_date [14:53:25]req_shift_open_date done [14:53:25]produce_requested_data done [14:53:25]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49644,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [14:53:25]process_action_free close_receipt [14:53:25]json_value_free [14:53:25]json_value_free done [14:53:25]process_json_proto returns [14:53:25]Send response to host [14:53:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49644,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [14:53:25]free response buf [14:53:25]execute_script done [14:53:25]execute_script returns [14:53:25]free content buf [14:53:25]Sock 7.Close socket [14:53:25]Sock 7.Thread stoped [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:49]accept exits with 9 [14:53:49]New connection [14:53:49]New thread 3066801508 created [14:53:49]Thread 3066944868 joined [14:53:49]Waiting for new connection... [14:53:49] Sock 9.Parse request [14:53:49]Sock 9.Check first char [14:53:49]Sock 9.First char is OK [14:53:49]request: POST /json_proto HTTP/1.0 [14:53:49]Method: POST [14:53:49]URL: /json_proto [14:53:49]Method is POST - this is cgi request [14:53:49]url: /json_proto [14:53:49]query_string will be loaded in cgi processing [14:53:49]execute_cgi json_proto POST (null) [14:53:49]execute_cgi path=json_proto method=POST [14:53:49]POST find Content-Length [14:53:49]Host: 172.17.46.196:8080 [14:53:49]Content-Length: 646 [14:53:49]Content-Type: application/json [14:53:49] [14:53:49]POST finish read [14:53:49]Found Content-Length = 646 [14:53:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189831", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:49]execute_script... [14:53:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189831", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:49]POST & json_proto [14:53:49]process_json_proto [14:53:49]json parsed OK: [14:53:49]protocol is kg_v1.0 [14:53:49]action value=close_receipt [14:53:49]process_action close_receipt [14:53:49]cmd_close_receipt [14:53:49]MH_GetDate [14:53:49]Write to MH i2c: F0 00 00 55 21 65 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: F0 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: F0 09 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: F0 09 00 55 21 00 81 B9 C0 66 07 E8 5D 66 80 [14:53:49]GetLastDocTimeStamp 1723906404 [14:53:49]current date 1723906433 [14:53:49]FM_GetShiftState [14:53:49]SAM_PROTO_GetShiftState [14:53:49]wFMCommunicate request_size=4 [14:53:49]MH_SAM_APDU [14:53:49]CAPDU: 80 13 01 00 [14:53:49]Write to MH i2c: E2 08 00 56 21 80 13 01 00 00 00 00 00 F4 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 0E 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 0E 00 56 21 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 39 [14:53:49]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:53:49]wFMCommunicate OK [14:53:49]SAM_PROTO_GetShiftState done [14:53:49]FM_GetShiftState done [14:53:49]opened in 1723853354 [14:53:49]opened+sec_in_day 1723939754 [14:53:49]quantity*price = 13000 [14:53:49]sum+1 = 13001 [14:53:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 82 17.08.2024 14:53 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49645 ФПД: 185103519679295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T145354&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49645&fm=185103519679295&tin=02508201610067®Number=0000000000092546&sum=13000 0 [14:53:50]StoreToDocumentArchive [14:53:50]shift 465 fd 49645 [14:53:50]save to /storage/0465/doc_00049645 [14:53:50]save last doc name /storage/0465/doc_00049645 to /storage/kkm_last_doc_name [14:53:50]save OK [14:53:50]Clear old archive folders... [14:53:50]ProcessDocumentItem done err = 0, tmpTLVsize=282 [14:53:50]tlvbuf is 018ACD50 [14:53:50]SAM_PROTO_ClearQueue [14:53:50]wFMCommunicate request_size=4 [14:53:50]MH_SAM_APDU [14:53:50]CAPDU: 80 09 00 00 [14:53:50]Write to MH i2c: E2 08 00 63 21 80 09 00 00 00 00 00 00 F6 [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:51]Read from MH i2c: E2 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 03 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 03 00 63 21 00 90 00 F8 [14:53:51]RAPDU: 90 00 [14:53:51]wFMCommunicate OK [14:53:51]SAM_PROTO_ClearQueue done [14:53:51]KKMCreateOFDPacket [14:53:51]OFDProtocolAddRootSTLVToBuf [14:53:51]FM_MakeSignedData [14:53:51]FM_MakeSignedData [14:53:51]SAM_PROTO_SignData [14:53:51]wFMCommunicate request_size=4 [14:53:51]MH_SAM_APDU [14:53:51]CAPDU: 80 0D 01 02 [14:53:51]Write to MH i2c: E2 08 00 64 21 80 0D 01 02 00 00 00 00 FE [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:51]Read from MH i2c: E2 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 03 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 03 00 64 21 00 90 00 F9 [14:53:51]RAPDU: 90 00 [14:53:51]wFMCommunicate OK [14:53:51]wFMCommunicate request_size=255 [14:53:51]MH_SAM_APDU [14:53:51]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 82 B9 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [14:53:51]Write to MH i2c: E2 02 01 65 21 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 82 B9 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 93 [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:51]Read from MH i2c: E2 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 03 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 03 00 65 21 00 90 00 FA [14:53:51]RAPDU: 90 00 [14:53:51]wFMCommunicate OK [14:53:51]wFMCommunicate request_size=41 [14:53:51]MH_SAM_APDU [14:53:51]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C1 00 00 35 04 06 00 A8 59 C5 89 83 3F [14:53:51]Write to MH i2c: E2 2C 00 66 21 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C1 00 00 35 04 06 00 A8 59 C5 89 83 3F 00 00 87 [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:51]Read from MH i2c: E2 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 03 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 03 00 66 21 00 90 00 FB [14:53:51]RAPDU: 90 00 [14:53:51]wFMCommunicate OK [14:53:51]wFMCommunicate request_size=4 [14:53:51]MH_SAM_APDU [14:53:51]CAPDU: 80 0D 03 02 [14:53:51]Write to MH i2c: E2 08 00 67 21 80 0D 03 02 00 00 00 00 03 [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:51]Read from MH i2c: E2 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 0B 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 0B 00 67 21 00 B3 D7 D4 81 91 B8 B8 FB 90 00 DF [14:53:51]RAPDU: B3 D7 D4 81 91 B8 B8 FB 90 00 [14:53:51]wFMCommunicate OK [14:53:51]SAM_PROTO_SignData done [14:53:51]FM_MakeSignedData done [14:53:51]CreateOFDProtocolMessage [14:53:51]wFMCommunicate request_size=4 [14:53:51]MH_SAM_APDU [14:53:51]CAPDU: 80 11 00 00 [14:53:51]Write to MH i2c: E2 08 00 68 21 80 11 00 00 00 00 00 00 03 [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:51]Read from MH i2c: E2 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 17 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 17 00 68 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4E [14:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:53:51]wFMCommunicate OK [14:53:51]CreateOFDProtocolMessage done [14:53:51]OFDSenderStorePacket 49645 [14:53:51]StoreOFDPacket docnum=49645 [14:53:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 E3 2A 26 01 C3 1E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 82 B9 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C1 00 00 35 04 06 00 A8 59 C5 89 83 3F B3 D7 D4 81 91 B8 B8 FB [14:53:51]CheckFolder [14:53:51]dirname=/storage/ofd_packets [14:53:51]CheckFolder done [14:53:51]ProducePacketName [14:53:51]name=ofd_packets/00049645 [14:53:51]NVStorageSaveData ofd_packets/00049645 [14:53:51]File name is /storage/ofd_packets/00049645 [14:53:51]Write 332 bytes [14:53:51]NVStorageSaveData done [14:53:51]OFDSenderStorePacket done [14:53:51]KKMCreateOFDPacket done [14:53:51]NVStorageSaveData kkm_last_timestamp [14:53:51]File name is /storage/kkm_last_timestamp [14:53:51]Write 4 bytes [14:53:51]NVStorageSaveData done [14:53:51]ExternCall_PrintAddStr [14:53:51]wPrintStart [14:53:51]Write to MH i2c: 01 00 00 69 21 8A [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: 01 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: 01 07 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: 01 07 00 69 21 00 00 00 00 00 FF 0F 9F [14:53:51]RasterBufferAndPrint [14:53:51]line Счет N : (3)189831 [14:53:51]line ИНН: 02508201610067 [14:53:51]line Контрольно-Кассовый Чек [14:53:51]line ПРОДАЖА [14:53:51]line Товар: 2000036220012 [14:53:51]line Кофе Капучино XL(GABB TRADE) [14:53:51]line 1.000 * 130.00 [14:53:51]line = 130.00 [14:53:51]line НДС 12% НСП 1% [14:53:51]line > о реализуемом товаре [14:53:51]line ИТОГО: 130.00 [14:53:51]line НСП 1% : 1.15 [14:53:51]line НДС 12% : 13.80 [14:53:51]line Наличными: 130.00 [14:53:51]line Безнал.: 0.00 [14:53:51]line Место: АЗС № 95 "Партнер Нефть" [14:53:51]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:53:51]line СНО: Общий режим [14:53:51]line Чек 82 17.08.2024 14:53 [14:53:51]line Смена: 465 ФФД: 1.0 [14:53:51]line ЗНМ: 0300000078 [14:53:51]line РНМ: 0000000000092546 [14:53:51]line Версия ККМ: 001 [14:53:51]line ФМ: 0000000000871800 [14:53:51]line ФД: 49645 [14:53:51]line ФПД: 185103519679295 [14:53:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T145354&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49645&fm=185103519679295&tin=02508201610067®Number=0000000000092546&sum=13000 [14:53:51]line 0 [14:53:51]OFD Sender: Processing packet 49645 [packets to send 21, broken 20] [14:53:51]ProducePacketName [14:53:51]name=ofd_packets/00049645 [14:53:51]OFD Sender: To server: pG, [14:53:51]CommunicateWithHost lk.salyk.kg:30040 [14:53:51]ConnectInit lk.salyk.kg [14:53:51]written 0, free lines is 4095 [14:53:51]Connected sock=10 [14:53:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 E3 2A 26 01 C3 1E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 82 B9 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C1 00 00 35 04 06 00 A8 59 C5 89 83 3F B3 D7 D4 81 91 B8 B8 FB [14:53:52]Write to MH i2c: 01 00 00 92 21 B3 [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: 01 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: 01 07 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: 01 07 00 92 21 00 00 00 00 00 E5 0C AB [14:53:52]RasterBufferAndPrint [14:53:52]line [14:53:52]line [14:53:52]line [14:53:52]line [14:53:52]line [14:53:52]written 0, free lines is 3306 [14:53:52]MH_Cut [14:53:52]Write to MH i2c: D1 01 00 99 21 01 8C [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: D1 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: D1 01 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: D1 01 00 99 21 00 8B [14:53:52]Write to MH i2c: 01 00 00 9A 21 BB [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 04 D9 47 00 C9 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C1 00 00 F4 03 04 00 BD 64 C0 66 B6 04 01 00 00 33 9F 5F B2 F6 A8 5B 1B [14:53:52]CommunicateWithHost err = 0 [14:53:52]CheckOFDResponse [14:53:52]1017 (14) - 77093643461234 [14:53:52]1041 (16) - 0000000000871800 [14:53:52]1040 (4) - 49645 [14:53:52]1012 (4) - 17.08.2024 08:52 [14:53:52]1206 (1) - 0 [14:53:52]OFD Sender: Remove packet 49645 [14:53:52]ProducePacketName [14:53:52]name=ofd_packets/00049645 [14:53:52]NVStorageDeleteData [14:53:52]OFD Sender: No OFD packet to send [14:53:53]*** Cut start [14:53:53]*** Purtial cut [14:53:53]*** Stage 1: CUTSNS_PIN = 1 [14:53:53]Read from MH i2c: 01 [14:53:53]MH_I2C_Read... [14:53:53]*** Stop cut motor [14:53:53]*** Cut end [14:53:53]Read from MH i2c: 01 07 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: 01 07 00 9A 21 00 00 00 00 00 FF 0F D0 [14:53:53]process_action close_receipt done [14:53:53]requested_data is exist [14:53:53]produce_requested_data [14:53:53]requested_item fm.sn is exist - process it [14:53:53]wFMCommunicate request_size=4 [14:53:53]MH_SAM_APDU [14:53:53]CAPDU: 80 11 00 00 [14:53:53]Write to MH i2c: E2 08 00 9B 21 80 11 00 00 00 00 00 00 36 [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:53]Read from MH i2c: E2 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 17 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 17 00 9B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 81 [14:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:53:53]wFMCommunicate OK [14:53:53]requested_item fd.num is exist - process it [14:53:53]SAM_PROTO_GetFieldsCounters [14:53:53]wFMCommunicate request_size=4 [14:53:53]MH_SAM_APDU [14:53:53]CAPDU: 80 13 00 00 [14:53:53]Write to MH i2c: E2 08 00 9C 21 80 13 00 00 00 00 00 00 39 [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:53]Read from MH i2c: E2 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 62 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 62 00 9C 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 ED C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [14:53:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 ED C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:53]wFMCommunicate OK [14:53:53]SAM_PROTO_GetFieldsCounters done [14:53:53]requested_item shift.num is exist - process it [14:53:53]requested_item shift.opened is exist - process it [14:53:53]req_shift_opened [14:53:53]FM_GetShiftState [14:53:53]SAM_PROTO_GetShiftState [14:53:53]wFMCommunicate request_size=4 [14:53:53]MH_SAM_APDU [14:53:53]CAPDU: 80 13 01 00 [14:53:53]Write to MH i2c: E2 08 00 9D 21 80 13 01 00 00 00 00 00 3B [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:53]Read from MH i2c: E2 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 0E 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 0E 00 9D 21 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 80 [14:53:53]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:53:53]wFMCommunicate OK [14:53:53]SAM_PROTO_GetShiftState done [14:53:53]FM_GetShiftState done [14:53:53]req_shift_opened done [14:53:53]requested_item shift.open_date is exist - process it [14:53:53]req_shift_open_date [14:53:53]req_shift_open_date done [14:53:53]produce_requested_data done [14:53:53]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49645,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [14:53:53]process_action_free close_receipt [14:53:53]json_value_free [14:53:53]json_value_free done [14:53:53]process_json_proto returns [14:53:53]Send response to host [14:53:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49645,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [14:53:53]free response buf [14:53:53]execute_script done [14:53:53]execute_script returns [14:53:53]free content buf [14:53:53]Sock 9.Close socket [14:53:53]Sock 9.Thread stoped [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:05]int [14:55:05]Write to MH i2c: 01 00 00 9E 21 BF [14:55:05]*** FLAG_PRN_KEY set [14:55:05]Write i2c OK [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 07 00 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 07 00 9E 21 00 08 00 00 00 FF 0F DC [14:55:05]state=0 [14:55:05]Key pressed [14:55:05]Feed [14:55:05]Write to MH i2c: D8 00 00 9F 21 97 [14:55:05]Write i2c OK [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: D8 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: D8 01 00 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: D8 01 00 9F 21 00 98 [14:55:05]int [14:55:05]Write to MH i2c: 01 00 00 A0 21 C1 [14:55:05]Write i2c OK [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 07 00 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 07 00 A0 21 00 48 00 00 00 3C 00 4C [14:55:05]state=2 [14:55:05]Key pressed [14:55:05]int [14:55:05]Write to MH i2c: 01 00 00 A1 21 C2 [14:55:05]*** FLAG_PRN_KEY reset [14:55:05]Write i2c OK [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 07 00 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 07 00 A1 21 00 00 00 00 00 F5 0F CD [14:55:05]state=2 [14:55:05]Stop feed [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:05]accept exits with 7 [14:58:05]New connection [14:58:05]New thread 3066944868 created [14:58:05]Thread 3066801508 joined [14:58:05]Waiting for new connection... [14:58:05] Sock 7.Parse request [14:58:05]Sock 7.Check first char [14:58:05]Sock 7.First char is OK [14:58:05]request: POST /json_proto HTTP/1.0 [14:58:05]Method: POST [14:58:05]URL: /json_proto [14:58:05]Method is POST - this is cgi request [14:58:05]url: /json_proto [14:58:05]query_string will be loaded in cgi processing [14:58:05]execute_cgi json_proto POST (null) [14:58:05]execute_cgi path=json_proto method=POST [14:58:05]POST find Content-Length [14:58:05]Host: 172.17.46.196:8080 [14:58:05]Content-Length: 622 [14:58:05]Content-Type: application/json [14:58:05] [14:58:05]POST finish read [14:58:05]Found Content-Length = 622 [14:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189832", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:05]execute_script... [14:58:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189832", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:05]POST & json_proto [14:58:05]process_json_proto [14:58:05]json parsed OK: [14:58:05]protocol is kg_v1.0 [14:58:05]action value=close_receipt [14:58:05]process_action close_receipt [14:58:05]cmd_close_receipt [14:58:05]MH_GetDate [14:58:05]Write to MH i2c: F0 00 00 A2 21 B2 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: F0 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: F0 09 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: F0 09 00 A2 21 00 82 BA C0 66 07 E8 5D 66 CF [14:58:05]GetLastDocTimeStamp 1723906434 [14:58:05]current date 1723906690 [14:58:05]FM_GetShiftState [14:58:05]SAM_PROTO_GetShiftState [14:58:05]wFMCommunicate request_size=4 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 13 01 00 [14:58:05]Write to MH i2c: E2 08 00 A3 21 80 13 01 00 00 00 00 00 41 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 0E 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 0E 00 A3 21 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 86 [14:58:05]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:58:05]wFMCommunicate OK [14:58:05]SAM_PROTO_GetShiftState done [14:58:05]FM_GetShiftState done [14:58:05]opened in 1723853354 [14:58:05]opened+sec_in_day 1723939754 [14:58:05]quantity*price = 15100 [14:58:05]sum+1 = 15101 [14:58:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 83 17.08.2024 14:58 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49646 ФПД: 98843209068451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T145810&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49646&fm=98843209068451&tin=02508201610067®Number=0000000000092546&sum=15100 0 [14:58:07]StoreToDocumentArchive [14:58:07]shift 465 fd 49646 [14:58:07]save to /storage/0465/doc_00049646 [14:58:07]save last doc name /storage/0465/doc_00049646 to /storage/kkm_last_doc_name [14:58:07]save OK [14:58:07]Clear old archive folders... [14:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=274 [14:58:07]tlvbuf is 0180F4F0 [14:58:07]SAM_PROTO_ClearQueue [14:58:07]wFMCommunicate request_size=4 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 09 00 00 [14:58:07]Write to MH i2c: E2 08 00 B0 21 80 09 00 00 00 00 00 00 43 [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 03 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 03 00 B0 21 00 90 00 45 [14:58:07]RAPDU: 90 00 [14:58:07]wFMCommunicate OK [14:58:07]SAM_PROTO_ClearQueue done [14:58:07]KKMCreateOFDPacket [14:58:07]OFDProtocolAddRootSTLVToBuf [14:58:07]FM_MakeSignedData [14:58:07]FM_MakeSignedData [14:58:07]SAM_PROTO_SignData [14:58:07]wFMCommunicate request_size=4 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 0D 01 02 [14:58:07]Write to MH i2c: E2 08 00 B1 21 80 0D 01 02 00 00 00 00 4B [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 03 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 03 00 B1 21 00 90 00 46 [14:58:07]RAPDU: 90 00 [14:58:07]wFMCommunicate OK [14:58:07]wFMCommunicate request_size=255 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 82 BA C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [14:58:07]Write to MH i2c: E2 02 01 B2 21 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 82 BA C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 9C [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 03 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 03 00 B2 21 00 90 00 47 [14:58:07]RAPDU: 90 00 [14:58:07]wFMCommunicate OK [14:58:07]wFMCommunicate request_size=33 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C1 00 00 35 04 06 00 59 E5 BA 5D 6F A3 [14:58:07]Write to MH i2c: E2 24 00 B3 21 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C1 00 00 35 04 06 00 59 E5 BA 5D 6F A3 00 00 EB [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 03 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 03 00 B3 21 00 90 00 48 [14:58:07]RAPDU: 90 00 [14:58:07]wFMCommunicate OK [14:58:07]wFMCommunicate request_size=4 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 0D 03 02 [14:58:07]Write to MH i2c: E2 08 00 B4 21 80 0D 03 02 00 00 00 00 50 [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 0B 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 0B 00 B4 21 00 49 CC 1A BE A4 DB C8 22 90 00 A7 [14:58:07]RAPDU: 49 CC 1A BE A4 DB C8 22 90 00 [14:58:07]wFMCommunicate OK [14:58:07]SAM_PROTO_SignData done [14:58:07]FM_MakeSignedData done [14:58:07]CreateOFDProtocolMessage [14:58:07]wFMCommunicate request_size=4 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 11 00 00 [14:58:07]Write to MH i2c: E2 08 00 B5 21 80 11 00 00 00 00 00 00 50 [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 17 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 17 00 B5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9B [14:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:58:07]wFMCommunicate OK [14:58:07]CreateOFDProtocolMessage done [14:58:07]OFDSenderStorePacket 49646 [14:58:07]StoreOFDPacket docnum=49646 [14:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 FA 91 1E 01 21 68 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 82 BA C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C1 00 00 35 04 06 00 59 E5 BA 5D 6F A3 49 CC 1A BE A4 DB C8 22 [14:58:07]CheckFolder [14:58:07]dirname=/storage/ofd_packets [14:58:07]CheckFolder done [14:58:07]ProducePacketName [14:58:07]name=ofd_packets/00049646 [14:58:07]NVStorageSaveData ofd_packets/00049646 [14:58:07]File name is /storage/ofd_packets/00049646 [14:58:07]Write 324 bytes [14:58:07]NVStorageSaveData done [14:58:07]OFDSenderStorePacket done [14:58:07]KKMCreateOFDPacket done [14:58:07]NVStorageSaveData kkm_last_timestamp [14:58:07]File name is /storage/kkm_last_timestamp [14:58:07]Write 4 bytes [14:58:07]NVStorageSaveData done [14:58:07]ExternCall_PrintAddStr [14:58:07]wPrintStart [14:58:07]Write to MH i2c: 01 00 00 B6 21 D7 [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: 01 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: 01 07 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: 01 07 00 B6 21 00 00 00 00 00 FF 0F EC [14:58:07]RasterBufferAndPrint [14:58:07]line Счет N : (3)189832 [14:58:07]line ИНН: 02508201610067 [14:58:07]line Контрольно-Кассовый Чек [14:58:07]line ПРОДАЖА [14:58:07]line Товар: 48741958 [14:58:07]line Сигареты Parliament Aqua Blue [14:58:07]line 1.000 * 151.00 [14:58:07]line = 151.00 [14:58:07]line НДС 12% НСП 1% [14:58:07]line > о реализуемом товаре [14:58:07]line ИТОГО: 151.00 [14:58:07]line НСП 1% : 1.34 [14:58:07]line НДС 12% : 16.03 [14:58:07]line Наличными: 151.00 [14:58:07]line Безнал.: 0.00 [14:58:07]line Место: АЗС № 95 "Партнер Нефть" [14:58:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:58:07]line СНО: Общий режим [14:58:07]line Чек 83 17.08.2024 14:58 [14:58:07]line Смена: 465 ФФД: 1.0 [14:58:07]line ЗНМ: 0300000078 [14:58:07]line РНМ: 0000000000092546 [14:58:07]line Версия ККМ: 001 [14:58:07]line ФМ: 0000000000871800 [14:58:07]line ФД: 49646 [14:58:07]line ФПД: 98843209068451 [14:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T145810&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49646&fm=98843209068451&tin=02508201610067®Number=0000000000092546&sum=15100 [14:58:07]OFD Sender: Processing packet 49646 [packets to send 21, broken 20] [14:58:07]ProducePacketName [14:58:07]name=ofd_packets/00049646 [14:58:07]OFD Sender: To server: pG, [14:58:07]CommunicateWithHost lk.salyk.kg:30040 [14:58:07]ConnectInit lk.salyk.kg [14:58:07]line 0 [14:58:07]written 0, free lines is 4095 [14:58:08]Write to MH i2c: 01 00 00 DF 21 00 [14:58:08]Write i2c OK [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: 01 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: 01 07 00 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: 01 07 00 DF 21 00 00 00 00 00 C8 0C DB [14:58:08]RasterBufferAndPrint [14:58:08]line [14:58:08]line [14:58:08]line [14:58:08]line [14:58:08]line [14:58:08]written 0, free lines is 3279 [14:58:08]MH_Cut [14:58:08]Write to MH i2c: D1 01 00 E6 21 01 D9 [14:58:08]Write i2c OK [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: D1 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: D1 01 00 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: D1 01 00 E6 21 00 D8 [14:58:08]Write to MH i2c: 01 00 00 E7 21 08 [14:58:08]Write i2c OK [14:58:08]MH_I2C_Read... [14:58:08]ConnectInit Can't connect to host [14:58:09]*** Cut start [14:58:09]*** Purtial cut [14:58:09]*** CUTSNS_PIN = 0 [14:58:09]*** Stage 1: CUTSNS_PIN = 1 [14:58:11]Read from MH i2c: 01 [14:58:11]MH_I2C_Read... [14:58:11]*** Stop cut motor [14:58:11]*** Cut end [14:58:11]Read from MH i2c: 01 07 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 07 00 E7 21 00 00 00 00 00 FF 0F 1D [14:58:11]process_action close_receipt done [14:58:11]requested_data is exist [14:58:11]produce_requested_data [14:58:11]requested_item fm.sn is exist - process it [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 11 00 00 [14:58:11]Write to MH i2c: E2 08 00 E8 21 80 11 00 00 00 00 00 00 83 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 17 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 17 00 E8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CE [14:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:58:11]wFMCommunicate OK [14:58:11]requested_item fd.num is exist - process it [14:58:11]SAM_PROTO_GetFieldsCounters [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 13 00 00 [14:58:11]Write to MH i2c: E2 08 00 E9 21 80 13 00 00 00 00 00 00 86 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 62 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 62 00 E9 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EE C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [14:58: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EE C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:11]wFMCommunicate OK [14:58:11]SAM_PROTO_GetFieldsCounters done [14:58:11]requested_item shift.num is exist - process it [14:58:11]requested_item shift.opened is exist - process it [14:58:11]req_shift_opened [14:58:11]FM_GetShiftState [14:58:11]SAM_PROTO_GetShiftState [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 13 01 00 [14:58:11]Write to MH i2c: E2 08 00 EA 21 80 13 01 00 00 00 00 00 88 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:11]Read from MH i2c: E2 0E 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 0E 00 EA 21 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 CD [14:58:11]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:58:11]wFMCommunicate OK [14:58:11]SAM_PROTO_GetShiftState done [14:58:11]FM_GetShiftState done [14:58:11]req_shift_opened done [14:58:11]requested_item shift.open_date is exist - process it [14:58:11]req_shift_open_date [14:58:11]req_shift_open_date done [14:58:11]produce_requested_data done [14:58:11]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49646,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [14:58:11]process_action_free close_receipt [14:58:11]json_value_free [14:58:11]json_value_free done [14:58:11]process_json_proto returns [14:58:11]Send response to host [14:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49646,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [14:58:11]free response buf [14:58:11]execute_script done [14:58:11]execute_script returns [14:58:11]free content buf [14:58:11]Sock 7.Close socket [14:58:11]Sock 7.Thread stoped [14:58:12]ConnectInit Can't take IP for lk.salyk.kg [14:58:12]CommunicateWithHost connect error [14:58:12]CommunicateWithHost err = -1 [14:58:12]OFD Sender: Server communicate error [14:58:17]OFD Sender: Processing packet 49646 [packets to send 21, broken 20] [14:58:17]ProducePacketName [14:58:17]name=ofd_packets/00049646 [14:58:17]OFD Sender: To server: pG, [14:58:17]CommunicateWithHost lk.salyk.kg:30040 [14:58:17]ConnectInit lk.salyk.kg [14:58:22]ConnectInit Can't take IP for lk.salyk.kg [14:58:22]CommunicateWithHost connect error [14:58:22]CommunicateWithHost err = -1 [14:58:22]OFD Sender: Server communicate error [14:58:27]OFD Sender: Processing packet 49646 [packets to send 21, broken 20] [14:58:27]ProducePacketName [14:58:27]name=ofd_packets/00049646 [14:58:27]OFD Sender: To server: pG, [14:58:27]CommunicateWithHost lk.salyk.kg:30040 [14:58:27]ConnectInit lk.salyk.kg [14:58:32]ConnectInit Can't take IP for lk.salyk.kg [14:58:32]CommunicateWithHost connect error [14:58:32]CommunicateWithHost err = -1 [14:58:32]OFD Sender: Server communicate error [14:58:37]OFD Sender: Processing packet 49646 [packets to send 21, broken 20] [14:58:37]ProducePacketName [14:58:37]name=ofd_packets/00049646 [14:58:37]OFD Sender: To server: pG, [14:58:37]CommunicateWithHost lk.salyk.kg:30040 [14:58:37]ConnectInit lk.salyk.kg [14:58:42]ConnectInit Can't take IP for lk.salyk.kg [14:58:42]CommunicateWithHost connect error [14:58:42]CommunicateWithHost err = -1 [14:58:42]OFD Sender: Server communicate error [14:58:47]OFD Sender: Processing packet 49646 [packets to send 21, broken 20] [14:58:47]ProducePacketName [14:58:47]name=ofd_packets/00049646 [14:58:47]OFD Sender: To server: pG, [14:58:47]CommunicateWithHost lk.salyk.kg:30040 [14:58:47]ConnectInit lk.salyk.kg [14:58:48]Connected sock=7 [14:58:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 FA 91 1E 01 21 68 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 82 BA C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C1 00 00 35 04 06 00 59 E5 BA 5D 6F A3 49 CC 1A BE A4 DB C8 22 [14:58:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BC B3 47 00 8B 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C1 00 00 F4 03 04 00 E5 65 C0 66 B6 04 01 00 00 F2 96 9C CF 4E 22 C4 A1 [14:58:48]CommunicateWithHost err = 0 [14:58:48]CheckOFDResponse [14:58:48]1017 (14) - 77093643461234 [14:58:48]1041 (16) - 0000000000871800 [14:58:48]1040 (4) - 49646 [14:58:48]1012 (4) - 17.08.2024 08:57 [14:58:48]1206 (1) - 0 [14:58:48]OFD Sender: Remove packet 49646 [14:58:48]ProducePacketName [14:58:48]name=ofd_packets/00049646 [14:58:48]NVStorageDeleteData [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:35]accept exits with 10 [14:59:35]New connection [14:59:35]New thread 3066801508 created [14:59:35]Thread 3066944868 joined [14:59:35]Waiting for new connection... [14:59:35] Sock 10.Parse request [14:59:35]Sock 10.Check first char [14:59:35]Sock 10.First char is OK [14:59:35]request: POST /json_proto HTTP/1.0 [14:59:35]Method: POST [14:59:35]URL: /json_proto [14:59:35]Method is POST - this is cgi request [14:59:35]url: /json_proto [14:59:35]query_string will be loaded in cgi processing [14:59:35]execute_cgi json_proto POST (null) [14:59:35]execute_cgi path=json_proto method=POST [14:59:35]POST find Content-Length [14:59:35]Host: 172.17.46.196:8080 [14:59:35]Content-Length: 666 [14:59:35]Content-Type: application/json [14:59:35] [14:59:35]POST finish read [14:59:35]Found Content-Length = 666 [14:59:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189833", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:35]execute_script... [14:59:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189833", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:35]POST & json_proto [14:59:35]process_json_proto [14:59:35]json parsed OK: [14:59:35]protocol is kg_v1.0 [14:59:35]action value=close_receipt [14:59:35]process_action close_receipt [14:59:35]cmd_close_receipt [14:59:35]MH_GetDate [14:59:35]Write to MH i2c: F0 00 00 EB 21 FB [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: F0 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: F0 09 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: F0 09 00 EB 21 00 DB BA C0 66 07 E8 5D 66 71 [14:59:35]GetLastDocTimeStamp 1723906690 [14:59:35]current date 1723906779 [14:59:35]FM_GetShiftState [14:59:35]SAM_PROTO_GetShiftState [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 13 01 00 [14:59:35]Write to MH i2c: E2 08 00 EC 21 80 13 01 00 00 00 00 00 8A [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 0E 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 0E 00 EC 21 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 CF [14:59:35]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:59:35]wFMCommunicate OK [14:59:35]SAM_PROTO_GetShiftState done [14:59:35]FM_GetShiftState done [14:59:35]opened in 1723853354 [14:59:35]opened+sec_in_day 1723939754 [14:59:35]quantity*price = 9000 [14:59:35]sum+1 = 9001 [14:59:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 84 17.08.2024 14:59 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49647 ФПД: 165749823418929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T145939&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49647&fm=165749823418929&tin=02508201610067®Number=0000000000092546&sum=9000 0 [14:59:36]StoreToDocumentArchive [14:59:36]shift 465 fd 49647 [14:59:36]save to /storage/0465/doc_00049647 [14:59:36]save last doc name /storage/0465/doc_00049647 to /storage/kkm_last_doc_name [14:59:36]save OK [14:59:36]Clear old archive folders... [14:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=293 [14:59:36]tlvbuf is 01879C00 [14:59:36]SAM_PROTO_ClearQueue [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 09 00 00 [14:59:36]Write to MH i2c: E2 08 00 F9 21 80 09 00 00 00 00 00 00 8C [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 F9 21 00 90 00 8E [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]SAM_PROTO_ClearQueue done [14:59:36]KKMCreateOFDPacket [14:59:36]OFDProtocolAddRootSTLVToBuf [14:59:36]FM_MakeSignedData [14:59:36]FM_MakeSignedData [14:59:36]SAM_PROTO_SignData [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 01 02 [14:59:36]Write to MH i2c: E2 08 00 FA 21 80 0D 01 02 00 00 00 00 94 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 FA 21 00 90 00 8F [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]wFMCommunicate request_size=255 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DB BA C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [14:59:36]Write to MH i2c: E2 02 01 FB 21 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DB BA C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 4D [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 FB 21 00 90 00 90 [14:59:37]RAPDU: 90 00 [14:59:37]wFMCommunicate OK [14:59:37]wFMCommunicate request_size=52 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C1 00 00 35 04 06 00 96 BF A3 58 B2 31 [14:59:37]Write to MH i2c: E2 37 00 FC 21 80 0D 02 02 2F 00 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C1 00 00 35 04 06 00 96 BF A3 58 B2 31 00 00 36 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 03 00 FC 21 00 90 00 91 [14:59:37]RAPDU: 90 00 [14:59:37]wFMCommunicate OK [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 0D 03 02 [14:59:37]Write to MH i2c: E2 08 00 FD 21 80 0D 03 02 00 00 00 00 99 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 0B 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 0B 00 FD 21 00 0D BA 26 2A 5C 2F C5 A4 90 00 A5 [14:59:37]RAPDU: 0D BA 26 2A 5C 2F C5 A4 90 00 [14:59:37]wFMCommunicate OK [14:59:37]SAM_PROTO_SignData done [14:59:37]FM_MakeSignedData done [14:59:37]CreateOFDProtocolMessage [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 11 00 00 [14:59:37]Write to MH i2c: E2 08 00 FE 21 80 11 00 00 00 00 00 00 99 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 17 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 17 00 FE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E4 [14:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:59:37]wFMCommunicate OK [14:59:37]CreateOFDProtocolMessage done [14:59:37]OFDSenderStorePacket 49647 [14:59:37]StoreOFDPacket docnum=49647 [14:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 F6 53 31 01 5A 8B 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DB BA C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C1 00 00 35 04 06 00 96 BF A3 58 B2 31 0D BA 26 2A 5C 2F C5 A4 [14:59:37]CheckFolder [14:59:37]dirname=/storage/ofd_packets [14:59:37]CheckFolder done [14:59:37]ProducePacketName [14:59:37]name=ofd_packets/00049647 [14:59:37]NVStorageSaveData ofd_packets/00049647 [14:59:37]File name is /storage/ofd_packets/00049647 [14:59:37]Write 343 bytes [14:59:37]NVStorageSaveData done [14:59:37]OFDSenderStorePacket done [14:59:37]KKMCreateOFDPacket done [14:59:37]NVStorageSaveData kkm_last_timestamp [14:59:37]File name is /storage/kkm_last_timestamp [14:59:37]Write 4 bytes [14:59:37]NVStorageSaveData done [14:59:37]ExternCall_PrintAddStr [14:59:37]wPrintStart [14:59:37]Write to MH i2c: 01 00 00 FF 21 20 [14:59:37]OFD Sender: Processing packet 49647 [packets to send 21, broken 20] [14:59:37]ProducePacketName [14:59:37]name=ofd_packets/00049647 [14:59:37]OFD Sender: To server: pG, [14:59:37]CommunicateWithHost lk.salyk.kg:30040 [14:59:37]ConnectInit lk.salyk.kg [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 FF 21 00 00 00 00 00 FF 0F 35 [14:59:37]RasterBufferAndPrint [14:59:37]line Счет N : (3)189833 [14:59:37]line ИНН: 02508201610067 [14:59:37]line Контрольно-Кассовый Чек [14:59:37]line ПРОДАЖА [14:59:37]line Товар: 4870022003305 [14:59:37]line Напиток Gorilla эн нат ж/б 0,5/0,45л [14:59:37]line 1.000 * 90.00 [14:59:37]line = 90.00 [14:59:37]line НДС 12% НСП 1% [14:59:37]line > о реализуемом товаре [14:59:37]line ИТОГО: 90.00 [14:59:37]line НСП 1% : 0.80 [14:59:37]line НДС 12% : 9.56 [14:59:37]line Наличными: 90.00 [14:59:37]line Безнал.: 0.00 [14:59:37]line Место: АЗС № 95 "Партнер Нефть" [14:59:37]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:59:37]line СНО: Общий режим [14:59:37]line Чек 84 17.08.2024 14:59 [14:59:37]line Смена: 465 ФФД: 1.0 [14:59:37]line ЗНМ: 0300000078 [14:59:37]line РНМ: 0000000000092546 [14:59:37]line Версия ККМ: 001 [14:59:37]line ФМ: 0000000000871800 [14:59:37]line ФД: 49647 [14:59:37]line ФПД: 165749823418929 [14:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T145939&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49647&fm=165749823418929&tin=02508201610067®Number=0000000000092546&sum=9000 [14:59:37]line 0 [14:59:37]Connected sock=9 [14:59:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 F6 53 31 01 5A 8B 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DB BA C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C1 00 00 35 04 06 00 96 BF A3 58 B2 31 0D BA 26 2A 5C 2F C5 A4 [14:59:37]written 0, free lines is 4095 [14:59:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0A 60 47 00 92 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 31 38 30 30 10 04 04 00 EF C1 00 00 F4 03 04 00 17 66 C0 66 B6 04 01 00 00 67 7A 36 22 74 50 5F 04 [14:59:38]CommunicateWithHost err = 0 [14:59:38]CheckOFDResponse [14:59:38]1017 (14) - 77093643461234 [14:59:38]1041 (16) - 0000000000871800 [14:59:38]1040 (4) - 49647 [14:59:38]1012 (4) - 17.08.2024 08:57 [14:59:38]1206 (1) - 0 [14:59:38]OFD Sender: Remove packet 49647 [14:59:38]ProducePacketName [14:59:38]name=ofd_packets/00049647 [14:59:38]NVStorageDeleteData [14:59:38]Write to MH i2c: 01 00 00 28 22 4A [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 07 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 07 00 28 22 00 00 00 00 00 DB 0C 38 [14:59:38]RasterBufferAndPrint [14:59:38]line [14:59:38]line [14:59:38]line [14:59:38]line [14:59:38]line [14:59:38]written 0, free lines is 3300 [14:59:38]MH_Cut [14:59:38]Write to MH i2c: D1 01 00 2F 22 01 23 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: D1 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: D1 01 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: D1 01 00 2F 22 00 22 [14:59:38]Write to MH i2c: 01 00 00 30 22 52 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]OFD Sender: No OFD packet to send [14:59:39]*** Cut start [14:59:39]*** Purtial cut [14:59:39]*** Stage 1: CUTSNS_PIN = 1 [14:59:39]Read from MH i2c: 01 [14:59:39]MH_I2C_Read... [14:59:39]*** Stop cut motor [14:59:39]*** Cut end [14:59:39]Read from MH i2c: 01 07 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 07 00 30 22 00 00 00 00 00 FF 0F 67 [14:59:39]process_action close_receipt done [14:59:39]requested_data is exist [14:59:39]produce_requested_data [14:59:39]requested_item fm.sn is exist - process it [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 11 00 00 [14:59:39]Write to MH i2c: E2 08 00 31 22 80 11 00 00 00 00 00 00 CD [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 31 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 18 [14:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:59:39]wFMCommunicate OK [14:59:39]requested_item fd.num is exist - process it [14:59:39]SAM_PROTO_GetFieldsCounters [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 13 00 00 [14:59:39]Write to MH i2c: E2 08 00 32 22 80 13 00 00 00 00 00 00 D0 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 62 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 62 00 32 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EF C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [14:59: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EF C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_GetFieldsCounters done [14:59:39]requested_item shift.num is exist - process it [14:59:39]requested_item shift.opened is exist - process it [14:59:39]req_shift_opened [14:59:39]FM_GetShiftState [14:59:39]SAM_PROTO_GetShiftState [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 13 01 00 [14:59:39]Write to MH i2c: E2 08 00 33 22 80 13 01 00 00 00 00 00 D2 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0E 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0E 00 33 22 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 17 [14:59:39]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_GetShiftState done [14:59:39]FM_GetShiftState done [14:59:39]req_shift_opened done [14:59:39]requested_item shift.open_date is exist - process it [14:59:39]req_shift_open_date [14:59:39]req_shift_open_date done [14:59:39]produce_requested_data done [14:59:39]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49647,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [14:59:39]process_action_free close_receipt [14:59:39]json_value_free [14:59:39]json_value_free done [14:59:39]process_json_proto returns [14:59:39]Send response to host [14:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49647,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [14:59:39]free response buf [14:59:39]execute_script done [14:59:39]execute_script returns [14:59:39]free content buf [14:59:39]Sock 10.Close socket [14:59:39]Sock 10.Thread stoped [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:46]int [15:05:46]Write to MH i2c: 01 00 00 34 22 56 [15:05:46]*** FLAG_PRN_KEY set [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 07 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 07 00 34 22 00 08 00 00 00 FF 0F 73 [15:05:46]state=0 [15:05:46]Key pressed [15:05:46]Feed [15:05:46]Write to MH i2c: D8 00 00 35 22 2E [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: D8 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: D8 01 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: D8 01 00 35 22 00 2F [15:05:46]int [15:05:46]Write to MH i2c: 01 00 00 36 22 58 [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 07 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 07 00 36 22 00 48 00 00 00 3C 00 E3 [15:05:46]state=2 [15:05:46]Key pressed [15:05:46]int [15:05:46]Write to MH i2c: 01 00 00 37 22 59 [15:05:46]*** FLAG_PRN_KEY reset [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 07 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 07 00 37 22 00 00 00 00 00 F6 0F 65 [15:05:46]state=2 [15:05:46]Stop feed [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:16]accept exits with 7 [15:07:16]New connection [15:07:16]New thread 3066944868 created [15:07:16]Thread 3066801508 joined [15:07:16]Waiting for new connection... [15:07:16] Sock 7.Parse request [15:07:16]Sock 7.Check first char [15:07:16]Sock 7.First char is OK [15:07:16]request: POST /json_proto HTTP/1.0 [15:07:16]Method: POST [15:07:16]URL: /json_proto [15:07:16]Method is POST - this is cgi request [15:07:16]url: /json_proto [15:07:16]query_string will be loaded in cgi processing [15:07:16]execute_cgi json_proto POST (null) [15:07:16]execute_cgi path=json_proto method=POST [15:07:16]POST find Content-Length [15:07:16]Host: 172.17.46.196:8080 [15:07:16]Content-Length: 756 [15:07:16]Content-Type: application/json [15:07:16] [15:07:16]POST finish read [15:07:16]Found Content-Length = 756 [15:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30086252", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:16]execute_script... [15:07: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)11326282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30086252", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:16]POST & json_proto [15:07:16]process_json_proto [15:07:16]json parsed OK: [15:07:16]protocol is kg_v1.0 [15:07:16]action value=close_receipt [15:07:16]process_action close_receipt [15:07:16]cmd_close_receipt [15:07:16]MH_GetDate [15:07:16]Write to MH i2c: F0 00 00 38 22 49 [15:07:16]Write i2c OK [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: F0 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: F0 09 00 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: F0 09 00 38 22 00 A8 BC C0 66 07 E8 5D 66 8E [15:07:16]GetLastDocTimeStamp 1723906779 [15:07:16]current date 1723907240 [15:07:16]FM_GetShiftState [15:07:16]SAM_PROTO_GetShiftState [15:07:16]wFMCommunicate request_size=4 [15:07:16]MH_SAM_APDU [15:07:16]CAPDU: 80 13 01 00 [15:07:16]Write to MH i2c: E2 08 00 39 22 80 13 01 00 00 00 00 00 D8 [15:07:16]Write i2c OK [15:07:16]MH_I2C_Read... [15:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:16]Read from MH i2c: E2 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: E2 0E 00 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: E2 0E 00 39 22 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 1D [15:07:16]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:07:16]wFMCommunicate OK [15:07:16]SAM_PROTO_GetShiftState done [15:07:16]FM_GetShiftState done [15:07:16]opened in 1723853354 [15:07:16]opened+sec_in_day 1723939754 [15:07:16]quantity*price = 0 [15:07:16]sum+1 = 1 [15:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 85 17.08.2024 15:07 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30086252 ФМ: 0000000000871800 ФД: 49648 ФПД: 968313701612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T150720&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49648&fm=968313701612&tin=02508201610067®Number=0000000000092546&sum=0 [15:07:17]StoreToDocumentArchive [15:07:17]shift 465 fd 49648 [15:07:17]save to /storage/0465/doc_00049648 [15:07:17]save last doc name /storage/0465/doc_00049648 to /storage/kkm_last_doc_name [15:07:17]save OK [15:07:17]Clear old archive folders... [15:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:17]tlvbuf is 0180EC90 [15:07:17]SAM_PROTO_ClearQueue [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 09 00 00 [15:07:17]Write to MH i2c: E2 08 00 46 22 80 09 00 00 00 00 00 00 DA [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 46 22 00 90 00 DC [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]SAM_PROTO_ClearQueue done [15:07:17]KKMCreateOFDPacket [15:07:17]OFDProtocolAddRootSTLVToBuf [15:07:17]FM_MakeSignedData [15:07:17]FM_MakeSignedData [15:07:17]SAM_PROTO_SignData [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 01 02 [15:07:17]Write to MH i2c: E2 08 00 47 22 80 0D 01 02 00 00 00 00 E2 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 47 22 00 90 00 DD [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]wFMCommunicate request_size=255 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 55 00 00 00 F4 03 04 00 A8 BC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F0 C1 00 00 35 04 06 00 00 [15:07:17]Write to MH i2c: E2 02 01 48 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 55 00 00 00 F4 03 04 00 A8 BC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F0 C1 00 00 35 04 06 00 00 00 00 B4 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 48 22 00 90 00 DE [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]wFMCommunicate request_size=10 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 02 02 05 E1 73 FE 84 EC [15:07:17]Write to MH i2c: E2 0D 00 49 22 80 0D 02 02 05 00 E1 73 FE 84 EC 00 00 B1 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 49 22 00 90 00 DF [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 03 02 [15:07:17]Write to MH i2c: E2 08 00 4A 22 80 0D 03 02 00 00 00 00 E7 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 0B 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 0B 00 4A 22 00 67 9E 2B 56 16 58 9B D4 90 00 4B [15:07:17]RAPDU: 67 9E 2B 56 16 58 9B D4 90 00 [15:07:17]wFMCommunicate OK [15:07:17]SAM_PROTO_SignData done [15:07:17]FM_MakeSignedData done [15:07:17]CreateOFDProtocolMessage [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 11 00 00 [15:07:17]Write to MH i2c: E2 08 00 4B 22 80 11 00 00 00 00 00 00 E7 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 17 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 17 00 4B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 32 [15:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:07:17]wFMCommunicate OK [15:07:17]CreateOFDProtocolMessage done [15:07:17]OFDSenderStorePacket 49648 [15:07:17]StoreOFDPacket docnum=49648 [15:07:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 2C 8C 07 01 D4 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 55 00 00 00 F4 03 04 00 A8 BC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F0 C1 00 00 35 04 06 00 00 E1 73 FE 84 EC 67 9E 2B 56 16 58 9B D4 [15:07:17]CheckFolder [15:07:17]dirname=/storage/ofd_packets [15:07:17]CheckFolder done [15:07:17]ProducePacketName [15:07:17]name=ofd_packets/00049648 [15:07:17]NVStorageSaveData ofd_packets/00049648 [15:07:17]File name is /storage/ofd_packets/00049648 [15:07:17]Write 301 bytes [15:07:17]NVStorageSaveData done [15:07:17]OFDSenderStorePacket done [15:07:17]KKMCreateOFDPacket done [15:07:17]NVStorageSaveData kkm_last_timestamp [15:07:17]File name is /storage/kkm_last_timestamp [15:07:17]Write 4 bytes [15:07:17]NVStorageSaveData done [15:07:17]ExternCall_PrintAddStr [15:07:17]wPrintStart [15:07:17]Write to MH i2c: 01 00 00 4C 22 6E [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: 01 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: 01 07 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: 01 07 00 4C 22 00 00 00 00 00 FF 0F 83 [15:07:17]RasterBufferAndPrint [15:07:17]line Счет N : (1)11326282 [15:07:17]line ИНН: 02508201610067 [15:07:17]line Контрольно-Кассовый Чек [15:07:17]line ПРОДАЖА [15:07:17]line ТРК (МРК, ГНК) : 42 [15:07:17]line Товар: 2710124130 [15:07:17]line Аи-92-К-4 [15:07:17]line 20.000 * 0.00 [15:07:17]line = 0.00 [15:07:17]line НДС 12% НСП 1% [15:07:17]line > о реализуемом товаре [15:07:17]line ИТОГО: 0.00 [15:07:17]line НСП 1% : 0.00 [15:07:17]line НДС 12% : 0.00 [15:07:17]line Наличными: 0.00 [15:07:17]line Безнал.: 0.00 [15:07:17]line Место: АЗС № 95 "Партнер Нефть" [15:07:17]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:07:17]line СНО: Общий режим [15:07:17]line Чек 85 17.08.2024 15:07 [15:07:17]line Смена: 465 ФФД: 1.0 [15:07:17]line ЗНМ: 0300000078 [15:07:17]line РНМ: 0000000000092546 [15:07:17]line Версия ККМ: 001 [15:07:17]line Талоны: ТК ГПНА Online [15:07:17]line 30086252 [15:07:17]line ФМ: 0000000000871800 [15:07:17]line ФД: 49648 [15:07:17]line ФПД: 968313701612 [15:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T150720&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49648&fm=968313701612&tin=02508201610067®Number=0000000000092546&sum=0 [15:07:17]written 0, free lines is 4095 [15:07:17]OFD Sender: Processing packet 49648 [packets to send 21, broken 20] [15:07:17]ProducePacketName [15:07:17]name=ofd_packets/00049648 [15:07:17]OFD Sender: To server: pG, [15:07:17]CommunicateWithHost lk.salyk.kg:30040 [15:07:17]ConnectInit lk.salyk.kg [15:07:17]Connected sock=10 [15:07:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 2C 8C 07 01 D4 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 55 00 00 00 F4 03 04 00 A8 BC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F0 C1 00 00 35 04 06 00 00 E1 73 FE 84 EC 67 9E 2B 56 16 58 9B D4 [15:07:18]Write to MH i2c: 01 00 00 76 22 98 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 76 22 00 00 00 00 00 D8 0C 83 [15:07:18]RasterBufferAndPrint [15:07:18]line [15:07:18]line [15:07:18]line [15:07:18]line [15:07:18]line [15:07:18]written 0, free lines is 3294 [15:07:18]MH_Cut [15:07:18]Write to MH i2c: D1 01 00 7D 22 01 71 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: D1 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: D1 01 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: D1 01 00 7D 22 00 70 [15:07:18]Write to MH i2c: 01 00 00 7E 22 A0 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 47 E4 47 00 7E 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 31 38 30 30 10 04 04 00 F0 C1 00 00 F4 03 04 00 E3 67 C0 66 B6 04 01 00 00 BD 7A 0D 20 93 8A AD 63 [15:07:18]CommunicateWithHost err = 0 [15:07:18]CheckOFDResponse [15:07:18]1017 (14) - 77093643461234 [15:07:18]1041 (16) - 0000000000871800 [15:07:18]1040 (4) - 49648 [15:07:18]1012 (4) - 17.08.2024 09:05 [15:07:18]1206 (1) - 0 [15:07:18]OFD Sender: Remove packet 49648 [15:07:18]ProducePacketName [15:07:18]name=ofd_packets/00049648 [15:07:18]NVStorageDeleteData [15:07:18]OFD Sender: No OFD packet to send [15:07:18]*** Cut start [15:07:18]*** Purtial cut [15:07:18]*** CUTSNS_PIN = 0 [15:07:19]*** Stage 1: CUTSNS_PIN = 1 [15:07:20]Read from MH i2c: 01 [15:07:20]MH_I2C_Read... [15:07:20]*** Stop cut motor [15:07:20]*** Cut end [15:07:20]Read from MH i2c: 01 07 00 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: 01 07 00 7E 22 00 00 00 00 00 FF 0F B5 [15:07:20]process_action close_receipt done [15:07:20]requested_data is exist [15:07:20]produce_requested_data [15:07:20]requested_item fm.sn is exist - process it [15:07:20]wFMCommunicate request_size=4 [15:07:20]MH_SAM_APDU [15:07:20]CAPDU: 80 11 00 00 [15:07:20]Write to MH i2c: E2 08 00 7F 22 80 11 00 00 00 00 00 00 1B [15:07:20]Write i2c OK [15:07:20]MH_I2C_Read... [15:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:21]Read from MH i2c: E2 [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: E2 17 00 [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: E2 17 00 7F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 66 [15:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:07:21]wFMCommunicate OK [15:07:21]requested_item fd.num is exist - process it [15:07:21]SAM_PROTO_GetFieldsCounters [15:07:21]wFMCommunicate request_size=4 [15:07:21]MH_SAM_APDU [15:07:21]CAPDU: 80 13 00 00 [15:07:21]Write to MH i2c: E2 08 00 80 22 80 13 00 00 00 00 00 00 1E [15:07:21]Write i2c OK [15:07:21]MH_I2C_Read... [15:07:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:21]Read from MH i2c: E2 [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: E2 62 00 [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: E2 62 00 80 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F0 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [15:07: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F0 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:21]wFMCommunicate OK [15:07:21]SAM_PROTO_GetFieldsCounters done [15:07:21]requested_item shift.num is exist - process it [15:07:21]requested_item shift.opened is exist - process it [15:07:21]req_shift_opened [15:07:21]FM_GetShiftState [15:07:21]SAM_PROTO_GetShiftState [15:07:21]wFMCommunicate request_size=4 [15:07:21]MH_SAM_APDU [15:07:21]CAPDU: 80 13 01 00 [15:07:21]Write to MH i2c: E2 08 00 81 22 80 13 01 00 00 00 00 00 20 [15:07:21]Write i2c OK [15:07:21]MH_I2C_Read... [15:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:21]Read from MH i2c: E2 [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: E2 0E 00 [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: E2 0E 00 81 22 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 65 [15:07:21]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:07:21]wFMCommunicate OK [15:07:21]SAM_PROTO_GetShiftState done [15:07:21]FM_GetShiftState done [15:07:21]req_shift_opened done [15:07:21]requested_item shift.open_date is exist - process it [15:07:21]req_shift_open_date [15:07:21]req_shift_open_date done [15:07:21]produce_requested_data done [15:07:21]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49648,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [15:07:21]process_action_free close_receipt [15:07:21]json_value_free [15:07:21]json_value_free done [15:07:21]process_json_proto returns [15:07:21]Send response to host [15:07:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49648,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [15:07:21]free response buf [15:07:21]execute_script done [15:07:21]execute_script returns [15:07:21]free content buf [15:07:21]Sock 7.Close socket [15:07:21]Sock 7.Thread stoped [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:43]accept exits with 9 [15:20:43]New connection [15:20:43]New thread 3066801508 created [15:20:43]Thread 3066944868 joined [15:20:43]Waiting for new connection... [15:20:43] Sock 9.Parse request [15:20:43]Sock 9.Check first char [15:20:43]Sock 9.First char is OK [15:20:43]request: POST /json_proto HTTP/1.0 [15:20:43]Method: POST [15:20:43]URL: /json_proto [15:20:43]Method is POST - this is cgi request [15:20:43]url: /json_proto [15:20:43]query_string will be loaded in cgi processing [15:20:43]execute_cgi json_proto POST (null) [15:20:43]execute_cgi path=json_proto method=POST [15:20:43]POST find Content-Length [15:20:43]Host: 172.17.46.196:8080 [15:20:43]Content-Length: 1254 [15:20:43]Content-Type: application/json [15:20:43] [15:20:43]POST finish read [15:20:43]Found Content-Length = 1254 [15:20:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189834", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46146625", "name": "\u0420/\u0436 Orbit XXL \u0441\u043B\u0430\u0434\u043A\u0430\u044F \u043C\u044F\u0442\u0430 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 321.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:43]execute_script... [15:20:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189834", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46146625", "name": "\u0420/\u0436 Orbit XXL \u0441\u043B\u0430\u0434\u043A\u0430\u044F \u043C\u044F\u0442\u0430 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 321.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:43]POST & json_proto [15:20:43]process_json_proto [15:20:43]json parsed OK: [15:20:43]protocol is kg_v1.0 [15:20:43]action value=close_receipt [15:20:43]process_action close_receipt [15:20:43]cmd_close_receipt [15:20:43]MH_GetDate [15:20:43]Write to MH i2c: F0 00 00 82 22 93 [15:20:43]Write i2c OK [15:20:43]MH_I2C_Read... [15:20:43]Read from MH i2c: F0 [15:20:43]MH_I2C_Read... [15:20:43]Read from MH i2c: F0 09 00 [15:20:43]MH_I2C_Read... [15:20:43]Read from MH i2c: F0 09 00 82 22 00 CF BF C0 66 07 E8 5D 66 02 [15:20:43]GetLastDocTimeStamp 1723907240 [15:20:43]current date 1723908047 [15:20:43]FM_GetShiftState [15:20:43]SAM_PROTO_GetShiftState [15:20:43]wFMCommunicate request_size=4 [15:20:43]MH_SAM_APDU [15:20:43]CAPDU: 80 13 01 00 [15:20:43]Write to MH i2c: E2 08 00 83 22 80 13 01 00 00 00 00 00 22 [15:20:43]Write i2c OK [15:20:43]MH_I2C_Read... [15:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:43]Read from MH i2c: E2 [15:20:43]MH_I2C_Read... [15:20:43]Read from MH i2c: E2 0E 00 [15:20:43]MH_I2C_Read... [15:20:43]Read from MH i2c: E2 0E 00 83 22 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 67 [15:20:43]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:20:43]wFMCommunicate OK [15:20:43]SAM_PROTO_GetShiftState done [15:20:43]FM_GetShiftState done [15:20:43]opened in 1723853354 [15:20:43]opened+sec_in_day 1723939754 [15:20:43]quantity*price = 14500 [15:20:43]sum+1 = 14501 [15:20:43]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521254 Чай холодный MAXI черный со вкусом клубн 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46146625 Р/ж Orbit XXL сладкая мята 20,4г 1.000 * 51.00 = 51.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 321.00 НСП 1% : 2.84 НДС 12% : 34.09 Наличными: 321.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 86 17.08.2024 15:20 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49649 ФПД: 45153345898283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152047&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49649&fm=45153345898283&tin=02508201610067®Number=0000000000092546&sum=32100 0 [15:20:44]StoreToDocumentArchive [15:20:44]shift 465 fd 49649 [15:20:44]save to /storage/0465/doc_00049649 [15:20:44]save last doc name /storage/0465/doc_00049649 to /storage/kkm_last_doc_name [15:20:44]save OK [15:20:44]Clear old archive folders... [15:20:44]ProcessDocumentItem done err = 0, tmpTLVsize=528 [15:20:44]tlvbuf is B6ED8AE0 [15:20:44]SAM_PROTO_ClearQueue [15:20:44]wFMCommunicate request_size=4 [15:20:44]MH_SAM_APDU [15:20:44]CAPDU: 80 09 00 00 [15:20:44]Write to MH i2c: E2 08 00 90 22 80 09 00 00 00 00 00 00 24 [15:20:44]Write i2c OK [15:20:44]MH_I2C_Read... [15:20:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:44]Read from MH i2c: E2 [15:20:44]MH_I2C_Read... [15:20:44]Read from MH i2c: E2 03 00 [15:20:44]MH_I2C_Read... [15:20:44]Read from MH i2c: E2 03 00 90 22 00 90 00 26 [15:20:44]RAPDU: 90 00 [15:20:44]wFMCommunicate OK [15:20:44]SAM_PROTO_ClearQueue done [15:20:44]KKMCreateOFDPacket [15:20:44]OFDProtocolAddRootSTLVToBuf [15:20:44]FM_MakeSignedData [15:20:44]FM_MakeSignedData [15:20:44]SAM_PROTO_SignData [15:20:44]wFMCommunicate request_size=4 [15:20:44]MH_SAM_APDU [15:20:44]CAPDU: 80 0D 01 02 [15:20:44]Write to MH i2c: E2 08 00 91 22 80 0D 01 02 00 00 00 00 2C [15:20:44]Write i2c OK [15:20:44]MH_I2C_Read... [15:20:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:44]Read from MH i2c: E2 [15:20:44]MH_I2C_Read... [15:20:44]Read from MH i2c: E2 03 00 [15:20:44]MH_I2C_Read... [15:20:44]Read from MH i2c: E2 03 00 91 22 00 90 00 27 [15:20:44]RAPDU: 90 00 [15:20:44]wFMCommunicate OK [15:20:44]wFMCommunicate request_size=255 [15:20:44]MH_SAM_APDU [15:20:44]CAPDU: 80 0D 02 02 FA 03 00 10 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [15:20:44]Write to MH i2c: E2 02 01 92 22 80 0D 02 02 FA 00 03 00 10 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 5B [15:20:44]OFD Sender: No OFD packet to send [15:20:44]Write i2c OK [15:20:44]MH_I2C_Read... [15:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:44]Read from MH i2c: E2 [15:20:44]MH_I2C_Read... [15:20:44]Read from MH i2c: E2 03 00 [15:20:44]MH_I2C_Read... [15:20:44]Read from MH i2c: E2 03 00 92 22 00 90 00 28 [15:20:44]RAPDU: 90 00 [15:20:44]wFMCommunicate OK [15:20:44]wFMCommunicate request_size=255 [15:20:44]MH_SAM_APDU [15:20:44]CAPDU: 80 0D 02 02 FA 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 0D 00 00 00 00 07 04 06 00 64 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 CF BF C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 [15:20:44]Write to MH i2c: E2 02 01 93 22 80 0D 02 02 FA 00 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 0D 00 00 00 00 07 04 06 00 64 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 CF BF C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 00 00 8B [15:20:44]Write i2c OK [15:20:44]MH_I2C_Read... [15:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:45]Read from MH i2c: E2 [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: E2 03 00 [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: E2 03 00 93 22 00 90 00 29 [15:20:45]RAPDU: 90 00 [15:20:45]wFMCommunicate OK [15:20:45]wFMCommunicate request_size=37 [15:20:45]MH_SAM_APDU [15:20:45]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F1 C1 00 00 35 04 06 00 29 11 15 24 87 2B [15:20:45]Write to MH i2c: E2 28 00 94 22 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F1 C1 00 00 35 04 06 00 29 11 15 24 87 2B 00 00 56 [15:20:45]Write i2c OK [15:20:45]MH_I2C_Read... [15:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:45]Read from MH i2c: E2 [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: E2 03 00 [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: E2 03 00 94 22 00 90 00 2A [15:20:45]RAPDU: 90 00 [15:20:45]wFMCommunicate OK [15:20:45]wFMCommunicate request_size=4 [15:20:45]MH_SAM_APDU [15:20:45]CAPDU: 80 0D 03 02 [15:20:45]Write to MH i2c: E2 08 00 95 22 80 0D 03 02 00 00 00 00 32 [15:20:45]Write i2c OK [15:20:45]MH_I2C_Read... [15:20:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:45]Read from MH i2c: E2 [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: E2 0B 00 [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: E2 0B 00 95 22 00 AA ED 82 20 99 91 39 51 90 00 20 [15:20:45]RAPDU: AA ED 82 20 99 91 39 51 90 00 [15:20:45]wFMCommunicate OK [15:20:45]SAM_PROTO_SignData done [15:20:45]FM_MakeSignedData done [15:20:45]CreateOFDProtocolMessage [15:20:45]wFMCommunicate request_size=4 [15:20:45]MH_SAM_APDU [15:20:45]CAPDU: 80 11 00 00 [15:20:45]Write to MH i2c: E2 08 00 96 22 80 11 00 00 00 00 00 00 32 [15:20:45]Write i2c OK [15:20:45]MH_I2C_Read... [15:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:45]Read from MH i2c: E2 [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: E2 17 00 [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: E2 17 00 96 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7D [15:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:20:45]wFMCommunicate OK [15:20:45]CreateOFDProtocolMessage done [15:20:45]OFDSenderStorePacket 49649 [15:20:45]StoreOFDPacket docnum=49649 [15:20:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 02 00 00 B1 65 1C 02 94 75 5A 03 01 00 03 00 10 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 0D 00 00 00 00 07 04 06 00 64 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 CF BF C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F1 C1 00 00 35 04 06 00 29 11 15 24 87 2B AA ED 82 20 99 91 39 51 [15:20:45]CheckFolder [15:20:45]dirname=/storage/ofd_packets [15:20:45]CheckFolder done [15:20:45]ProducePacketName [15:20:45]name=ofd_packets/00049649 [15:20:45]NVStorageSaveData ofd_packets/00049649 [15:20:45]File name is /storage/ofd_packets/00049649 [15:20:45]Write 578 bytes [15:20:45]NVStorageSaveData done [15:20:45]OFDSenderStorePacket done [15:20:45]KKMCreateOFDPacket done [15:20:45]NVStorageSaveData kkm_last_timestamp [15:20:45]File name is /storage/kkm_last_timestamp [15:20:45]Write 4 bytes [15:20:45]NVStorageSaveData done [15:20:45]ExternCall_PrintAddStr [15:20:45]wPrintStart [15:20:45]Write to MH i2c: 01 00 00 97 22 B9 [15:20:45]Write i2c OK [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: 01 [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: 01 07 00 [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: 01 07 00 97 22 00 00 00 00 00 FF 0F CE [15:20:45]RasterBufferAndPrint [15:20:45]line Счет N : (3)189834 [15:20:45]line ИНН: 02508201610067 [15:20:45]line Контрольно-Кассовый Чек [15:20:45]line ПРОДАЖА [15:20:45]line Товар: 48744119 [15:20:45]line Сигареты Winston Xstyle Dual [15:20:45]line 1.000 * 145.00 [15:20:45]line = 145.00 [15:20:45]line НДС 12% НСП 1% [15:20:45]line > о реализуемом товаре [15:20:45]line Товар: 4870202521254 [15:20:45]line Чай холодный MAXI черный со вкусом клубн [15:20:45]line 1.000 * 125.00 [15:20:45]line = 125.00 [15:20:45]line НДС 12% НСП 1% [15:20:45]line > о реализуемом товаре [15:20:45]line Товар: 46146625 [15:20:45]line Р/ж Orbit XXL сладкая мята 20,4г [15:20:45]line 1.000 * 51.00 [15:20:45]line = 51.00 [15:20:45]line НДС 12% НСП 1% [15:20:45]line > о реализуемом товаре [15:20:45]line ИТОГО: 321.00 [15:20:45]line НСП 1% : 2.84 [15:20:45]line НДС 12% : 34.09 [15:20:45]line Наличными: 321.00 [15:20:45]line Безнал.: 0.00 [15:20:45]line Место: АЗС № 95 "Партнер Нефть" [15:20:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:20:45]line СНО: Общий режим [15:20:45]line Чек 86 17.08.2024 15:20 [15:20:45]line Смена: 465 ФФД: 1.0 [15:20:45]line ЗНМ: 0300000078 [15:20:45]line РНМ: 0000000000092546 [15:20:45]line Версия ККМ: 001 [15:20:45]line ФМ: 0000000000871800 [15:20:45]line ФД: 49649 [15:20:45]line ФПД: 45153345898283 [15:20:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152047&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49649&fm=45153345898283&tin=02508201610067®Number=0000000000092546&sum=32100 [15:20:45]line 0 [15:20:45]OFD Sender: Processing packet 49649 [packets to send 21, broken 20] [15:20:45]ProducePacketName [15:20:45]name=ofd_packets/00049649 [15:20:45]OFD Sender: To server: pG, [15:20:45]CommunicateWithHost lk.salyk.kg:30040 [15:20:45]ConnectInit lk.salyk.kg [15:20:45]written 0, free lines is 4095 [15:20:46]Connected sock=10 [15:20:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 02 00 00 B1 65 1C 02 94 75 5A 03 01 00 03 00 10 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 0D 00 00 00 00 07 04 06 00 64 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 CF BF C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F1 C1 00 00 35 04 06 00 29 11 15 24 87 2B AA ED 82 20 99 91 39 51 [15:20:46]Write to MH i2c: 01 00 00 CD 22 EF [15:20:46]Write i2c OK [15:20:46]MH_I2C_Read... [15:20:46]Read from MH i2c: 01 [15:20:46]MH_I2C_Read... [15:20:46]Read from MH i2c: 01 07 00 [15:20:46]MH_I2C_Read... [15:20:46]Read from MH i2c: 01 07 00 CD 22 00 00 00 00 00 16 0C 18 [15:20:46]RasterBufferAndPrint [15:20:46]line [15:20:46]line [15:20:46]line [15:20:46]line [15:20:46]line [15:20:46]written 0, free lines is 3102 [15:20:46]MH_Cut [15:20:46]Write to MH i2c: D1 01 00 D4 22 01 C8 [15:20:46]Write i2c OK [15:20:46]MH_I2C_Read... [15:20:46]Read from MH i2c: D1 [15:20:46]MH_I2C_Read... [15:20:46]Read from MH i2c: D1 01 00 [15:20:46]MH_I2C_Read... [15:20:46]Read from MH i2c: D1 01 00 D4 22 00 C7 [15:20:46]Write to MH i2c: 01 00 00 D5 22 F7 [15:20:46]Write i2c OK [15:20:46]MH_I2C_Read... [15:20:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 80 6E 47 00 FD C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F1 C1 00 00 F4 03 04 00 0B 6B C0 66 B6 04 01 00 00 EE 94 07 DF 3F 84 10 7F [15:20:46]CommunicateWithHost err = 0 [15:20:46]CheckOFDResponse [15:20:46]1017 (14) - 77093643461234 [15:20:46]1041 (16) - 0000000000871800 [15:20:46]1040 (4) - 49649 [15:20:46]1012 (4) - 17.08.2024 09:19 [15:20:46]1206 (1) - 0 [15:20:46]OFD Sender: Remove packet 49649 [15:20:46]ProducePacketName [15:20:46]name=ofd_packets/00049649 [15:20:46]NVStorageDeleteData [15:20:46]OFD Sender: No OFD packet to send [15:20:47]*** Cut start [15:20:47]*** Purtial cut [15:20:47]*** Stage 1: CUTSNS_PIN = 1 [15:20:47]Read from MH i2c: 01 [15:20:47]MH_I2C_Read... [15:20:47]*** Stop cut motor [15:20:47]*** Cut end [15:20:47]Read from MH i2c: 01 07 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: 01 07 00 D5 22 00 00 00 00 00 FF 0F 0C [15:20:47]process_action close_receipt done [15:20:47]requested_data is exist [15:20:47]produce_requested_data [15:20:47]requested_item fm.sn is exist - process it [15:20:47]wFMCommunicate request_size=4 [15:20:47]MH_SAM_APDU [15:20:47]CAPDU: 80 11 00 00 [15:20:47]Write to MH i2c: E2 08 00 D6 22 80 11 00 00 00 00 00 00 72 [15:20:47]Write i2c OK [15:20:47]MH_I2C_Read... [15:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:47]Read from MH i2c: E2 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 17 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 17 00 D6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BD [15:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:20:47]wFMCommunicate OK [15:20:47]requested_item fd.num is exist - process it [15:20:47]SAM_PROTO_GetFieldsCounters [15:20:47]wFMCommunicate request_size=4 [15:20:47]MH_SAM_APDU [15:20:47]CAPDU: 80 13 00 00 [15:20:47]Write to MH i2c: E2 08 00 D7 22 80 13 00 00 00 00 00 00 75 [15:20:47]Write i2c OK [15:20:47]MH_I2C_Read... [15:20:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:47]Read from MH i2c: E2 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 62 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 62 00 D7 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F1 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [15:20: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F1 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:47]wFMCommunicate OK [15:20:47]SAM_PROTO_GetFieldsCounters done [15:20:47]requested_item shift.num is exist - process it [15:20:47]requested_item shift.opened is exist - process it [15:20:47]req_shift_opened [15:20:47]FM_GetShiftState [15:20:47]SAM_PROTO_GetShiftState [15:20:47]wFMCommunicate request_size=4 [15:20:47]MH_SAM_APDU [15:20:47]CAPDU: 80 13 01 00 [15:20:47]Write to MH i2c: E2 08 00 D8 22 80 13 01 00 00 00 00 00 77 [15:20:47]Write i2c OK [15:20:47]MH_I2C_Read... [15:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:47]Read from MH i2c: E2 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 0E 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 0E 00 D8 22 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 BC [15:20:47]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:20:47]wFMCommunicate OK [15:20:47]SAM_PROTO_GetShiftState done [15:20:47]FM_GetShiftState done [15:20:47]req_shift_opened done [15:20:47]requested_item shift.open_date is exist - process it [15:20:47]req_shift_open_date [15:20:47]req_shift_open_date done [15:20:47]produce_requested_data done [15:20:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49649,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [15:20:47]process_action_free close_receipt [15:20:47]json_value_free [15:20:47]json_value_free done [15:20:47]process_json_proto returns [15:20:47]Send response to host [15:20:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49649,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [15:20:47]free response buf [15:20:47]execute_script done [15:20:47]execute_script returns [15:20:47]free content buf [15:20:47]Sock 9.Close socket [15:20:47]Sock 9.Thread stoped [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]int [15:22:56]Write to MH i2c: 01 00 00 D9 22 FB [15:22:56]*** FLAG_PRN_KEY set [15:22:56]Write i2c OK [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: 01 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: 01 07 00 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: 01 07 00 D9 22 00 08 00 00 00 FF 0F 18 [15:22:56]state=0 [15:22:56]Key pressed [15:22:56]Feed [15:22:56]Write to MH i2c: D8 00 00 DA 22 D3 [15:22:56]Write i2c OK [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: D8 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: D8 01 00 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: D8 01 00 DA 22 00 D4 [15:22:56]int [15:22:56]Write to MH i2c: 01 00 00 DB 22 FD [15:22:56]Write i2c OK [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: 01 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: 01 07 00 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: 01 07 00 DB 22 00 48 00 00 00 3C 00 88 [15:22:56]state=2 [15:22:56]Key pressed [15:22:56]int [15:22:56]Write to MH i2c: 01 00 00 DC 22 FE [15:22:56]*** FLAG_PRN_KEY reset [15:22:56]Write i2c OK [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: 01 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: 01 07 00 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: 01 07 00 DC 22 00 00 00 00 00 F5 0F 09 [15:22:56]state=2 [15:22:56]Stop feed [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:28]accept exits with 7 [15:23:28]New connection [15:23:28]New thread 3066944868 created [15:23:28]Thread 3066801508 joined [15:23:28]Waiting for new connection... [15:23:28] Sock 7.Parse request [15:23:28]Sock 7.Check first char [15:23:28]Sock 7.First char is OK [15:23:28]request: POST /json_proto HTTP/1.0 [15:23:28]Method: POST [15:23:28]URL: /json_proto [15:23:28]Method is POST - this is cgi request [15:23:28]url: /json_proto [15:23:28]query_string will be loaded in cgi processing [15:23:28]execute_cgi json_proto POST (null) [15:23:28]execute_cgi path=json_proto method=POST [15:23:28]POST find Content-Length [15:23:28]Host: 172.17.46.196:8080 [15:23:28]Content-Length: 780 [15:23:28]Content-Type: application/json [15:23:28] [15:23:28]POST finish read [15:23:28]Found Content-Length = 780 [15:23:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189835", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:28]execute_script... [15:23:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189835", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:28]POST & json_proto [15:23:28]process_json_proto [15:23:28]json parsed OK: [15:23:28]protocol is kg_v1.0 [15:23:28]action value=close_receipt [15:23:28]process_action close_receipt [15:23:28]cmd_close_receipt [15:23:28]MH_GetDate [15:23:28]Write to MH i2c: F0 00 00 DD 22 EE [15:23:28]Write i2c OK [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: F0 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: F0 09 00 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: F0 09 00 DD 22 00 75 C0 C0 66 07 E8 5D 66 04 [15:23:28]GetLastDocTimeStamp 1723908047 [15:23:28]current date 1723908213 [15:23:28]FM_GetShiftState [15:23:28]SAM_PROTO_GetShiftState [15:23:28]wFMCommunicate request_size=4 [15:23:28]MH_SAM_APDU [15:23:28]CAPDU: 80 13 01 00 [15:23:28]Write to MH i2c: E2 08 00 DE 22 80 13 01 00 00 00 00 00 7D [15:23:28]Write i2c OK [15:23:28]MH_I2C_Read... [15:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:28]Read from MH i2c: E2 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: E2 0E 00 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: E2 0E 00 DE 22 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 C2 [15:23:28]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:23:28]wFMCommunicate OK [15:23:28]SAM_PROTO_GetShiftState done [15:23:28]FM_GetShiftState done [15:23:28]opened in 1723853354 [15:23:28]opened+sec_in_day 1723939754 [15:23:28]quantity*price = 14000 [15:23:28]sum+1 = 14001 [15:23:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 87 17.08.2024 15:23 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49650 ФПД: 83044596042661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152333&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49650&fm=83044596042661&tin=02508201610067®Number=0000000000092546&sum=14000 0 [15:23:29]StoreToDocumentArchive [15:23:29]shift 465 fd 49650 [15:23:29]save to /storage/0465/doc_00049650 [15:23:29]save last doc name /storage/0465/doc_00049650 to /storage/kkm_last_doc_name [15:23:29]save OK [15:23:29]Clear old archive folders... [15:23:29]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:23:29]tlvbuf is 01882650 [15:23:29]SAM_PROTO_ClearQueue [15:23:29]wFMCommunicate request_size=4 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 09 00 00 [15:23:29]Write to MH i2c: E2 08 00 EB 22 80 09 00 00 00 00 00 00 7F [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:29]Read from MH i2c: E2 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 03 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 03 00 EB 22 00 90 00 81 [15:23:29]RAPDU: 90 00 [15:23:29]wFMCommunicate OK [15:23:29]SAM_PROTO_ClearQueue done [15:23:29]KKMCreateOFDPacket [15:23:29]OFDProtocolAddRootSTLVToBuf [15:23:29]FM_MakeSignedData [15:23:29]FM_MakeSignedData [15:23:29]SAM_PROTO_SignData [15:23:29]wFMCommunicate request_size=4 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 0D 01 02 [15:23:29]Write to MH i2c: E2 08 00 EC 22 80 0D 01 02 00 00 00 00 87 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:29]Read from MH i2c: E2 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 03 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 03 00 EC 22 00 90 00 82 [15:23:29]RAPDU: 90 00 [15:23:29]wFMCommunicate OK [15:23:29]wFMCommunicate request_size=255 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 75 C0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [15:23:29]Write to MH i2c: E2 02 01 ED 22 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 75 C0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 90 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 ED 22 00 90 00 83 [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]wFMCommunicate request_size=30 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 F2 C1 00 00 35 04 06 00 4B 87 53 A5 CB A5 [15:23:30]Write to MH i2c: E2 21 00 EE 22 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 F2 C1 00 00 35 04 06 00 4B 87 53 A5 CB A5 00 00 68 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 EE 22 00 90 00 84 [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 0D 03 02 [15:23:30]Write to MH i2c: E2 08 00 EF 22 80 0D 03 02 00 00 00 00 8C [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 0B 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 0B 00 EF 22 00 B0 6F F0 34 1D 8A 28 0F 90 00 AE [15:23:30]RAPDU: B0 6F F0 34 1D 8A 28 0F 90 00 [15:23:30]wFMCommunicate OK [15:23:30]SAM_PROTO_SignData done [15:23:30]FM_MakeSignedData done [15:23:30]CreateOFDProtocolMessage [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 11 00 00 [15:23:30]Write to MH i2c: E2 08 00 F0 22 80 11 00 00 00 00 00 00 8C [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 17 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 17 00 F0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D7 [15:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:23:30]wFMCommunicate OK [15:23:30]CreateOFDProtocolMessage done [15:23:30]OFDSenderStorePacket 49650 [15:23:30]StoreOFDPacket docnum=49650 [15:23:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 8B 6B 1B 01 8E 7C 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 75 C0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C1 00 00 35 04 06 00 4B 87 53 A5 CB A5 B0 6F F0 34 1D 8A 28 0F [15:23:30]CheckFolder [15:23:30]dirname=/storage/ofd_packets [15:23:30]CheckFolder done [15:23:30]ProducePacketName [15:23:30]name=ofd_packets/00049650 [15:23:30]NVStorageSaveData ofd_packets/00049650 [15:23:30]File name is /storage/ofd_packets/00049650 [15:23:30]Write 321 bytes [15:23:30]NVStorageSaveData done [15:23:30]OFDSenderStorePacket done [15:23:30]KKMCreateOFDPacket done [15:23:30]NVStorageSaveData kkm_last_timestamp [15:23:30]File name is /storage/kkm_last_timestamp [15:23:30]Write 4 bytes [15:23:30]NVStorageSaveData done [15:23:30]ExternCall_PrintAddStr [15:23:30]wPrintStart [15:23:30]Write to MH i2c: 01 00 00 F1 22 13 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: 01 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: 01 07 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: 01 07 00 F1 22 00 00 00 00 00 FF 0F 28 [15:23:30]RasterBufferAndPrint [15:23:30]line Счет N : (3)189835 [15:23:30]line ИНН: 02508201610067 [15:23:30]line Контрольно-Кассовый Чек [15:23:30]line ПРОДАЖА [15:23:30]line Товар: 47802995 [15:23:30]line Сигареты Winston XS Silver [15:23:30]line 1.000 * 140.00 [15:23:30]line = 140.00 [15:23:30]line НДС 12% НСП 1% [15:23:30]line > о реализуемом товаре [15:23:30]line ИТОГО: 140.00 [15:23:30]line НСП 1% : 1.24 [15:23:30]line НДС 12% : 14.87 [15:23:30]line Наличными: 0.00 [15:23:30]line Безнал.: 140.00 [15:23:30]line Место: АЗС № 95 "Партнер Нефть" [15:23:30]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:23:30]line СНО: Общий режим [15:23:30]line Чек 87 17.08.2024 15:23 [15:23:30]line Смена: 465 ФФД: 1.0 [15:23:30]line ЗНМ: 0300000078 [15:23:30]line РНМ: 0000000000092546 [15:23:30]line Версия ККМ: 001 [15:23:30]line Платежная система: O! деньги [15:23:30]line ФМ: 0000000000871800 [15:23:30]line ФД: 49650 [15:23:30]line ФПД: 83044596042661 [15:23:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152333&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49650&fm=83044596042661&tin=02508201610067®Number=0000000000092546&sum=14000 [15:23:30]line 0 [15:23:30]OFD Sender: Processing packet 49650 [packets to send 21, broken 20] [15:23:30]ProducePacketName [15:23:30]name=ofd_packets/00049650 [15:23:30]OFD Sender: To server: pG, [15:23:30]CommunicateWithHost lk.salyk.kg:30040 [15:23:30]ConnectInit lk.salyk.kg [15:23:30]written 0, free lines is 4095 [15:23:30]Connected sock=10 [15:23:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 8B 6B 1B 01 8E 7C 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 75 C0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C1 00 00 35 04 06 00 4B 87 53 A5 CB A5 B0 6F F0 34 1D 8A 28 0F [15:23:30]Write to MH i2c: 01 00 00 1B 23 3E [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: 01 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: 01 07 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: 01 07 00 1B 23 00 00 00 00 00 DC 0C 2D [15:23:30]RasterBufferAndPrint [15:23:30]line [15:23:30]line [15:23:30]line [15:23:30]line [15:23:30]line [15:23:30]written 0, free lines is 3298 [15:23:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 34 49 47 00 D5 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C1 00 00 F4 03 04 00 B0 6B C0 66 B6 04 01 00 00 DB 90 92 E3 15 74 CE A0 [15:23:30]CommunicateWithHost err = 0 [15:23:30]CheckOFDResponse [15:23:30]1017 (14) - 77093643461234 [15:23:30]1041 (16) - 0000000000871800 [15:23:30]1040 (4) - 49650 [15:23:30]1012 (4) - 17.08.2024 09:21 [15:23:30]1206 (1) - 0 [15:23:30]OFD Sender: Remove packet 49650 [15:23:30]ProducePacketName [15:23:30]name=ofd_packets/00049650 [15:23:30]NVStorageDeleteData [15:23:31]MH_Cut [15:23:31]Write to MH i2c: D1 01 00 22 23 01 17 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: D1 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: D1 01 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: D1 01 00 22 23 00 16 [15:23:31]Write to MH i2c: 01 00 00 23 23 46 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]OFD Sender: No OFD packet to send [15:23:31]*** Cut start [15:23:31]*** Purtial cut [15:23:31]*** CUTSNS_PIN = 0 [15:23:31]*** Stage 1: CUTSNS_PIN = 1 [15:23:33]Read from MH i2c: 01 [15:23:33]*** Stop cut motor [15:23:33]*** Cut end [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: 01 07 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: 01 07 00 23 23 00 00 00 00 00 FF 0F 5B [15:23:33]process_action close_receipt done [15:23:33]requested_data is exist [15:23:33]produce_requested_data [15:23:33]requested_item fm.sn is exist - process it [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 11 00 00 [15:23:33]Write to MH i2c: E2 08 00 24 23 80 11 00 00 00 00 00 00 C1 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 17 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 17 00 24 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0C [15:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:23:33]wFMCommunicate OK [15:23:33]requested_item fd.num is exist - process it [15:23:33]SAM_PROTO_GetFieldsCounters [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 13 00 00 [15:23:33]Write to MH i2c: E2 08 00 25 23 80 13 00 00 00 00 00 00 C4 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 62 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 62 00 25 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F2 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [15:23: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F2 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:33]wFMCommunicate OK [15:23:33]SAM_PROTO_GetFieldsCounters done [15:23:33]requested_item shift.num is exist - process it [15:23:33]requested_item shift.opened is exist - process it [15:23:33]req_shift_opened [15:23:33]FM_GetShiftState [15:23:33]SAM_PROTO_GetShiftState [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 13 01 00 [15:23:33]Write to MH i2c: E2 08 00 26 23 80 13 01 00 00 00 00 00 C6 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:34]Read from MH i2c: E2 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 0E 00 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 0E 00 26 23 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 0B [15:23:34]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:23:34]wFMCommunicate OK [15:23:34]SAM_PROTO_GetShiftState done [15:23:34]FM_GetShiftState done [15:23:34]req_shift_opened done [15:23:34]requested_item shift.open_date is exist - process it [15:23:34]req_shift_open_date [15:23:34]req_shift_open_date done [15:23:34]produce_requested_data done [15:23:34]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49650,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [15:23:34]process_action_free close_receipt [15:23:34]json_value_free [15:23:34]json_value_free done [15:23:34]process_json_proto returns [15:23:34]Send response to host [15:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49650,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [15:23:34]free response buf [15:23:34]execute_script done [15:23:34]execute_script returns [15:23:34]free content buf [15:23:34]Sock 7.Close socket [15:23:34]Sock 7.Thread stoped [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:38]accept exits with 9 [15:25:38]New connection [15:25:38]New thread 3066801508 created [15:25:38]Thread 3066944868 joined [15:25:38]Waiting for new connection... [15:25:38] Sock 9.Parse request [15:25:38]Sock 9.Check first char [15:25:38]Sock 9.First char is OK [15:25:38]request: POST /json_proto HTTP/1.0 [15:25:38]Method: POST [15:25:38]URL: /json_proto [15:25:38]Method is POST - this is cgi request [15:25:38]url: /json_proto [15:25:38]query_string will be loaded in cgi processing [15:25:38]execute_cgi json_proto POST (null) [15:25:38]execute_cgi path=json_proto method=POST [15:25:38]POST find Content-Length [15:25:38]Host: 172.17.46.196:8080 [15:25:38]Content-Length: 624 [15:25:38]Content-Type: application/json [15:25:38] [15:25:38]POST finish read [15:25:38]Found Content-Length = 624 [15:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189836", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:38]execute_script... [15: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 : (3)189836", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:38]POST & json_proto [15:25:38]process_json_proto [15:25:38]json parsed OK: [15:25:38]protocol is kg_v1.0 [15:25:38]action value=close_receipt [15:25:38]process_action close_receipt [15:25:38]cmd_close_receipt [15:25:38]MH_GetDate [15:25:38]Write to MH i2c: F0 00 00 27 23 39 [15:25:38]Write i2c OK [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: F0 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: F0 09 00 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: F0 09 00 27 23 00 F6 C0 C0 66 07 E8 5D 66 D0 [15:25:38]GetLastDocTimeStamp 1723908213 [15:25:38]current date 1723908342 [15:25:38]FM_GetShiftState [15:25:38]SAM_PROTO_GetShiftState [15:25:38]wFMCommunicate request_size=4 [15:25:38]MH_SAM_APDU [15:25:38]CAPDU: 80 13 01 00 [15:25:38]Write to MH i2c: E2 08 00 28 23 80 13 01 00 00 00 00 00 C8 [15:25:38]Write i2c OK [15:25:38]MH_I2C_Read... [15:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:38]Read from MH i2c: E2 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 0E 00 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 0E 00 28 23 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 0D [15:25:38]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:25:38]wFMCommunicate OK [15:25:38]SAM_PROTO_GetShiftState done [15:25:38]FM_GetShiftState done [15:25:38]opened in 1723853354 [15:25:38]opened+sec_in_day 1723939754 [15:25:38]quantity*price = 15100 [15:25:38]sum+1 = 15101 [15:25:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 88 17.08.2024 15:25 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49651 ФПД: 45486311436241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152543&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49651&fm=45486311436241&tin=02508201610067®Number=0000000000092546&sum=15100 0 [15:25:39]StoreToDocumentArchive [15:25:39]shift 465 fd 49651 [15:25:39]save to /storage/0465/doc_00049651 [15:25:39]save last doc name /storage/0465/doc_00049651 to /storage/kkm_last_doc_name [15:25:39]save OK [15:25:39]Clear old archive folders... [15:25:39]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:25:39]tlvbuf is 018A11C0 [15:25:39]SAM_PROTO_ClearQueue [15:25:39]wFMCommunicate request_size=4 [15:25:39]MH_SAM_APDU [15:25:39]CAPDU: 80 09 00 00 [15:25:39]Write to MH i2c: E2 08 00 35 23 80 09 00 00 00 00 00 00 CA [15:25:39]Write i2c OK [15:25:39]MH_I2C_Read... [15:25:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:39]Read from MH i2c: E2 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 03 00 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 03 00 35 23 00 90 00 CC [15:25:39]RAPDU: 90 00 [15:25:39]wFMCommunicate OK [15:25:39]SAM_PROTO_ClearQueue done [15:25:39]KKMCreateOFDPacket [15:25:39]OFDProtocolAddRootSTLVToBuf [15:25:39]FM_MakeSignedData [15:25:39]FM_MakeSignedData [15:25:39]SAM_PROTO_SignData [15:25:39]wFMCommunicate request_size=4 [15:25:39]MH_SAM_APDU [15:25:39]CAPDU: 80 0D 01 02 [15:25:39]Write to MH i2c: E2 08 00 36 23 80 0D 01 02 00 00 00 00 D2 [15:25:39]Write i2c OK [15:25:39]MH_I2C_Read... [15:25:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:39]Read from MH i2c: E2 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 03 00 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 03 00 36 23 00 90 00 CD [15:25:39]RAPDU: 90 00 [15:25:39]wFMCommunicate OK [15:25:39]wFMCommunicate request_size=255 [15:25:39]MH_SAM_APDU [15:25:39]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F7 C0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [15:25:39]Write to MH i2c: E2 02 01 37 23 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F7 C0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 2C [15:25:39]Write i2c OK [15:25:39]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 [15:25:40]MH_I2C_Read... [15:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:40]Read from MH i2c: E2 03 00 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 03 00 37 23 00 90 00 CE [15:25:40]RAPDU: 90 00 [15:25:40]wFMCommunicate OK [15:25:40]wFMCommunicate request_size=35 [15:25:40]MH_SAM_APDU [15:25:40]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C1 00 00 35 04 06 00 29 5E 9B 6F 6F D1 [15:25:40]Write to MH i2c: E2 26 00 38 23 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C1 00 00 35 04 06 00 29 5E 9B 6F 6F D1 00 00 45 [15:25:40]Write i2c OK [15:25:40]MH_I2C_Read... [15:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:40]Read from MH i2c: E2 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 03 00 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 03 00 38 23 00 90 00 CF [15:25:40]RAPDU: 90 00 [15:25:40]wFMCommunicate OK [15:25:40]wFMCommunicate request_size=4 [15:25:40]MH_SAM_APDU [15:25:40]CAPDU: 80 0D 03 02 [15:25:40]Write to MH i2c: E2 08 00 39 23 80 0D 03 02 00 00 00 00 D7 [15:25:40]Write i2c OK [15:25:40]MH_I2C_Read... [15:25:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:40]Read from MH i2c: E2 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 0B 00 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 0B 00 39 23 00 D0 BA 89 64 C3 EB BD 59 90 00 13 [15:25:40]RAPDU: D0 BA 89 64 C3 EB BD 59 90 00 [15:25:40]wFMCommunicate OK [15:25:40]SAM_PROTO_SignData done [15:25:40]FM_MakeSignedData done [15:25:40]CreateOFDProtocolMessage [15:25:40]wFMCommunicate request_size=4 [15:25:40]MH_SAM_APDU [15:25:40]CAPDU: 80 11 00 00 [15:25:40]Write to MH i2c: E2 08 00 3A 23 80 11 00 00 00 00 00 00 D7 [15:25:40]Write i2c OK [15:25:40]MH_I2C_Read... [15:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:40]Read from MH i2c: E2 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 17 00 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 17 00 3A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 22 [15:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:25:40]wFMCommunicate OK [15:25:40]CreateOFDProtocolMessage done [15:25:40]OFDSenderStorePacket 49651 [15:25:40]StoreOFDPacket docnum=49651 [15:25:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 7C 80 20 01 15 D4 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F7 C0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C1 00 00 35 04 06 00 29 5E 9B 6F 6F D1 D0 BA 89 64 C3 EB BD 59 [15:25:40]CheckFolder [15:25:40]dirname=/storage/ofd_packets [15:25:40]CheckFolder done [15:25:40]ProducePacketName [15:25:40]name=ofd_packets/00049651 [15:25:40]NVStorageSaveData ofd_packets/00049651 [15:25:40]File name is /storage/ofd_packets/00049651 [15:25:40]Write 326 bytes [15:25:40]NVStorageSaveData done [15:25:40]OFDSenderStorePacket done [15:25:40]KKMCreateOFDPacket done [15:25:40]NVStorageSaveData kkm_last_timestamp [15:25:40]File name is /storage/kkm_last_timestamp [15:25:40]Write 4 bytes [15:25:40]NVStorageSaveData done [15:25:40]ExternCall_PrintAddStr [15:25:40]wPrintStart [15:25:40]Write to MH i2c: 01 00 00 3B 23 5E [15:25:40]Write i2c OK [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: 01 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: 01 07 00 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: 01 07 00 3B 23 00 00 00 00 00 FF 0F 73 [15:25:40]RasterBufferAndPrint [15:25:40]line Счет N : (3)189836 [15:25:40]line ИНН: 02508201610067 [15:25:40]line Контрольно-Кассовый Чек [15:25:40]line ПРОДАЖА [15:25:40]line Товар: 48742245 [15:25:40]line Сигареты Parliament Silver Blue [15:25:40]line 1.000 * 151.00 [15:25:40]line = 151.00 [15:25:40]line НДС 12% НСП 1% [15:25:40]line > о реализуемом товаре [15:25:40]line ИТОГО: 151.00 [15:25:40]line НСП 1% : 1.34 [15:25:40]line НДС 12% : 16.03 [15:25:40]line Наличными: 151.00 [15:25:40]line Безнал.: 0.00 [15:25:40]line Место: АЗС № 95 "Партнер Нефть" [15:25:40]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:25:40]line СНО: Общий режим [15:25:40]line Чек 88 17.08.2024 15:25 [15:25:40]line Смена: 465 ФФД: 1.0 [15:25:40]line ЗНМ: 0300000078 [15:25:40]line РНМ: 0000000000092546 [15:25:40]line Версия ККМ: 001 [15:25:40]line ФМ: 0000000000871800 [15:25:40]line ФД: 49651 [15:25:40]line ФПД: 45486311436241 [15:25:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152543&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49651&fm=45486311436241&tin=02508201610067®Number=0000000000092546&sum=15100 [15:25:40]line 0 [15:25:40]OFD Sender: Processing packet 49651 [packets to send 21, broken 20] [15:25:40]ProducePacketName [15:25:40]name=ofd_packets/00049651 [15:25:40]OFD Sender: To server: pG, [15:25:40]CommunicateWithHost lk.salyk.kg:30040 [15:25:40]ConnectInit lk.salyk.kg [15:25:40]written 0, free lines is 4095 [15:25:40]Connected sock=10 [15:25:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 7C 80 20 01 15 D4 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F7 C0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C1 00 00 35 04 06 00 29 5E 9B 6F 6F D1 D0 BA 89 64 C3 EB BD 59 [15:25:41]Write to MH i2c: 01 00 00 64 23 87 [15:25:41]Write i2c OK [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: 01 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: 01 07 00 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: 01 07 00 64 23 00 00 00 00 00 BB 0C 55 [15:25:41]RasterBufferAndPrint [15:25:41]line [15:25:41]line [15:25:41]line [15:25:41]line [15:25:41]line [15:25:41]written 0, free lines is 3266 [15:25:41]MH_Cut [15:25:41]Write to MH i2c: D1 01 00 6B 23 01 60 [15:25:41]Write i2c OK [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: D1 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: D1 01 00 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: D1 01 00 6B 23 00 5F [15:25:41]Write to MH i2c: 01 00 00 6C 23 8F [15:25:41]Write i2c OK [15:25:41]MH_I2C_Read... [15:25:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5E C1 47 00 A0 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C1 00 00 F4 03 04 00 32 6C C0 66 B6 04 01 00 00 28 13 AF 80 12 03 C9 19 [15:25:41]CommunicateWithHost err = 0 [15:25:41]CheckOFDResponse [15:25:41]1017 (14) - 77093643461234 [15:25:41]1041 (16) - 0000000000871800 [15:25:41]1040 (4) - 49651 [15:25:41]1012 (4) - 17.08.2024 09:24 [15:25:41]1206 (1) - 0 [15:25:41]OFD Sender: Remove packet 49651 [15:25:41]ProducePacketName [15:25:41]name=ofd_packets/00049651 [15:25:41]NVStorageDeleteData [15:25:41]OFD Sender: No OFD packet to send [15:25:41]*** Cut start [15:25:41]*** Purtial cut [15:25:41]*** Stage 1: CUTSNS_PIN = 1 [15:25:42]Read from MH i2c: 01 [15:25:42]MH_I2C_Read... [15:25:42]*** Stop cut motor [15:25:42]*** Cut end [15:25:42]Read from MH i2c: 01 07 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: 01 07 00 6C 23 00 00 00 00 00 FF 0F A4 [15:25:42]process_action close_receipt done [15:25:42]requested_data is exist [15:25:42]produce_requested_data [15:25:42]requested_item fm.sn is exist - process it [15:25:42]wFMCommunicate request_size=4 [15:25:42]MH_SAM_APDU [15:25:42]CAPDU: 80 11 00 00 [15:25:42]Write to MH i2c: E2 08 00 6D 23 80 11 00 00 00 00 00 00 0A [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:42]Read from MH i2c: E2 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 17 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 17 00 6D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 55 [15:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:25:42]wFMCommunicate OK [15:25:42]requested_item fd.num is exist - process it [15:25:42]SAM_PROTO_GetFieldsCounters [15:25:42]wFMCommunicate request_size=4 [15:25:42]MH_SAM_APDU [15:25:42]CAPDU: 80 13 00 00 [15:25:42]Write to MH i2c: E2 08 00 6E 23 80 13 00 00 00 00 00 00 0D [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:42]Read from MH i2c: E2 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 62 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 62 00 6E 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F3 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [15: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F3 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:42]wFMCommunicate OK [15:25:42]SAM_PROTO_GetFieldsCounters done [15:25:42]requested_item shift.num is exist - process it [15:25:42]requested_item shift.opened is exist - process it [15:25:42]req_shift_opened [15:25:42]FM_GetShiftState [15:25:42]SAM_PROTO_GetShiftState [15:25:42]wFMCommunicate request_size=4 [15:25:42]MH_SAM_APDU [15:25:42]CAPDU: 80 13 01 00 [15:25:42]Write to MH i2c: E2 08 00 6F 23 80 13 01 00 00 00 00 00 0F [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:42]Read from MH i2c: E2 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 0E 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 0E 00 6F 23 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 54 [15:25:42]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:25:42]wFMCommunicate OK [15:25:42]SAM_PROTO_GetShiftState done [15:25:42]FM_GetShiftState done [15:25:42]req_shift_opened done [15:25:42]requested_item shift.open_date is exist - process it [15:25:42]req_shift_open_date [15:25:42]req_shift_open_date done [15:25:42]produce_requested_data done [15:25:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49651,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [15:25:42]process_action_free close_receipt [15:25:42]json_value_free [15:25:42]json_value_free done [15:25:42]process_json_proto returns [15:25:42]Send response to host [15:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49651,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [15:25:42]free response buf [15:25:42]execute_script done [15:25:42]execute_script returns [15:25:42]free content buf [15:25:42]Sock 9.Close socket [15:25:42]Sock 9.Thread stoped [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:25:56]accept exits with 7 [15:25:56]New connection [15:25:56]New thread 3066944868 created [15:25:56]Thread 3066801508 joined [15:25:56]Waiting for new connection... [15:25:56] Sock 7.Parse request [15:25:56]Sock 7.Check first char [15:25:56]Sock 7.First char is OK [15:25:56]request: POST /json_proto HTTP/1.0 [15:25:56]Method: POST [15:25:56]URL: /json_proto [15:25:56]Method is POST - this is cgi request [15:25:56]url: /json_proto [15:25:56]query_string will be loaded in cgi processing [15:25:56]execute_cgi json_proto POST (null) [15:25:56]execute_cgi path=json_proto method=POST [15:25:56]POST find Content-Length [15:25:56]Host: 172.17.46.196:8080 [15:25:56]Content-Length: 625 [15:25:56]Content-Type: application/json [15:25:56] [15:25:56]POST finish read [15:25:56]Found Content-Length = 625 [15:25:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189837", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:56]execute_script... [15:25:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189837", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:56]POST & json_proto [15:25:56]process_json_proto [15:25:56]json parsed OK: [15:25:56]protocol is kg_v1.0 [15:25:56]action value=close_receipt [15:25:56]process_action close_receipt [15:25:56]cmd_close_receipt [15:25:56]MH_GetDate [15:25:56]Write to MH i2c: F0 00 00 70 23 82 [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: F0 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: F0 09 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: F0 09 00 70 23 00 09 C1 C0 66 07 E8 5D 66 2D [15:25:56]GetLastDocTimeStamp 1723908343 [15:25:56]current date 1723908361 [15:25:56]FM_GetShiftState [15:25:56]SAM_PROTO_GetShiftState [15:25:56]wFMCommunicate request_size=4 [15:25:56]MH_SAM_APDU [15:25:56]CAPDU: 80 13 01 00 [15:25:56]Write to MH i2c: E2 08 00 71 23 80 13 01 00 00 00 00 00 11 [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:56]Read from MH i2c: E2 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 0E 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 0E 00 71 23 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 56 [15:25:56]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:25:56]wFMCommunicate OK [15:25:56]SAM_PROTO_GetShiftState done [15:25:56]FM_GetShiftState done [15:25:56]opened in 1723853354 [15:25:56]opened+sec_in_day 1723939754 [15:25:56]quantity*price = 30000 [15:25:56]sum+1 = 30001 [15:25:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 89 17.08.2024 15:26 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49652 ФПД: 43778150405368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152601&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49652&fm=43778150405368&tin=02508201610067®Number=0000000000092546&sum=30000 0 [15:25:57]StoreToDocumentArchive [15:25:57]shift 465 fd 49652 [15:25:57]save to /storage/0465/doc_00049652 [15:25:57]save last doc name /storage/0465/doc_00049652 to /storage/kkm_last_doc_name [15:25:57]save OK [15:25:57]Clear old archive folders... [15:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=277 [15:25:57]tlvbuf is B6F537B0 [15:25:57]SAM_PROTO_ClearQueue [15:25:57]wFMCommunicate request_size=4 [15:25:57]MH_SAM_APDU [15:25:57]CAPDU: 80 09 00 00 [15:25:57]Write to MH i2c: E2 08 00 7E 23 80 09 00 00 00 00 00 00 13 [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:57]Read from MH i2c: E2 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 7E 23 00 90 00 15 [15:25:57]RAPDU: 90 00 [15:25:57]wFMCommunicate OK [15:25:57]SAM_PROTO_ClearQueue done [15:25:57]KKMCreateOFDPacket [15:25:57]OFDProtocolAddRootSTLVToBuf [15:25:57]FM_MakeSignedData [15:25:57]FM_MakeSignedData [15:25:57]SAM_PROTO_SignData [15:25:57]wFMCommunicate request_size=4 [15:25:57]MH_SAM_APDU [15:25:57]CAPDU: 80 0D 01 02 [15:25:57]Write to MH i2c: E2 08 00 7F 23 80 0D 01 02 00 00 00 00 1B [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 7F 23 00 90 00 16 [15:25:58]RAPDU: 90 00 [15:25:58]wFMCommunicate OK [15:25:58]wFMCommunicate request_size=255 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 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 59 00 00 00 F4 03 04 00 09 C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 [15:25:58]Write to MH i2c: E2 02 01 80 23 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 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 59 00 00 00 F4 03 04 00 09 C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 00 00 48 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 80 23 00 90 00 17 [15:25:58]RAPDU: 90 00 [15:25:58]wFMCommunicate OK [15:25:58]wFMCommunicate request_size=36 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C1 00 00 35 04 06 00 27 D0 E5 1A 94 F8 [15:25:58]Write to MH i2c: E2 27 00 81 23 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C1 00 00 35 04 06 00 27 D0 E5 1A 94 F8 00 00 72 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 81 23 00 90 00 18 [15:25:58]RAPDU: 90 00 [15:25:58]wFMCommunicate OK [15:25:58]wFMCommunicate request_size=4 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 0D 03 02 [15:25:58]Write to MH i2c: E2 08 00 82 23 80 0D 03 02 00 00 00 00 20 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 0B 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 0B 00 82 23 00 51 33 8B 0D 6E F0 DA D2 90 00 47 [15:25:58]RAPDU: 51 33 8B 0D 6E F0 DA D2 90 00 [15:25:58]wFMCommunicate OK [15:25:58]SAM_PROTO_SignData done [15:25:58]FM_MakeSignedData done [15:25:58]CreateOFDProtocolMessage [15:25:58]wFMCommunicate request_size=4 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 11 00 00 [15:25:58]Write to MH i2c: E2 08 00 83 23 80 11 00 00 00 00 00 00 20 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 17 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 17 00 83 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6B [15:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:25:58]wFMCommunicate OK [15:25:58]CreateOFDProtocolMessage done [15:25:58]OFDSenderStorePacket 49652 [15:25:58]StoreOFDPacket docnum=49652 [15:25:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 29 01 00 00 AE EB 21 01 2B 45 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 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 59 00 00 00 F4 03 04 00 09 C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C1 00 00 35 04 06 00 27 D0 E5 1A 94 F8 51 33 8B 0D 6E F0 DA D2 [15:25:58]CheckFolder [15:25:58]dirname=/storage/ofd_packets [15:25:58]CheckFolder done [15:25:58]ProducePacketName [15:25:58]name=ofd_packets/00049652 [15:25:58]NVStorageSaveData ofd_packets/00049652 [15:25:58]File name is /storage/ofd_packets/00049652 [15:25:58]Write 327 bytes [15:25:58]NVStorageSaveData done [15:25:58]OFDSenderStorePacket done [15:25:58]KKMCreateOFDPacket done [15:25:58]NVStorageSaveData kkm_last_timestamp [15:25:58]File name is /storage/kkm_last_timestamp [15:25:58]Write 4 bytes [15:25:58]NVStorageSaveData done [15:25:58]ExternCall_PrintAddStr [15:25:58]wPrintStart [15:25:58]Write to MH i2c: 01 00 00 84 23 A7 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 07 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 07 00 84 23 00 00 00 00 00 FF 0F BC [15:25:58]RasterBufferAndPrint [15:25:58]line Счет N : (3)189837 [15:25:58]line ИНН: 02508201610067 [15:25:58]line Контрольно-Кассовый Чек [15:25:58]line ПРОДАЖА [15:25:58]line Товар: 46230607 [15:25:58]line Сигареты Richmond Bronze Edition [15:25:58]line 2.000 * 150.00 [15:25:58]line = 300.00 [15:25:58]line НДС 12% НСП 1% [15:25:58]line > о реализуемом товаре [15:25:58]line ИТОГО: 300.00 [15:25:58]line НСП 1% : 2.65 [15:25:58]line НДС 12% : 31.86 [15:25:58]line Наличными: 300.00 [15:25:58]line Безнал.: 0.00 [15:25:58]line Место: АЗС № 95 "Партнер Нефть" [15:25:58]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:25:58]line СНО: Общий режим [15:25:58]line Чек 89 17.08.2024 15:26 [15:25:58]line Смена: 465 ФФД: 1.0 [15:25:58]line ЗНМ: 0300000078 [15:25:58]line РНМ: 0000000000092546 [15:25:58]line Версия ККМ: 001 [15:25:58]line ФМ: 0000000000871800 [15:25:58]line ФД: 49652 [15:25:58]line ФПД: 43778150405368 [15:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152601&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49652&fm=43778150405368&tin=02508201610067®Number=0000000000092546&sum=30000 [15:25:58]OFD Sender: Processing packet 49652 [packets to send 21, broken 20] [15:25:58]ProducePacketName [15:25:58]name=ofd_packets/00049652 [15:25:58]OFD Sender: To server: pG, [15:25:58]CommunicateWithHost lk.salyk.kg:30040 [15:25:58]ConnectInit lk.salyk.kg [15:25:58]line 0 [15:25:58]written 0, free lines is 4095 [15:25:58]Connected sock=10 [15:25:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 29 01 00 00 AE EB 21 01 2B 45 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 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 59 00 00 00 F4 03 04 00 09 C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C1 00 00 35 04 06 00 27 D0 E5 1A 94 F8 51 33 8B 0D 6E F0 DA D2 [15:25:59]Write to MH i2c: 01 00 00 AD 23 D0 [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: 01 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: 01 07 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: 01 07 00 AD 23 00 00 00 00 00 CA 0C AD [15:25:59]RasterBufferAndPrint [15:25:59]line [15:25:59]line [15:25:59]line [15:25:59]line [15:25:59]line [15:25:59]written 0, free lines is 3281 [15:25:59]MH_Cut [15:25:59]Write to MH i2c: D1 01 00 B4 23 01 A9 [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: D1 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: D1 01 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: D1 01 00 B4 23 00 A8 [15:25:59]Write to MH i2c: 01 00 00 B5 23 D8 [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 81 53 47 00 BA 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C1 00 00 F4 03 04 00 44 6C C0 66 B6 04 01 00 00 00 69 26 8D D2 21 87 88 [15:25:59]CommunicateWithHost err = 0 [15:25:59]CheckOFDResponse [15:25:59]1017 (14) - 77093643461234 [15:25:59]1041 (16) - 0000000000871800 [15:25:59]1040 (4) - 49652 [15:25:59]1012 (4) - 17.08.2024 09:24 [15:25:59]1206 (1) - 0 [15:25:59]OFD Sender: Remove packet 49652 [15:25:59]ProducePacketName [15:25:59]name=ofd_packets/00049652 [15:25:59]NVStorageDeleteData [15:25:59]OFD Sender: No OFD packet to send [15:26:00]*** Cut start [15:26:00]*** Purtial cut [15:26:00]*** CUTSNS_PIN = 0 [15:26:00]*** Stage 1: CUTSNS_PIN = 1 [15:26:02]Read from MH i2c: 01 [15:26:02]MH_I2C_Read... [15:26:02]*** Stop cut motor [15:26:02]*** Cut end [15:26:02]Read from MH i2c: 01 07 00 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: 01 07 00 B5 23 00 00 00 00 00 FF 0F ED [15:26:02]process_action close_receipt done [15:26:02]requested_data is exist [15:26:02]produce_requested_data [15:26:02]requested_item fm.sn is exist - process it [15:26:02]wFMCommunicate request_size=4 [15:26:02]MH_SAM_APDU [15:26:02]CAPDU: 80 11 00 00 [15:26:02]Write to MH i2c: E2 08 00 B6 23 80 11 00 00 00 00 00 00 53 [15:26:02]Write i2c OK [15:26:02]MH_I2C_Read... [15:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:02]Read from MH i2c: E2 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 17 00 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 17 00 B6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9E [15:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:26:02]wFMCommunicate OK [15:26:02]requested_item fd.num is exist - process it [15:26:02]SAM_PROTO_GetFieldsCounters [15:26:02]wFMCommunicate request_size=4 [15:26:02]MH_SAM_APDU [15:26:02]CAPDU: 80 13 00 00 [15:26:02]Write to MH i2c: E2 08 00 B7 23 80 13 00 00 00 00 00 00 56 [15:26:02]Write i2c OK [15:26:02]MH_I2C_Read... [15:26:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:02]Read from MH i2c: E2 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 62 00 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 62 00 B7 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F4 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [15:26: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F4 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:02]wFMCommunicate OK [15:26:02]SAM_PROTO_GetFieldsCounters done [15:26:02]requested_item shift.num is exist - process it [15:26:02]requested_item shift.opened is exist - process it [15:26:02]req_shift_opened [15:26:02]FM_GetShiftState [15:26:02]SAM_PROTO_GetShiftState [15:26:02]wFMCommunicate request_size=4 [15:26:02]MH_SAM_APDU [15:26:02]CAPDU: 80 13 01 00 [15:26:02]Write to MH i2c: E2 08 00 B8 23 80 13 01 00 00 00 00 00 58 [15:26:02]Write i2c OK [15:26:02]MH_I2C_Read... [15:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:02]Read from MH i2c: E2 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 0E 00 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 0E 00 B8 23 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 9D [15:26:02]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:26:02]wFMCommunicate OK [15:26:02]SAM_PROTO_GetShiftState done [15:26:02]FM_GetShiftState done [15:26:02]req_shift_opened done [15:26:02]requested_item shift.open_date is exist - process it [15:26:02]req_shift_open_date [15:26:02]req_shift_open_date done [15:26:02]produce_requested_data done [15:26:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49652,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [15:26:02]process_action_free close_receipt [15:26:02]json_value_free [15:26:02]json_value_free done [15:26:02]process_json_proto returns [15:26:02]Send response to host [15:26:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49652,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [15:26:02]free response buf [15:26:02]execute_script done [15:26:02]execute_script returns [15:26:02]free content buf [15:26:02]Sock 7.Close socket [15:26:02]Sock 7.Thread stoped [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:32]accept exits with 9 [15:26:32]New connection [15:26:32]New thread 3066801508 created [15:26:32]Thread 3066944868 joined [15:26:32]Waiting for new connection... [15:26:32] Sock 9.Parse request [15:26:32]Sock 9.Check first char [15:26:32]Sock 9.First char is OK [15:26:32]request: POST /json_proto HTTP/1.0 [15:26:32]Method: POST [15:26:32]URL: /json_proto [15:26:32]Method is POST - this is cgi request [15:26:32]url: /json_proto [15:26:32]query_string will be loaded in cgi processing [15:26:32]execute_cgi json_proto POST (null) [15:26:32]execute_cgi path=json_proto method=POST [15:26:32]POST find Content-Length [15:26:32]Host: 172.17.46.196:8080 [15:26:32]Content-Length: 630 [15:26:32]Content-Type: application/json [15:26:32] [15:26:32]POST finish read [15:26:32]Found Content-Length = 630 [15:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189838", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:32]execute_script... [15: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 : (3)189838", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:32]POST & json_proto [15:26:32]process_json_proto [15:26:32]json parsed OK: [15:26:32]protocol is kg_v1.0 [15:26:32]action value=close_receipt [15:26:32]process_action close_receipt [15:26:32]cmd_close_receipt [15:26:32]MH_GetDate [15:26:32]Write to MH i2c: F0 00 00 B9 23 CB [15:26:32]Write i2c OK [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: F0 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: F0 09 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: F0 09 00 B9 23 00 2C C1 C0 66 07 E8 5D 66 99 [15:26:32]GetLastDocTimeStamp 1723908361 [15:26:32]current date 1723908396 [15:26:32]FM_GetShiftState [15:26:32]SAM_PROTO_GetShiftState [15:26:32]wFMCommunicate request_size=4 [15:26:32]MH_SAM_APDU [15:26:32]CAPDU: 80 13 01 00 [15:26:32]Write to MH i2c: E2 08 00 BA 23 80 13 01 00 00 00 00 00 5A [15:26:32]Write i2c OK [15:26:32]MH_I2C_Read... [15:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:32]Read from MH i2c: E2 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 0E 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 0E 00 BA 23 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 9F [15:26:32]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:26:32]wFMCommunicate OK [15:26:32]SAM_PROTO_GetShiftState done [15:26:32]FM_GetShiftState done [15:26:32]opened in 1723853354 [15:26:32]opened+sec_in_day 1723939754 [15:26:32]quantity*price = 5000 [15:26:32]sum+1 = 5001 [15:26:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 90 17.08.2024 15:26 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49653 ФПД: 223119262701988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152637&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49653&fm=223119262701988&tin=02508201610067®Number=0000000000092546&sum=5000 0 [15:26:33]StoreToDocumentArchive [15:26:33]shift 465 fd 49653 [15:26:33]save to /storage/0465/doc_00049653 [15:26:33]save last doc name /storage/0465/doc_00049653 to /storage/kkm_last_doc_name [15:26:33]save OK [15:26:33]Clear old archive folders... [15:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:26:33]tlvbuf is 01806F20 [15:26:33]SAM_PROTO_ClearQueue [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 09 00 00 [15:26:33]Write to MH i2c: E2 08 00 C7 23 80 09 00 00 00 00 00 00 5C [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 C7 23 00 90 00 5E [15:26:33]RAPDU: 90 00 [15:26:33]wFMCommunicate OK [15:26:33]SAM_PROTO_ClearQueue done [15:26:33]KKMCreateOFDPacket [15:26:33]OFDProtocolAddRootSTLVToBuf [15:26:33]FM_MakeSignedData [15:26:33]FM_MakeSignedData [15:26:33]SAM_PROTO_SignData [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 0D 01 02 [15:26:33]Write to MH i2c: E2 08 00 C8 23 80 0D 01 02 00 00 00 00 64 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 C8 23 00 90 00 5F [15:26:33]RAPDU: 90 00 [15:26:33]wFMCommunicate OK [15:26:33]wFMCommunicate request_size=255 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 2D C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:26:33]Write to MH i2c: E2 02 01 C9 23 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 2D C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 BC [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 03 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 03 00 C9 23 00 90 00 60 [15:26:34]RAPDU: 90 00 [15:26:34]wFMCommunicate OK [15:26:34]wFMCommunicate request_size=28 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 F5 C1 00 00 35 04 06 00 CA ED 00 65 59 A4 [15:26:34]Write to MH i2c: E2 1F 00 CA 23 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 F5 C1 00 00 35 04 06 00 CA ED 00 65 59 A4 00 00 BB [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 03 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 03 00 CA 23 00 90 00 61 [15:26:34]RAPDU: 90 00 [15:26:34]wFMCommunicate OK [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 0D 03 02 [15:26:34]Write to MH i2c: E2 08 00 CB 23 80 0D 03 02 00 00 00 00 69 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 0B 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 0B 00 CB 23 00 74 B0 0F 5F 55 DF F9 0D 90 00 36 [15:26:34]RAPDU: 74 B0 0F 5F 55 DF F9 0D 90 00 [15:26:34]wFMCommunicate OK [15:26:34]SAM_PROTO_SignData done [15:26:34]FM_MakeSignedData done [15:26:34]CreateOFDProtocolMessage [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 11 00 00 [15:26:34]Write to MH i2c: E2 08 00 CC 23 80 11 00 00 00 00 00 00 69 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 17 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 17 00 CC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B4 [15:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:26:34]wFMCommunicate OK [15:26:34]CreateOFDProtocolMessage done [15:26:34]OFDSenderStorePacket 49653 [15:26:34]StoreOFDPacket docnum=49653 [15:26:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 A9 E4 19 01 A6 7C 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 2D C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F5 C1 00 00 35 04 06 00 CA ED 00 65 59 A4 74 B0 0F 5F 55 DF F9 0D [15:26:34]CheckFolder [15:26:34]dirname=/storage/ofd_packets [15:26:34]CheckFolder done [15:26:34]ProducePacketName [15:26:34]name=ofd_packets/00049653 [15:26:34]NVStorageSaveData ofd_packets/00049653 [15:26:34]File name is /storage/ofd_packets/00049653 [15:26:34]Write 319 bytes [15:26:34]NVStorageSaveData done [15:26:34]OFDSenderStorePacket done [15:26:34]KKMCreateOFDPacket done [15:26:34]NVStorageSaveData kkm_last_timestamp [15:26:34]File name is /storage/kkm_last_timestamp [15:26:34]Write 4 bytes [15:26:34]NVStorageSaveData done [15:26:34]ExternCall_PrintAddStr [15:26:34]wPrintStart [15:26:34]Write to MH i2c: 01 00 00 CD 23 F0 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 07 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 07 00 CD 23 00 00 00 00 00 FF 0F 05 [15:26:34]RasterBufferAndPrint [15:26:34]line Счет N : (3)189838 [15:26:34]line ИНН: 02508201610067 [15:26:34]line Контрольно-Кассовый Чек [15:26:34]line ПРОДАЖА [15:26:34]line Товар: 4700000160358 [15:26:34]line Вода Легенда 1л [15:26:34]line 1.000 * 50.00 [15:26:34]line = 50.00 [15:26:34]line НДС 12% НСП 1% [15:26:34]line > о реализуемом товаре [15:26:34]line ИТОГО: 50.00 [15:26:34]line НСП 1% : 0.44 [15:26:34]line НДС 12% : 5.31 [15:26:34]line Наличными: 50.00 [15:26:34]line Безнал.: 0.00 [15:26:34]line Место: АЗС № 95 "Партнер Нефть" [15:26:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:26:34]line СНО: Общий режим [15:26:34]line Чек 90 17.08.2024 15:26 [15:26:34]line Смена: 465 ФФД: 1.0 [15:26:34]line ЗНМ: 0300000078 [15:26:34]line РНМ: 0000000000092546 [15:26:34]line Версия ККМ: 001 [15:26:34]line ФМ: 0000000000871800 [15:26:34]line ФД: 49653 [15:26:34]line ФПД: 223119262701988 [15:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152637&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49653&fm=223119262701988&tin=02508201610067®Number=0000000000092546&sum=5000 [15:26:34]line 0 [15:26:34]OFD Sender: Processing packet 49653 [packets to send 21, broken 20] [15:26:34]ProducePacketName [15:26:34]name=ofd_packets/00049653 [15:26:34]OFD Sender: To server: pG, [15:26:34]CommunicateWithHost lk.salyk.kg:30040 [15:26:34]ConnectInit lk.salyk.kg [15:26:34]written 0, free lines is 4095 [15:26:34]Connected sock=10 [15:26:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 A9 E4 19 01 A6 7C 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 2D C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F5 C1 00 00 35 04 06 00 CA ED 00 65 59 A4 74 B0 0F 5F 55 DF F9 0D [15:26:35]Write to MH i2c: 01 00 00 F5 23 18 [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 07 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 07 00 F5 23 00 00 00 00 00 EB 0C 16 [15:26:35]RasterBufferAndPrint [15:26:35]line [15:26:35]line [15:26:35]line [15:26:35]line [15:26:35]line [15:26:35]written 0, free lines is 3313 [15:26:35]MH_Cut [15:26:35]Write to MH i2c: D1 01 00 FC 23 01 F1 [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: D1 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: D1 01 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: D1 01 00 FC 23 00 F0 [15:26:35]Write to MH i2c: 01 00 00 FD 23 20 [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A0 B4 47 00 10 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 31 38 30 30 10 04 04 00 F5 C1 00 00 F4 03 04 00 68 6C C0 66 B6 04 01 00 00 4C 78 47 DB EF 49 C5 D0 [15:26:35]CommunicateWithHost err = 0 [15:26:35]CheckOFDResponse [15:26:35]1017 (14) - 77093643461234 [15:26:35]1041 (16) - 0000000000871800 [15:26:35]1040 (4) - 49653 [15:26:35]1012 (4) - 17.08.2024 09:24 [15:26:35]1206 (1) - 0 [15:26:35]OFD Sender: Remove packet 49653 [15:26:35]ProducePacketName [15:26:35]name=ofd_packets/00049653 [15:26:35]NVStorageDeleteData [15:26:35]OFD Sender: No OFD packet to send [15:26:35]*** Cut start [15:26:35]*** Purtial cut [15:26:35]*** Stage 1: CUTSNS_PIN = 1 [15:26:36]Read from MH i2c: 01 [15:26:36]MH_I2C_Read... [15:26:36]*** Stop cut motor [15:26:36]*** Cut end [15:26:36]Read from MH i2c: 01 07 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: 01 07 00 FD 23 00 00 00 00 00 FF 0F 35 [15:26:36]process_action close_receipt done [15:26:36]requested_data is exist [15:26:36]produce_requested_data [15:26:36]requested_item fm.sn is exist - process it [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 11 00 00 [15:26:36]Write to MH i2c: E2 08 00 FE 23 80 11 00 00 00 00 00 00 9B [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 17 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 17 00 FE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E6 [15:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:26:36]wFMCommunicate OK [15:26:36]requested_item fd.num is exist - process it [15:26:36]SAM_PROTO_GetFieldsCounters [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 13 00 00 [15:26:36]Write to MH i2c: E2 08 00 FF 23 80 13 00 00 00 00 00 00 9E [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 62 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 62 00 FF 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F5 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [15: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F5 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:36]wFMCommunicate OK [15:26:36]SAM_PROTO_GetFieldsCounters done [15:26:36]requested_item shift.num is exist - process it [15:26:36]requested_item shift.opened is exist - process it [15:26:36]req_shift_opened [15:26:36]FM_GetShiftState [15:26:36]SAM_PROTO_GetShiftState [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 13 01 00 [15:26:36]Write to MH i2c: E2 08 00 00 24 80 13 01 00 00 00 00 00 A1 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 0E 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 0E 00 00 24 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 E6 [15:26:36]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:26:36]wFMCommunicate OK [15:26:36]SAM_PROTO_GetShiftState done [15:26:36]FM_GetShiftState done [15:26:36]req_shift_opened done [15:26:36]requested_item shift.open_date is exist - process it [15:26:36]req_shift_open_date [15:26:36]req_shift_open_date done [15:26:36]produce_requested_data done [15:26:36]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49653,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [15:26:36]process_action_free close_receipt [15:26:36]json_value_free [15:26:36]json_value_free done [15:26:36]process_json_proto returns [15:26:36]Send response to host [15:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49653,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [15:26:36]free response buf [15:26:36]execute_script done [15:26:36]execute_script returns [15:26:36]free content buf [15:26:36]Sock 9.Close socket [15:26:36]Sock 9.Thread stoped [15:26:37]int [15:26:37]Write to MH i2c: 01 00 00 01 24 25 [15:26:37]*** FLAG_PRN_KEY set [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 07 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 07 00 01 24 00 08 00 00 00 FF 0F 42 [15:26:37]state=0 [15:26:37]Key pressed [15:26:37]Feed [15:26:37]Write to MH i2c: D8 00 00 02 24 FD [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: D8 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: D8 01 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: D8 01 00 02 24 00 FE [15:26:37]int [15:26:37]Write to MH i2c: 01 00 00 03 24 27 [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 07 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 07 00 03 24 00 48 00 00 00 3C 00 B2 [15:26:37]state=2 [15:26:37]Key pressed [15:26:37]int [15:26:37]Write to MH i2c: 01 00 00 04 24 28 [15:26:37]*** FLAG_PRN_KEY reset [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 07 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 07 00 04 24 00 00 00 00 00 F9 0F 37 [15:26:37]state=2 [15:26:37]Stop feed [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:26:59]accept exits with 7 [15:26:59]New connection [15:26:59]New thread 3066944868 created [15:26:59]Thread 3066801508 joined [15:26:59]Waiting for new connection... [15:26:59] Sock 7.Parse request [15:26:59]Sock 7.Check first char [15:26:59]Sock 7.First char is OK [15:26:59]request: POST /json_proto HTTP/1.0 [15:26:59]Method: POST [15:26:59]URL: /json_proto [15:26:59]Method is POST - this is cgi request [15:26:59]url: /json_proto [15:26:59]query_string will be loaded in cgi processing [15:26:59]execute_cgi json_proto POST (null) [15:26:59]execute_cgi path=json_proto method=POST [15:26:59]POST find Content-Length [15:26:59]Host: 172.17.46.196:8080 [15:26:59]Content-Length: 616 [15:26:59]Content-Type: application/json [15:26:59] [15:26:59]POST finish read [15:26:59]Found Content-Length = 616 [15:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189839", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:59]execute_script... [15:26:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189839", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:59]POST & json_proto [15:26:59]process_json_proto [15:26:59]json parsed OK: [15:26:59]protocol is kg_v1.0 [15:26:59]action value=close_receipt [15:26:59]process_action close_receipt [15:26:59]cmd_close_receipt [15:26:59]MH_GetDate [15:26:59]Write to MH i2c: F0 00 00 05 24 18 [15:26:59]Write i2c OK [15:26:59]MH_I2C_Read... [15:26:59]Read from MH i2c: F0 [15:26:59]MH_I2C_Read... [15:26:59]Read from MH i2c: F0 09 00 [15:26:59]MH_I2C_Read... [15:26:59]Read from MH i2c: F0 09 00 05 24 00 48 C1 C0 66 07 E8 5D 66 02 [15:26:59]GetLastDocTimeStamp 1723908397 [15:26:59]current date 1723908424 [15:26:59]FM_GetShiftState [15:26:59]SAM_PROTO_GetShiftState [15:26:59]wFMCommunicate request_size=4 [15:26:59]MH_SAM_APDU [15:26:59]CAPDU: 80 13 01 00 [15:26:59]Write to MH i2c: E2 08 00 06 24 80 13 01 00 00 00 00 00 A7 [15:26:59]Write i2c OK [15:26:59]MH_I2C_Read... [15:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:59]Read from MH i2c: E2 [15:26:59]MH_I2C_Read... [15:26:59]Read from MH i2c: E2 0E 00 [15:26:59]MH_I2C_Read... [15:26:59]Read from MH i2c: E2 0E 00 06 24 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 EC [15:26:59]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:26:59]wFMCommunicate OK [15:26:59]SAM_PROTO_GetShiftState done [15:26:59]FM_GetShiftState done [15:26:59]opened in 1723853354 [15:26:59]opened+sec_in_day 1723939754 [15:26:59]quantity*price = 17500 [15:26:59]sum+1 = 17501 [15:26:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 91 17.08.2024 15:27 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49654 ФПД: 225326960509217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152704&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49654&fm=225326960509217&tin=02508201610067®Number=0000000000092546&sum=17500 0 [15:27:00]StoreToDocumentArchive [15:27:00]shift 465 fd 49654 [15:27:00]save to /storage/0465/doc_00049654 [15:27:00]save last doc name /storage/0465/doc_00049654 to /storage/kkm_last_doc_name [15:27:00]save OK [15:27:00]Clear old archive folders... [15:27:00]ProcessDocumentItem done err = 0, tmpTLVsize=268 [15:27:00]tlvbuf is 01882740 [15:27:00]SAM_PROTO_ClearQueue [15:27:00]wFMCommunicate request_size=4 [15:27:00]MH_SAM_APDU [15:27:00]CAPDU: 80 09 00 00 [15:27:00]Write to MH i2c: E2 08 00 13 24 80 09 00 00 00 00 00 00 A9 [15:27:00]Write i2c OK [15:27:00]MH_I2C_Read... [15:27:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:00]Read from MH i2c: E2 [15:27:00]MH_I2C_Read... [15:27:00]Read from MH i2c: E2 03 00 [15:27:00]MH_I2C_Read... [15:27:00]Read from MH i2c: E2 03 00 13 24 00 90 00 AB [15:27:00]RAPDU: 90 00 [15:27:00]wFMCommunicate OK [15:27:00]SAM_PROTO_ClearQueue done [15:27:00]KKMCreateOFDPacket [15:27:00]OFDProtocolAddRootSTLVToBuf [15:27:00]FM_MakeSignedData [15:27:00]FM_MakeSignedData [15:27:00]SAM_PROTO_SignData [15:27:00]wFMCommunicate request_size=4 [15:27:00]MH_SAM_APDU [15:27:00]CAPDU: 80 0D 01 02 [15:27:00]Write to MH i2c: E2 08 00 14 24 80 0D 01 02 00 00 00 00 B1 [15:27:00]Write i2c OK [15:27:00]MH_I2C_Read... [15:27:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:00]Read from MH i2c: E2 [15:27:00]MH_I2C_Read... [15:27:00]Read from MH i2c: E2 03 00 [15:27:00]MH_I2C_Read... [15:27:00]Read from MH i2c: E2 03 00 14 24 00 90 00 AC [15:27:00]RAPDU: 90 00 [15:27:00]wFMCommunicate OK [15:27:00]wFMCommunicate request_size=255 [15:27:00]MH_SAM_APDU [15:27:00]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 48 C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [15:27:00]Write to MH i2c: E2 02 01 15 24 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 48 C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 78 [15:27:00]Write i2c OK [15:27:00]MH_I2C_Read... [15:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:01]Read from MH i2c: E2 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: E2 03 00 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: E2 03 00 15 24 00 90 00 AD [15:27:01]RAPDU: 90 00 [15:27:01]wFMCommunicate OK [15:27:01]wFMCommunicate request_size=27 [15:27:01]MH_SAM_APDU [15:27:01]CAPDU: 80 0D 02 02 16 31 38 30 30 10 04 04 00 F6 C1 00 00 35 04 06 00 CC EF 05 70 81 21 [15:27:01]Write to MH i2c: E2 1E 00 16 24 80 0D 02 02 16 00 31 38 30 30 10 04 04 00 F6 C1 00 00 35 04 06 00 CC EF 05 70 81 21 00 00 89 [15:27:01]Write i2c OK [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: E2 [15:27:01]MH_I2C_Read... [15:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:01]Read from MH i2c: E2 03 00 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: E2 03 00 16 24 00 90 00 AE [15:27:01]RAPDU: 90 00 [15:27:01]wFMCommunicate OK [15:27:01]wFMCommunicate request_size=4 [15:27:01]MH_SAM_APDU [15:27:01]CAPDU: 80 0D 03 02 [15:27:01]Write to MH i2c: E2 08 00 17 24 80 0D 03 02 00 00 00 00 B6 [15:27:01]Write i2c OK [15:27:01]MH_I2C_Read... [15:27:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:01]Read from MH i2c: E2 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: E2 0B 00 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: E2 0B 00 17 24 00 A0 9F EA 52 47 62 D1 DF 90 00 8B [15:27:01]RAPDU: A0 9F EA 52 47 62 D1 DF 90 00 [15:27:01]wFMCommunicate OK [15:27:01]SAM_PROTO_SignData done [15:27:01]FM_MakeSignedData done [15:27:01]CreateOFDProtocolMessage [15:27:01]wFMCommunicate request_size=4 [15:27:01]MH_SAM_APDU [15:27:01]CAPDU: 80 11 00 00 [15:27:01]Write to MH i2c: E2 08 00 18 24 80 11 00 00 00 00 00 00 B6 [15:27:01]Write i2c OK [15:27:01]MH_I2C_Read... [15:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:01]Read from MH i2c: E2 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: E2 17 00 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: E2 17 00 18 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 01 [15:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:27:01]wFMCommunicate OK [15:27:01]CreateOFDProtocolMessage done [15:27:01]OFDSenderStorePacket 49654 [15:27:01]StoreOFDPacket docnum=49654 [15:27:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 2C CA 18 01 4A 9B 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 48 C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F6 C1 00 00 35 04 06 00 CC EF 05 70 81 21 A0 9F EA 52 47 62 D1 DF [15:27:01]CheckFolder [15:27:01]dirname=/storage/ofd_packets [15:27:01]CheckFolder done [15:27:01]ProducePacketName [15:27:01]name=ofd_packets/00049654 [15:27:01]NVStorageSaveData ofd_packets/00049654 [15:27:01]File name is /storage/ofd_packets/00049654 [15:27:01]Write 318 bytes [15:27:01]NVStorageSaveData done [15:27:01]OFDSenderStorePacket done [15:27:01]KKMCreateOFDPacket done [15:27:01]NVStorageSaveData kkm_last_timestamp [15:27:01]File name is /storage/kkm_last_timestamp [15:27:01]Write 4 bytes [15:27:01]NVStorageSaveData done [15:27:01]ExternCall_PrintAddStr [15:27:01]wPrintStart [15:27:01]Write to MH i2c: 01 00 00 19 24 3D [15:27:01]Write i2c OK [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: 01 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: 01 07 00 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: 01 07 00 19 24 00 00 00 00 00 FF 0F 52 [15:27:01]RasterBufferAndPrint [15:27:01]line Счет N : (3)189839 [15:27:01]line ИНН: 02508201610067 [15:27:01]line Контрольно-Кассовый Чек [15:27:01]line ПРОДАЖА [15:27:01]line Товар: 4870002329487 [15:27:01]line Напиток Pepsi 1,5л [15:27:01]line 1.000 * 175.00 [15:27:01]line = 175.00 [15:27:01]line НДС 12% НСП 1% [15:27:01]line > о реализуемом товаре [15:27:01]line ИТОГО: 175.00 [15:27:01]line НСП 1% : 1.55 [15:27:01]line НДС 12% : 18.58 [15:27:01]line Наличными: 175.00 [15:27:01]line Безнал.: 0.00 [15:27:01]line Место: АЗС № 95 "Партнер Нефть" [15:27:01]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:27:01]line СНО: Общий режим [15:27:01]line Чек 91 17.08.2024 15:27 [15:27:01]line Смена: 465 ФФД: 1.0 [15:27:01]line ЗНМ: 0300000078 [15:27:01]line РНМ: 0000000000092546 [15:27:01]line Версия ККМ: 001 [15:27:01]line ФМ: 0000000000871800 [15:27:01]line ФД: 49654 [15:27:01]line ФПД: 225326960509217 [15:27:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152704&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49654&fm=225326960509217&tin=02508201610067®Number=0000000000092546&sum=17500 [15:27:01]line 0 [15:27:01]written 0, free lines is 4095 [15:27:01]OFD Sender: Processing packet 49654 [packets to send 21, broken 20] [15:27:01]ProducePacketName [15:27:01]name=ofd_packets/00049654 [15:27:01]OFD Sender: To server: pG, [15:27:01]CommunicateWithHost lk.salyk.kg:30040 [15:27:01]ConnectInit lk.salyk.kg [15:27:01]Write to MH i2c: 01 00 00 41 24 65 [15:27:01]Write i2c OK [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: 01 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: 01 07 00 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: 01 07 00 41 24 00 00 00 00 00 F8 0C 70 [15:27:01]RasterBufferAndPrint [15:27:01]line [15:27:01]line [15:27:01]line [15:27:01]line [15:27:01]line [15:27:01]written 0, free lines is 3326 [15:27:01]MH_Cut [15:27:01]Write to MH i2c: D1 01 00 48 24 01 3E [15:27:01]Write i2c OK [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: D1 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: D1 01 00 [15:27:01]MH_I2C_Read... [15:27:01]Read from MH i2c: D1 01 00 48 24 00 3D [15:27:01]Write to MH i2c: 01 00 00 49 24 6D [15:27:01]Write i2c OK [15:27:01]MH_I2C_Read... [15:27:02]*** Cut start [15:27:02]*** Purtial cut [15:27:02]*** CUTSNS_PIN = 0 [15:27:02]*** Stage 1: CUTSNS_PIN = 1 [15:27:04]Read from MH i2c: 01 [15:27:04]MH_I2C_Read... [15:27:04]*** Stop cut motor [15:27:04]*** Cut end [15:27:04]Read from MH i2c: 01 07 00 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: 01 07 00 49 24 00 00 00 00 00 FF 0F 82 [15:27:04]process_action close_receipt done [15:27:04]requested_data is exist [15:27:04]produce_requested_data [15:27:04]requested_item fm.sn is exist - process it [15:27:04]wFMCommunicate request_size=4 [15:27:04]MH_SAM_APDU [15:27:04]CAPDU: 80 11 00 00 [15:27:04]Write to MH i2c: E2 08 00 4A 24 80 11 00 00 00 00 00 00 E8 [15:27:04]Write i2c OK [15:27:04]MH_I2C_Read... [15:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:04]Read from MH i2c: E2 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: E2 17 00 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: E2 17 00 4A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 33 [15:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:27:04]wFMCommunicate OK [15:27:04]requested_item fd.num is exist - process it [15:27:04]SAM_PROTO_GetFieldsCounters [15:27:04]wFMCommunicate request_size=4 [15:27:04]MH_SAM_APDU [15:27:04]CAPDU: 80 13 00 00 [15:27:04]Write to MH i2c: E2 08 00 4B 24 80 13 00 00 00 00 00 00 EB [15:27:04]Write i2c OK [15:27:04]MH_I2C_Read... [15:27:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:04]Read from MH i2c: E2 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: E2 62 00 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: E2 62 00 4B 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F6 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [15:27: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F6 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:04]wFMCommunicate OK [15:27:04]SAM_PROTO_GetFieldsCounters done [15:27:04]requested_item shift.num is exist - process it [15:27:04]requested_item shift.opened is exist - process it [15:27:04]req_shift_opened [15:27:04]FM_GetShiftState [15:27:04]SAM_PROTO_GetShiftState [15:27:04]wFMCommunicate request_size=4 [15:27:04]MH_SAM_APDU [15:27:04]CAPDU: 80 13 01 00 [15:27:04]Write to MH i2c: E2 08 00 4C 24 80 13 01 00 00 00 00 00 ED [15:27:04]Write i2c OK [15:27:04]MH_I2C_Read... [15:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:04]Read from MH i2c: E2 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: E2 0E 00 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: E2 0E 00 4C 24 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 32 [15:27:04]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:27:04]wFMCommunicate OK [15:27:04]SAM_PROTO_GetShiftState done [15:27:04]FM_GetShiftState done [15:27:04]req_shift_opened done [15:27:04]requested_item shift.open_date is exist - process it [15:27:04]req_shift_open_date [15:27:04]req_shift_open_date done [15:27:04]produce_requested_data done [15:27:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49654,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [15:27:04]process_action_free close_receipt [15:27:04]json_value_free [15:27:04]json_value_free done [15:27:04]process_json_proto returns [15:27:04]Send response to host [15:27:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49654,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [15:27:04]free response buf [15:27:04]execute_script done [15:27:04]execute_script returns [15:27:04]free content buf [15:27:04]Sock 7.Close socket [15:27:04]Sock 7.Thread stoped [15:28:21]accept exits with 9 [15:28:21]New connection [15:28:21]New thread 3066801508 created [15:28:21]Thread 3066944868 joined [15:28:21]Waiting for new connection... [15:28:21] Sock 9.Parse request [15:28:21]Sock 9.Check first char [15:28:21]Sock 9.First char is OK [15:28:21]request: POST /json_proto HTTP/1.0 [15:28:21]Method: POST [15:28:21]URL: /json_proto [15:28:21]Method is POST - this is cgi request [15:28:21]url: /json_proto [15:28:21]query_string will be loaded in cgi processing [15:28:21]execute_cgi json_proto POST (null) [15:28:21]execute_cgi path=json_proto method=POST [15:28:21]POST find Content-Length [15:28:21]Host: 172.17.46.196:8080 [15:28:21]Content-Length: 1057 [15:28:21]Content-Type: application/json [15:28:21] [15:28:21]POST finish read [15:28:21]Found Content-Length = 1057 [15:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189840", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:21]execute_script... [15:28:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189840", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:21]POST & json_proto [15:28:21]process_json_proto [15:28:21]json parsed OK: [15:28:21]protocol is kg_v1.0 [15:28:21]action value=close_receipt [15:28:21]process_action close_receipt [15:28:21]cmd_close_receipt [15:28:21]MH_GetDate [15:28:21]Write to MH i2c: F0 00 00 4D 24 60 [15:28:21]Write i2c OK [15:28:21]MH_I2C_Read... [15:28:21]Read from MH i2c: F0 [15:28:21]MH_I2C_Read... [15:28:21]Read from MH i2c: F0 09 00 [15:28:21]MH_I2C_Read... [15:28:21]Read from MH i2c: F0 09 00 4D 24 00 9A C1 C0 66 07 E8 5D 66 9C [15:28:21]GetLastDocTimeStamp 1723908424 [15:28:21]current date 1723908506 [15:28:21]FM_GetShiftState [15:28:21]SAM_PROTO_GetShiftState [15:28:21]wFMCommunicate request_size=4 [15:28:21]MH_SAM_APDU [15:28:21]CAPDU: 80 13 01 00 [15:28:21]Write to MH i2c: E2 08 00 4E 24 80 13 01 00 00 00 00 00 EF [15:28:21]Write i2c OK [15:28:21]MH_I2C_Read... [15:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:21]Read from MH i2c: E2 [15:28:21]MH_I2C_Read... [15:28:21]Read from MH i2c: E2 0E 00 [15:28:21]MH_I2C_Read... [15:28:21]Read from MH i2c: E2 0E 00 4E 24 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 34 [15:28:21]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:28:21]wFMCommunicate OK [15:28:21]SAM_PROTO_GetShiftState done [15:28:21]FM_GetShiftState done [15:28:21]opened in 1723853354 [15:28:21]opened+sec_in_day 1723939754 [15:28:21]quantity*price = 5000 [15:28:21]sum+1 = 5001 [15:28:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8901086040008 Жид/ст ПН летняя 4,5л 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.94 НДС 12% : 23.36 Наличными: 0.00 Безнал.: 220.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 92 17.08.2024 15:28 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49655 ФПД: 100554269707490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152826&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49655&fm=100554269707490&tin=02508201610067®Number=0000000000092546&sum=22000 0 [15:28:23]StoreToDocumentArchive [15:28:23]shift 465 fd 49655 [15:28:23]save to /storage/0465/doc_00049655 [15:28:23]save last doc name /storage/0465/doc_00049655 to /storage/kkm_last_doc_name [15:28:23]save OK [15:28:23]Clear old archive folders... [15:28:23]ProcessDocumentItem done err = 0, tmpTLVsize=376 [15:28:23]tlvbuf is 0188C240 [15:28:23]SAM_PROTO_ClearQueue [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 09 00 00 [15:28:23]Write to MH i2c: E2 08 00 5B 24 80 09 00 00 00 00 00 00 F1 [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 5B 24 00 90 00 F3 [15:28:23]RAPDU: 90 00 [15:28:23]wFMCommunicate OK [15:28:23]SAM_PROTO_ClearQueue done [15:28:23]KKMCreateOFDPacket [15:28:23]OFDProtocolAddRootSTLVToBuf [15:28:23]FM_MakeSignedData [15:28:23]FM_MakeSignedData [15:28:23]SAM_PROTO_SignData [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 0D 01 02 [15:28:23]Write to MH i2c: E2 08 00 5C 24 80 0D 01 02 00 00 00 00 F9 [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 5C 24 00 90 00 F4 [15:28:23]RAPDU: 90 00 [15:28:23]wFMCommunicate OK [15:28:23]wFMCommunicate request_size=255 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 [15:28:23]Write to MH i2c: E2 02 01 5D 24 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 00 00 D0 [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 5D 24 00 90 00 F5 [15:28:23]RAPDU: 90 00 [15:28:23]wFMCommunicate OK [15:28:23]wFMCommunicate request_size=135 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 9A C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C1 00 00 35 04 06 00 5B 74 1D 86 CC E2 [15:28:23]Write to MH i2c: E2 8A 00 5E 24 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 9A C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C1 00 00 35 04 06 00 5B 74 1D 86 CC E2 00 00 2A [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 5E 24 00 90 00 F6 [15:28:23]RAPDU: 90 00 [15:28:23]wFMCommunicate OK [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 0D 03 02 [15:28:23]Write to MH i2c: E2 08 00 5F 24 80 0D 03 02 00 00 00 00 FE [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 0B 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 0B 00 5F 24 00 C7 61 62 31 56 E8 63 E6 90 00 41 [15:28:23]RAPDU: C7 61 62 31 56 E8 63 E6 90 00 [15:28:23]wFMCommunicate OK [15:28:23]SAM_PROTO_SignData done [15:28:23]FM_MakeSignedData done [15:28:23]CreateOFDProtocolMessage [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 11 00 00 [15:28:23]Write to MH i2c: E2 08 00 60 24 80 11 00 00 00 00 00 00 FE [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 17 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 17 00 60 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 49 [15:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:28:23]wFMCommunicate OK [15:28:23]CreateOFDProtocolMessage done [15:28:23]OFDSenderStorePacket 49655 [15:28:23]StoreOFDPacket docnum=49655 [15:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8C 01 00 00 B4 A1 84 01 8E 5F 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 9A C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C1 00 00 35 04 06 00 5B 74 1D 86 CC E2 C7 61 62 31 56 E8 63 E6 [15:28:23]CheckFolder [15:28:23]dirname=/storage/ofd_packets [15:28:23]CheckFolder done [15:28:23]ProducePacketName [15:28:23]name=ofd_packets/00049655 [15:28:23]NVStorageSaveData ofd_packets/00049655 [15:28:23]File name is /storage/ofd_packets/00049655 [15:28:23]Write 426 bytes [15:28:23]NVStorageSaveData done [15:28:23]OFDSenderStorePacket done [15:28:23]KKMCreateOFDPacket done [15:28:23]NVStorageSaveData kkm_last_timestamp [15:28:23]File name is /storage/kkm_last_timestamp [15:28:23]Write 4 bytes [15:28:23]NVStorageSaveData done [15:28:23]ExternCall_PrintAddStr [15:28:23]wPrintStart [15:28:23]Write to MH i2c: 01 00 00 61 24 85 [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: 01 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: 01 07 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: 01 07 00 61 24 00 00 00 00 00 FF 0F 9A [15:28:23]RasterBufferAndPrint [15:28:23]line Счет N : (3)189840 [15:28:23]line ИНН: 02508201610067 [15:28:23]line Контрольно-Кассовый Чек [15:28:23]line ПРОДАЖА [15:28:23]line Товар: 4700000160358 [15:28:23]line Вода Легенда 1л [15:28:23]line 1.000 * 50.00 [15:28:23]line = 50.00 [15:28:23]line НДС 12% НСП 1% [15:28:23]line > о реализуемом товаре [15:28:23]line Товар: 8901086040008 [15:28:23]line Жид/ст ПН летняя 4,5л [15:28:23]line 1.000 * 170.00 [15:28:23]line = 170.00 [15:28:23]line НДС 12% НСП 1% [15:28:23]line > о реализуемом товаре [15:28:23]line ИТОГО: 220.00 [15:28:23]line НСП 1% : 1.94 [15:28:23]line НДС 12% : 23.36 [15:28:23]line Наличными: 0.00 [15:28:23]line Безнал.: 220.00 [15:28:23]line Место: АЗС № 95 "Партнер Нефть" [15:28:23]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:28:23]line СНО: Общий режим [15:28:23]line Чек 92 17.08.2024 15:28 [15:28:23]line Смена: 465 ФФД: 1.0 [15:28:23]line ЗНМ: 0300000078 [15:28:23]line РНМ: 0000000000092546 [15:28:23]line Версия ККМ: 001 [15:28:23]line Платежная система: O! деньги [15:28:23]line ФМ: 0000000000871800 [15:28:23]line ФД: 49655 [15:28:23]line ФПД: 100554269707490 [15:28:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T152826&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49655&fm=100554269707490&tin=02508201610067®Number=0000000000092546&sum=22000 [15:28:23]line 0 [15:28:23]written 0, free lines is 4095 [15:28:24]Write to MH i2c: 01 00 00 91 24 B5 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: 01 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: 01 07 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: 01 07 00 91 24 00 00 00 00 00 75 0C 3D [15:28:24]RasterBufferAndPrint [15:28:24]line [15:28:24]line [15:28:24]line [15:28:24]line [15:28:24]line [15:28:24]written 0, free lines is 3194 [15:28:24]MH_Cut [15:28:24]Write to MH i2c: D1 01 00 98 24 01 8E [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: D1 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: D1 01 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: D1 01 00 98 24 00 8D [15:28:24]Write to MH i2c: 01 00 00 99 24 BD [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:25]*** Cut start [15:28:25]*** Purtial cut [15:28:25]*** Stage 1: CUTSNS_PIN = 1 [15:28:25]Read from MH i2c: 01 [15:28:25]MH_I2C_Read... [15:28:25]*** Stop cut motor [15:28:25]*** Cut end [15:28:25]Read from MH i2c: 01 07 00 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: 01 07 00 99 24 00 00 00 00 00 FF 0F D2 [15:28:25]process_action close_receipt done [15:28:25]requested_data is exist [15:28:25]produce_requested_data [15:28:25]requested_item fm.sn is exist - process it [15:28:25]wFMCommunicate request_size=4 [15:28:25]MH_SAM_APDU [15:28:25]CAPDU: 80 11 00 00 [15:28:25]Write to MH i2c: E2 08 00 9A 24 80 11 00 00 00 00 00 00 38 [15:28:25]Write i2c OK [15:28:25]MH_I2C_Read... [15:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:25]Read from MH i2c: E2 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 17 00 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 17 00 9A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 83 [15:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:28:25]wFMCommunicate OK [15:28:25]requested_item fd.num is exist - process it [15:28:25]SAM_PROTO_GetFieldsCounters [15:28:25]wFMCommunicate request_size=4 [15:28:25]MH_SAM_APDU [15:28:25]CAPDU: 80 13 00 00 [15:28:25]Write to MH i2c: E2 08 00 9B 24 80 13 00 00 00 00 00 00 3B [15:28:25]Write i2c OK [15:28:25]MH_I2C_Read... [15:28:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:25]Read from MH i2c: E2 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 62 00 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 62 00 9B 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F7 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [15:28: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F7 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:25]wFMCommunicate OK [15:28:25]SAM_PROTO_GetFieldsCounters done [15:28:25]requested_item shift.num is exist - process it [15:28:25]requested_item shift.opened is exist - process it [15:28:25]req_shift_opened [15:28:25]FM_GetShiftState [15:28:25]SAM_PROTO_GetShiftState [15:28:25]wFMCommunicate request_size=4 [15:28:25]MH_SAM_APDU [15:28:25]CAPDU: 80 13 01 00 [15:28:25]Write to MH i2c: E2 08 00 9C 24 80 13 01 00 00 00 00 00 3D [15:28:25]Write i2c OK [15:28:25]MH_I2C_Read... [15:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:25]Read from MH i2c: E2 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 0E 00 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 0E 00 9C 24 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 82 [15:28:25]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:28:25]wFMCommunicate OK [15:28:25]SAM_PROTO_GetShiftState done [15:28:25]FM_GetShiftState done [15:28:25]req_shift_opened done [15:28:25]requested_item shift.open_date is exist - process it [15:28:25]req_shift_open_date [15:28:25]req_shift_open_date done [15:28:25]produce_requested_data done [15:28:25]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49655,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [15:28:25]process_action_free close_receipt [15:28:25]json_value_free [15:28:25]json_value_free done [15:28:25]process_json_proto returns [15:28:25]Send response to host [15:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49655,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [15:28:25]free response buf [15:28:25]execute_script done [15:28:25]execute_script returns [15:28:25]free content buf [15:28:25]Sock 9.Close socket [15:28:25]Sock 9.Thread stoped [15:29:12]ConnectInit Can't connect to host [15:29:12]CommunicateWithHost connect error [15:29:12]CommunicateWithHost err = -1 [15:29:12]OFD Sender: Server communicate error [15:29:12]OFD Sender: Processing packet 49654 [packets to send 22, broken 20] [15:29:12]ProducePacketName [15:29:12]name=ofd_packets/00049654 [15:29:12]OFD Sender: To server: pG, [15:29:12]CommunicateWithHost lk.salyk.kg:30040 [15:29:12]ConnectInit lk.salyk.kg [15:29:12]Connected sock=9 [15:29:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 2C CA 18 01 4A 9B 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 48 C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F6 C1 00 00 35 04 06 00 CC EF 05 70 81 21 A0 9F EA 52 47 62 D1 DF [15:29:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EA AE 47 00 6F 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 31 38 30 30 10 04 04 00 F6 C1 00 00 F4 03 04 00 06 6D C0 66 B6 04 01 00 00 2D 46 EA 36 51 3E AC 31 [15:29:13]CommunicateWithHost err = 0 [15:29:13]CheckOFDResponse [15:29:13]1017 (14) - 77093643461234 [15:29:13]1041 (16) - 0000000000871800 [15:29:13]1040 (4) - 49654 [15:29:13]1012 (4) - 17.08.2024 09:27 [15:29:13]1206 (1) - 0 [15:29:13]OFD Sender: Remove packet 49654 [15:29:13]ProducePacketName [15:29:13]name=ofd_packets/00049654 [15:29:13]NVStorageDeleteData [15:29:13]OFD Sender: Processing packet 49655 [packets to send 21, broken 20] [15:29:13]ProducePacketName [15:29:13]name=ofd_packets/00049655 [15:29:13]OFD Sender: To server: pG, [15:29:13]CommunicateWithHost lk.salyk.kg:30040 [15:29:13]ConnectInit lk.salyk.kg [15:29:13]Connected sock=9 [15:29:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8C 01 00 00 B4 A1 84 01 8E 5F 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 9A C1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C1 00 00 35 04 06 00 5B 74 1D 86 CC E2 C7 61 62 31 56 E8 63 E6 [15:29:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FD 7A 47 00 4B 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C1 00 00 F4 03 04 00 07 6D C0 66 B6 04 01 00 00 2A 29 61 BC C0 DF BD 96 [15:29:14]CommunicateWithHost err = 0 [15:29:14]CheckOFDResponse [15:29:14]1017 (14) - 77093643461234 [15:29:14]1041 (16) - 0000000000871800 [15:29:14]1040 (4) - 49655 [15:29:14]1012 (4) - 17.08.2024 09:27 [15:29:14]1206 (1) - 0 [15:29:14]OFD Sender: Remove packet 49655 [15:29:14]ProducePacketName [15:29:14]name=ofd_packets/00049655 [15:29:14]NVStorageDeleteData [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:31]accept exits with 7 [15:36:31]New connection [15:36:31]New thread 3066944868 created [15:36:31]Thread 3066801508 joined [15:36:31]Waiting for new connection... [15:36:31] Sock 7.Parse request [15:36:31]Sock 7.Check first char [15:36:31]Sock 7.First char is OK [15:36:31]request: POST /json_proto HTTP/1.0 [15:36:31]Method: POST [15:36:31]URL: /json_proto [15:36:31]Method is POST - this is cgi request [15:36:31]url: /json_proto [15:36:31]query_string will be loaded in cgi processing [15:36:31]execute_cgi json_proto POST (null) [15:36:31]execute_cgi path=json_proto method=POST [15:36:31]POST find Content-Length [15:36:31]Host: 172.17.46.196:8080 [15:36:31]Content-Length: 624 [15:36:31]Content-Type: application/json [15:36:31] [15:36:31]POST finish read [15:36:31]Found Content-Length = 624 [15:36:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189841", "tax_sys" : 0, "items" : [ { "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:31]execute_script... [15:36:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189841", "tax_sys" : 0, "items" : [ { "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:31]POST & json_proto [15:36:31]process_json_proto [15:36:31]json parsed OK: [15:36:31]protocol is kg_v1.0 [15:36:31]action value=close_receipt [15:36:31]process_action close_receipt [15:36:31]cmd_close_receipt [15:36:31]MH_GetDate [15:36:31]Write to MH i2c: F0 00 00 9D 24 B0 [15:36:31]Write i2c OK [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: F0 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: F0 09 00 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: F0 09 00 9D 24 00 84 C3 C0 66 07 E8 5D 66 D8 [15:36:31]GetLastDocTimeStamp 1723908506 [15:36:31]current date 1723908996 [15:36:31]FM_GetShiftState [15:36:31]SAM_PROTO_GetShiftState [15:36:31]wFMCommunicate request_size=4 [15:36:31]MH_SAM_APDU [15:36:31]CAPDU: 80 13 01 00 [15:36:31]Write to MH i2c: E2 08 00 9E 24 80 13 01 00 00 00 00 00 3F [15:36:31]Write i2c OK [15:36:31]MH_I2C_Read... [15:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:31]Read from MH i2c: E2 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 0E 00 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 0E 00 9E 24 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 84 [15:36:31]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:36:31]wFMCommunicate OK [15:36:31]SAM_PROTO_GetShiftState done [15:36:31]FM_GetShiftState done [15:36:31]opened in 1723853354 [15:36:31]opened+sec_in_day 1723939754 [15:36:31]quantity*price = 5000 [15:36:31]sum+1 = 5001 [15:36:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 93 17.08.2024 15:36 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49656 ФПД: 235322597696645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T153636&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49656&fm=235322597696645&tin=02508201610067®Number=0000000000092546&sum=5000 0 [15:36:32]StoreToDocumentArchive [15:36:32]shift 465 fd 49656 [15:36:32]save to /storage/0465/doc_00049656 [15:36:32]save last doc name /storage/0465/doc_00049656 to /storage/kkm_last_doc_name [15:36:32]save OK [15:36:32]Clear old archive folders... [15:36:32]ProcessDocumentItem done err = 0, tmpTLVsize=267 [15:36:32]tlvbuf is 0180F440 [15:36:32]SAM_PROTO_ClearQueue [15:36:32]wFMCommunicate request_size=4 [15:36:32]MH_SAM_APDU [15:36:32]CAPDU: 80 09 00 00 [15:36:32]Write to MH i2c: E2 08 00 AB 24 80 09 00 00 00 00 00 00 41 [15:36:32]Write i2c OK [15:36:32]MH_I2C_Read... [15:36:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:32]Read from MH i2c: E2 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: E2 03 00 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: E2 03 00 AB 24 00 90 00 43 [15:36:32]RAPDU: 90 00 [15:36:32]wFMCommunicate OK [15:36:32]SAM_PROTO_ClearQueue done [15:36:32]KKMCreateOFDPacket [15:36:32]OFDProtocolAddRootSTLVToBuf [15:36:32]FM_MakeSignedData [15:36:32]FM_MakeSignedData [15:36:32]SAM_PROTO_SignData [15:36:32]wFMCommunicate request_size=4 [15:36:32]MH_SAM_APDU [15:36:32]CAPDU: 80 0D 01 02 [15:36:32]Write to MH i2c: E2 08 00 AC 24 80 0D 01 02 00 00 00 00 49 [15:36:32]Write i2c OK [15:36:32]MH_I2C_Read... [15:36:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:32]Read from MH i2c: E2 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: E2 03 00 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: E2 03 00 AC 24 00 90 00 44 [15:36:32]RAPDU: 90 00 [15:36:32]wFMCommunicate OK [15:36:32]wFMCommunicate request_size=255 [15:36:32]MH_SAM_APDU [15:36:32]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 84 C3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 [15:36:33]Write to MH i2c: E2 02 01 AD 24 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 84 C3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 00 00 9F [15:36:33]Write i2c OK [15:36:33]MH_I2C_Read... [15:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:33]Read from MH i2c: E2 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 03 00 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 03 00 AD 24 00 90 00 45 [15:36:33]RAPDU: 90 00 [15:36:33]wFMCommunicate OK [15:36:33]wFMCommunicate request_size=26 [15:36:33]MH_SAM_APDU [15:36:33]CAPDU: 80 0D 02 02 15 38 30 30 10 04 04 00 F8 C1 00 00 35 04 06 00 D6 06 4F D7 E4 85 [15:36:33]Write to MH i2c: E2 1D 00 AE 24 80 0D 02 02 15 00 38 30 30 10 04 04 00 F8 C1 00 00 35 04 06 00 D6 06 4F D7 E4 85 00 00 89 [15:36:33]Write i2c OK [15:36:33]MH_I2C_Read... [15:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:33]Read from MH i2c: E2 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 03 00 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 03 00 AE 24 00 90 00 46 [15:36:33]RAPDU: 90 00 [15:36:33]wFMCommunicate OK [15:36:33]wFMCommunicate request_size=4 [15:36:33]MH_SAM_APDU [15:36:33]CAPDU: 80 0D 03 02 [15:36:33]Write to MH i2c: E2 08 00 AF 24 80 0D 03 02 00 00 00 00 4E [15:36:33]Write i2c OK [15:36:33]MH_I2C_Read... [15:36:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:33]Read from MH i2c: E2 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 0B 00 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 0B 00 AF 24 00 04 25 86 C5 8A DF C5 6D 90 00 5E [15:36:33]RAPDU: 04 25 86 C5 8A DF C5 6D 90 00 [15:36:33]wFMCommunicate OK [15:36:33]SAM_PROTO_SignData done [15:36:33]FM_MakeSignedData done [15:36:33]CreateOFDProtocolMessage [15:36:33]wFMCommunicate request_size=4 [15:36:33]MH_SAM_APDU [15:36:33]CAPDU: 80 11 00 00 [15:36:33]Write to MH i2c: E2 08 00 B0 24 80 11 00 00 00 00 00 00 4E [15:36:33]Write i2c OK [15:36:33]MH_I2C_Read... [15:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:33]Read from MH i2c: E2 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 17 00 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 17 00 B0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 99 [15:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:36:33]wFMCommunicate OK [15:36:33]CreateOFDProtocolMessage done [15:36:33]OFDSenderStorePacket 49656 [15:36:33]StoreOFDPacket docnum=49656 [15:36:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1F 01 00 00 17 2A 17 01 F2 E1 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 84 C3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C1 00 00 35 04 06 00 D6 06 4F D7 E4 85 04 25 86 C5 8A DF C5 6D [15:36:33]CheckFolder [15:36:33]dirname=/storage/ofd_packets [15:36:33]CheckFolder done [15:36:33]ProducePacketName [15:36:33]name=ofd_packets/00049656 [15:36:33]NVStorageSaveData ofd_packets/00049656 [15:36:33]File name is /storage/ofd_packets/00049656 [15:36:33]Write 317 bytes [15:36:33]NVStorageSaveData done [15:36:33]OFDSenderStorePacket done [15:36:33]KKMCreateOFDPacket done [15:36:33]NVStorageSaveData kkm_last_timestamp [15:36:33]File name is /storage/kkm_last_timestamp [15:36:33]Write 4 bytes [15:36:33]NVStorageSaveData done [15:36:33]ExternCall_PrintAddStr [15:36:33]wPrintStart [15:36:33]Write to MH i2c: 01 00 00 B1 24 D5 [15:36:33]OFD Sender: Processing packet 49656 [packets to send 21, broken 20] [15:36:33]ProducePacketName [15:36:33]name=ofd_packets/00049656 [15:36:33]OFD Sender: To server: pG, [15:36:33]CommunicateWithHost lk.salyk.kg:30040 [15:36:33]ConnectInit lk.salyk.kg [15:36:33]Write i2c OK [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: 01 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: 01 07 00 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: 01 07 00 B1 24 00 00 00 00 00 FF 0F EA [15:36:33]RasterBufferAndPrint [15:36:33]line Счет N : (3)189841 [15:36:33]line ИНН: 02508201610067 [15:36:33]line Контрольно-Кассовый Чек [15:36:33]line ПРОДАЖА [15:36:33]line Товар: 4700000160181 [15:36:33]line Вода Байтик 1л [15:36:33]line 1.000 * 50.00 [15:36:33]line = 50.00 [15:36:33]line НДС 12% НСП 1% [15:36:33]line > о реализуемом товаре [15:36:33]line ИТОГО: 50.00 [15:36:33]line НСП 1% : 0.44 [15:36:33]line НДС 12% : 5.31 [15:36:33]line Наличными: 50.00 [15:36:33]line Безнал.: 0.00 [15:36:33]line Место: АЗС № 95 "Партнер Нефть" [15:36:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:36:33]line СНО: Общий режим [15:36:33]line Чек 93 17.08.2024 15:36 [15:36:33]line Смена: 465 ФФД: 1.0 [15:36:33]line ЗНМ: 0300000078 [15:36:33]line РНМ: 0000000000092546 [15:36:33]line Версия ККМ: 001 [15:36:33]line ФМ: 0000000000871800 [15:36:33]line ФД: 49656 [15:36:33]line ФПД: 235322597696645 [15:36:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T153636&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49656&fm=235322597696645&tin=02508201610067®Number=0000000000092546&sum=5000 [15:36:33]Connected sock=10 [15:36:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1F 01 00 00 17 2A 17 01 F2 E1 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 84 C3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C1 00 00 35 04 06 00 D6 06 4F D7 E4 85 04 25 86 C5 8A DF C5 6D [15:36:33]line 0 [15:36:33]written 0, free lines is 4095 [15:36:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 49 0D 47 00 91 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C1 00 00 F4 03 04 00 BF 6E C0 66 B6 04 01 00 00 EE B0 D3 0C 29 44 70 EF [15:36:34]CommunicateWithHost err = 0 [15:36:34]CheckOFDResponse [15:36:34]1017 (14) - 77093643461234 [15:36:34]1041 (16) - 0000000000871800 [15:36:34]1040 (4) - 49656 [15:36:34]1012 (4) - 17.08.2024 09:34 [15:36:34]1206 (1) - 0 [15:36:34]OFD Sender: Remove packet 49656 [15:36:34]ProducePacketName [15:36:34]name=ofd_packets/00049656 [15:36:34]NVStorageDeleteData [15:36:34]Write to MH i2c: 01 00 00 D9 24 FD [15:36:34]Write i2c OK [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: 01 [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: 01 07 00 [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: 01 07 00 D9 24 00 00 00 00 00 E8 0C F8 [15:36:34]RasterBufferAndPrint [15:36:34]line [15:36:34]line [15:36:34]line [15:36:34]line [15:36:34]line [15:36:34]written 0, free lines is 3310 [15:36:34]MH_Cut [15:36:34]Write to MH i2c: D1 01 00 E0 24 01 D6 [15:36:34]Write i2c OK [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: D1 [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: D1 01 00 [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: D1 01 00 E0 24 00 D5 [15:36:34]Write to MH i2c: 01 00 00 E1 24 05 [15:36:34]Write i2c OK [15:36:34]MH_I2C_Read... [15:36:34]OFD Sender: No OFD packet to send [15:36:34]*** Cut start [15:36:34]*** Purtial cut [15:36:34]*** CUTSNS_PIN = 0 [15:36:35]*** Stage 1: CUTSNS_PIN = 1 [15:36:37]Read from MH i2c: 01 [15:36:37]MH_I2C_Read... [15:36:37]*** Stop cut motor [15:36:37]*** Cut end [15:36:37]Read from MH i2c: 01 07 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 07 00 E1 24 00 00 00 00 00 FF 0F 1A [15:36:37]process_action close_receipt done [15:36:37]requested_data is exist [15:36:37]produce_requested_data [15:36:37]requested_item fm.sn is exist - process it [15:36:37]wFMCommunicate request_size=4 [15:36:37]MH_SAM_APDU [15:36:37]CAPDU: 80 11 00 00 [15:36:37]Write to MH i2c: E2 08 00 E2 24 80 11 00 00 00 00 00 00 80 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 17 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 17 00 E2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CB [15:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:36:37]wFMCommunicate OK [15:36:37]requested_item fd.num is exist - process it [15:36:37]SAM_PROTO_GetFieldsCounters [15:36:37]wFMCommunicate request_size=4 [15:36:37]MH_SAM_APDU [15:36:37]CAPDU: 80 13 00 00 [15:36:37]Write to MH i2c: E2 08 00 E3 24 80 13 00 00 00 00 00 00 83 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 62 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 62 00 E3 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F8 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [15:36: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F8 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:37]wFMCommunicate OK [15:36:37]SAM_PROTO_GetFieldsCounters done [15:36:37]requested_item shift.num is exist - process it [15:36:37]requested_item shift.opened is exist - process it [15:36:37]req_shift_opened [15:36:37]FM_GetShiftState [15:36:37]SAM_PROTO_GetShiftState [15:36:37]wFMCommunicate request_size=4 [15:36:37]MH_SAM_APDU [15:36:37]CAPDU: 80 13 01 00 [15:36:37]Write to MH i2c: E2 08 00 E4 24 80 13 01 00 00 00 00 00 85 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:37]Read from MH i2c: E2 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 0E 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: E2 0E 00 E4 24 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 CA [15:36:37]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:36:37]wFMCommunicate OK [15:36:37]SAM_PROTO_GetShiftState done [15:36:37]FM_GetShiftState done [15:36:37]req_shift_opened done [15:36:37]requested_item shift.open_date is exist - process it [15:36:37]req_shift_open_date [15:36:37]req_shift_open_date done [15:36:37]produce_requested_data done [15:36:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49656,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [15:36:37]process_action_free close_receipt [15:36:37]json_value_free [15:36:37]json_value_free done [15:36:37]process_json_proto returns [15:36:37]Send response to host [15:36:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49656,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [15:36:37]free response buf [15:36:37]execute_script done [15:36:37]execute_script returns [15:36:37]free content buf [15:36:37]Sock 7.Close socket [15:36:37]Sock 7.Thread stoped [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:10]int [15:37:10]Write to MH i2c: 01 00 00 E5 24 09 [15:37:10]*** FLAG_PRN_KEY set [15:37:10]Write i2c OK [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: 01 [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: 01 07 00 [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: 01 07 00 E5 24 00 08 00 00 00 FF 0F 26 [15:37:10]state=0 [15:37:10]Key pressed [15:37:10]Feed [15:37:10]Write to MH i2c: D8 00 00 E6 24 E1 [15:37:10]Write i2c OK [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: D8 [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: D8 01 00 [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: D8 01 00 E6 24 00 E2 [15:37:10]int [15:37:10]Write to MH i2c: 01 00 00 E7 24 0B [15:37:10]Write i2c OK [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: 01 [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: 01 07 00 [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: 01 07 00 E7 24 00 48 00 00 00 3C 00 96 [15:37:10]state=2 [15:37:10]Key pressed [15:37:10]int [15:37:10]Write to MH i2c: 01 00 00 E8 24 0C [15:37:10]*** FLAG_PRN_KEY reset [15:37:10]Write i2c OK [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: 01 [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: 01 07 00 [15:37:10]MH_I2C_Read... [15:37:10]Read from MH i2c: 01 07 00 E8 24 00 00 00 00 00 F6 0F 18 [15:37:10]state=2 [15:37:10]Stop feed [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [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: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:49]OFD Sender: No OFD packet to send [15:43:53]accept exits with 9 [15:43:53]New connection [15:43:53]New thread 3066801508 created [15:43:53]Thread 3066944868 joined [15:43:53]Waiting for new connection... [15:43:53] Sock 9.Parse request [15:43:53]Sock 9.Check first char [15:43:53]Sock 9.First char is OK [15:43:53]request: POST /json_proto HTTP/1.0 [15:43:53]Method: POST [15:43:53]URL: /json_proto [15:43:53]Method is POST - this is cgi request [15:43:53]url: /json_proto [15:43:53]query_string will be loaded in cgi processing [15:43:53]execute_cgi json_proto POST (null) [15:43:53]execute_cgi path=json_proto method=POST [15:43:53]POST find Content-Length [15:43:53]Host: 172.17.46.196:8080 [15:43:53]Content-Length: 644 [15:43:53]Content-Type: application/json [15:43:53] [15:43:53]POST finish read [15:43:53]Found Content-Length = 644 [15:43:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189842", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:53]execute_script... [15:43:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189842", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:53]POST & json_proto [15:43:53]process_json_proto [15:43:53]json parsed OK: [15:43:53]protocol is kg_v1.0 [15:43:53]action value=close_receipt [15:43:53]process_action close_receipt [15:43:53]cmd_close_receipt [15:43:53]MH_GetDate [15:43:53]Write to MH i2c: F0 00 00 E9 24 FC [15:43:53]Write i2c OK [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: F0 [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: F0 09 00 [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: F0 09 00 E9 24 00 3D C5 C0 66 07 E8 5D 66 DF [15:43:53]GetLastDocTimeStamp 1723908996 [15:43:53]current date 1723909437 [15:43:53]FM_GetShiftState [15:43:53]SAM_PROTO_GetShiftState [15:43:53]wFMCommunicate request_size=4 [15:43:53]MH_SAM_APDU [15:43:53]CAPDU: 80 13 01 00 [15:43:53]Write to MH i2c: E2 08 00 EA 24 80 13 01 00 00 00 00 00 8B [15:43:53]Write i2c OK [15:43:53]MH_I2C_Read... [15:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:53]Read from MH i2c: E2 [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: E2 0E 00 [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: E2 0E 00 EA 24 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D0 [15:43:53]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:43:53]wFMCommunicate OK [15:43:53]SAM_PROTO_GetShiftState done [15:43:53]FM_GetShiftState done [15:43:53]opened in 1723853354 [15:43:53]opened+sec_in_day 1723939754 [15:43:53]quantity*price = 3500 [15:43:53]sum+1 = 3501 [15:43:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 94 17.08.2024 15:43 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49657 ФПД: 116997009637681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T154357&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49657&fm=116997009637681&tin=02508201610067®Number=0000000000092546&sum=3500 0 [15:43:54]StoreToDocumentArchive [15:43:54]shift 465 fd 49657 [15:43:54]save to /storage/0465/doc_00049657 [15:43:54]save last doc name /storage/0465/doc_00049657 to /storage/kkm_last_doc_name [15:43:54]save OK [15:43:54]Clear old archive folders... [15:43:54]ProcessDocumentItem done err = 0, tmpTLVsize=275 [15:43:54]tlvbuf is 018C6770 [15:43:54]SAM_PROTO_ClearQueue [15:43:54]wFMCommunicate request_size=4 [15:43:54]MH_SAM_APDU [15:43:54]CAPDU: 80 09 00 00 [15:43:54]Write to MH i2c: E2 08 00 F7 24 80 09 00 00 00 00 00 00 8D [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:54]Read from MH i2c: E2 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 03 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 03 00 F7 24 00 90 00 8F [15:43:54]RAPDU: 90 00 [15:43:54]wFMCommunicate OK [15:43:54]SAM_PROTO_ClearQueue done [15:43:54]KKMCreateOFDPacket [15:43:54]OFDProtocolAddRootSTLVToBuf [15:43:54]FM_MakeSignedData [15:43:54]FM_MakeSignedData [15:43:54]SAM_PROTO_SignData [15:43:54]wFMCommunicate request_size=4 [15:43:54]MH_SAM_APDU [15:43:54]CAPDU: 80 0D 01 02 [15:43:54]Write to MH i2c: E2 08 00 F8 24 80 0D 01 02 00 00 00 00 95 [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:54]Read from MH i2c: E2 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 03 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 03 00 F8 24 00 90 00 90 [15:43:54]RAPDU: 90 00 [15:43:54]wFMCommunicate OK [15:43:54]wFMCommunicate request_size=255 [15:43:54]MH_SAM_APDU [15:43:54]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 3D C5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [15:43:54]Write to MH i2c: E2 02 01 F9 24 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 3D C5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 D6 [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:54]OFD Sender: No OFD packet to send [15:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 03 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 03 00 F9 24 00 90 00 91 [15:43:55]RAPDU: 90 00 [15:43:55]wFMCommunicate OK [15:43:55]wFMCommunicate request_size=34 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C1 00 00 35 04 06 00 6A 68 7D 33 01 31 [15:43:55]Write to MH i2c: E2 25 00 FA 24 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C1 00 00 35 04 06 00 6A 68 7D 33 01 31 00 00 BF [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 03 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 03 00 FA 24 00 90 00 92 [15:43:55]RAPDU: 90 00 [15:43:55]wFMCommunicate OK [15:43:55]wFMCommunicate request_size=4 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 0D 03 02 [15:43:55]Write to MH i2c: E2 08 00 FB 24 80 0D 03 02 00 00 00 00 9A [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 0B 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 0B 00 FB 24 00 16 87 29 AF 0E B1 DA D1 90 00 7A [15:43:55]RAPDU: 16 87 29 AF 0E B1 DA D1 90 00 [15:43:55]wFMCommunicate OK [15:43:55]SAM_PROTO_SignData done [15:43:55]FM_MakeSignedData done [15:43:55]CreateOFDProtocolMessage [15:43:55]wFMCommunicate request_size=4 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 11 00 00 [15:43:55]Write to MH i2c: E2 08 00 FC 24 80 11 00 00 00 00 00 00 9A [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 17 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 17 00 FC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E5 [15:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:43:55]wFMCommunicate OK [15:43:55]CreateOFDProtocolMessage done [15:43:55]OFDSenderStorePacket 49657 [15:43:55]StoreOFDPacket docnum=49657 [15:43:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 15 FE 1F 01 64 CB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 3D C5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C1 00 00 35 04 06 00 6A 68 7D 33 01 31 16 87 29 AF 0E B1 DA D1 [15:43:55]CheckFolder [15:43:55]dirname=/storage/ofd_packets [15:43:55]CheckFolder done [15:43:55]ProducePacketName [15:43:55]name=ofd_packets/00049657 [15:43:55]NVStorageSaveData ofd_packets/00049657 [15:43:55]File name is /storage/ofd_packets/00049657 [15:43:55]Write 325 bytes [15:43:55]NVStorageSaveData done [15:43:55]OFDSenderStorePacket done [15:43:55]KKMCreateOFDPacket done [15:43:55]NVStorageSaveData kkm_last_timestamp [15:43:55]File name is /storage/kkm_last_timestamp [15:43:55]Write 4 bytes [15:43:55]NVStorageSaveData done [15:43:55]ExternCall_PrintAddStr [15:43:55]wPrintStart [15:43:55]Write to MH i2c: 01 00 00 FD 24 21 [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: 01 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: 01 07 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: 01 07 00 FD 24 00 00 00 00 00 FF 0F 36 [15:43:55]RasterBufferAndPrint [15:43:55]line Счет N : (3)189842 [15:43:55]line ИНН: 02508201610067 [15:43:55]line Контрольно-Кассовый Чек [15:43:55]line ПРОДАЖА [15:43:55]line Товар: 4700000310326 [15:43:55]line Вода Адыгене 1л б/г [15:43:55]line 1.000 * 35.00 [15:43:55]line = 35.00 [15:43:55]line НДС 12% НСП 1% [15:43:55]line > о реализуемом товаре [15:43:55]line ИТОГО: 35.00 [15:43:55]line НСП 1% : 0.31 [15:43:55]line НДС 12% : 3.72 [15:43:55]line Наличными: 35.00 [15:43:55]line Безнал.: 0.00 [15:43:55]line Место: АЗС № 95 "Партнер Нефть" [15:43:55]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:43:55]line СНО: Общий режим [15:43:55]line Чек 94 17.08.2024 15:43 [15:43:55]line Смена: 465 ФФД: 1.0 [15:43:55]line ЗНМ: 0300000078 [15:43:55]line РНМ: 0000000000092546 [15:43:55]line Версия ККМ: 001 [15:43:55]line ФМ: 0000000000871800 [15:43:55]line ФД: 49657 [15:43:55]line ФПД: 116997009637681 [15:43:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T154357&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49657&fm=116997009637681&tin=02508201610067®Number=0000000000092546&sum=3500 [15:43:55]line 0 [15:43:55]OFD Sender: Processing packet 49657 [packets to send 21, broken 20] [15:43:55]ProducePacketName [15:43:55]name=ofd_packets/00049657 [15:43:55]OFD Sender: To server: pG, [15:43:55]CommunicateWithHost lk.salyk.kg:30040 [15:43:55]ConnectInit lk.salyk.kg [15:43:55]written 0, free lines is 4095 [15:43:55]Connected sock=10 [15:43:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 15 FE 1F 01 64 CB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 3D C5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C1 00 00 35 04 06 00 6A 68 7D 33 01 31 16 87 29 AF 0E B1 DA D1 [15:43:56]Write to MH i2c: 01 00 00 25 25 4A [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: 01 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: 01 07 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: 01 07 00 25 25 00 00 00 00 00 E9 0C 46 [15:43:56]RasterBufferAndPrint [15:43:56]line [15:43:56]line [15:43:56]line [15:43:56]line [15:43:56]line [15:43:56]written 0, free lines is 3311 [15:43:56]MH_Cut [15:43:56]Write to MH i2c: D1 01 00 2C 25 01 23 [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: D1 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: D1 01 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: D1 01 00 2C 25 00 22 [15:43:56]Write to MH i2c: 01 00 00 2D 25 52 [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E8 7D 47 00 AD 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C1 00 00 F4 03 04 00 79 70 C0 66 B6 04 01 00 00 8E 4B 1A 38 40 5F 3D 4B [15:43:56]CommunicateWithHost err = 0 [15:43:56]CheckOFDResponse [15:43:56]1017 (14) - 77093643461234 [15:43:56]1041 (16) - 0000000000871800 [15:43:56]1040 (4) - 49657 [15:43:56]1012 (4) - 17.08.2024 09:42 [15:43:56]1206 (1) - 0 [15:43:56]OFD Sender: Remove packet 49657 [15:43:56]ProducePacketName [15:43:56]name=ofd_packets/00049657 [15:43:56]NVStorageDeleteData [15:43:56]OFD Sender: No OFD packet to send [15:43:56]*** Cut start [15:43:56]*** Purtial cut [15:43:56]*** Stage 1: CUTSNS_PIN = 1 [15:43:57]Read from MH i2c: 01 [15:43:57]MH_I2C_Read... [15:43:57]*** Stop cut motor [15:43:57]*** Cut end [15:43:57]Read from MH i2c: 01 07 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: 01 07 00 2D 25 00 00 00 00 00 FF 0F 67 [15:43:57]process_action close_receipt done [15:43:57]requested_data is exist [15:43:57]produce_requested_data [15:43:57]requested_item fm.sn is exist - process it [15:43:57]wFMCommunicate request_size=4 [15:43:57]MH_SAM_APDU [15:43:57]CAPDU: 80 11 00 00 [15:43:57]Write to MH i2c: E2 08 00 2E 25 80 11 00 00 00 00 00 00 CD [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:57]Read from MH i2c: E2 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 17 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 17 00 2E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 18 [15:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:43:57]wFMCommunicate OK [15:43:57]requested_item fd.num is exist - process it [15:43:57]SAM_PROTO_GetFieldsCounters [15:43:57]wFMCommunicate request_size=4 [15:43:57]MH_SAM_APDU [15:43:57]CAPDU: 80 13 00 00 [15:43:57]Write to MH i2c: E2 08 00 2F 25 80 13 00 00 00 00 00 00 D0 [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:57]Read from MH i2c: E2 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 62 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 62 00 2F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F9 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [15:43: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F9 C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:57]wFMCommunicate OK [15:43:57]SAM_PROTO_GetFieldsCounters done [15:43:57]requested_item shift.num is exist - process it [15:43:57]requested_item shift.opened is exist - process it [15:43:57]req_shift_opened [15:43:57]FM_GetShiftState [15:43:57]SAM_PROTO_GetShiftState [15:43:57]wFMCommunicate request_size=4 [15:43:57]MH_SAM_APDU [15:43:57]CAPDU: 80 13 01 00 [15:43:57]Write to MH i2c: E2 08 00 30 25 80 13 01 00 00 00 00 00 D2 [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:57]Read from MH i2c: E2 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 0E 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: E2 0E 00 30 25 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 17 [15:43:57]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:43:57]wFMCommunicate OK [15:43:57]SAM_PROTO_GetShiftState done [15:43:57]FM_GetShiftState done [15:43:57]req_shift_opened done [15:43:57]requested_item shift.open_date is exist - process it [15:43:57]req_shift_open_date [15:43:57]req_shift_open_date done [15:43:57]produce_requested_data done [15:43:57]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49657,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [15:43:57]process_action_free close_receipt [15:43:57]json_value_free [15:43:57]json_value_free done [15:43:57]process_json_proto returns [15:43:57]Send response to host [15:43:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49657,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [15:43:57]free response buf [15:43:57]execute_script done [15:43:57]execute_script returns [15:43:57]free content buf [15:43:57]Sock 9.Close socket [15:43:57]Sock 9.Thread stoped [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:52]accept exits with 7 [15:44:52]New connection [15:44:52]New thread 3066944868 created [15:44:52]Thread 3066801508 joined [15:44:52]Waiting for new connection... [15:44:52] Sock 7.Parse request [15:44:52]Sock 7.Check first char [15:44:52]Sock 7.First char is OK [15:44:52]request: POST /json_proto HTTP/1.0 [15:44:52]Method: POST [15:44:52]URL: /json_proto [15:44:52]Method is POST - this is cgi request [15:44:52]url: /json_proto [15:44:52]query_string will be loaded in cgi processing [15:44:52]execute_cgi json_proto POST (null) [15:44:52]execute_cgi path=json_proto method=POST [15:44:52]POST find Content-Length [15:44:52]Host: 172.17.46.196:8080 [15:44:52]Content-Length: 960 [15:44:52]Content-Type: application/json [15:44:52] [15:44:52]POST finish read [15:44:52]Found Content-Length = 960 [15:44:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189843", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521193", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041CAXI \u0447\u0435\u0440 \u0447\u0430\u0439 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B 0,4\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:52]execute_script... [15:44:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189843", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521193", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041CAXI \u0447\u0435\u0440 \u0447\u0430\u0439 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B 0,4\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:52]POST & json_proto [15:44:52]process_json_proto [15:44:52]json parsed OK: [15:44:52]protocol is kg_v1.0 [15:44:52]action value=close_receipt [15:44:52]process_action close_receipt [15:44:52]cmd_close_receipt [15:44:52]MH_GetDate [15:44:52]Write to MH i2c: F0 00 00 31 25 45 [15:44:52]Write i2c OK [15:44:52]MH_I2C_Read... [15:44:52]Read from MH i2c: F0 [15:44:52]MH_I2C_Read... [15:44:52]Read from MH i2c: F0 09 00 [15:44:52]MH_I2C_Read... [15:44:52]Read from MH i2c: F0 09 00 31 25 00 79 C5 C0 66 07 E8 5D 66 64 [15:44:52]GetLastDocTimeStamp 1723909437 [15:44:52]current date 1723909497 [15:44:52]FM_GetShiftState [15:44:52]SAM_PROTO_GetShiftState [15:44:52]wFMCommunicate request_size=4 [15:44:52]MH_SAM_APDU [15:44:52]CAPDU: 80 13 01 00 [15:44:52]Write to MH i2c: E2 08 00 32 25 80 13 01 00 00 00 00 00 D4 [15:44:52]Write i2c OK [15:44:52]MH_I2C_Read... [15:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:52]Read from MH i2c: E2 [15:44:52]MH_I2C_Read... [15:44:52]Read from MH i2c: E2 0E 00 [15:44:52]MH_I2C_Read... [15:44:52]Read from MH i2c: E2 0E 00 32 25 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 19 [15:44:52]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:44:52]wFMCommunicate OK [15:44:52]SAM_PROTO_GetShiftState done [15:44:52]FM_GetShiftState done [15:44:52]opened in 1723853354 [15:44:52]opened+sec_in_day 1723939754 [15:44:52]quantity*price = 15000 [15:44:52]sum+1 = 15001 [15:44:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521193 Напиток МAXI чер чай лесные ягоды 0,4л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 95 17.08.2024 15:44 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49658 ФПД: 140414854998778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T154457&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49658&fm=140414854998778&tin=02508201610067®Number=0000000000092546&sum=22000 0 [15:44:53]StoreToDocumentArchive [15:44:53]shift 465 fd 49658 [15:44:53]save to /storage/0465/doc_00049658 [15:44:53]save last doc name /storage/0465/doc_00049658 to /storage/kkm_last_doc_name [15:44:53]save OK [15:44:53]Clear old archive folders... [15:44:53]ProcessDocumentItem done err = 0, tmpTLVsize=408 [15:44:53]tlvbuf is 0188BCC0 [15:44:53]SAM_PROTO_ClearQueue [15:44:53]wFMCommunicate request_size=4 [15:44:53]MH_SAM_APDU [15:44:53]CAPDU: 80 09 00 00 [15:44:53]Write to MH i2c: E2 08 00 3F 25 80 09 00 00 00 00 00 00 D6 [15:44:53]Write i2c OK [15:44:53]MH_I2C_Read... [15:44:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 3F 25 00 90 00 D8 [15:44:54]RAPDU: 90 00 [15:44:54]wFMCommunicate OK [15:44:54]SAM_PROTO_ClearQueue done [15:44:54]KKMCreateOFDPacket [15:44:54]OFDProtocolAddRootSTLVToBuf [15:44:54]FM_MakeSignedData [15:44:54]FM_MakeSignedData [15:44:54]SAM_PROTO_SignData [15:44:54]wFMCommunicate request_size=4 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 0D 01 02 [15:44:54]Write to MH i2c: E2 08 00 40 25 80 0D 01 02 00 00 00 00 DE [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 40 25 00 90 00 D9 [15:44:54]RAPDU: 90 00 [15:44:54]wFMCommunicate OK [15:44:54]wFMCommunicate request_size=255 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 39 33 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C 41 58 49 20 D1 87 D0 B5 D1 80 20 D1 87 D0 B0 D0 B9 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [15:44:54]Write to MH i2c: E2 02 01 41 25 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 39 33 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C 41 58 49 20 D1 87 D0 B5 D1 80 20 D1 87 D0 B0 D0 B9 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 A4 [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 41 25 00 90 00 DA [15:44:54]RAPDU: 90 00 [15:44:54]wFMCommunicate OK [15:44:54]wFMCommunicate request_size=167 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 0D 02 02 A2 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 79 C5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C1 00 00 35 04 06 00 7F B4 E1 8D AA FA [15:44:54]Write to MH i2c: E2 AA 00 42 25 80 0D 02 02 A2 00 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 79 C5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C1 00 00 35 04 06 00 7F B4 E1 8D AA FA 00 00 66 [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 42 25 00 90 00 DB [15:44:54]RAPDU: 90 00 [15:44:54]wFMCommunicate OK [15:44:54]wFMCommunicate request_size=4 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 0D 03 02 [15:44:54]Write to MH i2c: E2 08 00 43 25 80 0D 03 02 00 00 00 00 E3 [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 0B 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 0B 00 43 25 00 39 69 4A DB 02 B7 0F 20 90 00 93 [15:44:54]RAPDU: 39 69 4A DB 02 B7 0F 20 90 00 [15:44:54]wFMCommunicate OK [15:44:54]SAM_PROTO_SignData done [15:44:54]FM_MakeSignedData done [15:44:54]CreateOFDProtocolMessage [15:44:54]wFMCommunicate request_size=4 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 11 00 00 [15:44:54]Write to MH i2c: E2 08 00 44 25 80 11 00 00 00 00 00 00 E3 [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 17 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 17 00 44 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2E [15:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:44:54]wFMCommunicate OK [15:44:54]CreateOFDProtocolMessage done [15:44:54]OFDSenderStorePacket 49658 [15:44:54]StoreOFDPacket docnum=49658 [15:44:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AC 01 00 00 13 C4 A4 01 D1 93 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 39 33 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C 41 58 49 20 D1 87 D0 B5 D1 80 20 D1 87 D0 B0 D0 B9 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 79 C5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C1 00 00 35 04 06 00 7F B4 E1 8D AA FA 39 69 4A DB 02 B7 0F 20 [15:44:54]CheckFolder [15:44:54]dirname=/storage/ofd_packets [15:44:54]CheckFolder done [15:44:54]ProducePacketName [15:44:54]name=ofd_packets/00049658 [15:44:54]NVStorageSaveData ofd_packets/00049658 [15:44:54]File name is /storage/ofd_packets/00049658 [15:44:54]Write 458 bytes [15:44:54]NVStorageSaveData done [15:44:54]OFDSenderStorePacket done [15:44:54]KKMCreateOFDPacket done [15:44:54]NVStorageSaveData kkm_last_timestamp [15:44:54]File name is /storage/kkm_last_timestamp [15:44:54]Write 4 bytes [15:44:54]NVStorageSaveData done [15:44:54]ExternCall_PrintAddStr [15:44:54]wPrintStart [15:44:54]Write to MH i2c: 01 00 00 45 25 6A [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: 01 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: 01 07 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: 01 07 00 45 25 00 00 00 00 00 FF 0F 7F [15:44:54]RasterBufferAndPrint [15:44:54]line Счет N : (3)189843 [15:44:54]line ИНН: 02508201610067 [15:44:54]line Контрольно-Кассовый Чек [15:44:54]line ПРОДАЖА [15:44:54]line Товар: 4640030091607 [15:44:54]line Сигареты ESSE Exchange [15:44:54]line 1.000 * 150.00 [15:44:54]line = 150.00 [15:44:54]line НДС 12% НСП 1% [15:44:54]line > о реализуемом товаре [15:44:54]line Товар: 4870202521193 [15:44:54]line Напиток МAXI чер чай лесные ягоды 0,4л [15:44:54]line 1.000 * 70.00 [15:44:54]line = 70.00 [15:44:54]line НДС 12% НСП 1% [15:44:54]line > о реализуемом товаре [15:44:54]line ИТОГО: 220.00 [15:44:54]line НСП 1% : 1.95 [15:44:54]line НДС 12% : 23.36 [15:44:54]line Наличными: 220.00 [15:44:54]line Безнал.: 0.00 [15:44:54]line Место: АЗС № 95 "Партнер Нефть" [15:44:54]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:44:54]line СНО: Общий режим [15:44:54]line Чек 95 17.08.2024 15:44 [15:44:54]line Смена: 465 ФФД: 1.0 [15:44:54]line ЗНМ: 0300000078 [15:44:54]line РНМ: 0000000000092546 [15:44:54]line Версия ККМ: 001 [15:44:54]line ФМ: 0000000000871800 [15:44:54]line ФД: 49658 [15:44:54]line ФПД: 140414854998778 [15:44:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T154457&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49658&fm=140414854998778&tin=02508201610067®Number=0000000000092546&sum=22000 [15:44:54]line 0 [15:44:54]OFD Sender: Processing packet 49658 [packets to send 21, broken 20] [15:44:54]ProducePacketName [15:44:54]name=ofd_packets/00049658 [15:44:54]OFD Sender: To server: pG, [15:44:54]CommunicateWithHost lk.salyk.kg:30040 [15:44:54]ConnectInit lk.salyk.kg [15:44:54]written 0, free lines is 4095 [15:44:55]Write to MH i2c: 01 00 00 74 25 99 [15:44:55]Write i2c OK [15:44:55]MH_I2C_Read... [15:44:55]Read from MH i2c: 01 [15:44:55]MH_I2C_Read... [15:44:55]Read from MH i2c: 01 07 00 [15:44:55]MH_I2C_Read... [15:44:55]Read from MH i2c: 01 07 00 74 25 00 00 00 00 00 73 0C 1F [15:44:55]RasterBufferAndPrint [15:44:55]line [15:44:55]line [15:44:55]line [15:44:55]line [15:44:55]line [15:44:55]written 0, free lines is 3193 [15:44:55]MH_Cut [15:44:55]Write to MH i2c: D1 01 00 7B 25 01 72 [15:44:55]Write i2c OK [15:44:55]MH_I2C_Read... [15:44:55]Read from MH i2c: D1 [15:44:55]MH_I2C_Read... [15:44:55]Read from MH i2c: D1 01 00 [15:44:55]MH_I2C_Read... [15:44:55]Read from MH i2c: D1 01 00 7B 25 00 71 [15:44:55]Write to MH i2c: 01 00 00 7C 25 A1 [15:44:55]Write i2c OK [15:44:55]MH_I2C_Read... [15:44:55]Connected sock=11 [15:44:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AC 01 00 00 13 C4 A4 01 D1 93 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 39 33 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C 41 58 49 20 D1 87 D0 B5 D1 80 20 D1 87 D0 B0 D0 B9 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 79 C5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C1 00 00 35 04 06 00 7F B4 E1 8D AA FA 39 69 4A DB 02 B7 0F 20 [15:44:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 36 7B 47 00 D9 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C1 00 00 F4 03 04 00 B5 70 C0 66 B6 04 01 00 00 C8 24 CB 58 71 37 EA 15 [15:44:55]CommunicateWithHost err = 0 [15:44:55]CheckOFDResponse [15:44:55]1017 (14) - 77093643461234 [15:44:55]1041 (16) - 0000000000871800 [15:44:55]1040 (4) - 49658 [15:44:55]1012 (4) - 17.08.2024 09:43 [15:44:55]1206 (1) - 0 [15:44:55]OFD Sender: Remove packet 49658 [15:44:55]ProducePacketName [15:44:55]name=ofd_packets/00049658 [15:44:55]NVStorageDeleteData [15:44:56]OFD Sender: No OFD packet to send [15:44:56]*** Cut start [15:44:56]*** Purtial cut [15:44:56]*** CUTSNS_PIN = 0 [15:44:56]*** Stage 1: CUTSNS_PIN = 1 [15:44:58]Read from MH i2c: 01 [15:44:58]MH_I2C_Read... [15:44:58]*** Stop cut motor [15:44:58]*** Cut end [15:44:58]Read from MH i2c: 01 07 00 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: 01 07 00 7C 25 00 00 00 00 00 FF 0F B6 [15:44:58]process_action close_receipt done [15:44:58]requested_data is exist [15:44:58]produce_requested_data [15:44:58]requested_item fm.sn is exist - process it [15:44:58]wFMCommunicate request_size=4 [15:44:58]MH_SAM_APDU [15:44:58]CAPDU: 80 11 00 00 [15:44:58]Write to MH i2c: E2 08 00 7D 25 80 11 00 00 00 00 00 00 1C [15:44:58]Write i2c OK [15:44:58]MH_I2C_Read... [15:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:58]Read from MH i2c: E2 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: E2 17 00 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: E2 17 00 7D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 67 [15:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:44:58]wFMCommunicate OK [15:44:58]requested_item fd.num is exist - process it [15:44:58]SAM_PROTO_GetFieldsCounters [15:44:58]wFMCommunicate request_size=4 [15:44:58]MH_SAM_APDU [15:44:58]CAPDU: 80 13 00 00 [15:44:58]Write to MH i2c: E2 08 00 7E 25 80 13 00 00 00 00 00 00 1F [15:44:58]Write i2c OK [15:44:58]MH_I2C_Read... [15:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:58]Read from MH i2c: E2 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: E2 62 00 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: E2 62 00 7E 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FA C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [15:44: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FA C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:58]wFMCommunicate OK [15:44:58]SAM_PROTO_GetFieldsCounters done [15:44:58]requested_item shift.num is exist - process it [15:44:58]requested_item shift.opened is exist - process it [15:44:58]req_shift_opened [15:44:58]FM_GetShiftState [15:44:58]SAM_PROTO_GetShiftState [15:44:58]wFMCommunicate request_size=4 [15:44:58]MH_SAM_APDU [15:44:58]CAPDU: 80 13 01 00 [15:44:58]Write to MH i2c: E2 08 00 7F 25 80 13 01 00 00 00 00 00 21 [15:44:58]Write i2c OK [15:44:58]MH_I2C_Read... [15:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:58]Read from MH i2c: E2 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: E2 0E 00 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: E2 0E 00 7F 25 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 66 [15:44:58]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:44:58]wFMCommunicate OK [15:44:58]SAM_PROTO_GetShiftState done [15:44:58]FM_GetShiftState done [15:44:58]req_shift_opened done [15:44:58]requested_item shift.open_date is exist - process it [15:44:58]req_shift_open_date [15:44:58]req_shift_open_date done [15:44:58]produce_requested_data done [15:44:58]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49658,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [15:44:58]process_action_free close_receipt [15:44:58]json_value_free [15:44:58]json_value_free done [15:44:58]process_json_proto returns [15:44:58]Send response to host [15:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49658,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [15:44:58]free response buf [15:44:58]execute_script done [15:44:58]execute_script returns [15:44:58]free content buf [15:44:58]Sock 7.Close socket [15:44:58]Sock 7.Thread stoped [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]accept exits with 9 [15:52:06]New connection [15:52:06]New thread 3066801508 created [15:52:06]Thread 3066944868 joined [15:52:06]Waiting for new connection... [15:52:06] Sock 9.Parse request [15:52:06]Sock 9.Check first char [15:52:06]Sock 9.First char is OK [15:52:06]request: POST /json_proto HTTP/1.0 [15:52:06]Method: POST [15:52:06]URL: /json_proto [15:52:06]Method is POST - this is cgi request [15:52:06]url: /json_proto [15:52:06]query_string will be loaded in cgi processing [15:52:06]execute_cgi json_proto POST (null) [15:52:06]execute_cgi path=json_proto method=POST [15:52:06]POST find Content-Length [15:52:06]Host: 172.17.46.196:8080 [15:52:06]Content-Length: 646 [15:52:06]Content-Type: application/json [15:52:06] [15:52:06]POST finish read [15:52:06]Found Content-Length = 646 [15:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189844", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:06]execute_script... [15:52:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189844", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:06]POST & json_proto [15:52:06]process_json_proto [15:52:06]json parsed OK: [15:52:06]protocol is kg_v1.0 [15:52:06]action value=close_receipt [15:52:06]process_action close_receipt [15:52:06]cmd_close_receipt [15:52:06]MH_GetDate [15:52:06]Write to MH i2c: F0 00 00 80 25 94 [15:52:06]OFD Sender: No OFD packet to send [15:52:06]Write i2c OK [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: F0 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: F0 09 00 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: F0 09 00 80 25 00 2B C7 C0 66 07 E8 5D 66 67 [15:52:06]GetLastDocTimeStamp 1723909497 [15:52:06]current date 1723909931 [15:52:06]FM_GetShiftState [15:52:06]SAM_PROTO_GetShiftState [15:52:06]wFMCommunicate request_size=4 [15:52:06]MH_SAM_APDU [15:52:06]CAPDU: 80 13 01 00 [15:52:06]Write to MH i2c: E2 08 00 81 25 80 13 01 00 00 00 00 00 23 [15:52:06]Write i2c OK [15:52:06]MH_I2C_Read... [15:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:06]Read from MH i2c: E2 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: E2 0E 00 [15:52:06]MH_I2C_Read... [15:52:06]Read from MH i2c: E2 0E 00 81 25 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 68 [15:52:06]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:52:06]wFMCommunicate OK [15:52:06]SAM_PROTO_GetShiftState done [15:52:06]FM_GetShiftState done [15:52:06]opened in 1723853354 [15:52:06]opened+sec_in_day 1723939754 [15:52:06]quantity*price = 13000 [15:52:06]sum+1 = 13001 [15:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 96 17.08.2024 15:52 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49659 ФПД: 138158815107442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T155211&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49659&fm=138158815107442&tin=02508201610067®Number=0000000000092546&sum=13000 0 [15:52:07]StoreToDocumentArchive [15:52:07]shift 465 fd 49659 [15:52:07]save to /storage/0465/doc_00049659 [15:52:07]save last doc name /storage/0465/doc_00049659 to /storage/kkm_last_doc_name [15:52:07]save OK [15:52:07]Clear old archive folders... [15:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=282 [15:52:07]tlvbuf is 01864C40 [15:52:07]SAM_PROTO_ClearQueue [15:52:07]wFMCommunicate request_size=4 [15:52:07]MH_SAM_APDU [15:52:07]CAPDU: 80 09 00 00 [15:52:07]Write to MH i2c: E2 08 00 8E 25 80 09 00 00 00 00 00 00 25 [15:52:07]Write i2c OK [15:52:07]MH_I2C_Read... [15:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:07]Read from MH i2c: E2 [15:52:07]MH_I2C_Read... [15:52:07]Read from MH i2c: E2 03 00 [15:52:07]MH_I2C_Read... [15:52:07]Read from MH i2c: E2 03 00 8E 25 00 90 00 27 [15:52:07]RAPDU: 90 00 [15:52:07]wFMCommunicate OK [15:52:07]SAM_PROTO_ClearQueue done [15:52:07]KKMCreateOFDPacket [15:52:07]OFDProtocolAddRootSTLVToBuf [15:52:07]FM_MakeSignedData [15:52:07]FM_MakeSignedData [15:52:07]SAM_PROTO_SignData [15:52:07]wFMCommunicate request_size=4 [15:52:07]MH_SAM_APDU [15:52:07]CAPDU: 80 0D 01 02 [15:52:07]Write to MH i2c: E2 08 00 8F 25 80 0D 01 02 00 00 00 00 2D [15:52:07]Write i2c OK [15:52:07]MH_I2C_Read... [15:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:07]Read from MH i2c: E2 [15:52:07]MH_I2C_Read... [15:52:07]Read from MH i2c: E2 03 00 [15:52:07]MH_I2C_Read... [15:52:07]Read from MH i2c: E2 03 00 8F 25 00 90 00 28 [15:52:07]RAPDU: 90 00 [15:52:07]wFMCommunicate OK [15:52:07]wFMCommunicate request_size=255 [15:52:07]MH_SAM_APDU [15:52:07]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 2B C7 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [15:52:07]Write to MH i2c: E2 02 01 90 25 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 2B C7 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 87 [15:52:07]Write i2c OK [15:52:07]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 03 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 03 00 90 25 00 90 00 29 [15:52:08]RAPDU: 90 00 [15:52:08]wFMCommunicate OK [15:52:08]wFMCommunicate request_size=41 [15:52:08]MH_SAM_APDU [15:52:08]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FB C1 00 00 35 04 06 00 7D A7 9B 18 D9 72 [15:52:08]Write to MH i2c: E2 2C 00 91 25 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FB C1 00 00 35 04 06 00 7D A7 9B 18 D9 72 00 00 D5 [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 03 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 03 00 91 25 00 90 00 2A [15:52:08]RAPDU: 90 00 [15:52:08]wFMCommunicate OK [15:52:08]wFMCommunicate request_size=4 [15:52:08]MH_SAM_APDU [15:52:08]CAPDU: 80 0D 03 02 [15:52:08]Write to MH i2c: E2 08 00 92 25 80 0D 03 02 00 00 00 00 32 [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 0B 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 0B 00 92 25 00 FF 81 BE CB C1 64 11 F5 90 00 67 [15:52:08]RAPDU: FF 81 BE CB C1 64 11 F5 90 00 [15:52:08]wFMCommunicate OK [15:52:08]SAM_PROTO_SignData done [15:52:08]FM_MakeSignedData done [15:52:08]CreateOFDProtocolMessage [15:52:08]wFMCommunicate request_size=4 [15:52:08]MH_SAM_APDU [15:52:08]CAPDU: 80 11 00 00 [15:52:08]Write to MH i2c: E2 08 00 93 25 80 11 00 00 00 00 00 00 32 [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 17 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 17 00 93 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7D [15:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:52:08]wFMCommunicate OK [15:52:08]CreateOFDProtocolMessage done [15:52:08]OFDSenderStorePacket 49659 [15:52:08]StoreOFDPacket docnum=49659 [15:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 51 DF 26 01 BA 6B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 2B C7 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FB C1 00 00 35 04 06 00 7D A7 9B 18 D9 72 FF 81 BE CB C1 64 11 F5 [15:52:08]CheckFolder [15:52:08]dirname=/storage/ofd_packets [15:52:08]CheckFolder done [15:52:08]ProducePacketName [15:52:08]name=ofd_packets/00049659 [15:52:08]NVStorageSaveData ofd_packets/00049659 [15:52:08]File name is /storage/ofd_packets/00049659 [15:52:08]Write 332 bytes [15:52:08]NVStorageSaveData done [15:52:08]OFDSenderStorePacket done [15:52:08]KKMCreateOFDPacket done [15:52:08]NVStorageSaveData kkm_last_timestamp [15:52:08]File name is /storage/kkm_last_timestamp [15:52:08]Write 4 bytes [15:52:08]NVStorageSaveData done [15:52:08]ExternCall_PrintAddStr [15:52:08]wPrintStart [15:52:08]Write to MH i2c: 01 00 00 94 25 B9 [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: 01 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: 01 07 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: 01 07 00 94 25 00 00 00 00 00 FF 0F CE [15:52:08]RasterBufferAndPrint [15:52:08]line Счет N : (3)189844 [15:52:08]line ИНН: 02508201610067 [15:52:08]line Контрольно-Кассовый Чек [15:52:08]line ПРОДАЖА [15:52:08]line Товар: 2000036220012 [15:52:08]line Кофе Капучино XL(GABB TRADE) [15:52:08]line 1.000 * 130.00 [15:52:08]line = 130.00 [15:52:08]line НДС 12% НСП 1% [15:52:08]line > о реализуемом товаре [15:52:08]line ИТОГО: 130.00 [15:52:08]line НСП 1% : 1.15 [15:52:08]line НДС 12% : 13.80 [15:52:08]line Наличными: 130.00 [15:52:08]line Безнал.: 0.00 [15:52:08]line Место: АЗС № 95 "Партнер Нефть" [15:52:08]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:52:08]line СНО: Общий режим [15:52:08]line Чек 96 17.08.2024 15:52 [15:52:08]line Смена: 465 ФФД: 1.0 [15:52:08]line ЗНМ: 0300000078 [15:52:08]line РНМ: 0000000000092546 [15:52:08]line Версия ККМ: 001 [15:52:08]line ФМ: 0000000000871800 [15:52:08]line ФД: 49659 [15:52:08]line ФПД: 138158815107442 [15:52:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T155211&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49659&fm=138158815107442&tin=02508201610067®Number=0000000000092546&sum=13000 [15:52:08]line 0 [15:52:08]OFD Sender: Processing packet 49659 [packets to send 21, broken 20] [15:52:08]ProducePacketName [15:52:08]name=ofd_packets/00049659 [15:52:08]OFD Sender: To server: pG, [15:52:08]CommunicateWithHost lk.salyk.kg:30040 [15:52:08]ConnectInit lk.salyk.kg [15:52:08]written 0, free lines is 4095 [15:52:08]Connected sock=10 [15:52:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 51 DF 26 01 BA 6B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 2B C7 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FB C1 00 00 35 04 06 00 7D A7 9B 18 D9 72 FF 81 BE CB C1 64 11 F5 [15:52:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 30 AF 47 00 2F 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 31 38 30 30 10 04 04 00 FB C1 00 00 F4 03 04 00 66 72 C0 66 B6 04 01 00 00 38 9E 37 79 E7 B1 83 34 [15:52:09]CommunicateWithHost err = 0 [15:52:09]CheckOFDResponse [15:52:09]1017 (14) - 77093643461234 [15:52:09]1041 (16) - 0000000000871800 [15:52:09]1040 (4) - 49659 [15:52:09]1012 (4) - 17.08.2024 09:50 [15:52:09]1206 (1) - 0 [15:52:09]OFD Sender: Remove packet 49659 [15:52:09]ProducePacketName [15:52:09]name=ofd_packets/00049659 [15:52:09]NVStorageDeleteData [15:52:09]Write to MH i2c: 01 00 00 BD 25 E2 [15:52:09]Write i2c OK [15:52:09]MH_I2C_Read... [15:52:09]Read from MH i2c: 01 [15:52:09]MH_I2C_Read... [15:52:09]Read from MH i2c: 01 07 00 [15:52:09]MH_I2C_Read... [15:52:09]Read from MH i2c: 01 07 00 BD 25 00 00 00 00 00 E5 0C DA [15:52:09]RasterBufferAndPrint [15:52:09]line [15:52:09]line [15:52:09]line [15:52:09]line [15:52:09]line [15:52:09]written 0, free lines is 3309 [15:52:09]MH_Cut [15:52:09]Write to MH i2c: D1 01 00 C4 25 01 BB [15:52:09]Write i2c OK [15:52:09]MH_I2C_Read... [15:52:09]Read from MH i2c: D1 [15:52:09]MH_I2C_Read... [15:52:09]Read from MH i2c: D1 01 00 [15:52:09]MH_I2C_Read... [15:52:09]Read from MH i2c: D1 01 00 C4 25 00 BA [15:52:09]Write to MH i2c: 01 00 00 C5 25 EA [15:52:09]Write i2c OK [15:52:09]MH_I2C_Read... [15:52:09]OFD Sender: No OFD packet to send [15:52:09]*** Cut start [15:52:09]*** Purtial cut [15:52:09]*** Stage 1: CUTSNS_PIN = 1 [15:52:10]Read from MH i2c: 01 [15:52:10]MH_I2C_Read... [15:52:10]*** Stop cut motor [15:52:10]*** Cut end [15:52:10]Read from MH i2c: 01 07 00 [15:52:10]MH_I2C_Read... [15:52:10]Read from MH i2c: 01 07 00 C5 25 00 00 00 00 00 FF 0F FF [15:52:10]process_action close_receipt done [15:52:10]requested_data is exist [15:52:10]produce_requested_data [15:52:10]requested_item fm.sn is exist - process it [15:52:10]wFMCommunicate request_size=4 [15:52:10]MH_SAM_APDU [15:52:10]CAPDU: 80 11 00 00 [15:52:10]Write to MH i2c: E2 08 00 C6 25 80 11 00 00 00 00 00 00 65 [15:52:10]Write i2c OK [15:52:10]MH_I2C_Read... [15:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:10]Read from MH i2c: E2 [15:52:10]MH_I2C_Read... [15:52:10]Read from MH i2c: E2 17 00 [15:52:10]MH_I2C_Read... [15:52:10]Read from MH i2c: E2 17 00 C6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B0 [15:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:52:10]wFMCommunicate OK [15:52:10]requested_item fd.num is exist - process it [15:52:10]SAM_PROTO_GetFieldsCounters [15:52:10]wFMCommunicate request_size=4 [15:52:10]MH_SAM_APDU [15:52:10]CAPDU: 80 13 00 00 [15:52:10]Write to MH i2c: E2 08 00 C7 25 80 13 00 00 00 00 00 00 68 [15:52:10]Write i2c OK [15:52:10]MH_I2C_Read... [15:52:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:10]Read from MH i2c: E2 [15:52:10]MH_I2C_Read... [15:52:10]Read from MH i2c: E2 62 00 [15:52:10]MH_I2C_Read... [15:52:10]Read from MH i2c: E2 62 00 C7 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FB C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [15:52: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FB C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:10]wFMCommunicate OK [15:52:10]SAM_PROTO_GetFieldsCounters done [15:52:10]requested_item shift.num is exist - process it [15:52:10]requested_item shift.opened is exist - process it [15:52:10]req_shift_opened [15:52:10]FM_GetShiftState [15:52:10]SAM_PROTO_GetShiftState [15:52:10]wFMCommunicate request_size=4 [15:52:10]MH_SAM_APDU [15:52:10]CAPDU: 80 13 01 00 [15:52:10]Write to MH i2c: E2 08 00 C8 25 80 13 01 00 00 00 00 00 6A [15:52:10]Write i2c OK [15:52:10]MH_I2C_Read... [15:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:10]Read from MH i2c: E2 [15:52:10]MH_I2C_Read... [15:52:10]Read from MH i2c: E2 0E 00 [15:52:10]MH_I2C_Read... [15:52:10]Read from MH i2c: E2 0E 00 C8 25 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 AF [15:52:10]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [15:52:10]wFMCommunicate OK [15:52:10]SAM_PROTO_GetShiftState done [15:52:10]FM_GetShiftState done [15:52:10]req_shift_opened done [15:52:10]requested_item shift.open_date is exist - process it [15:52:10]req_shift_open_date [15:52:10]req_shift_open_date done [15:52:10]produce_requested_data done [15:52:10]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49659,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [15:52:10]process_action_free close_receipt [15:52:10]json_value_free [15:52:10]json_value_free done [15:52:10]process_json_proto returns [15:52:10]Send response to host [15:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49659,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [15:52:10]free response buf [15:52:10]execute_script done [15:52:10]execute_script returns [15:52:10]free content buf [15:52:10]Sock 9.Close socket [15:52:10]Sock 9.Thread stoped [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:36]int [15:53:36]Write to MH i2c: 01 00 00 C9 25 EE [15:53:36]*** FLAG_PRN_KEY set [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 07 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 07 00 C9 25 00 08 00 00 00 FF 0F 0B [15:53:36]state=0 [15:53:36]Key pressed [15:53:36]Feed [15:53:36]Write to MH i2c: D8 00 00 CA 25 C6 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: D8 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: D8 01 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: D8 01 00 CA 25 00 C7 [15:53:36]int [15:53:36]Write to MH i2c: 01 00 00 CB 25 F0 [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 07 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 07 00 CB 25 00 48 00 00 00 3C 00 7B [15:53:36]state=2 [15:53:36]Key pressed [15:53:36]int [15:53:36]Write to MH i2c: 01 00 00 CC 25 F1 [15:53:36]*** FLAG_PRN_KEY reset [15:53:36]Write i2c OK [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 07 00 [15:53:36]MH_I2C_Read... [15:53:36]Read from MH i2c: 01 07 00 CC 25 00 00 00 00 00 F6 0F FD [15:53:36]state=2 [15:53:36]Stop feed [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:42]accept exits with 7 [16:06:42]New connection [16:06:42]New thread 3066944868 created [16:06:42]Thread 3066801508 joined [16:06:42]Waiting for new connection... [16:06:42] Sock 7.Parse request [16:06:42]Sock 7.Check first char [16:06:42]Sock 7.First char is OK [16:06:42]request: POST /json_proto HTTP/1.0 [16:06:42]Method: POST [16:06:42]URL: /json_proto [16:06:42]Method is POST - this is cgi request [16:06:42]url: /json_proto [16:06:42]query_string will be loaded in cgi processing [16:06:42]execute_cgi json_proto POST (null) [16:06:42]execute_cgi path=json_proto method=POST [16:06:42]POST find Content-Length [16:06:42]Host: 172.17.46.196:8080 [16:06:42]Content-Length: 756 [16:06:42]Content-Type: application/json [16:06:42] [16:06:42]POST finish read [16:06:42]Found Content-Length = 756 [16:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30072757", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:42]execute_script... [16:06: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)11326321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30072757", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:42]POST & json_proto [16:06:42]process_json_proto [16:06:42]json parsed OK: [16:06:42]protocol is kg_v1.0 [16:06:42]action value=close_receipt [16:06:42]process_action close_receipt [16:06:42]cmd_close_receipt [16:06:42]MH_GetDate [16:06:42]Write to MH i2c: F0 00 00 CD 25 E1 [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: F0 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: F0 09 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: F0 09 00 CD 25 00 96 CA C0 66 07 E8 5D 66 22 [16:06:42]GetLastDocTimeStamp 1723909931 [16:06:42]current date 1723910806 [16:06:42]FM_GetShiftState [16:06:42]SAM_PROTO_GetShiftState [16:06:42]wFMCommunicate request_size=4 [16:06:42]MH_SAM_APDU [16:06:42]CAPDU: 80 13 01 00 [16:06:42]Write to MH i2c: E2 08 00 CE 25 80 13 01 00 00 00 00 00 70 [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:42]Read from MH i2c: E2 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: E2 0E 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: E2 0E 00 CE 25 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 B5 [16:06:42]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:06:42]wFMCommunicate OK [16:06:42]SAM_PROTO_GetShiftState done [16:06:42]FM_GetShiftState done [16:06:42]opened in 1723853354 [16:06:42]opened+sec_in_day 1723939754 [16:06:42]quantity*price = 0 [16:06:42]sum+1 = 1 [16:06:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 97 17.08.2024 16:06 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30072757 ФМ: 0000000000871800 ФД: 49660 ФПД: 265809736859297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T160646&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49660&fm=265809736859297&tin=02508201610067®Number=0000000000092546&sum=0 [16:06:43]StoreToDocumentArchive [16:06:43]shift 465 fd 49660 [16:06:43]save to /storage/0465/doc_00049660 [16:06:43]save last doc name /storage/0465/doc_00049660 to /storage/kkm_last_doc_name [16:06:43]save OK [16:06:43]Clear old archive folders... [16:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:43]tlvbuf is B6DA6040 [16:06:43]SAM_PROTO_ClearQueue [16:06:43]wFMCommunicate request_size=4 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 09 00 00 [16:06:43]Write to MH i2c: E2 08 00 DB 25 80 09 00 00 00 00 00 00 72 [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:43]Read from MH i2c: E2 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 DB 25 00 90 00 74 [16:06:43]RAPDU: 90 00 [16:06:43]wFMCommunicate OK [16:06:43]SAM_PROTO_ClearQueue done [16:06:43]KKMCreateOFDPacket [16:06:43]OFDProtocolAddRootSTLVToBuf [16:06:43]FM_MakeSignedData [16:06:43]FM_MakeSignedData [16:06:43]SAM_PROTO_SignData [16:06:43]wFMCommunicate request_size=4 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 0D 01 02 [16:06:43]Write to MH i2c: E2 08 00 DC 25 80 0D 01 02 00 00 00 00 7A [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:43]Read from MH i2c: E2 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 DC 25 00 90 00 75 [16:06:43]RAPDU: 90 00 [16:06:43]wFMCommunicate OK [16:06:43]wFMCommunicate request_size=255 [16:06:43]MH_SAM_APDU [16: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 34 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 61 00 00 00 F4 03 04 00 96 CA C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C1 00 00 35 04 06 00 F1 [16:06:43]Write to MH i2c: E2 02 01 DD 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 61 00 00 00 F4 03 04 00 96 CA C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C1 00 00 35 04 06 00 F1 00 00 88 [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:43]Read from MH i2c: E2 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 DD 25 00 90 00 76 [16:06:43]RAPDU: 90 00 [16:06:43]wFMCommunicate OK [16:06:43]wFMCommunicate request_size=10 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 0D 02 02 05 C0 A6 F1 7E A1 [16:06:43]Write to MH i2c: E2 0D 00 DE 25 80 0D 02 02 05 00 C0 A6 F1 7E A1 00 00 FD [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:43]Read from MH i2c: E2 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 DE 25 00 90 00 77 [16:06:43]RAPDU: 90 00 [16:06:43]wFMCommunicate OK [16:06:43]wFMCommunicate request_size=4 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 0D 03 02 [16:06:43]Write to MH i2c: E2 08 00 DF 25 80 0D 03 02 00 00 00 00 7F [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 0B 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 0B 00 DF 25 00 23 90 13 17 EB 45 F2 0A 90 00 89 [16:06:44]RAPDU: 23 90 13 17 EB 45 F2 0A 90 00 [16:06:44]wFMCommunicate OK [16:06:44]SAM_PROTO_SignData done [16:06:44]FM_MakeSignedData done [16:06:44]CreateOFDProtocolMessage [16:06:44]wFMCommunicate request_size=4 [16:06:44]MH_SAM_APDU [16:06:44]CAPDU: 80 11 00 00 [16:06:44]Write to MH i2c: E2 08 00 E0 25 80 11 00 00 00 00 00 00 7F [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 17 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 17 00 E0 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CA [16:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:06:44]wFMCommunicate OK [16:06:44]CreateOFDProtocolMessage done [16:06:44]OFDSenderStorePacket 49660 [16:06:44]StoreOFDPacket docnum=49660 [16:06:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 93 A6 07 01 5B 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 61 00 00 00 F4 03 04 00 96 CA C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C1 00 00 35 04 06 00 F1 C0 A6 F1 7E A1 23 90 13 17 EB 45 F2 0A [16:06:44]CheckFolder [16:06:44]dirname=/storage/ofd_packets [16:06:44]CheckFolder done [16:06:44]ProducePacketName [16:06:44]name=ofd_packets/00049660 [16:06:44]NVStorageSaveData ofd_packets/00049660 [16:06:44]File name is /storage/ofd_packets/00049660 [16:06:44]Write 301 bytes [16:06:44]NVStorageSaveData done [16:06:44]OFDSenderStorePacket done [16:06:44]KKMCreateOFDPacket done [16:06:44]NVStorageSaveData kkm_last_timestamp [16:06:44]File name is /storage/kkm_last_timestamp [16:06:44]Write 4 bytes [16:06:44]NVStorageSaveData done [16:06:44]OFD Sender: Processing packet 49660 [packets to send 21, broken 20] [16:06:44]ProducePacketName [16:06:44]name=ofd_packets/00049660 [16:06:44]OFD Sender: To server: pG, [16:06:44]CommunicateWithHost lk.salyk.kg:30040 [16:06:44]ConnectInit lk.salyk.kg [16:06:44]ExternCall_PrintAddStr [16:06:44]wPrintStart [16:06:44]Write to MH i2c: 01 00 00 E1 25 06 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 07 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 07 00 E1 25 00 00 00 00 00 FF 0F 1B [16:06:44]RasterBufferAndPrint [16:06:44]line Счет N : (1)11326321 [16:06:44]line ИНН: 02508201610067 [16:06:44]line Контрольно-Кассовый Чек [16:06:44]line ПРОДАЖА [16:06:44]line ТРК (МРК, ГНК) : 42 [16:06:44]line Товар: 2710124130 [16:06:44]line Аи-92-К-4 [16:06:44]line 30.000 * 0.00 [16:06:44]line = 0.00 [16:06:44]line НДС 12% НСП 1% [16:06:44]line > о реализуемом товаре [16:06:44]line ИТОГО: 0.00 [16:06:44]line НСП 1% : 0.00 [16:06:44]line НДС 12% : 0.00 [16:06:44]line Наличными: 0.00 [16:06:44]line Безнал.: 0.00 [16:06:44]line Место: АЗС № 95 "Партнер Нефть" [16:06:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:06:44]line СНО: Общий режим [16:06:44]line Чек 97 17.08.2024 16:06 [16:06:44]line Смена: 465 ФФД: 1.0 [16:06:44]line ЗНМ: 0300000078 [16:06:44]line РНМ: 0000000000092546 [16:06:44]line Версия ККМ: 001 [16:06:44]line Талоны: ТК ГПНА Online [16:06:44]line 30072757 [16:06:44]line ФМ: 0000000000871800 [16:06:44]line ФД: 49660 [16:06:44]line ФПД: 265809736859297 [16:06:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T160646&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49660&fm=265809736859297&tin=02508201610067®Number=0000000000092546&sum=0 [16:06:44]Connected sock=11 [16: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 31 38 30 30 0F 01 00 00 93 A6 07 01 5B 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 61 00 00 00 F4 03 04 00 96 CA C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C1 00 00 35 04 06 00 F1 C0 A6 F1 7E A1 23 90 13 17 EB 45 F2 0A [16:06:44]written 0, free lines is 4095 [16:06:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 73 04 47 00 74 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C1 00 00 F4 03 04 00 D2 75 C0 66 B6 04 01 00 00 33 53 4C 59 85 6E 6E BD [16:06:44]CommunicateWithHost err = 0 [16:06:44]CheckOFDResponse [16:06:44]1017 (14) - 77093643461234 [16:06:44]1041 (16) - 0000000000871800 [16:06:44]1040 (4) - 49660 [16:06:44]1012 (4) - 17.08.2024 10:05 [16:06:44]1206 (1) - 0 [16:06:44]OFD Sender: Remove packet 49660 [16:06:44]ProducePacketName [16:06:44]name=ofd_packets/00049660 [16:06:44]NVStorageDeleteData [16:06:44]Write to MH i2c: 01 00 00 0B 26 31 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 07 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 07 00 0B 26 00 00 00 00 00 E0 0C 24 [16:06:44]RasterBufferAndPrint [16:06:44]line [16:06:44]line [16:06:44]line [16:06:44]line [16:06:44]line [16:06:44]written 0, free lines is 3305 [16:06:44]MH_Cut [16:06:44]Write to MH i2c: D1 01 00 12 26 01 0A [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: D1 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: D1 01 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: D1 01 00 12 26 00 09 [16:06:44]Write to MH i2c: 01 00 00 13 26 39 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:45]OFD Sender: No OFD packet to send [16:06:45]*** Cut start [16:06:45]*** Purtial cut [16:06:45]*** CUTSNS_PIN = 0 [16:06:45]*** Stage 1: CUTSNS_PIN = 1 [16:06:47]Read from MH i2c: 01 [16:06:47]MH_I2C_Read... [16:06:47]*** Stop cut motor [16:06:47]*** Cut end [16:06:47]Read from MH i2c: 01 07 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: 01 07 00 13 26 00 00 00 00 00 FF 0F 4E [16:06:47]process_action close_receipt done [16:06:47]requested_data is exist [16:06:47]produce_requested_data [16:06:47]requested_item fm.sn is exist - process it [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 11 00 00 [16:06:47]Write to MH i2c: E2 08 00 14 26 80 11 00 00 00 00 00 00 B4 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 17 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 17 00 14 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FF [16:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:06:47]wFMCommunicate OK [16:06:47]requested_item fd.num is exist - process it [16:06:47]SAM_PROTO_GetFieldsCounters [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 13 00 00 [16:06:47]Write to MH i2c: E2 08 00 15 26 80 13 00 00 00 00 00 00 B7 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 62 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 62 00 15 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FC C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [16:06: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FC C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:47]wFMCommunicate OK [16:06:47]SAM_PROTO_GetFieldsCounters done [16:06:47]requested_item shift.num is exist - process it [16:06:47]requested_item shift.opened is exist - process it [16:06:47]req_shift_opened [16:06:47]FM_GetShiftState [16:06:47]SAM_PROTO_GetShiftState [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 13 01 00 [16:06:47]Write to MH i2c: E2 08 00 16 26 80 13 01 00 00 00 00 00 B9 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 0E 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 0E 00 16 26 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 FE [16:06:47]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:06:47]wFMCommunicate OK [16:06:47]SAM_PROTO_GetShiftState done [16:06:47]FM_GetShiftState done [16:06:47]req_shift_opened done [16:06:47]requested_item shift.open_date is exist - process it [16:06:47]req_shift_open_date [16:06:47]req_shift_open_date done [16:06:47]produce_requested_data done [16:06:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49660,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [16:06:47]process_action_free close_receipt [16:06:47]json_value_free [16:06:47]json_value_free done [16:06:47]process_json_proto returns [16:06:47]Send response to host [16:06:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49660,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [16:06:47]free response buf [16:06:47]execute_script done [16:06:47]execute_script returns [16:06:47]free content buf [16:06:47]Sock 7.Close socket [16:06:47]Sock 7.Thread stoped [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:39]accept exits with 9 [16:10:39]New connection [16:10:39]New thread 3066801508 created [16:10:39]Thread 3066944868 joined [16:10:39]Waiting for new connection... [16:10:39] Sock 9.Parse request [16:10:39]Sock 9.Check first char [16:10:39]Sock 9.First char is OK [16:10:39]request: POST /json_proto HTTP/1.0 [16:10:39]Method: POST [16:10:39]URL: /json_proto [16:10:39]Method is POST - this is cgi request [16:10:39]url: /json_proto [16:10:39]query_string will be loaded in cgi processing [16:10:39]execute_cgi json_proto POST (null) [16:10:39]execute_cgi path=json_proto method=POST [16:10:39]POST find Content-Length [16:10:39]Host: 172.17.46.196:8080 [16:10:39]Content-Length: 630 [16:10:39]Content-Type: application/json [16:10:39] [16:10:39]POST finish read [16:10:39]Found Content-Length = 630 [16:10:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189845", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:39]execute_script... [16:10:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189845", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:39]POST & json_proto [16:10:39]process_json_proto [16:10:39]json parsed OK: [16:10:39]protocol is kg_v1.0 [16:10:39]action value=close_receipt [16:10:39]process_action close_receipt [16:10:39]cmd_close_receipt [16:10:39]MH_GetDate [16:10:39]Write to MH i2c: F0 00 00 17 26 2C [16:10:39]Write i2c OK [16:10:39]MH_I2C_Read... [16:10:39]Read from MH i2c: F0 [16:10:39]MH_I2C_Read... [16:10:39]Read from MH i2c: F0 09 00 [16:10:39]MH_I2C_Read... [16:10:39]Read from MH i2c: F0 09 00 17 26 00 84 CB C0 66 07 E8 5D 66 5C [16:10:39]GetLastDocTimeStamp 1723910806 [16:10:39]current date 1723911044 [16:10:39]FM_GetShiftState [16:10:39]SAM_PROTO_GetShiftState [16:10:39]wFMCommunicate request_size=4 [16:10:39]MH_SAM_APDU [16:10:39]CAPDU: 80 13 01 00 [16:10:39]Write to MH i2c: E2 08 00 18 26 80 13 01 00 00 00 00 00 BB [16:10:39]Write i2c OK [16:10:39]MH_I2C_Read... [16:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:39]Read from MH i2c: E2 [16:10:39]MH_I2C_Read... [16:10:39]Read from MH i2c: E2 0E 00 [16:10:39]MH_I2C_Read... [16:10:39]Read from MH i2c: E2 0E 00 18 26 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 00 [16:10:39]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:10:39]wFMCommunicate OK [16:10:39]SAM_PROTO_GetShiftState done [16:10:39]FM_GetShiftState done [16:10:39]opened in 1723853354 [16:10:39]opened+sec_in_day 1723939754 [16:10:39]quantity*price = 5000 [16:10:39]sum+1 = 5001 [16:10:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 98 17.08.2024 16:10 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49661 ФПД: 54696486574155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T161044&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49661&fm=54696486574155&tin=02508201610067®Number=0000000000092546&sum=5000 0 [16:10:40]StoreToDocumentArchive [16:10:40]shift 465 fd 49661 [16:10:40]save to /storage/0465/doc_00049661 [16:10:40]save last doc name /storage/0465/doc_00049661 to /storage/kkm_last_doc_name [16:10:40]save OK [16:10:40]Clear old archive folders... [16:10:40]ProcessDocumentItem done err = 0, tmpTLVsize=269 [16:10:40]tlvbuf is 018621A0 [16:10:40]SAM_PROTO_ClearQueue [16:10:40]wFMCommunicate request_size=4 [16:10:40]MH_SAM_APDU [16:10:40]CAPDU: 80 09 00 00 [16:10:40]Write to MH i2c: E2 08 00 25 26 80 09 00 00 00 00 00 00 BD [16:10:40]Write i2c OK [16:10:40]MH_I2C_Read... [16:10:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:40]Read from MH i2c: E2 [16:10:40]MH_I2C_Read... [16:10:40]Read from MH i2c: E2 03 00 [16:10:40]MH_I2C_Read... [16:10:40]Read from MH i2c: E2 03 00 25 26 00 90 00 BF [16:10:40]RAPDU: 90 00 [16:10:40]wFMCommunicate OK [16:10:40]SAM_PROTO_ClearQueue done [16:10:40]KKMCreateOFDPacket [16:10:40]OFDProtocolAddRootSTLVToBuf [16:10:40]FM_MakeSignedData [16:10:40]FM_MakeSignedData [16:10:40]SAM_PROTO_SignData [16:10:40]wFMCommunicate request_size=4 [16:10:40]MH_SAM_APDU [16:10:40]CAPDU: 80 0D 01 02 [16:10:40]Write to MH i2c: E2 08 00 26 26 80 0D 01 02 00 00 00 00 C5 [16:10:40]Write i2c OK [16:10:40]MH_I2C_Read... [16:10:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:41]Read from MH i2c: E2 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 03 00 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 03 00 26 26 00 90 00 C0 [16:10:41]RAPDU: 90 00 [16:10:41]wFMCommunicate OK [16:10:41]wFMCommunicate request_size=255 [16:10:41]MH_SAM_APDU [16:10:41]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 84 CB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [16:10:41]Write to MH i2c: E2 02 01 27 26 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 84 CB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 86 [16:10:41]Write i2c OK [16:10:41]MH_I2C_Read... [16:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:41]Read from MH i2c: E2 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 03 00 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 03 00 27 26 00 90 00 C1 [16:10:41]RAPDU: 90 00 [16:10:41]wFMCommunicate OK [16:10:41]wFMCommunicate request_size=28 [16:10:41]MH_SAM_APDU [16:10:41]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 FD C1 00 00 35 04 06 00 31 BF 04 A7 18 4B [16:10:41]Write to MH i2c: E2 1F 00 28 26 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 FD C1 00 00 35 04 06 00 31 BF 04 A7 18 4B 00 00 09 [16:10:41]Write i2c OK [16:10:41]MH_I2C_Read... [16:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:41]Read from MH i2c: E2 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 03 00 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 03 00 28 26 00 90 00 C2 [16:10:41]RAPDU: 90 00 [16:10:41]wFMCommunicate OK [16:10:41]wFMCommunicate request_size=4 [16:10:41]MH_SAM_APDU [16:10:41]CAPDU: 80 0D 03 02 [16:10:41]Write to MH i2c: E2 08 00 29 26 80 0D 03 02 00 00 00 00 CA [16:10:41]Write i2c OK [16:10:41]MH_I2C_Read... [16:10:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:41]Read from MH i2c: E2 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 0B 00 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 0B 00 29 26 00 DC 5E F2 01 3D F1 8A 96 90 00 46 [16:10:41]RAPDU: DC 5E F2 01 3D F1 8A 96 90 00 [16:10:41]wFMCommunicate OK [16:10:41]SAM_PROTO_SignData done [16:10:41]FM_MakeSignedData done [16:10:41]CreateOFDProtocolMessage [16:10:41]wFMCommunicate request_size=4 [16:10:41]MH_SAM_APDU [16:10:41]CAPDU: 80 11 00 00 [16:10:41]Write to MH i2c: E2 08 00 2A 26 80 11 00 00 00 00 00 00 CA [16:10:41]Write i2c OK [16:10:41]MH_I2C_Read... [16:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:41]Read from MH i2c: E2 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 17 00 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: E2 17 00 2A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 15 [16:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:10:41]wFMCommunicate OK [16:10:41]CreateOFDProtocolMessage done [16:10:41]OFDSenderStorePacket 49661 [16:10:41]StoreOFDPacket docnum=49661 [16:10:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 27 FA 19 01 69 BB 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 84 CB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FD C1 00 00 35 04 06 00 31 BF 04 A7 18 4B DC 5E F2 01 3D F1 8A 96 [16:10:41]CheckFolder [16:10:41]dirname=/storage/ofd_packets [16:10:41]CheckFolder done [16:10:41]ProducePacketName [16:10:41]name=ofd_packets/00049661 [16:10:41]NVStorageSaveData ofd_packets/00049661 [16:10:41]File name is /storage/ofd_packets/00049661 [16:10:41]Write 319 bytes [16:10:41]NVStorageSaveData done [16:10:41]OFDSenderStorePacket done [16:10:41]KKMCreateOFDPacket done [16:10:41]NVStorageSaveData kkm_last_timestamp [16:10:41]File name is /storage/kkm_last_timestamp [16:10:41]Write 4 bytes [16:10:41]NVStorageSaveData done [16:10:41]ExternCall_PrintAddStr [16:10:41]wPrintStart [16:10:41]Write to MH i2c: 01 00 00 2B 26 51 [16:10:41]Write i2c OK [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: 01 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: 01 07 00 [16:10:41]MH_I2C_Read... [16:10:41]Read from MH i2c: 01 07 00 2B 26 00 00 00 00 00 FF 0F 66 [16:10:41]RasterBufferAndPrint [16:10:41]line Счет N : (3)189845 [16:10:41]line ИНН: 02508201610067 [16:10:41]line Контрольно-Кассовый Чек [16:10:41]line ПРОДАЖА [16:10:41]line Товар: 4700000160358 [16:10:41]line Вода Легенда 1л [16:10:41]line 1.000 * 50.00 [16:10:41]line = 50.00 [16:10:41]line НДС 12% НСП 1% [16:10:41]line > о реализуемом товаре [16:10:41]line ИТОГО: 50.00 [16:10:41]line НСП 1% : 0.44 [16:10:41]line НДС 12% : 5.31 [16:10:41]line Наличными: 50.00 [16:10:41]line Безнал.: 0.00 [16:10:41]line Место: АЗС № 95 "Партнер Нефть" [16:10:41]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:10:41]line СНО: Общий режим [16:10:41]line Чек 98 17.08.2024 16:10 [16:10:41]line Смена: 465 ФФД: 1.0 [16:10:41]line ЗНМ: 0300000078 [16:10:41]line РНМ: 0000000000092546 [16:10:41]line Версия ККМ: 001 [16:10:41]line ФМ: 0000000000871800 [16:10:41]line ФД: 49661 [16:10:41]line ФПД: 54696486574155 [16:10:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T161044&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49661&fm=54696486574155&tin=02508201610067®Number=0000000000092546&sum=5000 [16:10:41]line 0 [16:10:41]OFD Sender: Processing packet 49661 [packets to send 21, broken 20] [16:10:41]ProducePacketName [16:10:41]name=ofd_packets/00049661 [16:10:41]OFD Sender: To server: pG, [16:10:41]CommunicateWithHost lk.salyk.kg:30040 [16:10:41]ConnectInit lk.salyk.kg [16:10:41]written 0, free lines is 4095 [16:10:41]Connected sock=10 [16:10:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 27 FA 19 01 69 BB 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 84 CB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FD C1 00 00 35 04 06 00 31 BF 04 A7 18 4B DC 5E F2 01 3D F1 8A 96 [16:10:42]Write to MH i2c: 01 00 00 53 26 79 [16:10:42]Write i2c OK [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: 01 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: 01 07 00 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: 01 07 00 53 26 00 00 00 00 00 F3 0C 7F [16:10:42]RasterBufferAndPrint [16:10:42]line [16:10:42]line [16:10:42]line [16:10:42]line [16:10:42]line [16:10:42]written 0, free lines is 3321 [16:10:42]MH_Cut [16:10:42]Write to MH i2c: D1 01 00 5A 26 01 52 [16:10:42]Write i2c OK [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: D1 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: D1 01 00 [16:10:42]MH_I2C_Read... [16:10:42]Read from MH i2c: D1 01 00 5A 26 00 51 [16:10:42]Write to MH i2c: 01 00 00 5B 26 81 [16:10:42]Write i2c OK [16:10:42]MH_I2C_Read... [16:10:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CF FC 47 00 5C 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 31 38 30 30 10 04 04 00 FD C1 00 00 F4 03 04 00 BF 76 C0 66 B6 04 01 00 00 6D 92 1A 29 74 3D 56 31 [16:10:42]CommunicateWithHost err = 0 [16:10:42]CheckOFDResponse [16:10:42]1017 (14) - 77093643461234 [16:10:42]1041 (16) - 0000000000871800 [16:10:42]1040 (4) - 49661 [16:10:42]1012 (4) - 17.08.2024 10:09 [16:10:42]1206 (1) - 0 [16:10:42]OFD Sender: Remove packet 49661 [16:10:42]ProducePacketName [16:10:42]name=ofd_packets/00049661 [16:10:42]NVStorageDeleteData [16:10:42]OFD Sender: No OFD packet to send [16:10:42]*** Cut start [16:10:42]*** Purtial cut [16:10:42]*** Stage 1: CUTSNS_PIN = 1 [16:10:43]Read from MH i2c: 01 [16:10:43]MH_I2C_Read... [16:10:43]*** Stop cut motor [16:10:43]*** Cut end [16:10:43]Read from MH i2c: 01 07 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: 01 07 00 5B 26 00 00 00 00 00 FF 0F 96 [16:10:43]process_action close_receipt done [16:10:43]requested_data is exist [16:10:43]produce_requested_data [16:10:43]requested_item fm.sn is exist - process it [16:10:43]wFMCommunicate request_size=4 [16:10:43]MH_SAM_APDU [16:10:43]CAPDU: 80 11 00 00 [16:10:43]Write to MH i2c: E2 08 00 5C 26 80 11 00 00 00 00 00 00 FC [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:43]Read from MH i2c: E2 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 17 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 17 00 5C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 47 [16:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:10:43]wFMCommunicate OK [16:10:43]requested_item fd.num is exist - process it [16:10:43]SAM_PROTO_GetFieldsCounters [16:10:43]wFMCommunicate request_size=4 [16:10:43]MH_SAM_APDU [16:10:43]CAPDU: 80 13 00 00 [16:10:43]Write to MH i2c: E2 08 00 5D 26 80 13 00 00 00 00 00 00 FF [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:43]Read from MH i2c: E2 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 62 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 62 00 5D 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FD C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [16:10: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FD C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:43]wFMCommunicate OK [16:10:43]SAM_PROTO_GetFieldsCounters done [16:10:43]requested_item shift.num is exist - process it [16:10:43]requested_item shift.opened is exist - process it [16:10:43]req_shift_opened [16:10:43]FM_GetShiftState [16:10:43]SAM_PROTO_GetShiftState [16:10:43]wFMCommunicate request_size=4 [16:10:43]MH_SAM_APDU [16:10:43]CAPDU: 80 13 01 00 [16:10:43]Write to MH i2c: E2 08 00 5E 26 80 13 01 00 00 00 00 00 01 [16:10:43]Write i2c OK [16:10:43]MH_I2C_Read... [16:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:43]Read from MH i2c: E2 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 0E 00 [16:10:43]MH_I2C_Read... [16:10:43]Read from MH i2c: E2 0E 00 5E 26 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 46 [16:10:43]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:10:43]wFMCommunicate OK [16:10:43]SAM_PROTO_GetShiftState done [16:10:43]FM_GetShiftState done [16:10:43]req_shift_opened done [16:10:43]requested_item shift.open_date is exist - process it [16:10:43]req_shift_open_date [16:10:43]req_shift_open_date done [16:10:43]produce_requested_data done [16:10:43]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49661,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [16:10:43]process_action_free close_receipt [16:10:43]json_value_free [16:10:43]json_value_free done [16:10:43]process_json_proto returns [16:10:43]Send response to host [16:10:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49661,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [16:10:43]free response buf [16:10:43]execute_script done [16:10:43]execute_script returns [16:10:43]free content buf [16:10:43]Sock 9.Close socket [16:10:43]Sock 9.Thread stoped [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [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: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: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:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [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: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: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:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:16]accept exits with 7 [16:24:16]New connection [16:24:16]New thread 3066944868 created [16:24:16]Thread 3066801508 joined [16:24:16]Waiting for new connection... [16:24:16] Sock 7.Parse request [16:24:16]Sock 7.Check first char [16:24:16]Sock 7.First char is OK [16:24:16]request: POST /json_proto HTTP/1.0 [16:24:16]Method: POST [16:24:16]URL: /json_proto [16:24:16]Method is POST - this is cgi request [16:24:16]url: /json_proto [16:24:16]query_string will be loaded in cgi processing [16:24:16]execute_cgi json_proto POST (null) [16:24:16]execute_cgi path=json_proto method=POST [16:24:16]POST find Content-Length [16:24:16]Host: 172.17.46.196:8080 [16:24:16]Content-Length: 622 [16:24:16]Content-Type: application/json [16:24:16] [16:24:16]POST finish read [16:24:16]Found Content-Length = 622 [16:24:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189846", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:16]execute_script... [16:24:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189846", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:16]POST & json_proto [16:24:16]process_json_proto [16:24:16]json parsed OK: [16:24:16]protocol is kg_v1.0 [16:24:16]action value=close_receipt [16:24:16]process_action close_receipt [16:24:16]cmd_close_receipt [16:24:16]MH_GetDate [16:24:16]Write to MH i2c: F0 00 00 5F 26 74 [16:24:16]Write i2c OK [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: F0 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: F0 09 00 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: F0 09 00 5F 26 00 B5 CE C0 66 07 E8 5D 66 D8 [16:24:16]GetLastDocTimeStamp 1723911044 [16:24:16]current date 1723911861 [16:24:16]FM_GetShiftState [16:24:16]SAM_PROTO_GetShiftState [16:24:16]wFMCommunicate request_size=4 [16:24:16]MH_SAM_APDU [16:24:16]CAPDU: 80 13 01 00 [16:24:16]Write to MH i2c: E2 08 00 60 26 80 13 01 00 00 00 00 00 03 [16:24:16]Write i2c OK [16:24:16]MH_I2C_Read... [16:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:16]Read from MH i2c: E2 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: E2 0E 00 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: E2 0E 00 60 26 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 48 [16:24:16]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:24:16]wFMCommunicate OK [16:24:16]SAM_PROTO_GetShiftState done [16:24:16]FM_GetShiftState done [16:24:16]opened in 1723853354 [16:24:16]opened+sec_in_day 1723939754 [16:24:16]quantity*price = 15100 [16:24:16]sum+1 = 15101 [16:24:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 99 17.08.2024 16:24 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49662 ФПД: 171488043600798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T162421&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49662&fm=171488043600798&tin=02508201610067®Number=0000000000092546&sum=15100 0 [16:24:17]StoreToDocumentArchive [16:24:17]shift 465 fd 49662 [16:24:17]save to /storage/0465/doc_00049662 [16:24:17]save last doc name /storage/0465/doc_00049662 to /storage/kkm_last_doc_name [16:24:17]save OK [16:24:17]Clear old archive folders... [16:24:17]ProcessDocumentItem done err = 0, tmpTLVsize=274 [16:24:17]tlvbuf is 018AC2F0 [16:24:17]SAM_PROTO_ClearQueue [16:24:17]wFMCommunicate request_size=4 [16:24:17]MH_SAM_APDU [16:24:17]CAPDU: 80 09 00 00 [16:24:17]Write to MH i2c: E2 08 00 6D 26 80 09 00 00 00 00 00 00 05 [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:17]Read from MH i2c: E2 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 03 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 03 00 6D 26 00 90 00 07 [16:24:17]RAPDU: 90 00 [16:24:17]wFMCommunicate OK [16:24:17]SAM_PROTO_ClearQueue done [16:24:17]KKMCreateOFDPacket [16:24:17]OFDProtocolAddRootSTLVToBuf [16:24:17]FM_MakeSignedData [16:24:17]FM_MakeSignedData [16:24:17]SAM_PROTO_SignData [16:24:17]wFMCommunicate request_size=4 [16:24:17]MH_SAM_APDU [16:24:17]CAPDU: 80 0D 01 02 [16:24:17]Write to MH i2c: E2 08 00 6E 26 80 0D 01 02 00 00 00 00 0D [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:17]Read from MH i2c: E2 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 03 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 03 00 6E 26 00 90 00 08 [16:24:17]RAPDU: 90 00 [16:24:17]wFMCommunicate OK [16:24:17]wFMCommunicate request_size=255 [16:24:17]MH_SAM_APDU [16:24:17]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B5 CE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [16:24:17]Write to MH i2c: E2 02 01 6F 26 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B5 CE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 B5 [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:18]Read from MH i2c: E2 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 6F 26 00 90 00 09 [16:24:18]RAPDU: 90 00 [16:24:18]wFMCommunicate OK [16:24:18]wFMCommunicate request_size=33 [16:24:18]MH_SAM_APDU [16:24:18]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C1 00 00 35 04 06 00 9B F7 AB EC 0B 9E [16:24:18]Write to MH i2c: E2 24 00 70 26 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C1 00 00 35 04 06 00 9B F7 AB EC 0B 9E 00 00 28 [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:18]Read from MH i2c: E2 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 70 26 00 90 00 0A [16:24:18]RAPDU: 90 00 [16:24:18]wFMCommunicate OK [16:24:18]wFMCommunicate request_size=4 [16:24:18]MH_SAM_APDU [16:24:18]CAPDU: 80 0D 03 02 [16:24:18]Write to MH i2c: E2 08 00 71 26 80 0D 03 02 00 00 00 00 12 [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:18]Read from MH i2c: E2 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 0B 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 0B 00 71 26 00 9F 69 EA 0D 5C 00 35 2C 90 00 CF [16:24:18]RAPDU: 9F 69 EA 0D 5C 00 35 2C 90 00 [16:24:18]wFMCommunicate OK [16:24:18]SAM_PROTO_SignData done [16:24:18]FM_MakeSignedData done [16:24:18]CreateOFDProtocolMessage [16:24:18]wFMCommunicate request_size=4 [16:24:18]MH_SAM_APDU [16:24:18]CAPDU: 80 11 00 00 [16:24:18]Write to MH i2c: E2 08 00 72 26 80 11 00 00 00 00 00 00 12 [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:18]Read from MH i2c: E2 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 17 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 17 00 72 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5D [16:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:24:18]wFMCommunicate OK [16:24:18]CreateOFDProtocolMessage done [16:24:18]OFDSenderStorePacket 49662 [16:24:18]StoreOFDPacket docnum=49662 [16:24:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 81 CE 1E 01 02 28 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B5 CE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C1 00 00 35 04 06 00 9B F7 AB EC 0B 9E 9F 69 EA 0D 5C 00 35 2C [16:24:18]CheckFolder [16:24:18]dirname=/storage/ofd_packets [16:24:18]CheckFolder done [16:24:18]ProducePacketName [16:24:18]name=ofd_packets/00049662 [16:24:18]NVStorageSaveData ofd_packets/00049662 [16:24:18]File name is /storage/ofd_packets/00049662 [16:24:18]Write 324 bytes [16:24:18]NVStorageSaveData done [16:24:18]OFDSenderStorePacket done [16:24:18]KKMCreateOFDPacket done [16:24:18]NVStorageSaveData kkm_last_timestamp [16:24:18]File name is /storage/kkm_last_timestamp [16:24:18]Write 4 bytes [16:24:18]NVStorageSaveData done [16:24:18]ExternCall_PrintAddStr [16:24:18]wPrintStart [16:24:18]Write to MH i2c: 01 00 00 73 26 99 [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: 01 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: 01 07 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: 01 07 00 73 26 00 00 00 00 00 FF 0F AE [16:24:18]RasterBufferAndPrint [16:24:18]line Счет N : (3)189846 [16:24:18]line ИНН: 02508201610067 [16:24:18]line Контрольно-Кассовый Чек [16:24:18]line ПРОДАЖА [16:24:18]line Товар: 48741958 [16:24:18]line Сигареты Parliament Aqua Blue [16:24:18]line 1.000 * 151.00 [16:24:18]line = 151.00 [16:24:18]line НДС 12% НСП 1% [16:24:18]line > о реализуемом товаре [16:24:18]line ИТОГО: 151.00 [16:24:18]line НСП 1% : 1.34 [16:24:18]line НДС 12% : 16.03 [16:24:18]line Наличными: 151.00 [16:24:18]line Безнал.: 0.00 [16:24:18]line Место: АЗС № 95 "Партнер Нефть" [16:24:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:24:18]line СНО: Общий режим [16:24:18]line Чек 99 17.08.2024 16:24 [16:24:18]line Смена: 465 ФФД: 1.0 [16:24:18]line ЗНМ: 0300000078 [16:24:18]line РНМ: 0000000000092546 [16:24:18]line Версия ККМ: 001 [16:24:18]line ФМ: 0000000000871800 [16:24:18]line ФД: 49662 [16:24:18]line ФПД: 171488043600798 [16:24:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T162421&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49662&fm=171488043600798&tin=02508201610067®Number=0000000000092546&sum=15100 [16:24:18]line 0 [16:24:18]written 0, free lines is 4095 [16:24:18]OFD Sender: Processing packet 49662 [packets to send 21, broken 20] [16:24:18]ProducePacketName [16:24:18]name=ofd_packets/00049662 [16:24:18]OFD Sender: To server: pG, [16:24:18]CommunicateWithHost lk.salyk.kg:30040 [16:24:18]ConnectInit lk.salyk.kg [16:24:18]Connected sock=10 [16:24:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 81 CE 1E 01 02 28 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B5 CE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C1 00 00 35 04 06 00 9B F7 AB EC 0B 9E 9F 69 EA 0D 5C 00 35 2C [16:24:18]Write to MH i2c: 01 00 00 9C 26 C2 [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: 01 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: 01 07 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: 01 07 00 9C 26 00 00 00 00 00 C6 0C 9B [16:24:18]RasterBufferAndPrint [16:24:18]line [16:24:18]line [16:24:18]line [16:24:18]line [16:24:18]line [16:24:18]written 0, free lines is 3274 [16:24:18]MH_Cut [16:24:18]Write to MH i2c: D1 01 00 A3 26 01 9B [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: D1 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: D1 01 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: D1 01 00 A3 26 00 9A [16:24:18]Write to MH i2c: 01 00 00 A4 26 CA [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D2 4B 47 00 8D 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C1 00 00 F4 03 04 00 F0 79 C0 66 B6 04 01 00 00 A7 D2 53 2E 33 BA 71 75 [16:24:18]CommunicateWithHost err = 0 [16:24:18]CheckOFDResponse [16:24:18]1017 (14) - 77093643461234 [16:24:18]1041 (16) - 0000000000871800 [16:24:18]1040 (4) - 49662 [16:24:18]1012 (4) - 17.08.2024 10:22 [16:24:18]1206 (1) - 0 [16:24:18]OFD Sender: Remove packet 49662 [16:24:18]ProducePacketName [16:24:18]name=ofd_packets/00049662 [16:24:18]NVStorageDeleteData [16:24:19]OFD Sender: No OFD packet to send [16:24:19]*** Cut start [16:24:19]*** Purtial cut [16:24:19]*** CUTSNS_PIN = 0 [16:24:19]*** Stage 1: CUTSNS_PIN = 1 [16:24:21]Read from MH i2c: 01 [16:24:21]MH_I2C_Read... [16:24:21]*** Stop cut motor [16:24:21]*** Cut end [16:24:21]Read from MH i2c: 01 07 00 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: 01 07 00 A4 26 00 00 00 00 00 FF 0F DF [16:24:21]process_action close_receipt done [16:24:21]requested_data is exist [16:24:21]produce_requested_data [16:24:21]requested_item fm.sn is exist - process it [16:24:21]wFMCommunicate request_size=4 [16:24:21]MH_SAM_APDU [16:24:21]CAPDU: 80 11 00 00 [16:24:21]Write to MH i2c: E2 08 00 A5 26 80 11 00 00 00 00 00 00 45 [16:24:21]Write i2c OK [16:24:21]MH_I2C_Read... [16:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:21]Read from MH i2c: E2 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 17 00 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 17 00 A5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 90 [16:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:24:21]wFMCommunicate OK [16:24:21]requested_item fd.num is exist - process it [16:24:21]SAM_PROTO_GetFieldsCounters [16:24:21]wFMCommunicate request_size=4 [16:24:21]MH_SAM_APDU [16:24:21]CAPDU: 80 13 00 00 [16:24:21]Write to MH i2c: E2 08 00 A6 26 80 13 00 00 00 00 00 00 48 [16:24:21]Write i2c OK [16:24:21]MH_I2C_Read... [16:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:21]Read from MH i2c: E2 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 62 00 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 62 00 A6 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FE C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [16:24:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FE C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:21]wFMCommunicate OK [16:24:21]SAM_PROTO_GetFieldsCounters done [16:24:21]requested_item shift.num is exist - process it [16:24:21]requested_item shift.opened is exist - process it [16:24:21]req_shift_opened [16:24:21]FM_GetShiftState [16:24:21]SAM_PROTO_GetShiftState [16:24:21]wFMCommunicate request_size=4 [16:24:21]MH_SAM_APDU [16:24:21]CAPDU: 80 13 01 00 [16:24:21]Write to MH i2c: E2 08 00 A7 26 80 13 01 00 00 00 00 00 4A [16:24:21]Write i2c OK [16:24:21]MH_I2C_Read... [16:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:22]Read from MH i2c: E2 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 0E 00 [16:24:22]MH_I2C_Read... [16:24:22]Read from MH i2c: E2 0E 00 A7 26 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 8F [16:24:22]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:24:22]wFMCommunicate OK [16:24:22]SAM_PROTO_GetShiftState done [16:24:22]FM_GetShiftState done [16:24:22]req_shift_opened done [16:24:22]requested_item shift.open_date is exist - process it [16:24:22]req_shift_open_date [16:24:22]req_shift_open_date done [16:24:22]produce_requested_data done [16:24:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49662,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [16:24:22]process_action_free close_receipt [16:24:22]json_value_free [16:24:22]json_value_free done [16:24:22]process_json_proto returns [16:24:22]Send response to host [16:24:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49662,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [16:24:22]free response buf [16:24:22]execute_script done [16:24:22]execute_script returns [16:24:22]free content buf [16:24:22]Sock 7.Close socket [16:24:22]Sock 7.Thread stoped [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [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: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: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: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:24]accept exits with 9 [16:27:24]New connection [16:27:24]New thread 3066801508 created [16:27:24]Thread 3066944868 joined [16:27:24]Waiting for new connection... [16:27:24] Sock 9.Parse request [16:27:24]Sock 9.Check first char [16:27:24]Sock 9.First char is OK [16:27:24]request: POST /json_proto HTTP/1.0 [16:27:24]Method: POST [16:27:24]URL: /json_proto [16:27:24]Method is POST - this is cgi request [16:27:24]url: /json_proto [16:27:24]query_string will be loaded in cgi processing [16:27:24]execute_cgi json_proto POST (null) [16:27:24]execute_cgi path=json_proto method=POST [16:27:24]POST find Content-Length [16:27:24]Host: 172.17.46.196:8080 [16:27:24]Content-Length: 875 [16:27:24]Content-Type: application/json [16:27:24] [16:27:24]POST finish read [16:27:24]Found Content-Length = 875 [16:27:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189847", "tax_sys" : 0, "items" : [ { "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:24]execute_script... [16:27:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189847", "tax_sys" : 0, "items" : [ { "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:24]POST & json_proto [16:27:24]process_json_proto [16:27:24]json parsed OK: [16:27:24]protocol is kg_v1.0 [16:27:24]action value=close_receipt [16:27:24]process_action close_receipt [16:27:24]cmd_close_receipt [16:27:24]MH_GetDate [16:27:24]Write to MH i2c: F0 00 00 A8 26 BD [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: F0 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: F0 09 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: F0 09 00 A8 26 00 71 CF C0 66 07 E8 5D 66 DE [16:27:24]GetLastDocTimeStamp 1723911861 [16:27:24]current date 1723912049 [16:27:24]FM_GetShiftState [16:27:24]SAM_PROTO_GetShiftState [16:27:24]wFMCommunicate request_size=4 [16:27:24]MH_SAM_APDU [16:27:24]CAPDU: 80 13 01 00 [16:27:24]Write to MH i2c: E2 08 00 A9 26 80 13 01 00 00 00 00 00 4C [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:24]Read from MH i2c: E2 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 0E 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 0E 00 A9 26 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 91 [16:27:24]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:27:24]wFMCommunicate OK [16:27:24]SAM_PROTO_GetShiftState done [16:27:24]FM_GetShiftState done [16:27:24]opened in 1723853354 [16:27:24]opened+sec_in_day 1723939754 [16:27:24]quantity*price = 5000 [16:27:24]sum+1 = 5001 [16:27:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 100 17.08.2024 16:27 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49663 ФПД: 178512154750417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T162729&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49663&fm=178512154750417&tin=02508201610067®Number=0000000000092546&sum=17000 0 [16:27:26]StoreToDocumentArchive [16:27:26]shift 465 fd 49663 [16:27:26]save to /storage/0465/doc_00049663 [16:27:26]save last doc name /storage/0465/doc_00049663 to /storage/kkm_last_doc_name [16:27:26]save OK [16:27:26]Clear old archive folders... [16:27:26]ProcessDocumentItem done err = 0, tmpTLVsize=368 [16:27:26]tlvbuf is 018EE120 [16:27:26]SAM_PROTO_ClearQueue [16:27:26]wFMCommunicate request_size=4 [16:27:26]MH_SAM_APDU [16:27:26]CAPDU: 80 09 00 00 [16:27:26]Write to MH i2c: E2 08 00 B6 26 80 09 00 00 00 00 00 00 4E [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:26]Read from MH i2c: E2 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: E2 03 00 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: E2 03 00 B6 26 00 90 00 50 [16:27:26]RAPDU: 90 00 [16:27:26]wFMCommunicate OK [16:27:26]SAM_PROTO_ClearQueue done [16:27:26]KKMCreateOFDPacket [16:27:26]OFDProtocolAddRootSTLVToBuf [16:27:26]FM_MakeSignedData [16:27:26]FM_MakeSignedData [16:27:26]SAM_PROTO_SignData [16:27:26]wFMCommunicate request_size=4 [16:27:26]MH_SAM_APDU [16:27:26]CAPDU: 80 0D 01 02 [16:27:26]Write to MH i2c: E2 08 00 B7 26 80 0D 01 02 00 00 00 00 56 [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:26]Read from MH i2c: E2 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: E2 03 00 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: E2 03 00 B7 26 00 90 00 51 [16:27:26]RAPDU: 90 00 [16:27:26]wFMCommunicate OK [16:27:26]wFMCommunicate request_size=255 [16:27:26]MH_SAM_APDU [16:27:26]CAPDU: 80 0D 02 02 FA 03 00 70 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 [16:27:26]Write to MH i2c: E2 02 01 B8 26 80 0D 02 02 FA 00 03 00 70 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 00 00 28 [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:26]Read from MH i2c: E2 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: E2 03 00 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: E2 03 00 B8 26 00 90 00 52 [16:27:26]RAPDU: 90 00 [16:27:26]wFMCommunicate OK [16:27:26]wFMCommunicate request_size=127 [16:27:26]MH_SAM_APDU [16:27:26]CAPDU: 80 0D 02 02 7A 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 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 71 CF C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FF C1 00 00 35 04 06 00 A2 5B 19 92 6D D1 [16:27:26]Write to MH i2c: E2 82 00 B9 26 80 0D 02 02 7A 00 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 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 71 CF C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FF C1 00 00 35 04 06 00 A2 5B 19 92 6D D1 00 00 89 [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:26]Read from MH i2c: E2 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: E2 03 00 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: E2 03 00 B9 26 00 90 00 53 [16:27:26]RAPDU: 90 00 [16:27:26]wFMCommunicate OK [16:27:26]wFMCommunicate request_size=4 [16:27:26]MH_SAM_APDU [16:27:26]CAPDU: 80 0D 03 02 [16:27:26]Write to MH i2c: E2 08 00 BA 26 80 0D 03 02 00 00 00 00 5B [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:26]Read from MH i2c: E2 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: E2 0B 00 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: E2 0B 00 BA 26 00 57 2C 19 A7 D3 EF 69 0A 90 00 D4 [16:27:26]RAPDU: 57 2C 19 A7 D3 EF 69 0A 90 00 [16:27:26]wFMCommunicate OK [16:27:26]SAM_PROTO_SignData done [16:27:26]FM_MakeSignedData done [16:27:26]CreateOFDProtocolMessage [16:27:26]wFMCommunicate request_size=4 [16:27:26]MH_SAM_APDU [16:27:26]CAPDU: 80 11 00 00 [16:27:26]Write to MH i2c: E2 08 00 BB 26 80 11 00 00 00 00 00 00 5B [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:26]Read from MH i2c: E2 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: E2 17 00 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: E2 17 00 BB 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A6 [16:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:27:26]wFMCommunicate OK [16:27:26]CreateOFDProtocolMessage done [16:27:26]OFDSenderStorePacket 49663 [16:27:26]StoreOFDPacket docnum=49663 [16:27:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 84 01 00 00 18 D2 7C 01 94 DB 5A 03 01 00 03 00 70 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 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 71 CF C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FF C1 00 00 35 04 06 00 A2 5B 19 92 6D D1 57 2C 19 A7 D3 EF 69 0A [16:27:26]CheckFolder [16:27:26]dirname=/storage/ofd_packets [16:27:26]CheckFolder done [16:27:26]ProducePacketName [16:27:26]name=ofd_packets/00049663 [16:27:26]NVStorageSaveData ofd_packets/00049663 [16:27:26]File name is /storage/ofd_packets/00049663 [16:27:26]Write 418 bytes [16:27:26]NVStorageSaveData done [16:27:26]OFDSenderStorePacket done [16:27:26]KKMCreateOFDPacket done [16:27:26]NVStorageSaveData kkm_last_timestamp [16:27:26]File name is /storage/kkm_last_timestamp [16:27:26]Write 4 bytes [16:27:26]NVStorageSaveData done [16:27:26]ExternCall_PrintAddStr [16:27:26]wPrintStart [16:27:26]Write to MH i2c: 01 00 00 BC 26 E2 [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: 01 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: 01 07 00 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: 01 07 00 BC 26 00 00 00 00 00 FF 0F F7 [16:27:26]RasterBufferAndPrint [16:27:26]line Счет N : (3)189847 [16:27:26]line ИНН: 02508201610067 [16:27:26]line Контрольно-Кассовый Чек [16:27:26]line ПРОДАЖА [16:27:26]line Товар: 4700000160181 [16:27:26]line Вода Байтик 1л [16:27:26]line 1.000 * 50.00 [16:27:26]line = 50.00 [16:27:26]line НДС 12% НСП 1% [16:27:26]line > о реализуемом товаре [16:27:26]line Товар: 4700000160204 [16:27:26]line Вода Легенда 1,5л [16:27:27]line 2.000 * 60.00 [16:27:27]line = 120.00 [16:27:27]line НДС 12% НСП 1% [16:27:27]line > о реализуемом товаре [16:27:27]line ИТОГО: 170.00 [16:27:27]line НСП 1% : 1.50 [16:27:27]line НДС 12% : 18.05 [16:27:27]line Наличными: 170.00 [16:27:27]line Безнал.: 0.00 [16:27:27]line Место: АЗС № 95 "Партнер Нефть" [16:27:27]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:27:27]line СНО: Общий режим [16:27:27]line Чек 100 17.08.2024 16:27 [16:27:27]line Смена: 465 ФФД: 1.0 [16:27:27]line ЗНМ: 0300000078 [16:27:27]line РНМ: 0000000000092546 [16:27:27]line Версия ККМ: 001 [16:27:27]line ФМ: 0000000000871800 [16:27:27]line ФД: 49663 [16:27:27]line ФПД: 178512154750417 [16:27:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T162729&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49663&fm=178512154750417&tin=02508201610067®Number=0000000000092546&sum=17000 [16:27:27]line 0 [16:27:27]OFD Sender: Processing packet 49663 [packets to send 21, broken 20] [16:27:27]ProducePacketName [16:27:27]name=ofd_packets/00049663 [16:27:27]OFD Sender: To server: pG, [16:27:27]CommunicateWithHost lk.salyk.kg:30040 [16:27:27]ConnectInit lk.salyk.kg [16:27:27]written 0, free lines is 4095 [16:27:27]Write to MH i2c: 01 00 00 EA 26 10 [16:27:27]Write i2c OK [16:27:27]MH_I2C_Read... [16:27:27]Read from MH i2c: 01 [16:27:27]MH_I2C_Read... [16:27:27]Read from MH i2c: 01 07 00 [16:27:27]MH_I2C_Read... [16:27:27]Read from MH i2c: 01 07 00 EA 26 00 00 00 00 00 87 0C AA [16:27:27]RasterBufferAndPrint [16:27:27]line [16:27:27]line [16:27:27]line [16:27:27]line [16:27:27]line [16:27:27]written 0, free lines is 3212 [16:27:27]MH_Cut [16:27:27]Write to MH i2c: D1 01 00 F1 26 01 E9 [16:27:27]Write i2c OK [16:27:27]MH_I2C_Read... [16:27:27]Read from MH i2c: D1 [16:27:27]MH_I2C_Read... [16:27:27]Read from MH i2c: D1 01 00 [16:27:27]MH_I2C_Read... [16:27:27]Read from MH i2c: D1 01 00 F1 26 00 E8 [16:27:27]Write to MH i2c: 01 00 00 F2 26 18 [16:27:27]Write i2c OK [16:27:27]MH_I2C_Read... [16:27:28]*** Cut start [16:27:28]*** Purtial cut [16:27:28]*** Stage 1: CUTSNS_PIN = 1 [16:27:28]Read from MH i2c: 01 [16:27:28]MH_I2C_Read... [16:27:28]*** Stop cut motor [16:27:28]*** Cut end [16:27:28]Read from MH i2c: 01 07 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: 01 07 00 F2 26 00 00 00 00 00 FF 0F 2D [16:27:28]process_action close_receipt done [16:27:28]requested_data is exist [16:27:28]produce_requested_data [16:27:28]requested_item fm.sn is exist - process it [16:27:28]wFMCommunicate request_size=4 [16:27:28]MH_SAM_APDU [16:27:28]CAPDU: 80 11 00 00 [16:27:28]Write to MH i2c: E2 08 00 F3 26 80 11 00 00 00 00 00 00 93 [16:27:28]Write i2c OK [16:27:28]MH_I2C_Read... [16:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:28]Read from MH i2c: E2 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 17 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 17 00 F3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DE [16:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:27:28]wFMCommunicate OK [16:27:28]requested_item fd.num is exist - process it [16:27:28]SAM_PROTO_GetFieldsCounters [16:27:28]wFMCommunicate request_size=4 [16:27:28]MH_SAM_APDU [16:27:28]CAPDU: 80 13 00 00 [16:27:28]Write to MH i2c: E2 08 00 F4 26 80 13 00 00 00 00 00 00 96 [16:27:28]Write i2c OK [16:27:28]MH_I2C_Read... [16:27:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:28]Read from MH i2c: E2 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 62 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 62 00 F4 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FF C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [16:27: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FF C1 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:28]wFMCommunicate OK [16:27:28]SAM_PROTO_GetFieldsCounters done [16:27:28]requested_item shift.num is exist - process it [16:27:28]requested_item shift.opened is exist - process it [16:27:28]req_shift_opened [16:27:28]FM_GetShiftState [16:27:28]SAM_PROTO_GetShiftState [16:27:28]wFMCommunicate request_size=4 [16:27:28]MH_SAM_APDU [16:27:28]CAPDU: 80 13 01 00 [16:27:28]Write to MH i2c: E2 08 00 F5 26 80 13 01 00 00 00 00 00 98 [16:27:28]Write i2c OK [16:27:28]MH_I2C_Read... [16:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:28]Read from MH i2c: E2 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 0E 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 0E 00 F5 26 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 DD [16:27:28]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:27:28]wFMCommunicate OK [16:27:28]SAM_PROTO_GetShiftState done [16:27:28]FM_GetShiftState done [16:27:28]req_shift_opened done [16:27:28]requested_item shift.open_date is exist - process it [16:27:28]req_shift_open_date [16:27:28]req_shift_open_date done [16:27:28]produce_requested_data done [16:27:28]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49663,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [16:27:28]process_action_free close_receipt [16:27:28]json_value_free [16:27:28]json_value_free done [16:27:28]process_json_proto returns [16:27:28]Send response to host [16:27:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49663,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [16:27:28]free response buf [16:27:28]execute_script done [16:27:28]execute_script returns [16:27:28]free content buf [16:27:28]Sock 9.Close socket [16:27:28]Sock 9.Thread stoped [16:29:37]ConnectInit Can't connect to host [16:29:37]CommunicateWithHost connect error [16:29:37]CommunicateWithHost err = -1 [16:29:37]OFD Sender: Server communicate error [16:29:42]OFD Sender: Processing packet 49663 [packets to send 21, broken 20] [16:29:42]ProducePacketName [16:29:42]name=ofd_packets/00049663 [16:29:42]OFD Sender: To server: pG, [16:29:42]CommunicateWithHost lk.salyk.kg:30040 [16:29:42]ConnectInit lk.salyk.kg [16:29:42]Connected sock=9 [16:29:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 84 01 00 00 18 D2 7C 01 94 DB 5A 03 01 00 03 00 70 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 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 71 CF C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FF C1 00 00 35 04 06 00 A2 5B 19 92 6D D1 57 2C 19 A7 D3 EF 69 0A [16:29:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9D CE 47 00 F5 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FF C1 00 00 F4 03 04 00 34 7B C0 66 B6 04 01 00 00 45 17 E0 EB B7 24 DB F6 [16:29:42]CommunicateWithHost err = 0 [16:29:42]CheckOFDResponse [16:29:42]1017 (14) - 77093643461234 [16:29:42]1041 (16) - 0000000000871800 [16:29:42]1040 (4) - 49663 [16:29:42]1012 (4) - 17.08.2024 10:28 [16:29:42]1206 (1) - 0 [16:29:42]OFD Sender: Remove packet 49663 [16:29:42]ProducePacketName [16:29:42]name=ofd_packets/00049663 [16:29:42]NVStorageDeleteData [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:11]accept exits with 7 [16:35:11]New connection [16:35:11]New thread 3066944868 created [16:35:11]Thread 3066801508 joined [16:35:11]Waiting for new connection... [16:35:11] Sock 7.Parse request [16:35:11]Sock 7.Check first char [16:35:11]Sock 7.First char is OK [16:35:11]request: POST /json_proto HTTP/1.0 [16:35:11]Method: POST [16:35:11]URL: /json_proto [16:35:11]Method is POST - this is cgi request [16:35:11]url: /json_proto [16:35:11]query_string will be loaded in cgi processing [16:35:11]execute_cgi json_proto POST (null) [16:35:11]execute_cgi path=json_proto method=POST [16:35:11]POST find Content-Length [16:35:11]Host: 172.17.46.196:8080 [16:35:11]Content-Length: 756 [16:35:11]Content-Type: application/json [16:35:11] [16:35:11]POST finish read [16:35:11]Found Content-Length = 756 [16:35:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u000A30058194", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:11]execute_script... [16:35: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)11326343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u000A30058194", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:11]POST & json_proto [16:35:11]process_json_proto [16:35:11]json parsed OK: [16:35:11]protocol is kg_v1.0 [16:35:11]action value=close_receipt [16:35:11]process_action close_receipt [16:35:11]cmd_close_receipt [16:35:11]MH_GetDate [16:35:11]Write to MH i2c: F0 00 00 F6 26 0B [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: F0 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: F0 09 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: F0 09 00 F6 26 00 44 D1 C0 66 07 E8 5D 66 01 [16:35:11]GetLastDocTimeStamp 1723912049 [16:35:11]current date 1723912516 [16:35:11]FM_GetShiftState [16:35:11]SAM_PROTO_GetShiftState [16:35:11]wFMCommunicate request_size=4 [16:35:11]MH_SAM_APDU [16:35:11]CAPDU: 80 13 01 00 [16:35:11]Write to MH i2c: E2 08 00 F7 26 80 13 01 00 00 00 00 00 9A [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 F7 26 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 DF [16:35:11]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:35:11]wFMCommunicate OK [16:35:11]SAM_PROTO_GetShiftState done [16:35:11]FM_GetShiftState done [16:35:11]opened in 1723853354 [16:35:11]opened+sec_in_day 1723939754 [16:35:11]quantity*price = 0 [16:35:11]sum+1 = 1 [16:35:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 101 17.08.2024 16:35 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30058194 ФМ: 0000000000871800 ФД: 49664 ФПД: 188606027967155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T163516&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49664&fm=188606027967155&tin=02508201610067®Number=0000000000092546&sum=0 [16:35:13]StoreToDocumentArchive [16:35:13]shift 465 fd 49664 [16:35:13]save to /storage/0465/doc_00049664 [16:35:13]save last doc name /storage/0465/doc_00049664 to /storage/kkm_last_doc_name [16:35:13]save OK [16:35:13]Clear old archive folders... [16:35:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:13]tlvbuf is 01871350 [16:35:13]SAM_PROTO_ClearQueue [16:35:13]wFMCommunicate request_size=4 [16:35:13]MH_SAM_APDU [16:35:13]CAPDU: 80 09 00 00 [16:35:13]Write to MH i2c: E2 08 00 04 27 80 09 00 00 00 00 00 00 9D [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:13]Read from MH i2c: E2 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 03 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 03 00 04 27 00 90 00 9F [16:35:13]RAPDU: 90 00 [16:35:13]wFMCommunicate OK [16:35:13]SAM_PROTO_ClearQueue done [16:35:13]KKMCreateOFDPacket [16:35:13]OFDProtocolAddRootSTLVToBuf [16:35:13]FM_MakeSignedData [16:35:13]FM_MakeSignedData [16:35:13]SAM_PROTO_SignData [16:35:13]wFMCommunicate request_size=4 [16:35:13]MH_SAM_APDU [16:35:13]CAPDU: 80 0D 01 02 [16:35:13]Write to MH i2c: E2 08 00 05 27 80 0D 01 02 00 00 00 00 A5 [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:13]Read from MH i2c: E2 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 03 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 03 00 05 27 00 90 00 A0 [16:35:13]RAPDU: 90 00 [16:35:13]wFMCommunicate OK [16:35:13]wFMCommunicate request_size=255 [16:35:13]MH_SAM_APDU [16:35:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 65 00 00 00 F4 03 04 00 44 D1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C2 00 00 35 04 06 00 AB [16:35:13]Write to MH i2c: E2 02 01 06 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 65 00 00 00 F4 03 04 00 44 D1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C2 00 00 35 04 06 00 AB 00 00 BD [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:13]Read from MH i2c: E2 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 03 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 03 00 06 27 00 90 00 A1 [16:35:13]RAPDU: 90 00 [16:35:13]wFMCommunicate OK [16:35:13]wFMCommunicate request_size=10 [16:35:13]MH_SAM_APDU [16:35:13]CAPDU: 80 0D 02 02 05 89 43 4C AA B3 [16:35:13]Write to MH i2c: E2 0D 00 07 27 80 0D 02 02 05 00 89 43 4C AA B3 00 00 27 [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:13]Read from MH i2c: E2 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 03 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 03 00 07 27 00 90 00 A2 [16:35:13]RAPDU: 90 00 [16:35:13]wFMCommunicate OK [16:35:13]wFMCommunicate request_size=4 [16:35:13]MH_SAM_APDU [16:35:13]CAPDU: 80 0D 03 02 [16:35:13]Write to MH i2c: E2 08 00 08 27 80 0D 03 02 00 00 00 00 AA [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:13]Read from MH i2c: E2 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 0B 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 0B 00 08 27 00 C4 3A 68 E6 B5 0F 8C 4E 90 00 95 [16:35:13]RAPDU: C4 3A 68 E6 B5 0F 8C 4E 90 00 [16:35:13]wFMCommunicate OK [16:35:13]SAM_PROTO_SignData done [16:35:13]FM_MakeSignedData done [16:35:13]CreateOFDProtocolMessage [16:35:13]wFMCommunicate request_size=4 [16:35:13]MH_SAM_APDU [16:35:13]CAPDU: 80 11 00 00 [16:35:13]Write to MH i2c: E2 08 00 09 27 80 11 00 00 00 00 00 00 AA [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:13]Read from MH i2c: E2 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 17 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: E2 17 00 09 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F5 [16:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:35:13]wFMCommunicate OK [16:35:13]CreateOFDProtocolMessage done [16:35:13]OFDSenderStorePacket 49664 [16:35:13]StoreOFDPacket docnum=49664 [16:35:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 56 E4 07 01 70 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 65 00 00 00 F4 03 04 00 44 D1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C2 00 00 35 04 06 00 AB 89 43 4C AA B3 C4 3A 68 E6 B5 0F 8C 4E [16:35:13]CheckFolder [16:35:13]dirname=/storage/ofd_packets [16:35:13]CheckFolder done [16:35:13]ProducePacketName [16:35:13]name=ofd_packets/00049664 [16:35:13]NVStorageSaveData ofd_packets/00049664 [16:35:13]File name is /storage/ofd_packets/00049664 [16:35:13]Write 301 bytes [16:35:13]NVStorageSaveData done [16:35:13]OFDSenderStorePacket done [16:35:13]KKMCreateOFDPacket done [16:35:13]NVStorageSaveData kkm_last_timestamp [16:35:13]File name is /storage/kkm_last_timestamp [16:35:13]Write 4 bytes [16:35:13]NVStorageSaveData done [16:35:13]ExternCall_PrintAddStr [16:35:13]wPrintStart [16:35:13]Write to MH i2c: 01 00 00 0A 27 31 [16:35:13]Write i2c OK [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: 01 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: 01 07 00 [16:35:13]MH_I2C_Read... [16:35:13]Read from MH i2c: 01 07 00 0A 27 00 00 00 00 00 FF 0F 46 [16:35:13]RasterBufferAndPrint [16:35:13]line Счет N : (1)11326343 [16:35:13]line ИНН: 02508201610067 [16:35:13]line Контрольно-Кассовый Чек [16:35:13]line ПРОДАЖА [16:35:13]line ТРК (МРК, ГНК) : 42 [16:35:13]line Товар: 2710124130 [16:35:13]line Аи-92-К-4 [16:35:13]line 10.000 * 0.00 [16:35:13]line = 0.00 [16:35:13]line НДС 12% НСП 1% [16:35:13]line > о реализуемом товаре [16:35:13]line ИТОГО: 0.00 [16:35:13]line НСП 1% : 0.00 [16:35:13]line НДС 12% : 0.00 [16:35:13]line Наличными: 0.00 [16:35:13]line Безнал.: 0.00 [16:35:13]line Место: АЗС № 95 "Партнер Нефть" [16:35:13]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:35:13]line СНО: Общий режим [16:35:13]line Чек 101 17.08.2024 16:35 [16:35:13]line Смена: 465 ФФД: 1.0 [16:35:13]line ЗНМ: 0300000078 [16:35:13]line РНМ: 0000000000092546 [16:35:13]line Версия ККМ: 001 [16:35:13]line Талоны: ТК ГПНА Online [16:35:13]line 30058194 [16:35:13]line ФМ: 0000000000871800 [16:35:13]line ФД: 49664 [16:35:13]line ФПД: 188606027967155 [16:35:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T163516&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49664&fm=188606027967155&tin=02508201610067®Number=0000000000092546&sum=0 [16:35:13]written 0, free lines is 4095 [16:35:13]OFD Sender: Processing packet 49664 [packets to send 21, broken 20] [16:35:13]ProducePacketName [16:35:13]name=ofd_packets/00049664 [16:35:13]OFD Sender: To server: pG, [16:35:13]CommunicateWithHost lk.salyk.kg:30040 [16:35:13]ConnectInit lk.salyk.kg [16:35:14]Connected sock=10 [16:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 56 E4 07 01 70 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 65 00 00 00 F4 03 04 00 44 D1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C2 00 00 35 04 06 00 AB 89 43 4C AA B3 C4 3A 68 E6 B5 0F 8C 4E [16:35:14]Write to MH i2c: 01 00 00 34 27 5B [16:35:14]Write i2c OK [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: 01 [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: 01 07 00 [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: 01 07 00 34 27 00 00 00 00 00 D3 0C 41 [16:35:14]RasterBufferAndPrint [16:35:14]line [16:35:14]line [16:35:14]line [16:35:14]line [16:35:14]line [16:35:14]written 0, free lines is 3289 [16:35:14]MH_Cut [16:35:14]Write to MH i2c: D1 01 00 3B 27 01 34 [16:35:14]Write i2c OK [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: D1 [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: D1 01 00 [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: D1 01 00 3B 27 00 33 [16:35:14]Write to MH i2c: 01 00 00 3C 27 63 [16:35:14]Write i2c OK [16:35:14]MH_I2C_Read... [16:35:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 DE 35 47 00 7F 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C2 00 00 F4 03 04 00 80 7C C0 66 B6 04 01 00 00 86 17 21 93 B2 84 27 FC [16:35:14]CommunicateWithHost err = 0 [16:35:14]CheckOFDResponse [16:35:14]1017 (14) - 77093643461234 [16:35:14]1041 (16) - 0000000000871800 [16:35:14]1040 (4) - 49664 [16:35:14]1012 (4) - 17.08.2024 10:33 [16:35:14]1206 (1) - 0 [16:35:14]OFD Sender: Remove packet 49664 [16:35:14]ProducePacketName [16:35:14]name=ofd_packets/00049664 [16:35:14]NVStorageDeleteData [16:35:14]OFD Sender: No OFD packet to send [16:35:15]*** Cut start [16:35:15]*** Purtial cut [16:35:15]*** CUTSNS_PIN = 0 [16:35:15]*** Stage 1: CUTSNS_PIN = 1 [16:35:17]Read from MH i2c: 01 [16:35:17]MH_I2C_Read... [16:35:17]*** Stop cut motor [16:35:17]*** Cut end [16:35:17]Read from MH i2c: 01 07 00 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: 01 07 00 3C 27 00 00 00 00 00 FF 0F 78 [16:35:17]process_action close_receipt done [16:35:17]requested_data is exist [16:35:17]produce_requested_data [16:35:17]requested_item fm.sn is exist - process it [16:35:17]wFMCommunicate request_size=4 [16:35:17]MH_SAM_APDU [16:35:17]CAPDU: 80 11 00 00 [16:35:17]Write to MH i2c: E2 08 00 3D 27 80 11 00 00 00 00 00 00 DE [16:35:17]Write i2c OK [16:35:17]MH_I2C_Read... [16:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:17]Read from MH i2c: E2 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 17 00 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 17 00 3D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 29 [16:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:35:17]wFMCommunicate OK [16:35:17]requested_item fd.num is exist - process it [16:35:17]SAM_PROTO_GetFieldsCounters [16:35:17]wFMCommunicate request_size=4 [16:35:17]MH_SAM_APDU [16:35:17]CAPDU: 80 13 00 00 [16:35:17]Write to MH i2c: E2 08 00 3E 27 80 13 00 00 00 00 00 00 E1 [16:35:17]Write i2c OK [16:35:17]MH_I2C_Read... [16:35:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:17]Read from MH i2c: E2 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 62 00 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 62 00 3E 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 00 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [16:35: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 00 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:17]wFMCommunicate OK [16:35:17]SAM_PROTO_GetFieldsCounters done [16:35:17]requested_item shift.num is exist - process it [16:35:17]requested_item shift.opened is exist - process it [16:35:17]req_shift_opened [16:35:17]FM_GetShiftState [16:35:17]SAM_PROTO_GetShiftState [16:35:17]wFMCommunicate request_size=4 [16:35:17]MH_SAM_APDU [16:35:17]CAPDU: 80 13 01 00 [16:35:17]Write to MH i2c: E2 08 00 3F 27 80 13 01 00 00 00 00 00 E3 [16:35:17]Write i2c OK [16:35:17]MH_I2C_Read... [16:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:17]Read from MH i2c: E2 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 0E 00 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: E2 0E 00 3F 27 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 28 [16:35:17]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:35:17]wFMCommunicate OK [16:35:17]SAM_PROTO_GetShiftState done [16:35:17]FM_GetShiftState done [16:35:17]req_shift_opened done [16:35:17]requested_item shift.open_date is exist - process it [16:35:17]req_shift_open_date [16:35:17]req_shift_open_date done [16:35:17]produce_requested_data done [16:35:17]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49664,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [16:35:17]process_action_free close_receipt [16:35:17]json_value_free [16:35:17]json_value_free done [16:35:17]process_json_proto returns [16:35:17]Send response to host [16:35:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49664,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [16:35:17]free response buf [16:35:17]execute_script done [16:35:17]execute_script returns [16:35:17]free content buf [16:35:17]Sock 7.Close socket [16:35:17]Sock 7.Thread stoped [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [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: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: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:37:56]accept exits with 9 [16:37:56]New connection [16:37:56]New thread 3066801508 created [16:37:56]Thread 3066944868 joined [16:37:56]Waiting for new connection... [16:37:56] Sock 9.Parse request [16:37:56]Sock 9.Check first char [16:37:56]Sock 9.First char is OK [16:37:56]request: POST /json_proto HTTP/1.0 [16:37:56]Method: POST [16:37:56]URL: /json_proto [16:37:56]Method is POST - this is cgi request [16:37:56]url: /json_proto [16:37:56]query_string will be loaded in cgi processing [16:37:56]execute_cgi json_proto POST (null) [16:37:56]execute_cgi path=json_proto method=POST [16:37:56]POST find Content-Length [16:37:56]Host: 172.17.46.196:8080 [16:37:56]Content-Length: 654 [16:37:56]Content-Type: application/json [16:37:56] [16:37:56]POST finish read [16:37:56]Found Content-Length = 654 [16:37:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189848", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:56]execute_script... [16:37:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189848", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:56]POST & json_proto [16:37:56]process_json_proto [16:37:56]json parsed OK: [16:37:56]protocol is kg_v1.0 [16:37:56]action value=close_receipt [16:37:56]process_action close_receipt [16:37:56]cmd_close_receipt [16:37:56]MH_GetDate [16:37:56]Write to MH i2c: F0 00 00 40 27 56 [16:37:56]Write i2c OK [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: F0 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: F0 09 00 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: F0 09 00 40 27 00 E9 D1 C0 66 07 E8 5D 66 F1 [16:37:56]GetLastDocTimeStamp 1723912516 [16:37:56]current date 1723912681 [16:37:56]FM_GetShiftState [16:37:56]SAM_PROTO_GetShiftState [16:37:56]wFMCommunicate request_size=4 [16:37:56]MH_SAM_APDU [16:37:56]CAPDU: 80 13 01 00 [16:37:56]Write to MH i2c: E2 08 00 41 27 80 13 01 00 00 00 00 00 E5 [16:37:56]Write i2c OK [16:37:56]MH_I2C_Read... [16:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:56]Read from MH i2c: E2 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: E2 0E 00 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: E2 0E 00 41 27 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 2A [16:37:56]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:37:56]wFMCommunicate OK [16:37:56]SAM_PROTO_GetShiftState done [16:37:56]FM_GetShiftState done [16:37:56]opened in 1723853354 [16:37:56]opened+sec_in_day 1723939754 [16:37:56]quantity*price = 9500 [16:37:56]sum+1 = 9501 [16:37:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 102 17.08.2024 16:38 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49665 ФПД: 52605436412685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T163801&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49665&fm=52605436412685&tin=02508201610067®Number=0000000000092546&sum=9500 0 [16:37:57]StoreToDocumentArchive [16:37:57]shift 465 fd 49665 [16:37:57]save to /storage/0465/doc_00049665 [16:37:57]save last doc name /storage/0465/doc_00049665 to /storage/kkm_last_doc_name [16:37:57]save OK [16:37:57]Clear old archive folders... [16:37:57]ProcessDocumentItem done err = 0, tmpTLVsize=293 [16:37:57]tlvbuf is 0180F640 [16:37:57]SAM_PROTO_ClearQueue [16:37:57]wFMCommunicate request_size=4 [16:37:57]MH_SAM_APDU [16:37:57]CAPDU: 80 09 00 00 [16:37:57]Write to MH i2c: E2 08 00 4E 27 80 09 00 00 00 00 00 00 E7 [16:37:57]Write i2c OK [16:37:57]MH_I2C_Read... [16:37:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:57]Read from MH i2c: E2 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: E2 03 00 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: E2 03 00 4E 27 00 90 00 E9 [16:37:57]RAPDU: 90 00 [16:37:57]wFMCommunicate OK [16:37:57]SAM_PROTO_ClearQueue done [16:37:57]KKMCreateOFDPacket [16:37:57]OFDProtocolAddRootSTLVToBuf [16:37:57]FM_MakeSignedData [16:37:57]FM_MakeSignedData [16:37:57]SAM_PROTO_SignData [16:37:57]wFMCommunicate request_size=4 [16:37:57]MH_SAM_APDU [16:37:57]CAPDU: 80 0D 01 02 [16:37:57]Write to MH i2c: E2 08 00 4F 27 80 0D 01 02 00 00 00 00 EF [16:37:57]Write i2c OK [16:37:57]MH_I2C_Read... [16:37:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:57]Read from MH i2c: E2 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: E2 03 00 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: E2 03 00 4F 27 00 90 00 EA [16:37:57]RAPDU: 90 00 [16:37:57]wFMCommunicate OK [16:37:57]wFMCommunicate request_size=255 [16:37:57]MH_SAM_APDU [16:37:57]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E9 D1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [16:37:57]Write to MH i2c: E2 02 01 50 27 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E9 D1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 A7 [16:37:57]Write i2c OK [16:37:57]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 50 27 00 90 00 EB [16:37:58]RAPDU: 90 00 [16:37:58]wFMCommunicate OK [16:37:58]wFMCommunicate request_size=52 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C2 00 00 35 04 06 00 2F D8 28 59 C3 0D [16:37:58]Write to MH i2c: E2 37 00 51 27 80 0D 02 02 2F 00 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C2 00 00 35 04 06 00 2F D8 28 59 C3 0D 00 00 C9 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 03 00 51 27 00 90 00 EC [16:37:58]RAPDU: 90 00 [16:37:58]wFMCommunicate OK [16:37:58]wFMCommunicate request_size=4 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 0D 03 02 [16:37:58]Write to MH i2c: E2 08 00 52 27 80 0D 03 02 00 00 00 00 F4 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 0B 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 0B 00 52 27 00 CA 21 77 71 23 FA E1 AF 90 00 75 [16:37:58]RAPDU: CA 21 77 71 23 FA E1 AF 90 00 [16:37:58]wFMCommunicate OK [16:37:58]SAM_PROTO_SignData done [16:37:58]FM_MakeSignedData done [16:37:58]CreateOFDProtocolMessage [16:37:58]wFMCommunicate request_size=4 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 11 00 00 [16:37:58]Write to MH i2c: E2 08 00 53 27 80 11 00 00 00 00 00 00 F4 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 17 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 17 00 53 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3F [16:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:37:58]wFMCommunicate OK [16:37:58]CreateOFDProtocolMessage done [16:37:58]OFDSenderStorePacket 49665 [16:37:58]StoreOFDPacket docnum=49665 [16:37:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 31 58 31 01 E7 C9 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E9 D1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C2 00 00 35 04 06 00 2F D8 28 59 C3 0D CA 21 77 71 23 FA E1 AF [16:37:58]CheckFolder [16:37:58]dirname=/storage/ofd_packets [16:37:58]CheckFolder done [16:37:58]ProducePacketName [16:37:58]name=ofd_packets/00049665 [16:37:58]NVStorageSaveData ofd_packets/00049665 [16:37:58]File name is /storage/ofd_packets/00049665 [16:37:58]Write 343 bytes [16:37:58]NVStorageSaveData done [16:37:58]OFDSenderStorePacket done [16:37:58]KKMCreateOFDPacket done [16:37:58]NVStorageSaveData kkm_last_timestamp [16:37:58]File name is /storage/kkm_last_timestamp [16:37:58]Write 4 bytes [16:37:58]NVStorageSaveData done [16:37:58]ExternCall_PrintAddStr [16:37:58]wPrintStart [16:37:58]Write to MH i2c: 01 00 00 54 27 7B [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: 01 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: 01 07 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: 01 07 00 54 27 00 00 00 00 00 FF 0F 90 [16:37:58]RasterBufferAndPrint [16:37:58]line Счет N : (3)189848 [16:37:58]line ИНН: 02508201610067 [16:37:58]line Контрольно-Кассовый Чек [16:37:58]line ПРОДАЖА [16:37:58]line Товар: 4700000480050 [16:37:58]line Напиток Nitro Energy эн green ж/б 0,45л [16:37:58]line 1.000 * 95.00 [16:37:58]line = 95.00 [16:37:58]line НДС 12% НСП 1% [16:37:58]line > о реализуемом товаре [16:37:58]line ИТОГО: 95.00 [16:37:58]line НСП 1% : 0.84 [16:37:58]line НДС 12% : 10.09 [16:37:58]line Наличными: 95.00 [16:37:58]line Безнал.: 0.00 [16:37:58]line Место: АЗС № 95 "Партнер Нефть" [16:37:58]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:37:58]line СНО: Общий режим [16:37:58]line Чек 102 17.08.2024 16:38 [16:37:58]line Смена: 465 ФФД: 1.0 [16:37:58]line ЗНМ: 0300000078 [16:37:58]line РНМ: 0000000000092546 [16:37:58]line Версия ККМ: 001 [16:37:58]line ФМ: 0000000000871800 [16:37:58]line ФД: 49665 [16:37:58]line ФПД: 52605436412685 [16:37:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T163801&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49665&fm=52605436412685&tin=02508201610067®Number=0000000000092546&sum=9500 [16:37:58]line 0 [16:37:58]OFD Sender: Processing packet 49665 [packets to send 21, broken 20] [16:37:58]ProducePacketName [16:37:58]name=ofd_packets/00049665 [16:37:58]OFD Sender: To server: pG, [16:37:58]CommunicateWithHost lk.salyk.kg:30040 [16:37:58]ConnectInit lk.salyk.kg [16:37:58]written 0, free lines is 4095 [16:37:58]Connected sock=10 [16:37:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 31 58 31 01 E7 C9 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E9 D1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C2 00 00 35 04 06 00 2F D8 28 59 C3 0D CA 21 77 71 23 FA E1 AF [16:37:59]Write to MH i2c: 01 00 00 7D 27 A4 [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: 01 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: 01 07 00 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: 01 07 00 7D 27 00 00 00 00 00 CF 0C 86 [16:37:59]RasterBufferAndPrint [16:37:59]line [16:37:59]line [16:37:59]line [16:37:59]line [16:37:59]line [16:37:59]written 0, free lines is 3285 [16:37:59]MH_Cut [16:37:59]Write to MH i2c: D1 01 00 84 27 01 7D [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: D1 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: D1 01 00 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: D1 01 00 84 27 00 7C [16:37:59]Write to MH i2c: 01 00 00 85 27 AC [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CF A3 47 00 24 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C2 00 00 F4 03 04 00 24 7D C0 66 B6 04 01 00 00 FD A3 9C E5 FB 7D 8A 85 [16:37:59]CommunicateWithHost err = 0 [16:37:59]CheckOFDResponse [16:37:59]1017 (14) - 77093643461234 [16:37:59]1041 (16) - 0000000000871800 [16:37:59]1040 (4) - 49665 [16:37:59]1012 (4) - 17.08.2024 10:36 [16:37:59]1206 (1) - 0 [16:37:59]OFD Sender: Remove packet 49665 [16:37:59]ProducePacketName [16:37:59]name=ofd_packets/00049665 [16:37:59]NVStorageDeleteData [16:37:59]OFD Sender: No OFD packet to send [16:37:59]*** Cut start [16:37:59]*** Purtial cut [16:37:59]*** Stage 1: CUTSNS_PIN = 1 [16:38:00]Read from MH i2c: 01 [16:38:00]MH_I2C_Read... [16:38:00]*** Stop cut motor [16:38:00]*** Cut end [16:38:00]Read from MH i2c: 01 07 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: 01 07 00 85 27 00 00 00 00 00 FF 0F C1 [16:38:00]process_action close_receipt done [16:38:00]requested_data is exist [16:38:00]produce_requested_data [16:38:00]requested_item fm.sn is exist - process it [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 11 00 00 [16:38:00]Write to MH i2c: E2 08 00 86 27 80 11 00 00 00 00 00 00 27 [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 17 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 17 00 86 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 72 [16:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:38:00]wFMCommunicate OK [16:38:00]requested_item fd.num is exist - process it [16:38:00]SAM_PROTO_GetFieldsCounters [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 13 00 00 [16:38:00]Write to MH i2c: E2 08 00 87 27 80 13 00 00 00 00 00 00 2A [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 62 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 62 00 87 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 01 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [16:38: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 01 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:00]wFMCommunicate OK [16:38:00]SAM_PROTO_GetFieldsCounters done [16:38:00]requested_item shift.num is exist - process it [16:38:00]requested_item shift.opened is exist - process it [16:38:00]req_shift_opened [16:38:00]FM_GetShiftState [16:38:00]SAM_PROTO_GetShiftState [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 13 01 00 [16:38:00]Write to MH i2c: E2 08 00 88 27 80 13 01 00 00 00 00 00 2C [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 0E 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 0E 00 88 27 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 71 [16:38:00]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:38:00]wFMCommunicate OK [16:38:00]SAM_PROTO_GetShiftState done [16:38:00]FM_GetShiftState done [16:38:00]req_shift_opened done [16:38:00]requested_item shift.open_date is exist - process it [16:38:00]req_shift_open_date [16:38:00]req_shift_open_date done [16:38:00]produce_requested_data done [16:38:00]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49665,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [16:38:00]process_action_free close_receipt [16:38:00]json_value_free [16:38:00]json_value_free done [16:38:00]process_json_proto returns [16:38:00]Send response to host [16:38:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49665,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [16:38:00]free response buf [16:38:00]execute_script done [16:38:00]execute_script returns [16:38:00]free content buf [16:38:00]Sock 9.Close socket [16:38:00]Sock 9.Thread stoped [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:33]accept exits with 7 [16:41:33]New connection [16:41:33]New thread 3066944868 created [16:41:33]Thread 3066801508 joined [16:41:33]Waiting for new connection... [16:41:33] Sock 7.Parse request [16:41:33]Sock 7.Check first char [16:41:33]Sock 7.First char is OK [16:41:33]request: POST /json_proto HTTP/1.0 [16:41:33]Method: POST [16:41:33]URL: /json_proto [16:41:33]Method is POST - this is cgi request [16:41:33]url: /json_proto [16:41:33]query_string will be loaded in cgi processing [16:41:33]execute_cgi json_proto POST (null) [16:41:33]execute_cgi path=json_proto method=POST [16:41:33]POST find Content-Length [16:41:33]Host: 172.17.46.196:8080 [16:41:33]Content-Length: 838 [16:41:33]Content-Type: application/json [16:41:33] [16:41:33]POST finish read [16:41:33]Found Content-Length = 838 [16:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189849", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:33]execute_script... [16:41:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189849", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:33]POST & json_proto [16:41:33]process_json_proto [16:41:33]json parsed OK: [16:41:33]protocol is kg_v1.0 [16:41:33]action value=close_receipt [16:41:33]process_action close_receipt [16:41:33]cmd_close_receipt [16:41:33]MH_GetDate [16:41:33]Write to MH i2c: F0 00 00 89 27 9F [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: F0 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: F0 09 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: F0 09 00 89 27 00 C2 D2 C0 66 07 E8 5D 66 14 [16:41:33]GetLastDocTimeStamp 1723912681 [16:41:33]current date 1723912898 [16:41:33]FM_GetShiftState [16:41:33]SAM_PROTO_GetShiftState [16:41:33]wFMCommunicate request_size=4 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 13 01 00 [16:41:33]Write to MH i2c: E2 08 00 8A 27 80 13 01 00 00 00 00 00 2E [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 0E 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 0E 00 8A 27 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 73 [16:41:33]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:41:33]wFMCommunicate OK [16:41:33]SAM_PROTO_GetShiftState done [16:41:33]FM_GetShiftState done [16:41:33]opened in 1723853354 [16:41:33]opened+sec_in_day 1723939754 [16:41:33]quantity*price = 13000 [16:41:33]sum+1 = 13001 [16:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 103 17.08.2024 16:41 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49666 ФПД: 226928862205920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T164138&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49666&fm=226928862205920&tin=02508201610067®Number=0000000000092546&sum=13000 0 [16:41:34]StoreToDocumentArchive [16:41:34]shift 465 fd 49666 [16:41:34]save to /storage/0465/doc_00049666 [16:41:34]save last doc name /storage/0465/doc_00049666 to /storage/kkm_last_doc_name [16:41:34]save OK [16:41:34]Clear old archive folders... [16:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=286 [16:41:34]tlvbuf is 018E3EF0 [16:41:34]SAM_PROTO_ClearQueue [16:41:34]wFMCommunicate request_size=4 [16:41:34]MH_SAM_APDU [16:41:34]CAPDU: 80 09 00 00 [16:41:34]Write to MH i2c: E2 08 00 97 27 80 09 00 00 00 00 00 00 30 [16:41:34]Write i2c OK [16:41:34]MH_I2C_Read... [16:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:34]Read from MH i2c: E2 [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: E2 03 00 [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: E2 03 00 97 27 00 90 00 32 [16:41:34]RAPDU: 90 00 [16:41:34]wFMCommunicate OK [16:41:34]SAM_PROTO_ClearQueue done [16:41:34]KKMCreateOFDPacket [16:41:34]OFDProtocolAddRootSTLVToBuf [16:41:34]FM_MakeSignedData [16:41:34]FM_MakeSignedData [16:41:34]SAM_PROTO_SignData [16:41:34]wFMCommunicate request_size=4 [16:41:34]MH_SAM_APDU [16:41:34]CAPDU: 80 0D 01 02 [16:41:34]Write to MH i2c: E2 08 00 98 27 80 0D 01 02 00 00 00 00 38 [16:41:34]Write i2c OK [16:41:34]MH_I2C_Read... [16:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:34]OFD Sender: No OFD packet to send [16:41:34]Read from MH i2c: E2 [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: E2 03 00 [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: E2 03 00 98 27 00 90 00 33 [16:41:34]RAPDU: 90 00 [16:41:34]wFMCommunicate OK [16:41:34]wFMCommunicate request_size=255 [16:41:34]MH_SAM_APDU [16:41:34]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C2 D2 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 [16:41:34]Write to MH i2c: E2 02 01 99 27 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C2 D2 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 00 00 44 [16:41:34]Write i2c OK [16:41:34]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 03 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 03 00 99 27 00 90 00 34 [16:41:35]RAPDU: 90 00 [16:41:35]wFMCommunicate OK [16:41:35]wFMCommunicate request_size=45 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 0D 02 02 28 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C2 00 00 35 04 06 00 CE 63 FE 38 97 E0 [16:41:35]Write to MH i2c: E2 30 00 9A 27 80 0D 02 02 28 00 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C2 00 00 35 04 06 00 CE 63 FE 38 97 E0 00 00 2B [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 03 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 03 00 9A 27 00 90 00 35 [16:41:35]RAPDU: 90 00 [16:41:35]wFMCommunicate OK [16:41:35]wFMCommunicate request_size=4 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 0D 03 02 [16:41:35]Write to MH i2c: E2 08 00 9B 27 80 0D 03 02 00 00 00 00 3D [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 0B 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 0B 00 9B 27 00 BC 94 0D A0 02 CE EE 56 90 00 4F [16:41:35]RAPDU: BC 94 0D A0 02 CE EE 56 90 00 [16:41:35]wFMCommunicate OK [16:41:35]SAM_PROTO_SignData done [16:41:35]FM_MakeSignedData done [16:41:35]CreateOFDProtocolMessage [16:41:35]wFMCommunicate request_size=4 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 11 00 00 [16:41:35]Write to MH i2c: E2 08 00 9C 27 80 11 00 00 00 00 00 00 3D [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 17 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 17 00 9C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 88 [16:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:41:35]wFMCommunicate OK [16:41:35]CreateOFDProtocolMessage done [16:41:35]OFDSenderStorePacket 49666 [16:41:35]StoreOFDPacket docnum=49666 [16:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 0F 4C 2A 01 D6 FC 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C2 D2 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C2 00 00 35 04 06 00 CE 63 FE 38 97 E0 BC 94 0D A0 02 CE EE 56 [16:41:35]CheckFolder [16:41:35]dirname=/storage/ofd_packets [16:41:35]CheckFolder done [16:41:35]ProducePacketName [16:41:35]name=ofd_packets/00049666 [16:41:35]NVStorageSaveData ofd_packets/00049666 [16:41:35]File name is /storage/ofd_packets/00049666 [16:41:35]Write 336 bytes [16:41:35]NVStorageSaveData done [16:41:35]OFDSenderStorePacket done [16:41:35]KKMCreateOFDPacket done [16:41:35]NVStorageSaveData kkm_last_timestamp [16:41:35]File name is /storage/kkm_last_timestamp [16:41:35]Write 4 bytes [16:41:35]NVStorageSaveData done [16:41:35]ExternCall_PrintAddStr [16:41:35]wPrintStart [16:41:35]Write to MH i2c: 01 00 00 9D 27 C4 [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: 01 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: 01 07 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: 01 07 00 9D 27 00 00 00 00 00 FF 0F D9 [16:41:35]RasterBufferAndPrint [16:41:35]line Счет N : (3)189849 [16:41:35]line ИНН: 02508201610067 [16:41:35]line Контрольно-Кассовый Чек [16:41:35]line ПРОДАЖА [16:41:35]line Товар: 4700040114120 [16:41:35]line Султан чай 1л. чер персик [16:41:35]line 2.000 * 65.00 [16:41:35]line = 130.00 [16:41:35]line НДС 12% НСП 1% [16:41:35]line > о реализуемом товаре [16:41:35]line ИТОГО: 130.00 [16:41:35]line НСП 1% : 1.15 [16:41:35]line НДС 12% : 13.80 [16:41:35]line Наличными: 0.00 [16:41:35]line Безнал.: 130.00 [16:41:35]line Место: АЗС № 95 "Партнер Нефть" [16:41:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:41:35]line СНО: Общий режим [16:41:35]line Чек 103 17.08.2024 16:41 [16:41:35]line Смена: 465 ФФД: 1.0 [16:41:35]line ЗНМ: 0300000078 [16:41:35]line РНМ: 0000000000092546 [16:41:35]line Версия ККМ: 001 [16:41:35]line Платежная система: O! деньги [16:41:35]line ФМ: 0000000000871800 [16:41:35]line ФД: 49666 [16:41:35]line ФПД: 226928862205920 [16:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T164138&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49666&fm=226928862205920&tin=02508201610067®Number=0000000000092546&sum=13000 [16:41:35]line 0 [16:41:35]OFD Sender: Processing packet 49666 [packets to send 21, broken 20] [16:41:35]ProducePacketName [16:41:35]name=ofd_packets/00049666 [16:41:35]OFD Sender: To server: pG, [16:41:35]CommunicateWithHost lk.salyk.kg:30040 [16:41:35]ConnectInit lk.salyk.kg [16:41:35]written 0, free lines is 4095 [16:41:36]Write to MH i2c: 01 00 00 C7 27 EE [16:41:36]Write i2c OK [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: 01 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: 01 07 00 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: 01 07 00 C7 27 00 00 00 00 00 CF 0C D0 [16:41:36]RasterBufferAndPrint [16:41:36]line [16:41:36]line [16:41:36]line [16:41:36]line [16:41:36]line [16:41:36]written 0, free lines is 3285 [16:41:36]MH_Cut [16:41:36]Write to MH i2c: D1 01 00 CE 27 01 C7 [16:41:36]Write i2c OK [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: D1 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: D1 01 00 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: D1 01 00 CE 27 00 C6 [16:41:36]Write to MH i2c: 01 00 00 CF 27 F6 [16:41:36]Write i2c OK [16:41:36]MH_I2C_Read... [16:41:36]*** Cut start [16:41:36]*** Purtial cut [16:41:36]*** CUTSNS_PIN = 0 [16:41:37]*** Stage 1: CUTSNS_PIN = 1 [16:41:38]Read from MH i2c: 01 [16:41:38]MH_I2C_Read... [16:41:38]*** Stop cut motor [16:41:38]*** Cut end [16:41:38]Read from MH i2c: 01 07 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: 01 07 00 CF 27 00 00 00 00 00 FF 0F 0B [16:41:38]process_action close_receipt done [16:41:38]requested_data is exist [16:41:38]produce_requested_data [16:41:38]requested_item fm.sn is exist - process it [16:41:38]wFMCommunicate request_size=4 [16:41:38]MH_SAM_APDU [16:41:38]CAPDU: 80 11 00 00 [16:41:38]Write to MH i2c: E2 08 00 D0 27 80 11 00 00 00 00 00 00 71 [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:38]Read from MH i2c: E2 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 17 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 17 00 D0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BC [16:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:41:38]wFMCommunicate OK [16:41:38]requested_item fd.num is exist - process it [16:41:38]SAM_PROTO_GetFieldsCounters [16:41:38]wFMCommunicate request_size=4 [16:41:38]MH_SAM_APDU [16:41:38]CAPDU: 80 13 00 00 [16:41:38]Write to MH i2c: E2 08 00 D1 27 80 13 00 00 00 00 00 00 74 [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 62 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 62 00 D1 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 02 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [16: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 02 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:39]wFMCommunicate OK [16:41:39]SAM_PROTO_GetFieldsCounters done [16:41:39]requested_item shift.num is exist - process it [16:41:39]requested_item shift.opened is exist - process it [16:41:39]req_shift_opened [16:41:39]FM_GetShiftState [16:41:39]SAM_PROTO_GetShiftState [16:41:39]wFMCommunicate request_size=4 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 13 01 00 [16:41:39]Write to MH i2c: E2 08 00 D2 27 80 13 01 00 00 00 00 00 76 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 0E 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 0E 00 D2 27 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 BB [16:41:39]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:41:39]wFMCommunicate OK [16:41:39]SAM_PROTO_GetShiftState done [16:41:39]FM_GetShiftState done [16:41:39]req_shift_opened done [16:41:39]requested_item shift.open_date is exist - process it [16:41:39]req_shift_open_date [16:41:39]req_shift_open_date done [16:41:39]produce_requested_data done [16:41:39]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49666,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [16:41:39]process_action_free close_receipt [16:41:39]json_value_free [16:41:39]json_value_free done [16:41:39]process_json_proto returns [16:41:39]Send response to host [16:41:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49666,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [16:41:39]free response buf [16:41:39]execute_script done [16:41:39]execute_script returns [16:41:39]free content buf [16:41:39]Sock 7.Close socket [16:41:39]Sock 7.Thread stoped [16:43:47]ConnectInit Can't connect to host [16:43:47]CommunicateWithHost connect error [16:43:47]CommunicateWithHost err = -1 [16:43:47]OFD Sender: Server communicate error [16:43:52]OFD Sender: Processing packet 49666 [packets to send 21, broken 20] [16:43:52]ProducePacketName [16:43:52]name=ofd_packets/00049666 [16:43:52]OFD Sender: To server: pG, [16:43:52]CommunicateWithHost lk.salyk.kg:30040 [16:43:52]ConnectInit lk.salyk.kg [16:43:52]Connected sock=7 [16:43:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 0F 4C 2A 01 D6 FC 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C2 D2 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C2 00 00 35 04 06 00 CE 63 FE 38 97 E0 BC 94 0D A0 02 CE EE 56 [16:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4C 3B 47 00 DA 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 31 38 30 30 10 04 04 00 02 C2 00 00 F4 03 04 00 86 7E C0 66 B6 04 01 00 00 AA 5A 08 41 F8 EA AF 05 [16:43:52]CommunicateWithHost err = 0 [16:43:52]CheckOFDResponse [16:43:52]1017 (14) - 77093643461234 [16:43:52]1041 (16) - 0000000000871800 [16:43:52]1040 (4) - 49666 [16:43:52]1012 (4) - 17.08.2024 10:42 [16:43:52]1206 (1) - 0 [16:43:52]OFD Sender: Remove packet 49666 [16:43:52]ProducePacketName [16:43:52]name=ofd_packets/00049666 [16:43:52]NVStorageDeleteData [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:40]accept exits with 9 [16:44:40]New connection [16:44:40]New thread 3066801508 created [16:44:40]Thread 3066944868 joined [16:44:40]Waiting for new connection... [16:44:40] Sock 9.Parse request [16:44:40]Sock 9.Check first char [16:44:40]Sock 9.First char is OK [16:44:40]request: POST /json_proto HTTP/1.0 [16:44:40]Method: POST [16:44:40]URL: /json_proto [16:44:40]Method is POST - this is cgi request [16:44:40]url: /json_proto [16:44:40]query_string will be loaded in cgi processing [16:44:40]execute_cgi json_proto POST (null) [16:44:40]execute_cgi path=json_proto method=POST [16:44:40]POST find Content-Length [16:44:40]Host: 172.17.46.196:8080 [16:44:40]Content-Length: 1418 [16:44:40]Content-Type: application/json [16:44:40] [16:44:40]POST finish read [16:44:40]Found Content-Length = 1418 [16:44:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189850", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077633348", "name": "\u041F\u0435\u0447 LOVITA CLASSIC COOKIES \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 15", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:40]execute_script... [16:44: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 : (3)189850", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077633348", "name": "\u041F\u0435\u0447 LOVITA CLASSIC COOKIES \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 15", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:40]POST & json_proto [16:44:40]process_json_proto [16:44:40]json parsed OK: [16:44:40]protocol is kg_v1.0 [16:44:40]action value=close_receipt [16:44:40]process_action close_receipt [16:44:40]cmd_close_receipt [16:44:40]MH_GetDate [16:44:40]Write to MH i2c: F0 00 00 D3 27 E9 [16:44:40]Write i2c OK [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: F0 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: F0 09 00 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: F0 09 00 D3 27 00 7D D3 C0 66 07 E8 5D 66 1A [16:44:40]GetLastDocTimeStamp 1723912898 [16:44:40]current date 1723913085 [16:44:40]FM_GetShiftState [16:44:40]SAM_PROTO_GetShiftState [16:44:40]wFMCommunicate request_size=4 [16:44:40]MH_SAM_APDU [16:44:40]CAPDU: 80 13 01 00 [16:44:40]Write to MH i2c: E2 08 00 D4 27 80 13 01 00 00 00 00 00 78 [16:44:41]Write i2c OK [16:44:41]MH_I2C_Read... [16:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:41]Read from MH i2c: E2 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: E2 0E 00 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: E2 0E 00 D4 27 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 BD [16:44:41]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:44:41]wFMCommunicate OK [16:44:41]SAM_PROTO_GetShiftState done [16:44:41]FM_GetShiftState done [16:44:41]opened in 1723853354 [16:44:41]opened+sec_in_day 1723939754 [16:44:41]quantity*price = 8000 [16:44:41]sum+1 = 8001 [16:44:41]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4823077633348 Печ LOVITA CLASSIC COOKIES с арахисом 15 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 104 17.08.2024 16:44 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49667 ФПД: 121218526486499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T164445&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49667&fm=121218526486499&tin=02508201610067®Number=0000000000092546&sum=30000 0 [16:44:42]StoreToDocumentArchive [16:44:42]shift 465 fd 49667 [16:44:42]save to /storage/0465/doc_00049667 [16:44:42]save last doc name /storage/0465/doc_00049667 to /storage/kkm_last_doc_name [16:44:42]save OK [16:44:42]Clear old archive folders... [16:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=525 [16:44:42]tlvbuf is B6ED8650 [16:44:42]SAM_PROTO_ClearQueue [16:44:42]wFMCommunicate request_size=4 [16:44:42]MH_SAM_APDU [16:44:42]CAPDU: 80 09 00 00 [16:44:42]Write to MH i2c: E2 08 00 E1 27 80 09 00 00 00 00 00 00 7A [16:44:42]Write i2c OK [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: E2 [16:44:42]MH_I2C_Read... [16:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:42]Read from MH i2c: E2 03 00 [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: E2 03 00 E1 27 00 90 00 7C [16:44:42]RAPDU: 90 00 [16:44:42]wFMCommunicate OK [16:44:42]SAM_PROTO_ClearQueue done [16:44:42]KKMCreateOFDPacket [16:44:42]OFDProtocolAddRootSTLVToBuf [16:44:42]FM_MakeSignedData [16:44:42]FM_MakeSignedData [16:44:42]SAM_PROTO_SignData [16:44:42]wFMCommunicate request_size=4 [16:44:42]MH_SAM_APDU [16:44:42]CAPDU: 80 0D 01 02 [16:44:42]Write to MH i2c: E2 08 00 E2 27 80 0D 01 02 00 00 00 00 82 [16:44:42]Write i2c OK [16:44:42]MH_I2C_Read... [16:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:42]Read from MH i2c: E2 [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: E2 03 00 [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: E2 03 00 E2 27 00 90 00 7D [16:44:42]RAPDU: 90 00 [16:44:42]wFMCommunicate OK [16:44:42]wFMCommunicate request_size=255 [16:44:42]MH_SAM_APDU [16:44:42]CAPDU: 80 0D 02 02 FA 03 00 0D 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 33 34 38 06 04 34 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 43 4C 41 53 53 49 43 20 43 4F 4F 4B 49 45 53 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 31 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 [16:44:42]Write to MH i2c: E2 02 01 E3 27 80 0D 02 02 FA 00 03 00 0D 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 33 34 38 06 04 34 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 43 4C 41 53 53 49 43 20 43 4F 4F 4B 49 45 53 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 31 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 00 00 CF [16:44:42]Write i2c OK [16:44:42]MH_I2C_Read... [16:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:42]Read from MH i2c: E2 [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: E2 03 00 [16:44:42]MH_I2C_Read... [16:44:42]Read from MH i2c: E2 03 00 E3 27 00 90 00 7E [16:44:42]RAPDU: 90 00 [16:44:42]wFMCommunicate OK [16:44:42]wFMCommunicate request_size=255 [16:44:42]MH_SAM_APDU [16:44:42]CAPDU: 80 0D 02 02 FA 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 7D D3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [16:44:42]Write to MH i2c: E2 02 01 E4 27 80 0D 02 02 FA 00 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 7D D3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 65 [16:44:42]Write i2c OK [16:44:42]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 E4 27 00 90 00 7F [16:44:43]RAPDU: 90 00 [16:44:43]wFMCommunicate OK [16:44:43]wFMCommunicate request_size=34 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C2 00 00 35 04 06 00 6E 3F 63 36 1F E3 [16:44:43]Write to MH i2c: E2 25 00 E5 27 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C2 00 00 35 04 06 00 6E 3F 63 36 1F E3 00 00 4C [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 E5 27 00 90 00 80 [16:44:43]RAPDU: 90 00 [16:44:43]wFMCommunicate OK [16:44:43]wFMCommunicate request_size=4 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 0D 03 02 [16:44:43]Write to MH i2c: E2 08 00 E6 27 80 0D 03 02 00 00 00 00 88 [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 0B 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 0B 00 E6 27 00 F1 55 6C D5 5E 2F E9 ED 90 00 73 [16:44:43]RAPDU: F1 55 6C D5 5E 2F E9 ED 90 00 [16:44:43]wFMCommunicate OK [16:44:43]SAM_PROTO_SignData done [16:44:43]FM_MakeSignedData done [16:44:43]CreateOFDProtocolMessage [16:44:43]wFMCommunicate request_size=4 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 11 00 00 [16:44:43]Write to MH i2c: E2 08 00 E7 27 80 11 00 00 00 00 00 00 88 [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 17 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 17 00 E7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D3 [16:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:44:43]wFMCommunicate OK [16:44:43]CreateOFDProtocolMessage done [16:44:43]OFDSenderStorePacket 49667 [16:44:43]StoreOFDPacket docnum=49667 [16:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 02 00 00 09 48 19 02 CF 33 5A 03 01 00 03 00 0D 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 33 34 38 06 04 34 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 43 4C 41 53 53 49 43 20 43 4F 4F 4B 49 45 53 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 31 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 7D D3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C2 00 00 35 04 06 00 6E 3F 63 36 1F E3 F1 55 6C D5 5E 2F E9 ED [16:44:43]CheckFolder [16:44:43]dirname=/storage/ofd_packets [16:44:43]CheckFolder done [16:44:43]ProducePacketName [16:44:43]name=ofd_packets/00049667 [16:44:43]NVStorageSaveData ofd_packets/00049667 [16:44:43]File name is /storage/ofd_packets/00049667 [16:44:43]Write 575 bytes [16:44:43]NVStorageSaveData done [16:44:43]OFDSenderStorePacket done [16:44:43]KKMCreateOFDPacket done [16:44:43]NVStorageSaveData kkm_last_timestamp [16:44:43]File name is /storage/kkm_last_timestamp [16:44:43]Write 4 bytes [16:44:43]NVStorageSaveData done [16:44:43]ExternCall_PrintAddStr [16:44:43]wPrintStart [16:44:43]Write to MH i2c: 01 00 00 E8 27 0F [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: 01 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: 01 07 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: 01 07 00 E8 27 00 00 00 00 00 FF 0F 24 [16:44:43]RasterBufferAndPrint [16:44:43]line Счет N : (3)189850 [16:44:43]line ИНН: 02508201610067 [16:44:43]line Контрольно-Кассовый Чек [16:44:43]line ПРОДАЖА [16:44:43]line Товар: 40822426 [16:44:43]line Вода Бонаква 0,5л б/г [16:44:43]line 2.000 * 40.00 [16:44:43]line = 80.00 [16:44:43]line НДС 12% НСП 1% [16:44:43]line > о реализуемом товаре [16:44:43]line Товар: 4823077633348 [16:44:43]line Печ LOVITA CLASSIC COOKIES с арахисом 15 [16:44:43]line 1.000 * 130.00 [16:44:43]line = 130.00 [16:44:43]line НДС 12% НСП 1% [16:44:43]line > о реализуемом товаре [16:44:43]line Товар: 4660085515163 [16:44:43]line Шок Батончик Сникерс супер 95/80г [16:44:43]line 1.000 * 90.00 [16:44:43]line = 90.00 [16:44:43]line НДС 12% НСП 1% [16:44:43]line > о реализуемом товаре [16:44:43]line ИТОГО: 300.00 [16:44:43]line НСП 1% : 2.66 [16:44:43]line НДС 12% : 31.86 [16:44:43]line Наличными: 0.00 [16:44:43]line Безнал.: 300.00 [16:44:43]line Место: АЗС № 95 "Партнер Нефть" [16:44:43]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:44:43]line СНО: Общий режим [16:44:43]line Чек 104 17.08.2024 16:44 [16:44:43]line Смена: 465 ФФД: 1.0 [16:44:43]line ЗНМ: 0300000078 [16:44:43]line РНМ: 0000000000092546 [16:44:43]line Версия ККМ: 001 [16:44:43]line Платежная система: Бакай Банк [16:44:43]line ФМ: 0000000000871800 [16:44:43]line ФД: 49667 [16:44:43]line ФПД: 121218526486499 [16:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T164445&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49667&fm=121218526486499&tin=02508201610067®Number=0000000000092546&sum=30000 [16:44:43]line 0 [16:44:43]written 0, free lines is 4095 [16:44:43]OFD Sender: Processing packet 49667 [packets to send 21, broken 20] [16:44:43]ProducePacketName [16:44:43]name=ofd_packets/00049667 [16:44:43]OFD Sender: To server: pG, [16:44:43]CommunicateWithHost lk.salyk.kg:30040 [16:44:43]ConnectInit lk.salyk.kg [16:44:43]Connected sock=10 [16:44:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 02 00 00 09 48 19 02 CF 33 5A 03 01 00 03 00 0D 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 33 34 38 06 04 34 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 43 4C 41 53 53 49 43 20 43 4F 4F 4B 49 45 53 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 31 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 7D D3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C2 00 00 35 04 06 00 6E 3F 63 36 1F E3 F1 55 6C D5 5E 2F E9 ED [16:44:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C2 F4 47 00 9F 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C2 00 00 F4 03 04 00 B9 7E C0 66 B6 04 01 00 00 6D 25 D7 3B 87 39 4B 5B [16:44:44]CommunicateWithHost err = 0 [16:44:44]CheckOFDResponse [16:44:44]1017 (14) - 77093643461234 [16:44:44]1041 (16) - 0000000000871800 [16:44:44]1040 (4) - 49667 [16:44:44]1012 (4) - 17.08.2024 10:43 [16:44:44]1206 (1) - 0 [16:44:44]OFD Sender: Remove packet 49667 [16:44:44]ProducePacketName [16:44:44]name=ofd_packets/00049667 [16:44:44]NVStorageDeleteData [16:44:44]Write to MH i2c: 01 00 00 20 28 48 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 07 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 07 00 20 28 00 00 00 00 00 00 0C 5B [16:44:44]RasterBufferAndPrint [16:44:44]line [16:44:44]line [16:44:44]line [16:44:44]line [16:44:44]line [16:44:44]written 0, free lines is 3078 [16:44:44]MH_Cut [16:44:44]Write to MH i2c: D1 01 00 27 28 01 21 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: D1 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: D1 01 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: D1 01 00 27 28 00 20 [16:44:44]Write to MH i2c: 01 00 00 28 28 50 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]OFD Sender: No OFD packet to send [16:44:45]*** Cut start [16:44:45]*** Purtial cut [16:44:45]*** Stage 1: CUTSNS_PIN = 1 [16:44:45]Read from MH i2c: 01 [16:44:45]MH_I2C_Read... [16:44:45]*** Stop cut motor [16:44:45]*** Cut end [16:44:45]Read from MH i2c: 01 07 00 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: 01 07 00 28 28 00 00 00 00 00 FF 0F 65 [16:44:45]process_action close_receipt done [16:44:45]requested_data is exist [16:44:45]produce_requested_data [16:44:45]requested_item fm.sn is exist - process it [16:44:45]wFMCommunicate request_size=4 [16:44:45]MH_SAM_APDU [16:44:45]CAPDU: 80 11 00 00 [16:44:45]Write to MH i2c: E2 08 00 29 28 80 11 00 00 00 00 00 00 CB [16:44:45]Write i2c OK [16:44:45]MH_I2C_Read... [16:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:45]Read from MH i2c: E2 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: E2 17 00 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: E2 17 00 29 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 16 [16:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:44:45]wFMCommunicate OK [16:44:45]requested_item fd.num is exist - process it [16:44:45]SAM_PROTO_GetFieldsCounters [16:44:45]wFMCommunicate request_size=4 [16:44:45]MH_SAM_APDU [16:44:45]CAPDU: 80 13 00 00 [16:44:45]Write to MH i2c: E2 08 00 2A 28 80 13 00 00 00 00 00 00 CE [16:44:45]Write i2c OK [16:44:45]MH_I2C_Read... [16:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:45]Read from MH i2c: E2 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: E2 62 00 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: E2 62 00 2A 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 03 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [16:44: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 03 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:45]wFMCommunicate OK [16:44:45]SAM_PROTO_GetFieldsCounters done [16:44:45]requested_item shift.num is exist - process it [16:44:45]requested_item shift.opened is exist - process it [16:44:45]req_shift_opened [16:44:45]FM_GetShiftState [16:44:45]SAM_PROTO_GetShiftState [16:44:45]wFMCommunicate request_size=4 [16:44:45]MH_SAM_APDU [16:44:45]CAPDU: 80 13 01 00 [16:44:45]Write to MH i2c: E2 08 00 2B 28 80 13 01 00 00 00 00 00 D0 [16:44:45]Write i2c OK [16:44:45]MH_I2C_Read... [16:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:45]Read from MH i2c: E2 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: E2 0E 00 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: E2 0E 00 2B 28 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 15 [16:44:45]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:44:45]wFMCommunicate OK [16:44:45]SAM_PROTO_GetShiftState done [16:44:45]FM_GetShiftState done [16:44:45]req_shift_opened done [16:44:45]requested_item shift.open_date is exist - process it [16:44:45]req_shift_open_date [16:44:45]req_shift_open_date done [16:44:45]produce_requested_data done [16:44:45]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49667,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [16:44:45]process_action_free close_receipt [16:44:45]json_value_free [16:44:45]json_value_free done [16:44:45]process_json_proto returns [16:44:45]Send response to host [16:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49667,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [16:44:45]free response buf [16:44:45]execute_script done [16:44:45]execute_script returns [16:44:45]free content buf [16:44:45]Sock 9.Close socket [16:44:45]Sock 9.Thread stoped [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:23]accept exits with 7 [16:53:23]New connection [16:53:23]New thread 3066944868 created [16:53:23]Thread 3066801508 joined [16:53:23]Waiting for new connection... [16:53:23] Sock 7.Parse request [16:53:23]Sock 7.Check first char [16:53:23]Sock 7.First char is OK [16:53:23]request: POST /json_proto HTTP/1.0 [16:53:23]Method: POST [16:53:23]URL: /json_proto [16:53:23]Method is POST - this is cgi request [16:53:23]url: /json_proto [16:53:23]query_string will be loaded in cgi processing [16:53:23]execute_cgi json_proto POST (null) [16:53:23]execute_cgi path=json_proto method=POST [16:53:23]POST find Content-Length [16:53:23]Host: 172.17.46.196:8080 [16:53:23]Content-Length: 713 [16:53:23]Content-Type: application/json [16:53:23] [16:53:23]POST finish read [16:53:23]Found Content-Length = 713 [16:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189851", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:23]execute_script... [16:53:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189851", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:23]POST & json_proto [16:53:23]process_json_proto [16:53:23]json parsed OK: [16:53:23]protocol is kg_v1.0 [16:53:23]action value=close_receipt [16:53:23]process_action close_receipt [16:53:23]cmd_close_receipt [16:53:23]MH_GetDate [16:53:23]Write to MH i2c: F0 00 00 2C 28 43 [16:53:23]Write i2c OK [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: F0 [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: F0 09 00 [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: F0 09 00 2C 28 00 88 D5 C0 66 07 E8 5D 66 81 [16:53:23]GetLastDocTimeStamp 1723913085 [16:53:23]current date 1723913608 [16:53:23]FM_GetShiftState [16:53:23]SAM_PROTO_GetShiftState [16:53:23]wFMCommunicate request_size=4 [16:53:23]MH_SAM_APDU [16:53:23]CAPDU: 80 13 01 00 [16:53:23]Write to MH i2c: E2 08 00 2D 28 80 13 01 00 00 00 00 00 D2 [16:53:23]Write i2c OK [16:53:23]MH_I2C_Read... [16:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:23]Read from MH i2c: E2 [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: E2 0E 00 [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: E2 0E 00 2D 28 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 17 [16:53:23]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:53:23]wFMCommunicate OK [16:53:23]SAM_PROTO_GetShiftState done [16:53:23]FM_GetShiftState done [16:53:23]opened in 1723853354 [16:53:23]opened+sec_in_day 1723939754 [16:53:23]quantity*price = 6500 [16:53:23]sum+1 = 6501 [16:53:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 105 17.08.2024 16:53 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49668 ФПД: 279894588922880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T165328&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49668&fm=279894588922880&tin=02508201610067®Number=0000000000092546&sum=6500 0 [16:53:24]StoreToDocumentArchive [16:53:24]shift 465 fd 49668 [16:53:24]save to /storage/0465/doc_00049668 [16:53:24]save last doc name /storage/0465/doc_00049668 to /storage/kkm_last_doc_name [16:53:24]save OK [16:53:24]Clear old archive folders... [16:53:24]ProcessDocumentItem done err = 0, tmpTLVsize=304 [16:53:24]tlvbuf is B6DA6260 [16:53:24]SAM_PROTO_ClearQueue [16:53:24]wFMCommunicate request_size=4 [16:53:24]MH_SAM_APDU [16:53:24]CAPDU: 80 09 00 00 [16:53:24]Write to MH i2c: E2 08 00 3A 28 80 09 00 00 00 00 00 00 D4 [16:53:24]Write i2c OK [16:53:24]MH_I2C_Read... [16:53:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:24]Read from MH i2c: E2 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 03 00 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 03 00 3A 28 00 90 00 D6 [16:53:24]RAPDU: 90 00 [16:53:24]wFMCommunicate OK [16:53:24]SAM_PROTO_ClearQueue done [16:53:24]KKMCreateOFDPacket [16:53:24]OFDProtocolAddRootSTLVToBuf [16:53:24]FM_MakeSignedData [16:53:24]FM_MakeSignedData [16:53:24]SAM_PROTO_SignData [16:53:24]wFMCommunicate request_size=4 [16:53:24]MH_SAM_APDU [16:53:24]CAPDU: 80 0D 01 02 [16:53:24]Write to MH i2c: E2 08 00 3B 28 80 0D 01 02 00 00 00 00 DC [16:53:24]Write i2c OK [16:53:24]MH_I2C_Read... [16:53:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:24]Read from MH i2c: E2 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 03 00 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 03 00 3B 28 00 90 00 D7 [16:53:24]RAPDU: 90 00 [16:53:24]wFMCommunicate OK [16:53:24]wFMCommunicate request_size=255 [16:53:24]MH_SAM_APDU [16:53:24]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 88 D5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 [16:53:24]Write to MH i2c: E2 02 01 3C 28 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 88 D5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 00 00 E7 [16:53:24]Write i2c OK [16:53:24]MH_I2C_Read... [16:53:24]OFD Sender: No OFD packet to send [16:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:25]Read from MH i2c: E2 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: E2 03 00 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: E2 03 00 3C 28 00 90 00 D8 [16:53:25]RAPDU: 90 00 [16:53:25]wFMCommunicate OK [16:53:25]wFMCommunicate request_size=63 [16:53:25]MH_SAM_APDU [16:53:25]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C2 00 00 35 04 06 00 FE 90 09 8C 1C 00 [16:53:25]Write to MH i2c: E2 42 00 3D 28 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C2 00 00 35 04 06 00 FE 90 09 8C 1C 00 00 00 27 [16:53:25]Write i2c OK [16:53:25]MH_I2C_Read... [16:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:25]Read from MH i2c: E2 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: E2 03 00 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: E2 03 00 3D 28 00 90 00 D9 [16:53:25]RAPDU: 90 00 [16:53:25]wFMCommunicate OK [16:53:25]wFMCommunicate request_size=4 [16:53:25]MH_SAM_APDU [16:53:25]CAPDU: 80 0D 03 02 [16:53:25]Write to MH i2c: E2 08 00 3E 28 80 0D 03 02 00 00 00 00 E1 [16:53:25]Write i2c OK [16:53:25]MH_I2C_Read... [16:53:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:25]Read from MH i2c: E2 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: E2 0B 00 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: E2 0B 00 3E 28 00 4E 8A 5F 02 AD E7 BE E2 90 00 4F [16:53:25]RAPDU: 4E 8A 5F 02 AD E7 BE E2 90 00 [16:53:25]wFMCommunicate OK [16:53:25]SAM_PROTO_SignData done [16:53:25]FM_MakeSignedData done [16:53:25]CreateOFDProtocolMessage [16:53:25]wFMCommunicate request_size=4 [16:53:25]MH_SAM_APDU [16:53:25]CAPDU: 80 11 00 00 [16:53:25]Write to MH i2c: E2 08 00 3F 28 80 11 00 00 00 00 00 00 E1 [16:53:25]Write i2c OK [16:53:25]MH_I2C_Read... [16:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:25]Read from MH i2c: E2 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: E2 17 00 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: E2 17 00 3F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2C [16:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:53:25]wFMCommunicate OK [16:53:25]CreateOFDProtocolMessage done [16:53:25]OFDSenderStorePacket 49668 [16:53:25]StoreOFDPacket docnum=49668 [16:53:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 A3 F6 3C 01 41 A9 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 88 D5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C2 00 00 35 04 06 00 FE 90 09 8C 1C 00 4E 8A 5F 02 AD E7 BE E2 [16:53:25]CheckFolder [16:53:25]dirname=/storage/ofd_packets [16:53:25]CheckFolder done [16:53:25]ProducePacketName [16:53:25]name=ofd_packets/00049668 [16:53:25]NVStorageSaveData ofd_packets/00049668 [16:53:25]File name is /storage/ofd_packets/00049668 [16:53:25]Write 354 bytes [16:53:25]NVStorageSaveData done [16:53:25]OFDSenderStorePacket done [16:53:25]KKMCreateOFDPacket done [16:53:25]NVStorageSaveData kkm_last_timestamp [16:53:25]File name is /storage/kkm_last_timestamp [16:53:25]Write 4 bytes [16:53:25]NVStorageSaveData done [16:53:25]ExternCall_PrintAddStr [16:53:25]wPrintStart [16:53:25]Write to MH i2c: 01 00 00 40 28 68 [16:53:25]Write i2c OK [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: 01 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: 01 07 00 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: 01 07 00 40 28 00 00 00 00 00 FF 0F 7D [16:53:25]RasterBufferAndPrint [16:53:25]line Счет N : (3)189851 [16:53:25]line ИНН: 02508201610067 [16:53:25]line Контрольно-Кассовый Чек [16:53:25]line ПРОДАЖА [16:53:25]line Товар: 4870001571023 [16:53:25]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [16:53:25]line 1.000 * 65.00 [16:53:25]line = 65.00 [16:53:25]line НДС 12% НСП 1% [16:53:25]line > о реализуемом товаре [16:53:25]line ИТОГО: 65.00 [16:53:25]line НСП 1% : 0.57 [16:53:25]line НДС 12% : 6.90 [16:53:25]line Наличными: 65.00 [16:53:25]line Безнал.: 0.00 [16:53:25]line Место: АЗС № 95 "Партнер Нефть" [16:53:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:53:25]line СНО: Общий режим [16:53:25]line Чек 105 17.08.2024 16:53 [16:53:25]line Смена: 465 ФФД: 1.0 [16:53:25]line ЗНМ: 0300000078 [16:53:25]line РНМ: 0000000000092546 [16:53:25]line Версия ККМ: 001 [16:53:25]line ФМ: 0000000000871800 [16:53:25]line ФД: 49668 [16:53:25]line ФПД: 279894588922880 [16:53:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T165328&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49668&fm=279894588922880&tin=02508201610067®Number=0000000000092546&sum=6500 [16:53:25]line 0 [16:53:25]OFD Sender: Processing packet 49668 [packets to send 21, broken 20] [16:53:25]ProducePacketName [16:53:25]name=ofd_packets/00049668 [16:53:25]OFD Sender: To server: pG, [16:53:25]CommunicateWithHost lk.salyk.kg:30040 [16:53:25]ConnectInit lk.salyk.kg [16:53:25]written 0, free lines is 4095 [16:53:25]Connected sock=10 [16:53:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 A3 F6 3C 01 41 A9 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 88 D5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C2 00 00 35 04 06 00 FE 90 09 8C 1C 00 4E 8A 5F 02 AD E7 BE E2 [16:53:26]Write to MH i2c: 01 00 00 69 28 91 [16:53:26]Write i2c OK [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: 01 [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: 01 07 00 [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: 01 07 00 69 28 00 00 00 00 00 E5 0C 89 [16:53:26]RasterBufferAndPrint [16:53:26]line [16:53:26]line [16:53:26]line [16:53:26]line [16:53:26]line [16:53:26]written 0, free lines is 3309 [16:53:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 58 62 47 00 11 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 31 38 30 30 10 04 04 00 04 C2 00 00 F4 03 04 00 C3 80 C0 66 B6 04 01 00 00 4A 67 B0 8B 1A 55 D6 4F [16:53:26]CommunicateWithHost err = 0 [16:53:26]CheckOFDResponse [16:53:26]1017 (14) - 77093643461234 [16:53:26]1041 (16) - 0000000000871800 [16:53:26]1040 (4) - 49668 [16:53:26]1012 (4) - 17.08.2024 10:51 [16:53:26]1206 (1) - 0 [16:53:26]OFD Sender: Remove packet 49668 [16:53:26]ProducePacketName [16:53:26]name=ofd_packets/00049668 [16:53:26]NVStorageDeleteData [16:53:26]MH_Cut [16:53:26]Write to MH i2c: D1 01 00 70 28 01 6A [16:53:26]Write i2c OK [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: D1 [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: D1 01 00 [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: D1 01 00 70 28 00 69 [16:53:26]Write to MH i2c: 01 00 00 71 28 99 [16:53:26]Write i2c OK [16:53:26]MH_I2C_Read... [16:53:26]OFD Sender: No OFD packet to send [16:53:26]*** Cut start [16:53:26]*** Purtial cut [16:53:26]*** CUTSNS_PIN = 0 [16:53:27]*** Stage 1: CUTSNS_PIN = 1 [16:53:28]Read from MH i2c: 01 [16:53:28]MH_I2C_Read... [16:53:28]*** Stop cut motor [16:53:28]*** Cut end [16:53:28]Read from MH i2c: 01 07 00 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: 01 07 00 71 28 00 00 00 00 00 FF 0F AE [16:53:28]process_action close_receipt done [16:53:28]requested_data is exist [16:53:28]produce_requested_data [16:53:28]requested_item fm.sn is exist - process it [16:53:28]wFMCommunicate request_size=4 [16:53:28]MH_SAM_APDU [16:53:28]CAPDU: 80 11 00 00 [16:53:28]Write to MH i2c: E2 08 00 72 28 80 11 00 00 00 00 00 00 14 [16:53:28]Write i2c OK [16:53:28]MH_I2C_Read... [16:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:28]Read from MH i2c: E2 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 17 00 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 17 00 72 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5F [16:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:53:28]wFMCommunicate OK [16:53:28]requested_item fd.num is exist - process it [16:53:28]SAM_PROTO_GetFieldsCounters [16:53:28]wFMCommunicate request_size=4 [16:53:28]MH_SAM_APDU [16:53:28]CAPDU: 80 13 00 00 [16:53:28]Write to MH i2c: E2 08 00 73 28 80 13 00 00 00 00 00 00 17 [16:53:28]Write i2c OK [16:53:28]MH_I2C_Read... [16:53:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:29]Read from MH i2c: E2 [16:53:29]MH_I2C_Read... [16:53:29]Read from MH i2c: E2 62 00 [16:53:29]MH_I2C_Read... [16:53:29]Read from MH i2c: E2 62 00 73 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 04 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [16:53: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 04 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:29]wFMCommunicate OK [16:53:29]SAM_PROTO_GetFieldsCounters done [16:53:29]requested_item shift.num is exist - process it [16:53:29]requested_item shift.opened is exist - process it [16:53:29]req_shift_opened [16:53:29]FM_GetShiftState [16:53:29]SAM_PROTO_GetShiftState [16:53:29]wFMCommunicate request_size=4 [16:53:29]MH_SAM_APDU [16:53:29]CAPDU: 80 13 01 00 [16:53:29]Write to MH i2c: E2 08 00 74 28 80 13 01 00 00 00 00 00 19 [16:53:29]Write i2c OK [16:53:29]MH_I2C_Read... [16:53:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:29]Read from MH i2c: E2 [16:53:29]MH_I2C_Read... [16:53:29]Read from MH i2c: E2 0E 00 [16:53:29]MH_I2C_Read... [16:53:29]Read from MH i2c: E2 0E 00 74 28 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 5E [16:53:29]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [16:53:29]wFMCommunicate OK [16:53:29]SAM_PROTO_GetShiftState done [16:53:29]FM_GetShiftState done [16:53:29]req_shift_opened done [16:53:29]requested_item shift.open_date is exist - process it [16:53:29]req_shift_open_date [16:53:29]req_shift_open_date done [16:53:29]produce_requested_data done [16:53:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49668,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [16:53:29]process_action_free close_receipt [16:53:29]json_value_free [16:53:29]json_value_free done [16:53:29]process_json_proto returns [16:53:29]Send response to host [16:53:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49668,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [16:53:29]free response buf [16:53:29]execute_script done [16:53:29]execute_script returns [16:53:29]free content buf [16:53:29]Sock 7.Close socket [16:53:29]Sock 7.Thread stoped [16:53:31]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:17]int [16:54:17]Write to MH i2c: 01 00 00 75 28 9D [16:54:17]*** FLAG_PRN_KEY set [16:54:17]Write i2c OK [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: 01 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: 01 07 00 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: 01 07 00 75 28 00 08 00 00 00 FF 0F BA [16:54:17]state=0 [16:54:17]Key pressed [16:54:17]Feed [16:54:17]Write to MH i2c: D8 00 00 76 28 75 [16:54:17]Write i2c OK [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: D8 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: D8 01 00 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: D8 01 00 76 28 00 76 [16:54:17]int [16:54:17]Write to MH i2c: 01 00 00 77 28 9F [16:54:17]Write i2c OK [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: 01 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: 01 07 00 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: 01 07 00 77 28 00 48 00 00 00 3C 00 2A [16:54:17]state=2 [16:54:17]Key pressed [16:54:17]int [16:54:17]Write to MH i2c: 01 00 00 78 28 A0 [16:54:17]*** FLAG_PRN_KEY reset [16:54:17]Write i2c OK [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: 01 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: 01 07 00 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: 01 07 00 78 28 00 00 00 00 00 F6 0F AC [16:54:17]state=2 [16:54:17]Stop feed [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:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [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: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: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: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:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [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: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:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04: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:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:02]accept exits with 9 [17:11:02]New connection [17:11:02]New thread 3066801508 created [17:11:02]Thread 3066944868 joined [17:11:02]Waiting for new connection... [17:11:02] Sock 9.Parse request [17:11:02]Sock 9.Check first char [17:11:02]Sock 9.First char is OK [17:11:02]request: POST /json_proto HTTP/1.0 [17:11:02]Method: POST [17:11:02]URL: /json_proto [17:11:02]Method is POST - this is cgi request [17:11:02]url: /json_proto [17:11:02]query_string will be loaded in cgi processing [17:11:02]execute_cgi json_proto POST (null) [17:11:02]execute_cgi path=json_proto method=POST [17:11:02]POST find Content-Length [17:11:02]Host: 172.17.46.196:8080 [17:11:02]Content-Length: 756 [17:11:02]Content-Type: application/json [17:11:02] [17:11:02]POST finish read [17:11:02]Found Content-Length = 756 [17:11:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 13.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\u000A30097945", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:02]execute_script... [17:11: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)11326367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 13.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\u000A30097945", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:02]POST & json_proto [17:11:02]process_json_proto [17:11:02]json parsed OK: [17:11:02]protocol is kg_v1.0 [17:11:02]action value=close_receipt [17:11:02]process_action close_receipt [17:11:02]cmd_close_receipt [17:11:02]MH_GetDate [17:11:02]Write to MH i2c: F0 00 00 79 28 90 [17:11:02]Write i2c OK [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: F0 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: F0 09 00 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: F0 09 00 79 28 00 AB D9 C0 66 07 E8 5D 66 F5 [17:11:02]GetLastDocTimeStamp 1723913608 [17:11:02]current date 1723914667 [17:11:02]FM_GetShiftState [17:11:02]SAM_PROTO_GetShiftState [17:11:02]wFMCommunicate request_size=4 [17:11:02]MH_SAM_APDU [17:11:02]CAPDU: 80 13 01 00 [17:11:02]Write to MH i2c: E2 08 00 7A 28 80 13 01 00 00 00 00 00 1F [17:11:02]Write i2c OK [17:11:02]MH_I2C_Read... [17:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:02]Read from MH i2c: E2 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 0E 00 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 0E 00 7A 28 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 64 [17:11:02]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:11:02]wFMCommunicate OK [17:11:02]SAM_PROTO_GetShiftState done [17:11:02]FM_GetShiftState done [17:11:02]opened in 1723853354 [17:11:02]opened+sec_in_day 1723939754 [17:11:02]quantity*price = 0 [17:11:02]sum+1 = 1 [17:11:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 106 17.08.2024 17:11 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097945 ФМ: 0000000000871800 ФД: 49669 ФПД: 239282232246879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T171107&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49669&fm=239282232246879&tin=02508201610067®Number=0000000000092546&sum=0 [17:11:03]StoreToDocumentArchive [17:11:03]shift 465 fd 49669 [17:11:03]save to /storage/0465/doc_00049669 [17:11:03]save last doc name /storage/0465/doc_00049669 to /storage/kkm_last_doc_name [17:11:03]save OK [17:11:03]Clear old archive folders... [17:11:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:03]tlvbuf is B6F53300 [17:11:03]SAM_PROTO_ClearQueue [17:11:03]wFMCommunicate request_size=4 [17:11:03]MH_SAM_APDU [17:11:03]CAPDU: 80 09 00 00 [17:11:03]Write to MH i2c: E2 08 00 87 28 80 09 00 00 00 00 00 00 21 [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:03]Read from MH i2c: E2 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 03 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 03 00 87 28 00 90 00 23 [17:11:03]RAPDU: 90 00 [17:11:03]wFMCommunicate OK [17:11:03]SAM_PROTO_ClearQueue done [17:11:03]KKMCreateOFDPacket [17:11:03]OFDProtocolAddRootSTLVToBuf [17:11:03]FM_MakeSignedData [17:11:03]FM_MakeSignedData [17:11:03]SAM_PROTO_SignData [17:11:03]wFMCommunicate request_size=4 [17:11:03]MH_SAM_APDU [17:11:03]CAPDU: 80 0D 01 02 [17:11:03]Write to MH i2c: E2 08 00 88 28 80 0D 01 02 00 00 00 00 29 [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 88 28 00 90 00 24 [17:11:04]RAPDU: 90 00 [17:11:04]wFMCommunicate OK [17:11:04]wFMCommunicate request_size=255 [17:11:04]MH_SAM_APDU [17:11: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 34 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 AB D9 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C2 00 00 35 04 06 00 D9 [17:11:04]Write to MH i2c: E2 02 01 89 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 AB D9 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C2 00 00 35 04 06 00 D9 00 00 AB [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 89 28 00 90 00 25 [17:11:04]RAPDU: 90 00 [17:11:04]wFMCommunicate OK [17:11:04]wFMCommunicate request_size=10 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 0D 02 02 05 A0 3C 74 42 5F [17:11:04]Write to MH i2c: E2 0D 00 8A 28 80 0D 02 02 05 00 A0 3C 74 42 5F 00 00 27 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 8A 28 00 90 00 26 [17:11:04]RAPDU: 90 00 [17:11:04]wFMCommunicate OK [17:11:04]wFMCommunicate request_size=4 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 0D 03 02 [17:11:04]Write to MH i2c: E2 08 00 8B 28 80 0D 03 02 00 00 00 00 2E [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 0B 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 0B 00 8B 28 00 B4 B6 6B C9 94 62 2E 3E 90 00 2F [17:11:04]RAPDU: B4 B6 6B C9 94 62 2E 3E 90 00 [17:11:04]wFMCommunicate OK [17:11:04]SAM_PROTO_SignData done [17:11:04]FM_MakeSignedData done [17:11:04]CreateOFDProtocolMessage [17:11:04]wFMCommunicate request_size=4 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 11 00 00 [17:11:04]Write to MH i2c: E2 08 00 8C 28 80 11 00 00 00 00 00 00 2E [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 17 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 17 00 8C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 79 [17:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:11:04]wFMCommunicate OK [17:11:04]CreateOFDProtocolMessage done [17:11:04]OFDSenderStorePacket 49669 [17:11:04]StoreOFDPacket docnum=49669 [17:11:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 6D 51 07 01 8B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 AB D9 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C2 00 00 35 04 06 00 D9 A0 3C 74 42 5F B4 B6 6B C9 94 62 2E 3E [17:11:04]CheckFolder [17:11:04]dirname=/storage/ofd_packets [17:11:04]CheckFolder done [17:11:04]ProducePacketName [17:11:04]name=ofd_packets/00049669 [17:11:04]NVStorageSaveData ofd_packets/00049669 [17:11:04]File name is /storage/ofd_packets/00049669 [17:11:04]Write 301 bytes [17:11:04]NVStorageSaveData done [17:11:04]OFDSenderStorePacket done [17:11:04]KKMCreateOFDPacket done [17:11:04]NVStorageSaveData kkm_last_timestamp [17:11:04]File name is /storage/kkm_last_timestamp [17:11:04]Write 4 bytes [17:11:04]NVStorageSaveData done [17:11:04]ExternCall_PrintAddStr [17:11:04]wPrintStart [17:11:04]Write to MH i2c: 01 00 00 8D 28 B5 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 07 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 07 00 8D 28 00 00 00 00 00 FF 0F CA [17:11:04]RasterBufferAndPrint [17:11:04]line Счет N : (1)11326367 [17:11:04]line ИНН: 02508201610067 [17:11:04]line Контрольно-Кассовый Чек [17:11:04]line ПРОДАЖА [17:11:04]line ТРК (МРК, ГНК) : 32 [17:11:04]line Товар: 2710124130 [17:11:04]line Аи-92-К-4 [17:11:04]line 13.000 * 0.00 [17:11:04]line = 0.00 [17:11:04]line НДС 12% НСП 1% [17:11:04]line > о реализуемом товаре [17:11:04]line ИТОГО: 0.00 [17:11:04]line НСП 1% : 0.00 [17:11:04]line НДС 12% : 0.00 [17:11:04]line Наличными: 0.00 [17:11:04]line Безнал.: 0.00 [17:11:04]line Место: АЗС № 95 "Партнер Нефть" [17:11:04]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:11:04]line СНО: Общий режим [17:11:04]line Чек 106 17.08.2024 17:11 [17:11:04]line Смена: 465 ФФД: 1.0 [17:11:04]line ЗНМ: 0300000078 [17:11:04]line РНМ: 0000000000092546 [17:11:04]line Версия ККМ: 001 [17:11:04]line Талоны: ТК ГПНА Online [17:11:04]line 30097945 [17:11:04]line ФМ: 0000000000871800 [17:11:04]line ФД: 49669 [17:11:04]line ФПД: 239282232246879 [17:11:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T171107&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49669&fm=239282232246879&tin=02508201610067®Number=0000000000092546&sum=0 [17:11:04]written 0, free lines is 4095 [17:11:04]OFD Sender: Processing packet 49669 [packets to send 21, broken 20] [17:11:04]ProducePacketName [17:11:04]name=ofd_packets/00049669 [17:11:04]OFD Sender: To server: pG, [17:11:04]CommunicateWithHost lk.salyk.kg:30040 [17:11:04]ConnectInit lk.salyk.kg [17:11:04]Connected sock=7 [17:11:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 6D 51 07 01 8B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 AB D9 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C2 00 00 35 04 06 00 D9 A0 3C 74 42 5F B4 B6 6B C9 94 62 2E 3E [17:11:04]Write to MH i2c: 01 00 00 B7 28 DF [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 07 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 07 00 B7 28 00 00 00 00 00 F0 0C E2 [17:11:04]RasterBufferAndPrint [17:11:04]line [17:11:04]line [17:11:04]line [17:11:04]line [17:11:04]line [17:11:04]written 0, free lines is 3318 [17:11:04]MH_Cut [17:11:04]Write to MH i2c: D1 01 00 BE 28 01 B8 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: D1 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: D1 01 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: D1 01 00 BE 28 00 B7 [17:11:04]Write to MH i2c: 01 00 00 BF 28 E7 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A6 E1 47 00 D3 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C2 00 00 F4 03 04 00 E6 84 C0 66 B6 04 01 00 00 A4 CF B1 AA A7 1F 19 5C [17:11:04]CommunicateWithHost err = 0 [17:11:04]CheckOFDResponse [17:11:04]1017 (14) - 77093643461234 [17:11:04]1041 (16) - 0000000000871800 [17:11:04]1040 (4) - 49669 [17:11:04]1012 (4) - 17.08.2024 11:09 [17:11:04]1206 (1) - 0 [17:11:04]OFD Sender: Remove packet 49669 [17:11:04]ProducePacketName [17:11:04]name=ofd_packets/00049669 [17:11:04]NVStorageDeleteData [17:11:05]OFD Sender: No OFD packet to send [17:11:05]*** Cut start [17:11:05]*** Purtial cut [17:11:05]*** Stage 1: CUTSNS_PIN = 1 [17:11:05]Read from MH i2c: 01 [17:11:05]MH_I2C_Read... [17:11:05]*** Stop cut motor [17:11:05]*** Cut end [17:11:05]Read from MH i2c: 01 07 00 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: 01 07 00 BF 28 00 00 00 00 00 FF 0F FC [17:11:05]process_action close_receipt done [17:11:05]requested_data is exist [17:11:05]produce_requested_data [17:11:05]requested_item fm.sn is exist - process it [17:11:05]wFMCommunicate request_size=4 [17:11:05]MH_SAM_APDU [17:11:05]CAPDU: 80 11 00 00 [17:11:05]Write to MH i2c: E2 08 00 C0 28 80 11 00 00 00 00 00 00 62 [17:11:05]Write i2c OK [17:11:05]MH_I2C_Read... [17:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:05]Read from MH i2c: E2 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: E2 17 00 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: E2 17 00 C0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AD [17:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:11:05]wFMCommunicate OK [17:11:05]requested_item fd.num is exist - process it [17:11:05]SAM_PROTO_GetFieldsCounters [17:11:05]wFMCommunicate request_size=4 [17:11:05]MH_SAM_APDU [17:11:05]CAPDU: 80 13 00 00 [17:11:05]Write to MH i2c: E2 08 00 C1 28 80 13 00 00 00 00 00 00 65 [17:11:06]Write i2c OK [17:11:06]MH_I2C_Read... [17:11:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:06]Read from MH i2c: E2 [17:11:06]MH_I2C_Read... [17:11:06]Read from MH i2c: E2 62 00 [17:11:06]MH_I2C_Read... [17:11:06]Read from MH i2c: E2 62 00 C1 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 05 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [17:11: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 05 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:06]wFMCommunicate OK [17:11:06]SAM_PROTO_GetFieldsCounters done [17:11:06]requested_item shift.num is exist - process it [17:11:06]requested_item shift.opened is exist - process it [17:11:06]req_shift_opened [17:11:06]FM_GetShiftState [17:11:06]SAM_PROTO_GetShiftState [17:11:06]wFMCommunicate request_size=4 [17:11:06]MH_SAM_APDU [17:11:06]CAPDU: 80 13 01 00 [17:11:06]Write to MH i2c: E2 08 00 C2 28 80 13 01 00 00 00 00 00 67 [17:11:06]Write i2c OK [17:11:06]MH_I2C_Read... [17:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:06]Read from MH i2c: E2 [17:11:06]MH_I2C_Read... [17:11:06]Read from MH i2c: E2 0E 00 [17:11:06]MH_I2C_Read... [17:11:06]Read from MH i2c: E2 0E 00 C2 28 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 AC [17:11:06]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:11:06]wFMCommunicate OK [17:11:06]SAM_PROTO_GetShiftState done [17:11:06]FM_GetShiftState done [17:11:06]req_shift_opened done [17:11:06]requested_item shift.open_date is exist - process it [17:11:06]req_shift_open_date [17:11:06]req_shift_open_date done [17:11:06]produce_requested_data done [17:11:06]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49669,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [17:11:06]process_action_free close_receipt [17:11:06]json_value_free [17:11:06]json_value_free done [17:11:06]process_json_proto returns [17:11:06]Send response to host [17:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49669,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [17:11:06]free response buf [17:11:06]execute_script done [17:11:06]execute_script returns [17:11:06]free content buf [17:11:06]Sock 9.Close socket [17:11:06]Sock 9.Thread stoped [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]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:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:44]accept exits with 10 [17:23:44]New connection [17:23:44]New thread 3066944868 created [17:23:44]Thread 3066801508 joined [17:23:44]Waiting for new connection... [17:23:44] Sock 10.Parse request [17:23:44]Sock 10.Check first char [17:23:44]Sock 10.First char is OK [17:23:44]request: POST /json_proto HTTP/1.0 [17:23:44]Method: POST [17:23:44]URL: /json_proto [17:23:44]Method is POST - this is cgi request [17:23:44]url: /json_proto [17:23:44]query_string will be loaded in cgi processing [17:23:44]execute_cgi json_proto POST (null) [17:23:44]execute_cgi path=json_proto method=POST [17:23:44]POST find Content-Length [17:23:44]Host: 172.17.46.196:8080 [17:23:44]Content-Length: 909 [17:23:44]Content-Type: application/json [17:23:44] [17:23:44]POST finish read [17:23:44]Found Content-Length = 909 [17:23:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189852", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:44]execute_script... [17:23:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189852", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:44]POST & json_proto [17:23:44]process_json_proto [17:23:44]json parsed OK: [17:23:44]protocol is kg_v1.0 [17:23:44]action value=close_receipt [17:23:44]process_action close_receipt [17:23:44]cmd_close_receipt [17:23:44]MH_GetDate [17:23:44]Write to MH i2c: F0 00 00 C3 28 DA [17:23:44]Write i2c OK [17:23:44]MH_I2C_Read... [17:23:44]Read from MH i2c: F0 [17:23:44]MH_I2C_Read... [17:23:44]Read from MH i2c: F0 09 00 [17:23:44]MH_I2C_Read... [17:23:44]Read from MH i2c: F0 09 00 C3 28 00 A5 DC C0 66 07 E8 5D 66 3C [17:23:44]GetLastDocTimeStamp 1723914667 [17:23:44]current date 1723915429 [17:23:44]FM_GetShiftState [17:23:44]SAM_PROTO_GetShiftState [17:23:44]wFMCommunicate request_size=4 [17:23:44]MH_SAM_APDU [17:23:44]CAPDU: 80 13 01 00 [17:23:44]Write to MH i2c: E2 08 00 C4 28 80 13 01 00 00 00 00 00 69 [17:23:44]Write i2c OK [17:23:44]MH_I2C_Read... [17:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:44]Read from MH i2c: E2 [17:23:44]MH_I2C_Read... [17:23:44]Read from MH i2c: E2 0E 00 [17:23:44]MH_I2C_Read... [17:23:44]Read from MH i2c: E2 0E 00 C4 28 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 AE [17:23:44]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:23:44]wFMCommunicate OK [17:23:44]SAM_PROTO_GetShiftState done [17:23:44]FM_GetShiftState done [17:23:44]opened in 1723853354 [17:23:44]opened+sec_in_day 1723939754 [17:23:44]quantity*price = 12000 [17:23:44]sum+1 = 12001 [17:23:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747073 Сигареты Richmond Royal Edition 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 107 17.08.2024 17:23 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49670 ФПД: 73144570657757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T172349&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49670&fm=73144570657757&tin=02508201610067®Number=0000000000092546&sum=27000 0 [17:23:45]StoreToDocumentArchive [17:23:45]shift 465 fd 49670 [17:23:45]save to /storage/0465/doc_00049670 [17:23:45]save last doc name /storage/0465/doc_00049670 to /storage/kkm_last_doc_name [17:23:45]save OK [17:23:45]Clear old archive folders... [17:23:45]ProcessDocumentItem done err = 0, tmpTLVsize=391 [17:23:45]tlvbuf is 0188BA50 [17:23:45]SAM_PROTO_ClearQueue [17:23:45]wFMCommunicate request_size=4 [17:23:45]MH_SAM_APDU [17:23:45]CAPDU: 80 09 00 00 [17:23:45]Write to MH i2c: E2 08 00 D1 28 80 09 00 00 00 00 00 00 6B [17:23:45]Write i2c OK [17:23:45]MH_I2C_Read... [17:23:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:45]Read from MH i2c: E2 [17:23:45]MH_I2C_Read... [17:23:45]Read from MH i2c: E2 03 00 [17:23:45]MH_I2C_Read... [17:23:45]Read from MH i2c: E2 03 00 D1 28 00 90 00 6D [17:23:45]RAPDU: 90 00 [17:23:45]wFMCommunicate OK [17:23:45]SAM_PROTO_ClearQueue done [17:23:45]KKMCreateOFDPacket [17:23:45]OFDProtocolAddRootSTLVToBuf [17:23:45]FM_MakeSignedData [17:23:45]FM_MakeSignedData [17:23:45]SAM_PROTO_SignData [17:23:45]wFMCommunicate request_size=4 [17:23:45]MH_SAM_APDU [17:23:45]CAPDU: 80 0D 01 02 [17:23:45]Write to MH i2c: E2 08 00 D2 28 80 0D 01 02 00 00 00 00 73 [17:23:45]Write i2c OK [17:23:45]MH_I2C_Read... [17:23:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:45]Read from MH i2c: E2 [17:23:45]MH_I2C_Read... [17:23:45]Read from MH i2c: E2 03 00 [17:23:45]MH_I2C_Read... [17:23:45]Read from MH i2c: E2 03 00 D2 28 00 90 00 6E [17:23:45]RAPDU: 90 00 [17:23:45]wFMCommunicate OK [17:23:45]wFMCommunicate request_size=255 [17:23:45]MH_SAM_APDU [17:23:45]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [17:23:45]Write to MH i2c: E2 02 01 D3 28 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 CB [17:23:45]Write i2c OK [17:23:45]MH_I2C_Read... [17:23:46]OFD Sender: No OFD packet to send [17:23:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 03 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 03 00 D3 28 00 90 00 6F [17:23:46]RAPDU: 90 00 [17:23:46]wFMCommunicate OK [17:23:46]wFMCommunicate request_size=150 [17:23:46]MH_SAM_APDU [17:23:46]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 A5 DC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C2 00 00 35 04 06 00 42 86 4C 26 BB DD [17:23:46]Write to MH i2c: E2 99 00 D4 28 80 0D 02 02 91 00 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 A5 DC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C2 00 00 35 04 06 00 42 86 4C 26 BB DD 00 00 4C [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 03 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 03 00 D4 28 00 90 00 70 [17:23:46]RAPDU: 90 00 [17:23:46]wFMCommunicate OK [17:23:46]wFMCommunicate request_size=4 [17:23:46]MH_SAM_APDU [17:23:46]CAPDU: 80 0D 03 02 [17:23:46]Write to MH i2c: E2 08 00 D5 28 80 0D 03 02 00 00 00 00 78 [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 0B 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 0B 00 D5 28 00 DA CF CD A5 A7 42 35 43 90 00 F5 [17:23:46]RAPDU: DA CF CD A5 A7 42 35 43 90 00 [17:23:46]wFMCommunicate OK [17:23:46]SAM_PROTO_SignData done [17:23:46]FM_MakeSignedData done [17:23:46]CreateOFDProtocolMessage [17:23:46]wFMCommunicate request_size=4 [17:23:46]MH_SAM_APDU [17:23:46]CAPDU: 80 11 00 00 [17:23:46]Write to MH i2c: E2 08 00 D6 28 80 11 00 00 00 00 00 00 78 [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 17 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 17 00 D6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C3 [17:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:23:46]wFMCommunicate OK [17:23:46]CreateOFDProtocolMessage done [17:23:46]OFDSenderStorePacket 49670 [17:23:46]StoreOFDPacket docnum=49670 [17:23:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9B 01 00 00 2F 3C 93 01 A2 0F 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 A5 DC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C2 00 00 35 04 06 00 42 86 4C 26 BB DD DA CF CD A5 A7 42 35 43 [17:23:46]CheckFolder [17:23:46]dirname=/storage/ofd_packets [17:23:46]CheckFolder done [17:23:46]ProducePacketName [17:23:46]name=ofd_packets/00049670 [17:23:46]NVStorageSaveData ofd_packets/00049670 [17:23:46]File name is /storage/ofd_packets/00049670 [17:23:46]Write 441 bytes [17:23:46]NVStorageSaveData done [17:23:46]OFDSenderStorePacket done [17:23:46]KKMCreateOFDPacket done [17:23:46]NVStorageSaveData kkm_last_timestamp [17:23:46]File name is /storage/kkm_last_timestamp [17:23:46]Write 4 bytes [17:23:46]NVStorageSaveData done [17:23:46]ExternCall_PrintAddStr [17:23:46]wPrintStart [17:23:46]Write to MH i2c: 01 00 00 D7 28 FF [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: 01 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: 01 07 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: 01 07 00 D7 28 00 00 00 00 00 FF 0F 14 [17:23:46]RasterBufferAndPrint [17:23:46]line Счет N : (3)189852 [17:23:46]line ИНН: 02508201610067 [17:23:46]line Контрольно-Кассовый Чек [17:23:46]line ПРОДАЖА [17:23:46]line Товар: 5449000189318 [17:23:46]line Холодный чай Fuse лимон 1л [17:23:46]line 1.000 * 120.00 [17:23:46]line = 120.00 [17:23:46]line НДС 12% НСП 1% [17:23:46]line > о реализуемом товаре [17:23:46]line Товар: 48747073 [17:23:46]line Сигареты Richmond Royal Edition [17:23:46]line 1.000 * 150.00 [17:23:46]line = 150.00 [17:23:46]line НДС 12% НСП 1% [17:23:46]line > о реализуемом товаре [17:23:46]line ИТОГО: 270.00 [17:23:46]line НСП 1% : 2.39 [17:23:46]line НДС 12% : 28.67 [17:23:46]line Наличными: 270.00 [17:23:46]line Безнал.: 0.00 [17:23:46]line Место: АЗС № 95 "Партнер Нефть" [17:23:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:23:46]line СНО: Общий режим [17:23:46]line Чек 107 17.08.2024 17:23 [17:23:46]line Смена: 465 ФФД: 1.0 [17:23:46]line ЗНМ: 0300000078 [17:23:46]line РНМ: 0000000000092546 [17:23:46]line Версия ККМ: 001 [17:23:46]line ФМ: 0000000000871800 [17:23:46]line ФД: 49670 [17:23:46]line ФПД: 73144570657757 [17:23:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T172349&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49670&fm=73144570657757&tin=02508201610067®Number=0000000000092546&sum=27000 [17:23:46]OFD Sender: Processing packet 49670 [packets to send 21, broken 20] [17:23:46]ProducePacketName [17:23:46]name=ofd_packets/00049670 [17:23:46]OFD Sender: To server: pG, [17:23:46]CommunicateWithHost lk.salyk.kg:30040 [17:23:46]ConnectInit lk.salyk.kg [17:23:46]line 0 [17:23:46]written 0, free lines is 4095 [17:23:47]Connected sock=9 [17:23:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9B 01 00 00 2F 3C 93 01 A2 0F 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 A5 DC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C2 00 00 35 04 06 00 42 86 4C 26 BB DD DA CF CD A5 A7 42 35 43 [17:23:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 55 B7 47 00 2D 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 31 38 30 30 10 04 04 00 06 C2 00 00 F4 03 04 00 E0 87 C0 66 B6 04 01 00 00 B3 4F 83 D5 4C 21 B4 2D [17:23:47]CommunicateWithHost err = 0 [17:23:47]CheckOFDResponse [17:23:47]1017 (14) - 77093643461234 [17:23:47]1041 (16) - 0000000000871800 [17:23:47]1040 (4) - 49670 [17:23:47]1012 (4) - 17.08.2024 11:22 [17:23:47]1206 (1) - 0 [17:23:47]OFD Sender: Remove packet 49670 [17:23:47]ProducePacketName [17:23:47]name=ofd_packets/00049670 [17:23:47]NVStorageDeleteData [17:23:47]Write to MH i2c: 01 00 00 06 29 2F [17:23:47]Write i2c OK [17:23:47]MH_I2C_Read... [17:23:47]Read from MH i2c: 01 [17:23:47]MH_I2C_Read... [17:23:47]Read from MH i2c: 01 07 00 [17:23:47]MH_I2C_Read... [17:23:47]Read from MH i2c: 01 07 00 06 29 00 00 00 00 00 74 0C B6 [17:23:47]RasterBufferAndPrint [17:23:47]line [17:23:47]line [17:23:47]line [17:23:47]line [17:23:47]line [17:23:47]written 0, free lines is 3194 [17:23:47]MH_Cut [17:23:47]Write to MH i2c: D1 01 00 0D 29 01 08 [17:23:47]Write i2c OK [17:23:47]MH_I2C_Read... [17:23:47]Read from MH i2c: D1 [17:23:47]MH_I2C_Read... [17:23:47]Read from MH i2c: D1 01 00 [17:23:47]MH_I2C_Read... [17:23:47]Read from MH i2c: D1 01 00 0D 29 00 07 [17:23:47]Write to MH i2c: 01 00 00 0E 29 37 [17:23:47]Write i2c OK [17:23:47]MH_I2C_Read... [17:23:47]OFD Sender: No OFD packet to send [17:23:48]*** Cut start [17:23:48]*** Purtial cut [17:23:48]*** CUTSNS_PIN = 0 [17:23:48]*** Stage 1: CUTSNS_PIN = 1 [17:23:50]Read from MH i2c: 01 [17:23:50]MH_I2C_Read... [17:23:50]*** Stop cut motor [17:23:50]*** Cut end [17:23:50]Read from MH i2c: 01 07 00 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: 01 07 00 0E 29 00 00 00 00 00 FF 0F 4C [17:23:50]process_action close_receipt done [17:23:50]requested_data is exist [17:23:50]produce_requested_data [17:23:50]requested_item fm.sn is exist - process it [17:23:50]wFMCommunicate request_size=4 [17:23:50]MH_SAM_APDU [17:23:50]CAPDU: 80 11 00 00 [17:23:50]Write to MH i2c: E2 08 00 0F 29 80 11 00 00 00 00 00 00 B2 [17:23:50]Write i2c OK [17:23:50]MH_I2C_Read... [17:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:50]Read from MH i2c: E2 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: E2 17 00 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: E2 17 00 0F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FD [17:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:23:50]wFMCommunicate OK [17:23:50]requested_item fd.num is exist - process it [17:23:50]SAM_PROTO_GetFieldsCounters [17:23:50]wFMCommunicate request_size=4 [17:23:50]MH_SAM_APDU [17:23:50]CAPDU: 80 13 00 00 [17:23:50]Write to MH i2c: E2 08 00 10 29 80 13 00 00 00 00 00 00 B5 [17:23:50]Write i2c OK [17:23:50]MH_I2C_Read... [17:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:50]Read from MH i2c: E2 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: E2 62 00 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: E2 62 00 10 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 06 C2 00 00 0E 04 04 00 D1 01 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 AA [17:23: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 06 C2 00 00 0E 04 04 00 D1 01 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 [17:23:50]wFMCommunicate OK [17:23:50]SAM_PROTO_GetFieldsCounters done [17:23:50]requested_item shift.num is exist - process it [17:23:50]requested_item shift.opened is exist - process it [17:23:50]req_shift_opened [17:23:50]FM_GetShiftState [17:23:50]SAM_PROTO_GetShiftState [17:23:50]wFMCommunicate request_size=4 [17:23:50]MH_SAM_APDU [17:23:50]CAPDU: 80 13 01 00 [17:23:50]Write to MH i2c: E2 08 00 11 29 80 13 01 00 00 00 00 00 B7 [17:23:50]Write i2c OK [17:23:50]MH_I2C_Read... [17:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:50]Read from MH i2c: E2 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: E2 0E 00 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: E2 0E 00 11 29 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 FC [17:23:50]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:23:50]wFMCommunicate OK [17:23:50]SAM_PROTO_GetShiftState done [17:23:50]FM_GetShiftState done [17:23:50]req_shift_opened done [17:23:50]requested_item shift.open_date is exist - process it [17:23:50]req_shift_open_date [17:23:50]req_shift_open_date done [17:23:50]produce_requested_data done [17:23:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49670,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [17:23:50]process_action_free close_receipt [17:23:50]json_value_free [17:23:50]json_value_free done [17:23:50]process_json_proto returns [17:23:50]Send response to host [17:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49670,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [17:23:50]free response buf [17:23:50]execute_script done [17:23:50]execute_script returns [17:23:50]free content buf [17:23:50]Sock 10.Close socket [17:23:50]Sock 10.Thread stoped [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:25]accept exits with 7 [17:27:25]New connection [17:27:25]New thread 3066801508 created [17:27:25]Thread 3066944868 joined [17:27:25]Waiting for new connection... [17:27:25] Sock 7.Parse request [17:27:25]Sock 7.Check first char [17:27:25]Sock 7.First char is OK [17:27:25]request: POST /json_proto HTTP/1.0 [17:27:25]Method: POST [17:27:25]URL: /json_proto [17:27:25]Method is POST - this is cgi request [17:27:25]url: /json_proto [17:27:25]query_string will be loaded in cgi processing [17:27:25]execute_cgi json_proto POST (null) [17:27:25]execute_cgi path=json_proto method=POST [17:27:25]POST find Content-Length [17:27:25]Host: 172.17.46.196:8080 [17:27:25]Content-Length: 938 [17:27:25]Content-Type: application/json [17:27:25] [17:27:25]POST finish read [17:27:25]Found Content-Length = 938 [17:27:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189853", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:25]execute_script... [17:27:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189853", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:25]POST & json_proto [17:27:25]process_json_proto [17:27:25]json parsed OK: [17:27:25]protocol is kg_v1.0 [17:27:25]action value=close_receipt [17:27:25]process_action close_receipt [17:27:25]cmd_close_receipt [17:27:25]MH_GetDate [17:27:25]Write to MH i2c: F0 00 00 12 29 2A [17:27:25]Write i2c OK [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: F0 [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: F0 09 00 [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: F0 09 00 12 29 00 82 DD C0 66 07 E8 5D 66 6A [17:27:25]GetLastDocTimeStamp 1723915429 [17:27:25]current date 1723915650 [17:27:25]FM_GetShiftState [17:27:25]SAM_PROTO_GetShiftState [17:27:25]wFMCommunicate request_size=4 [17:27:25]MH_SAM_APDU [17:27:25]CAPDU: 80 13 01 00 [17:27:25]Write to MH i2c: E2 08 00 13 29 80 13 01 00 00 00 00 00 B9 [17:27:25]Write i2c OK [17:27:25]MH_I2C_Read... [17:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:25]Read from MH i2c: E2 [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: E2 0E 00 [17:27:25]MH_I2C_Read... [17:27:25]Read from MH i2c: E2 0E 00 13 29 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 FE [17:27:25]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:27:25]wFMCommunicate OK [17:27:25]SAM_PROTO_GetShiftState done [17:27:25]FM_GetShiftState done [17:27:25]opened in 1723853354 [17:27:25]opened+sec_in_day 1723939754 [17:27:25]quantity*price = 9500 [17:27:25]sum+1 = 9501 [17:27:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.64 НДС 12% : 19.65 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 108 17.08.2024 17:27 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49671 ФПД: 169205226804820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T172730&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49671&fm=169205226804820&tin=02508201610067®Number=0000000000092546&sum=18500 0 [17:27:26]StoreToDocumentArchive [17:27:26]shift 465 fd 49671 [17:27:26]save to /storage/0465/doc_00049671 [17:27:26]save last doc name /storage/0465/doc_00049671 to /storage/kkm_last_doc_name [17:27:26]save OK [17:27:26]Clear old archive folders... [17:27:26]ProcessDocumentItem done err = 0, tmpTLVsize=416 [17:27:26]tlvbuf is 0181AC70 [17:27:26]SAM_PROTO_ClearQueue [17:27:26]wFMCommunicate request_size=4 [17:27:26]MH_SAM_APDU [17:27:26]CAPDU: 80 09 00 00 [17:27:26]Write to MH i2c: E2 08 00 20 29 80 09 00 00 00 00 00 00 BB [17:27:26]Write i2c OK [17:27:26]MH_I2C_Read... [17:27:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:26]Read from MH i2c: E2 [17:27:26]MH_I2C_Read... [17:27:26]Read from MH i2c: E2 03 00 [17:27:26]MH_I2C_Read... [17:27:26]Read from MH i2c: E2 03 00 20 29 00 90 00 BD [17:27:26]RAPDU: 90 00 [17:27:26]wFMCommunicate OK [17:27:26]SAM_PROTO_ClearQueue done [17:27:26]KKMCreateOFDPacket [17:27:26]OFDProtocolAddRootSTLVToBuf [17:27:26]FM_MakeSignedData [17:27:26]FM_MakeSignedData [17:27:26]SAM_PROTO_SignData [17:27:26]wFMCommunicate request_size=4 [17:27:26]MH_SAM_APDU [17:27:26]CAPDU: 80 0D 01 02 [17:27:26]Write to MH i2c: E2 08 00 21 29 80 0D 01 02 00 00 00 00 C3 [17:27:26]Write i2c OK [17:27:26]MH_I2C_Read... [17:27:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:26]Read from MH i2c: E2 [17:27:26]MH_I2C_Read... [17:27:26]Read from MH i2c: E2 03 00 [17:27:26]MH_I2C_Read... [17:27:26]Read from MH i2c: E2 03 00 21 29 00 90 00 BE [17:27:26]RAPDU: 90 00 [17:27:26]wFMCommunicate OK [17:27:26]wFMCommunicate request_size=255 [17:27:26]MH_SAM_APDU [17:27:26]CAPDU: 80 0D 02 02 FA 03 00 A0 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [17:27:26]Write to MH i2c: E2 02 01 22 29 80 0D 02 02 FA 00 03 00 A0 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 87 [17:27:26]Write i2c OK [17:27:26]MH_I2C_Read... [17:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:27]Read from MH i2c: E2 [17:27:27]MH_I2C_Read... [17:27:27]Read from MH i2c: E2 03 00 [17:27:27]MH_I2C_Read... [17:27:27]Read from MH i2c: E2 03 00 22 29 00 90 00 BF [17:27:27]RAPDU: 90 00 [17:27:27]wFMCommunicate OK [17:27:27]wFMCommunicate request_size=175 [17:27:27]MH_SAM_APDU [17:27:27]CAPDU: 80 0D 02 02 AA BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 82 DD C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C2 00 00 35 04 06 00 99 E4 29 70 16 54 [17:27:27]Write to MH i2c: E2 B2 00 23 29 80 0D 02 02 AA 00 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 82 DD C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C2 00 00 35 04 06 00 99 E4 29 70 16 54 00 00 93 [17:27:27]Write i2c OK [17:27:27]MH_I2C_Read... [17:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:27]Read from MH i2c: E2 [17:27:27]MH_I2C_Read... [17:27:27]Read from MH i2c: E2 03 00 [17:27:27]MH_I2C_Read... [17:27:27]Read from MH i2c: E2 03 00 23 29 00 90 00 C0 [17:27:27]RAPDU: 90 00 [17:27:27]wFMCommunicate OK [17:27:27]wFMCommunicate request_size=4 [17:27:27]MH_SAM_APDU [17:27:27]CAPDU: 80 0D 03 02 [17:27:27]Write to MH i2c: E2 08 00 24 29 80 0D 03 02 00 00 00 00 C8 [17:27:27]Write i2c OK [17:27:27]MH_I2C_Read... [17:27:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:27]Read from MH i2c: E2 [17:27:27]MH_I2C_Read... [17:27:27]Read from MH i2c: E2 0B 00 [17:27:27]MH_I2C_Read... [17:27:27]Read from MH i2c: E2 0B 00 24 29 00 05 3C 2D 1C 38 70 10 35 90 00 40 [17:27:27]RAPDU: 05 3C 2D 1C 38 70 10 35 90 00 [17:27:27]wFMCommunicate OK [17:27:27]SAM_PROTO_SignData done [17:27:27]FM_MakeSignedData done [17:27:27]CreateOFDProtocolMessage [17:27:27]wFMCommunicate request_size=4 [17:27:27]MH_SAM_APDU [17:27:27]CAPDU: 80 11 00 00 [17:27:27]Write to MH i2c: E2 08 00 25 29 80 11 00 00 00 00 00 00 C8 [17:27:27]Write i2c OK [17:27:27]MH_I2C_Read... [17:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:27]Read from MH i2c: E2 [17:27:27]MH_I2C_Read... [17:27:27]Read from MH i2c: E2 17 00 [17:27:27]MH_I2C_Read... [17:27:27]Read from MH i2c: E2 17 00 25 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 13 [17:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:27:27]wFMCommunicate OK [17:27:27]CreateOFDProtocolMessage done [17:27:27]OFDSenderStorePacket 49671 [17:27:27]StoreOFDPacket docnum=49671 [17:27:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B4 01 00 00 12 3C AC 01 7D DC 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 82 DD C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C2 00 00 35 04 06 00 99 E4 29 70 16 54 05 3C 2D 1C 38 70 10 35 [17:27:27]CheckFolder [17:27:27]dirname=/storage/ofd_packets [17:27:27]CheckFolder done [17:27:27]ProducePacketName [17:27:27]name=ofd_packets/00049671 [17:27:27]NVStorageSaveData ofd_packets/00049671 [17:27:27]File name is /storage/ofd_packets/00049671 [17:27:27]Write 466 bytes [17:27:27]NVStorageSaveData done [17:27:27]OFDSenderStorePacket done [17:27:27]KKMCreateOFDPacket done [17:27:27]NVStorageSaveData kkm_last_timestamp [17:27:27]File name is /storage/kkm_last_timestamp [17:27:27]Write 4 bytes [17:27:27]NVStorageSaveData done [17:27:27]ExternCall_PrintAddStr [17:27:27]wPrintStart [17:27:27]Write to MH i2c: 01 00 00 26 29 4F [17:27:27]Write i2c OK [17:27:27]MH_I2C_Read... [17:27:27]Read from MH i2c: 01 [17:27:27]MH_I2C_Read... [17:27:27]Read from MH i2c: 01 07 00 [17:27:27]MH_I2C_Read... [17:27:27]Read from MH i2c: 01 07 00 26 29 00 00 00 00 00 FF 0F 64 [17:27:27]RasterBufferAndPrint [17:27:27]line Счет N : (3)189853 [17:27:27]line ИНН: 02508201610067 [17:27:27]line Контрольно-Кассовый Чек [17:27:27]line ПРОДАЖА [17:27:27]line Товар: 4700000480050 [17:27:27]line Напиток Nitro Energy эн green ж/б 0,45л [17:27:27]line 1.000 * 95.00 [17:27:27]line = 95.00 [17:27:27]line НДС 12% НСП 1% [17:27:27]line > о реализуемом товаре [17:27:27]line Товар: 4870022003305 [17:27:27]line Напиток Gorilla эн нат ж/б 0,5/0,45л [17:27:27]line 1.000 * 90.00 [17:27:27]line = 90.00 [17:27:27]line НДС 12% НСП 1% [17:27:27]line > о реализуемом товаре [17:27:27]line ИТОГО: 185.00 [17:27:27]line НСП 1% : 1.64 [17:27:27]line НДС 12% : 19.65 [17:27:27]line Наличными: 185.00 [17:27:27]line Безнал.: 0.00 [17:27:27]line Место: АЗС № 95 "Партнер Нефть" [17:27:27]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:27:27]line СНО: Общий режим [17:27:27]line Чек 108 17.08.2024 17:27 [17:27:27]line Смена: 465 ФФД: 1.0 [17:27:27]line ЗНМ: 0300000078 [17:27:27]line РНМ: 0000000000092546 [17:27:27]line Версия ККМ: 001 [17:27:27]line ФМ: 0000000000871800 [17:27:27]line ФД: 49671 [17:27:27]line ФПД: 169205226804820 [17:27:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T172730&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49671&fm=169205226804820&tin=02508201610067®Number=0000000000092546&sum=18500 [17:27:27]line 0 [17:27:27]OFD Sender: Processing packet 49671 [packets to send 21, broken 20] [17:27:27]ProducePacketName [17:27:27]name=ofd_packets/00049671 [17:27:27]OFD Sender: To server: pG, [17:27:27]CommunicateWithHost lk.salyk.kg:30040 [17:27:27]ConnectInit lk.salyk.kg [17:27:27]written 0, free lines is 4095 [17:27:28]Connected sock=10 [17:27:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B4 01 00 00 12 3C AC 01 7D DC 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 82 DD C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C2 00 00 35 04 06 00 99 E4 29 70 16 54 05 3C 2D 1C 38 70 10 35 [17:27:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 52 3E 47 00 21 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C2 00 00 F4 03 04 00 BD 88 C0 66 B6 04 01 00 00 8E 4F 67 3C 5F 1A CB 6D [17:27:28]CommunicateWithHost err = 0 [17:27:28]CheckOFDResponse [17:27:28]1017 (14) - 77093643461234 [17:27:28]1041 (16) - 0000000000871800 [17:27:28]1040 (4) - 49671 [17:27:28]1012 (4) - 17.08.2024 11:25 [17:27:28]1206 (1) - 0 [17:27:28]OFD Sender: Remove packet 49671 [17:27:28]ProducePacketName [17:27:28]name=ofd_packets/00049671 [17:27:28]NVStorageDeleteData [17:27:28]Write to MH i2c: 01 00 00 56 29 7F [17:27:28]Write i2c OK [17:27:28]MH_I2C_Read... [17:27:28]Read from MH i2c: 01 [17:27:28]MH_I2C_Read... [17:27:28]Read from MH i2c: 01 07 00 [17:27:28]MH_I2C_Read... [17:27:28]Read from MH i2c: 01 07 00 56 29 00 00 00 00 00 67 0C F9 [17:27:28]RasterBufferAndPrint [17:27:28]line [17:27:28]line [17:27:28]line [17:27:28]line [17:27:28]line [17:27:28]written 0, free lines is 3184 [17:27:28]MH_Cut [17:27:28]Write to MH i2c: D1 01 00 5D 29 01 58 [17:27:28]Write i2c OK [17:27:28]MH_I2C_Read... [17:27:28]Read from MH i2c: D1 [17:27:28]MH_I2C_Read... [17:27:28]Read from MH i2c: D1 01 00 [17:27:28]MH_I2C_Read... [17:27:28]Read from MH i2c: D1 01 00 5D 29 00 57 [17:27:28]Write to MH i2c: 01 00 00 5E 29 87 [17:27:28]Write i2c OK [17:27:28]MH_I2C_Read... [17:27:28]OFD Sender: No OFD packet to send [17:27:29]*** Cut start [17:27:29]*** Purtial cut [17:27:29]*** Stage 1: CUTSNS_PIN = 1 [17:27:29]Read from MH i2c: 01 [17:27:29]MH_I2C_Read... [17:27:29]*** Stop cut motor [17:27:29]*** Cut end [17:27:29]Read from MH i2c: 01 07 00 [17:27:29]MH_I2C_Read... [17:27:29]Read from MH i2c: 01 07 00 5E 29 00 00 00 00 00 FF 0F 9C [17:27:29]process_action close_receipt done [17:27:29]requested_data is exist [17:27:29]produce_requested_data [17:27:29]requested_item fm.sn is exist - process it [17:27:29]wFMCommunicate request_size=4 [17:27:29]MH_SAM_APDU [17:27:29]CAPDU: 80 11 00 00 [17:27:29]Write to MH i2c: E2 08 00 5F 29 80 11 00 00 00 00 00 00 02 [17:27:29]Write i2c OK [17:27:29]MH_I2C_Read... [17:27:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:29]Read from MH i2c: E2 [17:27:29]MH_I2C_Read... [17:27:29]Read from MH i2c: E2 17 00 [17:27:29]MH_I2C_Read... [17:27:29]Read from MH i2c: E2 17 00 5F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4D [17:27:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:27:29]wFMCommunicate OK [17:27:29]requested_item fd.num is exist - process it [17:27:29]SAM_PROTO_GetFieldsCounters [17:27:29]wFMCommunicate request_size=4 [17:27:29]MH_SAM_APDU [17:27:29]CAPDU: 80 13 00 00 [17:27:29]Write to MH i2c: E2 08 00 60 29 80 13 00 00 00 00 00 00 05 [17:27:29]Write i2c OK [17:27:29]MH_I2C_Read... [17:27:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:29]Read from MH i2c: E2 [17:27:29]MH_I2C_Read... [17:27:29]Read from MH i2c: E2 62 00 [17:27:29]MH_I2C_Read... [17:27:29]Read from MH i2c: E2 62 00 60 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 07 C2 00 00 0E 04 04 00 D1 01 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 FE [17:27: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 07 C2 00 00 0E 04 04 00 D1 01 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 [17:27:29]wFMCommunicate OK [17:27:29]SAM_PROTO_GetFieldsCounters done [17:27:29]requested_item shift.num is exist - process it [17:27:29]requested_item shift.opened is exist - process it [17:27:29]req_shift_opened [17:27:29]FM_GetShiftState [17:27:29]SAM_PROTO_GetShiftState [17:27:29]wFMCommunicate request_size=4 [17:27:29]MH_SAM_APDU [17:27:29]CAPDU: 80 13 01 00 [17:27:29]Write to MH i2c: E2 08 00 61 29 80 13 01 00 00 00 00 00 07 [17:27:29]Write i2c OK [17:27:29]MH_I2C_Read... [17:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:29]Read from MH i2c: E2 [17:27:29]MH_I2C_Read... [17:27:29]Read from MH i2c: E2 0E 00 [17:27:29]MH_I2C_Read... [17:27:29]Read from MH i2c: E2 0E 00 61 29 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 4C [17:27:29]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:27:29]wFMCommunicate OK [17:27:29]SAM_PROTO_GetShiftState done [17:27:29]FM_GetShiftState done [17:27:29]req_shift_opened done [17:27:29]requested_item shift.open_date is exist - process it [17:27:29]req_shift_open_date [17:27:29]req_shift_open_date done [17:27:29]produce_requested_data done [17:27:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49671,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [17:27:29]process_action_free close_receipt [17:27:29]json_value_free [17:27:29]json_value_free done [17:27:29]process_json_proto returns [17:27:29]Send response to host [17:27:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49671,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [17:27:29]free response buf [17:27:29]execute_script done [17:27:29]execute_script returns [17:27:29]free content buf [17:27:29]Sock 7.Close socket [17:27:29]Sock 7.Thread stoped [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:54]int [17:27:54]Write to MH i2c: 01 00 00 62 29 8B [17:27:54]*** FLAG_PRN_KEY set [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 62 29 00 08 00 00 00 FF 0F A8 [17:27:54]state=0 [17:27:54]Key pressed [17:27:54]Feed [17:27:54]Write to MH i2c: D8 00 00 63 29 63 [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: D8 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: D8 01 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: D8 01 00 63 29 00 64 [17:27:54]int [17:27:54]Write to MH i2c: 01 00 00 64 29 8D [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 64 29 00 48 00 00 00 3C 00 18 [17:27:54]state=2 [17:27:54]Key pressed [17:27:54]int [17:27:54]Write to MH i2c: 01 00 00 65 29 8E [17:27:54]*** FLAG_PRN_KEY reset [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 65 29 00 00 00 00 00 F6 0F 9A [17:27:54]state=2 [17:27:54]Stop feed [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]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:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [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: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: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:40]accept exits with 9 [17:42:40]New connection [17:42:40]New thread 3066944868 created [17:42:40]Thread 3066801508 joined [17:42:40]Waiting for new connection... [17:42:40] Sock 9.Parse request [17:42:40]Sock 9.Check first char [17:42:40]Sock 9.First char is OK [17:42:40]request: POST /json_proto HTTP/1.0 [17:42:40]Method: POST [17:42:40]URL: /json_proto [17:42:40]Method is POST - this is cgi request [17:42:40]url: /json_proto [17:42:40]query_string will be loaded in cgi processing [17:42:40]execute_cgi json_proto POST (null) [17:42:40]execute_cgi path=json_proto method=POST [17:42:40]POST find Content-Length [17:42:40]Host: 172.17.46.196:8080 [17:42:40]Content-Length: 642 [17:42:40]Content-Type: application/json [17:42:40] [17:42:40]POST finish read [17:42:40]Found Content-Length = 642 [17:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189854", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:40]execute_script... [17:42: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 : (3)189854", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:40]POST & json_proto [17:42:40]process_json_proto [17:42:40]json parsed OK: [17:42:40]protocol is kg_v1.0 [17:42:40]action value=close_receipt [17:42:40]process_action close_receipt [17:42:40]cmd_close_receipt [17:42:40]MH_GetDate [17:42:40]Write to MH i2c: F0 00 00 66 29 7E [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: F0 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: F0 09 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: F0 09 00 66 29 00 15 E1 C0 66 07 E8 5D 66 55 [17:42:40]GetLastDocTimeStamp 1723915650 [17:42:40]current date 1723916565 [17:42:40]FM_GetShiftState [17:42:40]SAM_PROTO_GetShiftState [17:42:40]wFMCommunicate request_size=4 [17:42:40]MH_SAM_APDU [17:42:40]CAPDU: 80 13 01 00 [17:42:40]Write to MH i2c: E2 08 00 67 29 80 13 01 00 00 00 00 00 0D [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:40]Read from MH i2c: E2 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 0E 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 0E 00 67 29 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 52 [17:42:40]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:42:40]wFMCommunicate OK [17:42:40]SAM_PROTO_GetShiftState done [17:42:40]FM_GetShiftState done [17:42:40]opened in 1723853354 [17:42:40]opened+sec_in_day 1723939754 [17:42:40]quantity*price = 5900 [17:42:40]sum+1 = 5901 [17:42:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 109 17.08.2024 17:42 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49672 ФПД: 56820075134564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T174245&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49672&fm=56820075134564&tin=02508201610067®Number=0000000000092546&sum=5900 0 [17:42:41]StoreToDocumentArchive [17:42:41]shift 465 fd 49672 [17:42:41]save to /storage/0465/doc_00049672 [17:42:41]save last doc name /storage/0465/doc_00049672 to /storage/kkm_last_doc_name [17:42:41]save OK [17:42:41]Clear old archive folders... [17:42:41]ProcessDocumentItem done err = 0, tmpTLVsize=281 [17:42:41]tlvbuf is 018C6770 [17:42:41]SAM_PROTO_ClearQueue [17:42:41]wFMCommunicate request_size=4 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 09 00 00 [17:42:41]Write to MH i2c: E2 08 00 74 29 80 09 00 00 00 00 00 00 0F [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:41]Read from MH i2c: E2 03 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 74 29 00 90 00 11 [17:42:41]RAPDU: 90 00 [17:42:41]wFMCommunicate OK [17:42:41]SAM_PROTO_ClearQueue done [17:42:41]KKMCreateOFDPacket [17:42:41]OFDProtocolAddRootSTLVToBuf [17:42:41]FM_MakeSignedData [17:42:41]FM_MakeSignedData [17:42:41]SAM_PROTO_SignData [17:42:41]wFMCommunicate request_size=4 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 0D 01 02 [17:42:41]Write to MH i2c: E2 08 00 75 29 80 0D 01 02 00 00 00 00 17 [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 75 29 00 90 00 12 [17:42:41]RAPDU: 90 00 [17:42:41]wFMCommunicate OK [17:42:41]wFMCommunicate request_size=255 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 15 E1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 [17:42:41]Write to MH i2c: E2 02 01 76 29 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 15 E1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 76 29 00 90 00 13 [17:42:41]RAPDU: 90 00 [17:42:41]wFMCommunicate OK [17:42:41]wFMCommunicate request_size=40 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C2 00 00 35 04 06 00 33 AD 74 64 FE 64 [17:42:41]Write to MH i2c: E2 2B 00 77 29 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C2 00 00 35 04 06 00 33 AD 74 64 FE 64 00 00 B3 [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 77 29 00 90 00 14 [17:42:41]RAPDU: 90 00 [17:42:41]wFMCommunicate OK [17:42:41]wFMCommunicate request_size=4 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 0D 03 02 [17:42:41]Write to MH i2c: E2 08 00 78 29 80 0D 03 02 00 00 00 00 1C [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:42]Read from MH i2c: E2 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: E2 0B 00 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: E2 0B 00 78 29 00 0D 34 05 CC 76 11 9A 01 90 00 51 [17:42:42]RAPDU: 0D 34 05 CC 76 11 9A 01 90 00 [17:42:42]wFMCommunicate OK [17:42:42]SAM_PROTO_SignData done [17:42:42]FM_MakeSignedData done [17:42:42]CreateOFDProtocolMessage [17:42:42]wFMCommunicate request_size=4 [17:42:42]MH_SAM_APDU [17:42:42]CAPDU: 80 11 00 00 [17:42:42]Write to MH i2c: E2 08 00 79 29 80 11 00 00 00 00 00 00 1C [17:42:42]Write i2c OK [17:42:42]MH_I2C_Read... [17:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:42]Read from MH i2c: E2 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: E2 17 00 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: E2 17 00 79 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 67 [17:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:42:42]wFMCommunicate OK [17:42:42]CreateOFDProtocolMessage done [17:42:42]OFDSenderStorePacket 49672 [17:42:42]StoreOFDPacket docnum=49672 [17:42:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 62 32 25 01 07 A4 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 15 E1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C2 00 00 35 04 06 00 33 AD 74 64 FE 64 0D 34 05 CC 76 11 9A 01 [17:42:42]CheckFolder [17:42:42]dirname=/storage/ofd_packets [17:42:42]CheckFolder done [17:42:42]ProducePacketName [17:42:42]name=ofd_packets/00049672 [17:42:42]NVStorageSaveData ofd_packets/00049672 [17:42:42]File name is /storage/ofd_packets/00049672 [17:42:42]Write 331 bytes [17:42:42]NVStorageSaveData done [17:42:42]OFDSenderStorePacket done [17:42:42]KKMCreateOFDPacket done [17:42:42]NVStorageSaveData kkm_last_timestamp [17:42:42]File name is /storage/kkm_last_timestamp [17:42:42]Write 4 bytes [17:42:42]NVStorageSaveData done [17:42:42]ExternCall_PrintAddStr [17:42:42]wPrintStart [17:42:42]Write to MH i2c: 01 00 00 7A 29 A3 [17:42:42]Write i2c OK [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 07 00 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 07 00 7A 29 00 00 00 00 00 FF 0F B8 [17:42:42]RasterBufferAndPrint [17:42:42]line Счет N : (3)189854 [17:42:42]line ИНН: 02508201610067 [17:42:42]line Контрольно-Кассовый Чек [17:42:42]line ПРОДАЖА [17:42:42]line Товар: 4607065001445 [17:42:42]line Шок батончик Snickers 50,5г [17:42:42]line 1.000 * 59.00 [17:42:42]line = 59.00 [17:42:42]line НДС 12% НСП 1% [17:42:42]line > о реализуемом товаре [17:42:42]line ИТОГО: 59.00 [17:42:42]line НСП 1% : 0.52 [17:42:42]line НДС 12% : 6.26 [17:42:42]line Наличными: 59.00 [17:42:42]line Безнал.: 0.00 [17:42:42]line Место: АЗС № 95 "Партнер Нефть" [17:42:42]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:42:42]line СНО: Общий режим [17:42:42]line Чек 109 17.08.2024 17:42 [17:42:42]line Смена: 465 ФФД: 1.0 [17:42:42]line ЗНМ: 0300000078 [17:42:42]line РНМ: 0000000000092546 [17:42:42]line Версия ККМ: 001 [17:42:42]line ФМ: 0000000000871800 [17:42:42]line ФД: 49672 [17:42:42]line ФПД: 56820075134564 [17:42:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T174245&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49672&fm=56820075134564&tin=02508201610067®Number=0000000000092546&sum=5900 [17:42:42]line 0 [17:42:42]OFD Sender: Processing packet 49672 [packets to send 21, broken 20] [17:42:42]ProducePacketName [17:42:42]name=ofd_packets/00049672 [17:42:42]OFD Sender: To server: pG, [17:42:42]CommunicateWithHost lk.salyk.kg:30040 [17:42:42]ConnectInit lk.salyk.kg [17:42:42]written 0, free lines is 4095 [17:42:42]Connected sock=10 [17:42:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 62 32 25 01 07 A4 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 15 E1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C2 00 00 35 04 06 00 33 AD 74 64 FE 64 0D 34 05 CC 76 11 9A 01 [17:42:42]Write to MH i2c: 01 00 00 A2 29 CB [17:42:42]Write i2c OK [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 07 00 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 07 00 A2 29 00 00 00 00 00 07 0D E6 [17:42:42]RasterBufferAndPrint [17:42:42]line [17:42:42]line [17:42:42]line [17:42:42]line [17:42:42]line [17:42:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 59 E1 47 00 A6 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 31 38 30 30 10 04 04 00 08 C2 00 00 F4 03 04 00 50 8C C0 66 B6 04 01 00 00 90 7C 4C EC 2A C2 4F 97 [17:42:42]CommunicateWithHost err = 0 [17:42:42]CheckOFDResponse [17:42:42]1017 (14) - 77093643461234 [17:42:42]1041 (16) - 0000000000871800 [17:42:42]1040 (4) - 49672 [17:42:42]1012 (4) - 17.08.2024 11:41 [17:42:42]1206 (1) - 0 [17:42:42]OFD Sender: Remove packet 49672 [17:42:42]ProducePacketName [17:42:42]name=ofd_packets/00049672 [17:42:42]NVStorageDeleteData [17:42:42]written 0, free lines is 3355 [17:42:42]MH_Cut [17:42:42]Write to MH i2c: D1 01 00 A9 29 01 A4 [17:42:42]Write i2c OK [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: D1 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: D1 01 00 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: D1 01 00 A9 29 00 A3 [17:42:42]Write to MH i2c: 01 00 00 AA 29 D3 [17:42:42]Write i2c OK [17:42:42]MH_I2C_Read... [17:42:43]OFD Sender: No OFD packet to send [17:42:43]*** Cut start [17:42:43]*** Purtial cut [17:42:43]*** CUTSNS_PIN = 0 [17:42:43]*** Stage 1: CUTSNS_PIN = 1 [17:42:45]Read from MH i2c: 01 [17:42:45]MH_I2C_Read... [17:42:45]*** Stop cut motor [17:42:45]*** Cut end [17:42:45]Read from MH i2c: 01 07 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: 01 07 00 AA 29 00 00 00 00 00 FF 0F E8 [17:42:45]process_action close_receipt done [17:42:45]requested_data is exist [17:42:45]produce_requested_data [17:42:45]requested_item fm.sn is exist - process it [17:42:45]wFMCommunicate request_size=4 [17:42:45]MH_SAM_APDU [17:42:45]CAPDU: 80 11 00 00 [17:42:45]Write to MH i2c: E2 08 00 AB 29 80 11 00 00 00 00 00 00 4E [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:45]Read from MH i2c: E2 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 17 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 17 00 AB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 99 [17:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:42:45]wFMCommunicate OK [17:42:45]requested_item fd.num is exist - process it [17:42:45]SAM_PROTO_GetFieldsCounters [17:42:45]wFMCommunicate request_size=4 [17:42:45]MH_SAM_APDU [17:42:45]CAPDU: 80 13 00 00 [17:42:45]Write to MH i2c: E2 08 00 AC 29 80 13 00 00 00 00 00 00 51 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:45]Read from MH i2c: E2 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 62 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 62 00 AC 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 08 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [17:42: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 08 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:45]wFMCommunicate OK [17:42:45]SAM_PROTO_GetFieldsCounters done [17:42:45]requested_item shift.num is exist - process it [17:42:45]requested_item shift.opened is exist - process it [17:42:45]req_shift_opened [17:42:45]FM_GetShiftState [17:42:45]SAM_PROTO_GetShiftState [17:42:45]wFMCommunicate request_size=4 [17:42:45]MH_SAM_APDU [17:42:45]CAPDU: 80 13 01 00 [17:42:45]Write to MH i2c: E2 08 00 AD 29 80 13 01 00 00 00 00 00 53 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:45]Read from MH i2c: E2 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 0E 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 0E 00 AD 29 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 98 [17:42:45]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:42:45]wFMCommunicate OK [17:42:45]SAM_PROTO_GetShiftState done [17:42:45]FM_GetShiftState done [17:42:45]req_shift_opened done [17:42:45]requested_item shift.open_date is exist - process it [17:42:45]req_shift_open_date [17:42:45]req_shift_open_date done [17:42:45]produce_requested_data done [17:42:45]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49672,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [17:42:45]process_action_free close_receipt [17:42:45]json_value_free [17:42:45]json_value_free done [17:42:45]process_json_proto returns [17:42:45]Send response to host [17:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49672,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [17:42:45]free response buf [17:42:45]execute_script done [17:42:45]execute_script returns [17:42:45]free content buf [17:42:45]Sock 9.Close socket [17:42:45]Sock 9.Thread stoped [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:53]accept exits with 7 [17:43:53]New connection [17:43:53]New thread 3066801508 created [17:43:53]Thread 3066944868 joined [17:43:53]Waiting for new connection... [17:43:53] Sock 7.Parse request [17:43:53]Sock 7.Check first char [17:43:53]Sock 7.First char is OK [17:43:53]request: POST /json_proto HTTP/1.0 [17:43:53]Method: POST [17:43:53]URL: /json_proto [17:43:53]Method is POST - this is cgi request [17:43:53]url: /json_proto [17:43:53]query_string will be loaded in cgi processing [17:43:53]execute_cgi json_proto POST (null) [17:43:53]execute_cgi path=json_proto method=POST [17:43:53]POST find Content-Length [17:43:53]Host: 172.17.46.196:8080 [17:43:53]Content-Length: 914 [17:43:53]Content-Type: application/json [17:43:53] [17:43:53]POST finish read [17:43:53]Found Content-Length = 914 [17:43:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189855", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:53]execute_script... [17:43:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189855", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:53]POST & json_proto [17:43:53]process_json_proto [17:43:53]json parsed OK: [17:43:53]protocol is kg_v1.0 [17:43:53]action value=close_receipt [17:43:53]process_action close_receipt [17:43:53]cmd_close_receipt [17:43:53]MH_GetDate [17:43:53]Write to MH i2c: F0 00 00 AE 29 C6 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: F0 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: F0 09 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: F0 09 00 AE 29 00 5E E1 C0 66 07 E8 5D 66 E6 [17:43:53]GetLastDocTimeStamp 1723916565 [17:43:53]current date 1723916638 [17:43:53]FM_GetShiftState [17:43:53]SAM_PROTO_GetShiftState [17:43:53]wFMCommunicate request_size=4 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 13 01 00 [17:43:53]Write to MH i2c: E2 08 00 AF 29 80 13 01 00 00 00 00 00 55 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 0E 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 0E 00 AF 29 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 9A [17:43:53]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:43:53]wFMCommunicate OK [17:43:53]SAM_PROTO_GetShiftState done [17:43:53]FM_GetShiftState done [17:43:53]opened in 1723853354 [17:43:53]opened+sec_in_day 1723939754 [17:43:53]quantity*price = 13000 [17:43:53]sum+1 = 13001 [17:43:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 110 17.08.2024 17:43 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49673 ФПД: 51854410727638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T174358&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49673&fm=51854410727638&tin=02508201610067®Number=0000000000092546&sum=27000 0 [17:43:54]StoreToDocumentArchive [17:43:54]shift 465 fd 49673 [17:43:54]save to /storage/0465/doc_00049673 [17:43:54]save last doc name /storage/0465/doc_00049673 to /storage/kkm_last_doc_name [17:43:54]save OK [17:43:54]Clear old archive folders... [17:43:54]ProcessDocumentItem done err = 0, tmpTLVsize=389 [17:43:54]tlvbuf is 0187C420 [17:43:54]SAM_PROTO_ClearQueue [17:43:54]wFMCommunicate request_size=4 [17:43:54]MH_SAM_APDU [17:43:54]CAPDU: 80 09 00 00 [17:43:54]Write to MH i2c: E2 08 00 BC 29 80 09 00 00 00 00 00 00 57 [17:43:54]Write i2c OK [17:43:54]MH_I2C_Read... [17:43:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:54]Read from MH i2c: E2 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: E2 03 00 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: E2 03 00 BC 29 00 90 00 59 [17:43:54]RAPDU: 90 00 [17:43:54]wFMCommunicate OK [17:43:54]SAM_PROTO_ClearQueue done [17:43:54]KKMCreateOFDPacket [17:43:54]OFDProtocolAddRootSTLVToBuf [17:43:54]FM_MakeSignedData [17:43:54]FM_MakeSignedData [17:43:54]SAM_PROTO_SignData [17:43:54]wFMCommunicate request_size=4 [17:43:54]MH_SAM_APDU [17:43:54]CAPDU: 80 0D 01 02 [17:43:54]Write to MH i2c: E2 08 00 BD 29 80 0D 01 02 00 00 00 00 5F [17:43:54]Write i2c OK [17:43:54]MH_I2C_Read... [17:43:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:54]Read from MH i2c: E2 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: E2 03 00 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: E2 03 00 BD 29 00 90 00 5A [17:43:54]RAPDU: 90 00 [17:43:54]wFMCommunicate OK [17:43:54]wFMCommunicate request_size=255 [17:43:54]MH_SAM_APDU [17:43:54]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [17:43:54]Write to MH i2c: E2 02 01 BE 29 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 55 [17:43:54]Write i2c OK [17:43:54]MH_I2C_Read... [17:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:55]Read from MH i2c: E2 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 03 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 03 00 BE 29 00 90 00 5B [17:43:55]RAPDU: 90 00 [17:43:55]wFMCommunicate OK [17:43:55]wFMCommunicate request_size=148 [17:43:55]MH_SAM_APDU [17:43:55]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 5E E1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C2 00 00 35 04 06 00 2F 29 4B BB 40 D6 [17:43:55]Write to MH i2c: E2 97 00 BF 29 80 0D 02 02 8F 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 5E E1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C2 00 00 35 04 06 00 2F 29 4B BB 40 D6 00 00 99 [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:55]Read from MH i2c: E2 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 03 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 03 00 BF 29 00 90 00 5C [17:43:55]RAPDU: 90 00 [17:43:55]wFMCommunicate OK [17:43:55]wFMCommunicate request_size=4 [17:43:55]MH_SAM_APDU [17:43:55]CAPDU: 80 0D 03 02 [17:43:55]Write to MH i2c: E2 08 00 C0 29 80 0D 03 02 00 00 00 00 64 [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:55]Read from MH i2c: E2 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 0B 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 0B 00 C0 29 00 4E 27 05 A1 A2 90 FC 50 90 00 FE [17:43:55]RAPDU: 4E 27 05 A1 A2 90 FC 50 90 00 [17:43:55]wFMCommunicate OK [17:43:55]SAM_PROTO_SignData done [17:43:55]FM_MakeSignedData done [17:43:55]CreateOFDProtocolMessage [17:43:55]wFMCommunicate request_size=4 [17:43:55]MH_SAM_APDU [17:43:55]CAPDU: 80 11 00 00 [17:43:55]Write to MH i2c: E2 08 00 C1 29 80 11 00 00 00 00 00 00 64 [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:55]Read from MH i2c: E2 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 17 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 17 00 C1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AF [17:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:43:55]wFMCommunicate OK [17:43:55]CreateOFDProtocolMessage done [17:43:55]OFDSenderStorePacket 49673 [17:43:55]StoreOFDPacket docnum=49673 [17:43:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 99 01 00 00 48 12 91 01 D1 C3 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 5E E1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C2 00 00 35 04 06 00 2F 29 4B BB 40 D6 4E 27 05 A1 A2 90 FC 50 [17:43:55]CheckFolder [17:43:55]dirname=/storage/ofd_packets [17:43:55]CheckFolder done [17:43:55]ProducePacketName [17:43:55]name=ofd_packets/00049673 [17:43:55]NVStorageSaveData ofd_packets/00049673 [17:43:55]File name is /storage/ofd_packets/00049673 [17:43:55]Write 439 bytes [17:43:55]NVStorageSaveData done [17:43:55]OFDSenderStorePacket done [17:43:55]KKMCreateOFDPacket done [17:43:55]NVStorageSaveData kkm_last_timestamp [17:43:55]File name is /storage/kkm_last_timestamp [17:43:55]Write 4 bytes [17:43:55]NVStorageSaveData done [17:43:55]ExternCall_PrintAddStr [17:43:55]wPrintStart [17:43:55]Write to MH i2c: 01 00 00 C2 29 EB [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: 01 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: 01 07 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: 01 07 00 C2 29 00 00 00 00 00 FF 0F 00 [17:43:55]RasterBufferAndPrint [17:43:55]line Счет N : (3)189855 [17:43:55]line ИНН: 02508201610067 [17:43:55]line Контрольно-Кассовый Чек [17:43:55]line ПРОДАЖА [17:43:55]line Товар: 4700040114120 [17:43:55]line Султан чай 1л. чер персик [17:43:55]line 2.000 * 65.00 [17:43:55]line = 130.00 [17:43:55]line НДС 12% НСП 1% [17:43:55]line > о реализуемом товаре [17:43:55]line Товар: 48743570 [17:43:55]line Сигареты Winston XStyle Blue [17:43:55]line 1.000 * 140.00 [17:43:55]line = 140.00 [17:43:55]line НДС 12% НСП 1% [17:43:55]line > о реализуемом товаре [17:43:55]line ИТОГО: 270.00 [17:43:55]line НСП 1% : 2.39 [17:43:55]line НДС 12% : 28.67 [17:43:55]line Наличными: 270.00 [17:43:55]line Безнал.: 0.00 [17:43:55]line Место: АЗС № 95 "Партнер Нефть" [17:43:55]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:43:55]line СНО: Общий режим [17:43:55]line Чек 110 17.08.2024 17:43 [17:43:55]line Смена: 465 ФФД: 1.0 [17:43:55]line ЗНМ: 0300000078 [17:43:55]line РНМ: 0000000000092546 [17:43:55]line Версия ККМ: 001 [17:43:55]line ФМ: 0000000000871800 [17:43:55]line ФД: 49673 [17:43:55]line ФПД: 51854410727638 [17:43:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T174358&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49673&fm=51854410727638&tin=02508201610067®Number=0000000000092546&sum=27000 [17:43:55]line 0 [17:43:55]OFD Sender: Processing packet 49673 [packets to send 21, broken 20] [17:43:55]ProducePacketName [17:43:55]name=ofd_packets/00049673 [17:43:55]OFD Sender: To server: pG, [17:43:55]CommunicateWithHost lk.salyk.kg:30040 [17:43:55]ConnectInit lk.salyk.kg [17:43:55]written 0, free lines is 4095 [17:43:56]Connected sock=10 [17:43:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 99 01 00 00 48 12 91 01 D1 C3 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 5E E1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C2 00 00 35 04 06 00 2F 29 4B BB 40 D6 4E 27 05 A1 A2 90 FC 50 [17:43:56]Write to MH i2c: 01 00 00 F0 29 19 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: 01 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: 01 07 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: 01 07 00 F0 29 00 00 00 00 00 94 0C C0 [17:43:56]RasterBufferAndPrint [17:43:56]line [17:43:56]line [17:43:56]line [17:43:56]line [17:43:56]line [17:43:56]written 0, free lines is 3226 [17:43:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 14 72 47 00 93 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C2 00 00 F4 03 04 00 9A 8C C0 66 B6 04 01 00 00 76 24 DB 56 02 D3 DD 49 [17:43:56]CommunicateWithHost err = 0 [17:43:56]CheckOFDResponse [17:43:56]1017 (14) - 77093643461234 [17:43:56]1041 (16) - 0000000000871800 [17:43:56]1040 (4) - 49673 [17:43:56]1012 (4) - 17.08.2024 11:42 [17:43:56]1206 (1) - 0 [17:43:56]OFD Sender: Remove packet 49673 [17:43:56]ProducePacketName [17:43:56]name=ofd_packets/00049673 [17:43:56]NVStorageDeleteData [17:43:56]MH_Cut [17:43:56]Write to MH i2c: D1 01 00 F7 29 01 F2 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: D1 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: D1 01 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: D1 01 00 F7 29 00 F1 [17:43:56]Write to MH i2c: 01 00 00 F8 29 21 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]OFD Sender: No OFD packet to send [17:43:57]*** Cut start [17:43:57]*** Purtial cut [17:43:57]*** Stage 1: CUTSNS_PIN = 1 [17:43:57]Read from MH i2c: 01 [17:43:57]MH_I2C_Read... [17:43:57]*** Stop cut motor [17:43:57]*** Cut end [17:43:57]Read from MH i2c: 01 07 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 07 00 F8 29 00 00 00 00 00 FF 0F 36 [17:43:57]process_action close_receipt done [17:43:57]requested_data is exist [17:43:57]produce_requested_data [17:43:57]requested_item fm.sn is exist - process it [17:43:57]wFMCommunicate request_size=4 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 11 00 00 [17:43:57]Write to MH i2c: E2 08 00 F9 29 80 11 00 00 00 00 00 00 9C [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 17 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 17 00 F9 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E7 [17:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:43:57]wFMCommunicate OK [17:43:57]requested_item fd.num is exist - process it [17:43:57]SAM_PROTO_GetFieldsCounters [17:43:57]wFMCommunicate request_size=4 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 13 00 00 [17:43:57]Write to MH i2c: E2 08 00 FA 29 80 13 00 00 00 00 00 00 9F [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 62 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 62 00 FA 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 09 C2 00 00 0E 04 04 00 D1 01 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 A0 [17:43: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 09 C2 00 00 0E 04 04 00 D1 01 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 [17:43:57]wFMCommunicate OK [17:43:57]SAM_PROTO_GetFieldsCounters done [17:43:57]requested_item shift.num is exist - process it [17:43:57]requested_item shift.opened is exist - process it [17:43:57]req_shift_opened [17:43:57]FM_GetShiftState [17:43:57]SAM_PROTO_GetShiftState [17:43:57]wFMCommunicate request_size=4 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 13 01 00 [17:43:57]Write to MH i2c: E2 08 00 FB 29 80 13 01 00 00 00 00 00 A1 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 0E 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 0E 00 FB 29 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 E6 [17:43:57]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:43:57]wFMCommunicate OK [17:43:57]SAM_PROTO_GetShiftState done [17:43:57]FM_GetShiftState done [17:43:57]req_shift_opened done [17:43:57]requested_item shift.open_date is exist - process it [17:43:57]req_shift_open_date [17:43:57]req_shift_open_date done [17:43:57]produce_requested_data done [17:43:57]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49673,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [17:43:57]process_action_free close_receipt [17:43:57]json_value_free [17:43:57]json_value_free done [17:43:57]process_json_proto returns [17:43:57]Send response to host [17:43:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49673,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [17:43:57]free response buf [17:43:57]execute_script done [17:43:57]execute_script returns [17:43:57]free content buf [17:43:57]Sock 7.Close socket [17:43:57]Sock 7.Thread stoped [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:23]accept exits with 9 [17:44:23]New connection [17:44:23]New thread 3066944868 created [17:44:23]Thread 3066801508 joined [17:44:23]Waiting for new connection... [17:44:23] Sock 9.Parse request [17:44:23]Sock 9.Check first char [17:44:23]Sock 9.First char is OK [17:44:23]request: POST /json_proto HTTP/1.0 [17:44:23]Method: POST [17:44:23]URL: /json_proto [17:44:23]Method is POST - this is cgi request [17:44:23]url: /json_proto [17:44:23]query_string will be loaded in cgi processing [17:44:23]execute_cgi json_proto POST (null) [17:44:23]execute_cgi path=json_proto method=POST [17:44:23]POST find Content-Length [17:44:23]Host: 172.17.46.196:8080 [17:44:23]Content-Length: 803 [17:44:23]Content-Type: application/json [17:44:23] [17:44:23]POST finish read [17:44:23]Found Content-Length = 803 [17:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189856", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:23]execute_script... [17:44:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189856", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:23]POST & json_proto [17:44:23]process_json_proto [17:44:23]json parsed OK: [17:44:23]protocol is kg_v1.0 [17:44:23]action value=close_receipt [17:44:23]process_action close_receipt [17:44:23]cmd_close_receipt [17:44:23]MH_GetDate [17:44:23]Write to MH i2c: F0 00 00 FC 29 14 [17:44:23]Write i2c OK [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: F0 [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: F0 09 00 [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: F0 09 00 FC 29 00 7C E1 C0 66 07 E8 5D 66 52 [17:44:23]GetLastDocTimeStamp 1723916638 [17:44:23]current date 1723916668 [17:44:23]FM_GetShiftState [17:44:23]SAM_PROTO_GetShiftState [17:44:23]wFMCommunicate request_size=4 [17:44:23]MH_SAM_APDU [17:44:23]CAPDU: 80 13 01 00 [17:44:23]Write to MH i2c: E2 08 00 FD 29 80 13 01 00 00 00 00 00 A3 [17:44:23]Write i2c OK [17:44:23]MH_I2C_Read... [17:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:23]Read from MH i2c: E2 [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: E2 0E 00 [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: E2 0E 00 FD 29 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 E8 [17:44:23]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:44:23]wFMCommunicate OK [17:44:23]SAM_PROTO_GetShiftState done [17:44:23]FM_GetShiftState done [17:44:23]opened in 1723853354 [17:44:23]opened+sec_in_day 1723939754 [17:44:23]quantity*price = 11500 [17:44:23]sum+1 = 11501 [17:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 111 17.08.2024 17:44 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49674 ФПД: 1116735878280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T174428&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49674&fm=1116735878280&tin=02508201610067®Number=0000000000092546&sum=11500 0 [17:44:24]StoreToDocumentArchive [17:44:24]shift 465 fd 49674 [17:44:24]save to /storage/0465/doc_00049674 [17:44:24]save last doc name /storage/0465/doc_00049674 to /storage/kkm_last_doc_name [17:44:24]save OK [17:44:24]Clear old archive folders... [17:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=274 [17:44:24]tlvbuf is 01864B40 [17:44:24]SAM_PROTO_ClearQueue [17:44:24]wFMCommunicate request_size=4 [17:44:24]MH_SAM_APDU [17:44:24]CAPDU: 80 09 00 00 [17:44:24]Write to MH i2c: E2 08 00 0A 2A 80 09 00 00 00 00 00 00 A6 [17:44:24]Write i2c OK [17:44:24]MH_I2C_Read... [17:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:24]Read from MH i2c: E2 [17:44:24]MH_I2C_Read... [17:44:24]Read from MH i2c: E2 03 00 [17:44:24]MH_I2C_Read... [17:44:24]Read from MH i2c: E2 03 00 0A 2A 00 90 00 A8 [17:44:24]RAPDU: 90 00 [17:44:24]wFMCommunicate OK [17:44:24]SAM_PROTO_ClearQueue done [17:44:24]KKMCreateOFDPacket [17:44:24]OFDProtocolAddRootSTLVToBuf [17:44:24]FM_MakeSignedData [17:44:24]FM_MakeSignedData [17:44:24]SAM_PROTO_SignData [17:44:24]wFMCommunicate request_size=4 [17:44:24]MH_SAM_APDU [17:44:24]CAPDU: 80 0D 01 02 [17:44:24]Write to MH i2c: E2 08 00 0B 2A 80 0D 01 02 00 00 00 00 AE [17:44:24]Write i2c OK [17:44:24]MH_I2C_Read... [17:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:24]Read from MH i2c: E2 [17:44:24]MH_I2C_Read... [17:44:24]Read from MH i2c: E2 03 00 [17:44:24]MH_I2C_Read... [17:44:24]Read from MH i2c: E2 03 00 0B 2A 00 90 00 A9 [17:44:24]RAPDU: 90 00 [17:44:24]wFMCommunicate OK [17:44:24]wFMCommunicate request_size=255 [17:44:24]MH_SAM_APDU [17:44:24]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7C E1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [17:44:24]Write to MH i2c: E2 02 01 0C 2A 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7C E1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 0F [17:44:24]Write i2c OK [17:44:24]MH_I2C_Read... [17:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:25]Read from MH i2c: E2 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 03 00 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 03 00 0C 2A 00 90 00 AA [17:44:25]RAPDU: 90 00 [17:44:25]wFMCommunicate OK [17:44:25]wFMCommunicate request_size=33 [17:44:25]MH_SAM_APDU [17:44:25]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C2 00 00 35 04 06 00 01 04 02 A5 34 88 [17:44:25]Write to MH i2c: E2 24 00 0D 2A 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C2 00 00 35 04 06 00 01 04 02 A5 34 88 00 00 6C [17:44:25]Write i2c OK [17:44:25]MH_I2C_Read... [17:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:25]Read from MH i2c: E2 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 03 00 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 03 00 0D 2A 00 90 00 AB [17:44:25]RAPDU: 90 00 [17:44:25]wFMCommunicate OK [17:44:25]wFMCommunicate request_size=4 [17:44:25]MH_SAM_APDU [17:44:25]CAPDU: 80 0D 03 02 [17:44:25]Write to MH i2c: E2 08 00 0E 2A 80 0D 03 02 00 00 00 00 B3 [17:44:25]Write i2c OK [17:44:25]MH_I2C_Read... [17:44:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:25]Read from MH i2c: E2 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 0B 00 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 0B 00 0E 2A 00 8D D8 78 71 E5 60 A3 5D 90 00 47 [17:44:25]RAPDU: 8D D8 78 71 E5 60 A3 5D 90 00 [17:44:25]wFMCommunicate OK [17:44:25]SAM_PROTO_SignData done [17:44:25]FM_MakeSignedData done [17:44:25]CreateOFDProtocolMessage [17:44:25]wFMCommunicate request_size=4 [17:44:25]MH_SAM_APDU [17:44:25]CAPDU: 80 11 00 00 [17:44:25]Write to MH i2c: E2 08 00 0F 2A 80 11 00 00 00 00 00 00 B3 [17:44:25]Write i2c OK [17:44:25]MH_I2C_Read... [17:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:25]Read from MH i2c: E2 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 17 00 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 17 00 0F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FE [17:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:44:25]wFMCommunicate OK [17:44:25]CreateOFDProtocolMessage done [17:44:25]OFDSenderStorePacket 49674 [17:44:25]StoreOFDPacket docnum=49674 [17:44:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 68 8E 1E 01 FA 87 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7C E1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C2 00 00 35 04 06 00 01 04 02 A5 34 88 8D D8 78 71 E5 60 A3 5D [17:44:25]CheckFolder [17:44:25]dirname=/storage/ofd_packets [17:44:25]CheckFolder done [17:44:25]ProducePacketName [17:44:25]name=ofd_packets/00049674 [17:44:25]NVStorageSaveData ofd_packets/00049674 [17:44:25]File name is /storage/ofd_packets/00049674 [17:44:25]Write 324 bytes [17:44:25]NVStorageSaveData done [17:44:25]OFDSenderStorePacket done [17:44:25]KKMCreateOFDPacket done [17:44:25]NVStorageSaveData kkm_last_timestamp [17:44:25]File name is /storage/kkm_last_timestamp [17:44:25]Write 4 bytes [17:44:25]NVStorageSaveData done [17:44:25]ExternCall_PrintAddStr [17:44:25]wPrintStart [17:44:25]Write to MH i2c: 01 00 00 10 2A 3A [17:44:25]Write i2c OK [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: 01 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: 01 07 00 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: 01 07 00 10 2A 00 00 00 00 00 FF 0F 4F [17:44:25]RasterBufferAndPrint [17:44:25]line Счет N : (3)189856 [17:44:25]line ИНН: 02508201610067 [17:44:25]line Контрольно-Кассовый Чек [17:44:25]line ПРОДАЖА [17:44:25]line Товар: 2000036240010 [17:44:25]line Кофе Латте (GABB TRADE) [17:44:25]line 1.000 * 115.00 [17:44:25]line = 115.00 [17:44:25]line НДС 12% НСП 1% [17:44:25]line > о реализуемом товаре [17:44:25]line ИТОГО: 115.00 [17:44:25]line НСП 1% : 1.02 [17:44:25]line НДС 12% : 12.21 [17:44:25]line Наличными: 0.00 [17:44:25]line Безнал.: 115.00 [17:44:25]line Место: АЗС № 95 "Партнер Нефть" [17:44:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:44:25]line СНО: Общий режим [17:44:25]line Чек 111 17.08.2024 17:44 [17:44:25]line Смена: 465 ФФД: 1.0 [17:44:25]line ЗНМ: 0300000078 [17:44:25]line РНМ: 0000000000092546 [17:44:25]line Версия ККМ: 001 [17:44:25]line Платежная система: Бакай Банк [17:44:25]line ФМ: 0000000000871800 [17:44:25]line ФД: 49674 [17:44:25]line ФПД: 1116735878280 [17:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T174428&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49674&fm=1116735878280&tin=02508201610067®Number=0000000000092546&sum=11500 [17:44:25]OFD Sender: Processing packet 49674 [packets to send 21, broken 20] [17:44:25]ProducePacketName [17:44:25]name=ofd_packets/00049674 [17:44:25]OFD Sender: To server: pG, [17:44:25]CommunicateWithHost lk.salyk.kg:30040 [17:44:25]ConnectInit lk.salyk.kg [17:44:25]line 0 [17:44:25]written 0, free lines is 4095 [17:44:25]Connected sock=7 [17:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 68 8E 1E 01 FA 87 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7C E1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C2 00 00 35 04 06 00 01 04 02 A5 34 88 8D D8 78 71 E5 60 A3 5D [17:44:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 64 4A 47 00 84 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C2 00 00 F4 03 04 00 B7 8C C0 66 B6 04 01 00 00 27 C9 A8 CB 5A 6D 64 F0 [17:44:26]CommunicateWithHost err = 0 [17:44:26]CheckOFDResponse [17:44:26]1017 (14) - 77093643461234 [17:44:26]1041 (16) - 0000000000871800 [17:44:26]1040 (4) - 49674 [17:44:26]1012 (4) - 17.08.2024 11:42 [17:44:26]1206 (1) - 0 [17:44:26]OFD Sender: Remove packet 49674 [17:44:26]ProducePacketName [17:44:26]name=ofd_packets/00049674 [17:44:26]NVStorageDeleteData [17:44:26]Write to MH i2c: 01 00 00 3A 2A 64 [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: 01 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: 01 07 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: 01 07 00 3A 2A 00 00 00 00 00 E7 0C 5E [17:44:26]RasterBufferAndPrint [17:44:26]line [17:44:26]line [17:44:26]line [17:44:26]line [17:44:26]line [17:44:26]written 0, free lines is 3309 [17:44:26]MH_Cut [17:44:26]Write to MH i2c: D1 01 00 41 2A 01 3D [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: D1 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: D1 01 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: D1 01 00 41 2A 00 3C [17:44:26]Write to MH i2c: 01 00 00 42 2A 6C [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]OFD Sender: No OFD packet to send [17:44:26]*** Cut start [17:44:26]*** Purtial cut [17:44:26]*** CUTSNS_PIN = 0 [17:44:27]*** Stage 1: CUTSNS_PIN = 1 [17:44:28]Read from MH i2c: 01 [17:44:28]MH_I2C_Read... [17:44:28]*** Stop cut motor [17:44:28]*** Cut end [17:44:28]Read from MH i2c: 01 07 00 [17:44:28]MH_I2C_Read... [17:44:28]Read from MH i2c: 01 07 00 42 2A 00 00 00 00 00 FF 0F 81 [17:44:28]process_action close_receipt done [17:44:28]requested_data is exist [17:44:28]produce_requested_data [17:44:28]requested_item fm.sn is exist - process it [17:44:28]wFMCommunicate request_size=4 [17:44:28]MH_SAM_APDU [17:44:28]CAPDU: 80 11 00 00 [17:44:28]Write to MH i2c: E2 08 00 43 2A 80 11 00 00 00 00 00 00 E7 [17:44:28]Write i2c OK [17:44:28]MH_I2C_Read... [17:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:28]Read from MH i2c: E2 [17:44:28]MH_I2C_Read... [17:44:28]Read from MH i2c: E2 17 00 [17:44:28]MH_I2C_Read... [17:44:28]Read from MH i2c: E2 17 00 43 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 32 [17:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:44:28]wFMCommunicate OK [17:44:28]requested_item fd.num is exist - process it [17:44:28]SAM_PROTO_GetFieldsCounters [17:44:28]wFMCommunicate request_size=4 [17:44:28]MH_SAM_APDU [17:44:28]CAPDU: 80 13 00 00 [17:44:28]Write to MH i2c: E2 08 00 44 2A 80 13 00 00 00 00 00 00 EA [17:44:28]Write i2c OK [17:44:28]MH_I2C_Read... [17:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:29]Read from MH i2c: E2 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 62 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 62 00 44 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0A C2 00 00 0E 04 04 00 D1 01 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 EF [17:44: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0A C2 00 00 0E 04 04 00 D1 01 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 [17:44:29]wFMCommunicate OK [17:44:29]SAM_PROTO_GetFieldsCounters done [17:44:29]requested_item shift.num is exist - process it [17:44:29]requested_item shift.opened is exist - process it [17:44:29]req_shift_opened [17:44:29]FM_GetShiftState [17:44:29]SAM_PROTO_GetShiftState [17:44:29]wFMCommunicate request_size=4 [17:44:29]MH_SAM_APDU [17:44:29]CAPDU: 80 13 01 00 [17:44:29]Write to MH i2c: E2 08 00 45 2A 80 13 01 00 00 00 00 00 EC [17:44:29]Write i2c OK [17:44:29]MH_I2C_Read... [17:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:29]Read from MH i2c: E2 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 0E 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 0E 00 45 2A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 31 [17:44:29]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:44:29]wFMCommunicate OK [17:44:29]SAM_PROTO_GetShiftState done [17:44:29]FM_GetShiftState done [17:44:29]req_shift_opened done [17:44:29]requested_item shift.open_date is exist - process it [17:44:29]req_shift_open_date [17:44:29]req_shift_open_date done [17:44:29]produce_requested_data done [17:44:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49674,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [17:44:29]process_action_free close_receipt [17:44:29]json_value_free [17:44:29]json_value_free done [17:44:29]process_json_proto returns [17:44:29]Send response to host [17:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49674,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [17:44:29]free response buf [17:44:29]execute_script done [17:44:29]execute_script returns [17:44:29]free content buf [17:44:29]Sock 9.Close socket [17:44:29]Sock 9.Thread stoped [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:05]int [17:45:05]Write to MH i2c: 01 00 00 46 2A 70 [17:45:05]*** FLAG_PRN_KEY set [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 07 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 07 00 46 2A 00 08 00 00 00 FF 0F 8D [17:45:05]state=0 [17:45:05]Key pressed [17:45:05]Feed [17:45:05]Write to MH i2c: D8 00 00 47 2A 48 [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: D8 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: D8 01 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: D8 01 00 47 2A 00 49 [17:45:05]int [17:45:05]Write to MH i2c: 01 00 00 48 2A 72 [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 07 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 07 00 48 2A 00 48 00 00 00 3C 00 FD [17:45:05]state=2 [17:45:05]Key pressed [17:45:06]int [17:45:06]Write to MH i2c: 01 00 00 49 2A 73 [17:45:06]*** FLAG_PRN_KEY reset [17:45:06]Write i2c OK [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: 01 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: 01 07 00 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: 01 07 00 49 2A 00 00 00 00 00 F7 0F 80 [17:45:06]state=2 [17:45:06]Stop feed [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:13]accept exits with 10 [17:52:13]New connection [17:52:13]New thread 3066801508 created [17:52:13]Thread 3066944868 joined [17:52:13]Waiting for new connection... [17:52:13] Sock 10.Parse request [17:52:13]Sock 10.Check first char [17:52:13]Sock 10.First char is OK [17:52:13]request: POST /json_proto HTTP/1.0 [17:52:13]Method: POST [17:52:13]URL: /json_proto [17:52:13]Method is POST - this is cgi request [17:52:13]url: /json_proto [17:52:13]query_string will be loaded in cgi processing [17:52:13]execute_cgi json_proto POST (null) [17:52:13]execute_cgi path=json_proto method=POST [17:52:13]POST find Content-Length [17:52:13]Host: 172.17.46.196:8080 [17:52:13]Content-Length: 1330 [17:52:13]Content-Type: application/json [17:52:13] [17:52:13]POST finish read [17:52:13]Found Content-Length = 1330 [17:52:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189857", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235777", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u0432\u0438\u0448\u043D\u044F 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:13]execute_script... [17:52:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189857", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235777", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u0432\u0438\u0448\u043D\u044F 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:13]POST & json_proto [17:52:13]process_json_proto [17:52:13]json parsed OK: [17:52:13]protocol is kg_v1.0 [17:52:13]action value=close_receipt [17:52:13]process_action close_receipt [17:52:13]cmd_close_receipt [17:52:13]MH_GetDate [17:52:13]Write to MH i2c: F0 00 00 4A 2A 63 [17:52:13]Write i2c OK [17:52:13]MH_I2C_Read... [17:52:13]Read from MH i2c: F0 [17:52:13]MH_I2C_Read... [17:52:13]Read from MH i2c: F0 09 00 [17:52:13]MH_I2C_Read... [17:52:13]Read from MH i2c: F0 09 00 4A 2A 00 52 E3 C0 66 07 E8 5D 66 79 [17:52:13]GetLastDocTimeStamp 1723916668 [17:52:13]current date 1723917138 [17:52:13]FM_GetShiftState [17:52:13]SAM_PROTO_GetShiftState [17:52:13]wFMCommunicate request_size=4 [17:52:13]MH_SAM_APDU [17:52:13]CAPDU: 80 13 01 00 [17:52:13]Write to MH i2c: E2 08 00 4B 2A 80 13 01 00 00 00 00 00 F2 [17:52:13]Write i2c OK [17:52:13]MH_I2C_Read... [17:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:13]Read from MH i2c: E2 [17:52:13]MH_I2C_Read... [17:52:13]Read from MH i2c: E2 0E 00 [17:52:13]MH_I2C_Read... [17:52:13]Read from MH i2c: E2 0E 00 4B 2A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 37 [17:52:13]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:52:13]wFMCommunicate OK [17:52:13]SAM_PROTO_GetShiftState done [17:52:13]FM_GetShiftState done [17:52:13]opened in 1723853354 [17:52:13]opened+sec_in_day 1723939754 [17:52:13]quantity*price = 11500 [17:52:13]sum+1 = 11501 [17:52:13]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015235777 Печ. сд. Яшкино вишня 137г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.84 НДС 12% : 33.98 Наличными: 0.00 Безнал.: 320.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 112 17.08.2024 17:52 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49675 ФПД: 263478303942686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T175218&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49675&fm=263478303942686&tin=02508201610067®Number=0000000000092546&sum=32000 0 [17:52:14]StoreToDocumentArchive [17:52:14]shift 465 fd 49675 [17:52:14]save to /storage/0465/doc_00049675 [17:52:14]save last doc name /storage/0465/doc_00049675 to /storage/kkm_last_doc_name [17:52:14]save OK [17:52:14]Clear old archive folders... [17:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=499 [17:52:14]tlvbuf is 01882760 [17:52:14]SAM_PROTO_ClearQueue [17:52:14]wFMCommunicate request_size=4 [17:52:14]MH_SAM_APDU [17:52:14]CAPDU: 80 09 00 00 [17:52:14]Write to MH i2c: E2 08 00 58 2A 80 09 00 00 00 00 00 00 F4 [17:52:14]Write i2c OK [17:52:14]MH_I2C_Read... [17:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:14]Read from MH i2c: E2 [17:52:14]MH_I2C_Read... [17:52:14]Read from MH i2c: E2 03 00 [17:52:14]MH_I2C_Read... [17:52:14]Read from MH i2c: E2 03 00 58 2A 00 90 00 F6 [17:52:14]RAPDU: 90 00 [17:52:14]wFMCommunicate OK [17:52:14]SAM_PROTO_ClearQueue done [17:52:14]KKMCreateOFDPacket [17:52:14]OFDProtocolAddRootSTLVToBuf [17:52:14]FM_MakeSignedData [17:52:14]FM_MakeSignedData [17:52:14]SAM_PROTO_SignData [17:52:14]wFMCommunicate request_size=4 [17:52:14]MH_SAM_APDU [17:52:14]CAPDU: 80 0D 01 02 [17:52:14]Write to MH i2c: E2 08 00 59 2A 80 0D 01 02 00 00 00 00 FC [17:52:14]Write i2c OK [17:52:14]MH_I2C_Read... [17:52:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:15]Read from MH i2c: E2 [17:52:15]MH_I2C_Read... [17:52:15]Read from MH i2c: E2 03 00 [17:52:15]MH_I2C_Read... [17:52:15]Read from MH i2c: E2 03 00 59 2A 00 90 00 F7 [17:52:15]RAPDU: 90 00 [17:52:15]wFMCommunicate OK [17:52:15]wFMCommunicate request_size=255 [17:52:15]MH_SAM_APDU [17:52:15]CAPDU: 80 0D 02 02 FA 03 00 F3 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F [17:52:15]Write to MH i2c: E2 02 01 5A 2A 80 0D 02 02 FA 00 03 00 F3 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F 00 00 89 [17:52:15]Write i2c OK [17:52:15]MH_I2C_Read... [17:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:15]Read from MH i2c: E2 [17:52:15]MH_I2C_Read... [17:52:15]Read from MH i2c: E2 03 00 [17:52:15]MH_I2C_Read... [17:52:15]Read from MH i2c: E2 03 00 5A 2A 00 90 00 F8 [17:52:15]RAPDU: 90 00 [17:52:15]wFMCommunicate OK [17:52:15]wFMCommunicate request_size=255 [17:52:15]MH_SAM_APDU [17:52:15]CAPDU: 80 0D 02 02 FA D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 52 E3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C2 00 00 35 04 06 00 EF A1 D2 [17:52:15]Write to MH i2c: E2 02 01 5B 2A 80 0D 02 02 FA 00 D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 52 E3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C2 00 00 35 04 06 00 EF A1 D2 00 00 07 [17:52:15]Write i2c OK [17:52:15]MH_I2C_Read... [17:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:15]Read from MH i2c: E2 [17:52:15]MH_I2C_Read... [17:52:15]Read from MH i2c: E2 03 00 [17:52:15]MH_I2C_Read... [17:52:15]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [17:52:15]RAPDU: 90 00 [17:52:15]wFMCommunicate OK [17:52:15]wFMCommunicate request_size=8 [17:52:15]MH_SAM_APDU [17:52:15]CAPDU: 80 0D 02 02 03 B6 68 1E [17:52:15]Write to MH i2c: E2 0B 00 5C 2A 80 0D 02 02 03 00 B6 68 1E 00 00 42 [17:52:15]Write i2c OK [17:52:15]MH_I2C_Read... [17:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:15]Read from MH i2c: E2 [17:52:15]MH_I2C_Read... [17:52:15]Read from MH i2c: E2 03 00 [17:52:15]MH_I2C_Read... [17:52:15]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [17:52:15]RAPDU: 90 00 [17:52:15]wFMCommunicate OK [17:52:15]wFMCommunicate request_size=4 [17:52:15]MH_SAM_APDU [17:52:15]CAPDU: 80 0D 03 02 [17:52:15]Write to MH i2c: E2 08 00 5D 2A 80 0D 03 02 00 00 00 00 02 [17:52:15]Write i2c OK [17:52:15]MH_I2C_Read... [17:52:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:15]Read from MH i2c: E2 [17:52:15]MH_I2C_Read... [17:52:15]Read from MH i2c: E2 0B 00 [17:52:15]MH_I2C_Read... [17:52:15]Read from MH i2c: E2 0B 00 5D 2A 00 4D 7E 72 FB 89 91 A5 B3 90 00 AD [17:52:15]RAPDU: 4D 7E 72 FB 89 91 A5 B3 90 00 [17:52:15]wFMCommunicate OK [17:52:15]SAM_PROTO_SignData done [17:52:15]FM_MakeSignedData done [17:52:15]CreateOFDProtocolMessage [17:52:15]wFMCommunicate request_size=4 [17:52:15]MH_SAM_APDU [17:52:15]CAPDU: 80 11 00 00 [17:52:15]Write to MH i2c: E2 08 00 5E 2A 80 11 00 00 00 00 00 00 02 [17:52:15]Write i2c OK [17:52:15]MH_I2C_Read... [17:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:16]Read from MH i2c: E2 [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: E2 17 00 [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: E2 17 00 5E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4D [17:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:52:16]wFMCommunicate OK [17:52:16]CreateOFDProtocolMessage done [17:52:16]OFDSenderStorePacket 49675 [17:52:16]StoreOFDPacket docnum=49675 [17:52:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 07 02 00 00 9C EA FF 01 AC 6F 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 52 E3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C2 00 00 35 04 06 00 EF A1 D2 B6 68 1E 4D 7E 72 FB 89 91 A5 B3 [17:52:16]CheckFolder [17:52:16]dirname=/storage/ofd_packets [17:52:16]CheckFolder done [17:52:16]ProducePacketName [17:52:16]name=ofd_packets/00049675 [17:52:16]NVStorageSaveData ofd_packets/00049675 [17:52:16]File name is /storage/ofd_packets/00049675 [17:52:16]Write 549 bytes [17:52:16]NVStorageSaveData done [17:52:16]OFDSenderStorePacket done [17:52:16]KKMCreateOFDPacket done [17:52:16]NVStorageSaveData kkm_last_timestamp [17:52:16]File name is /storage/kkm_last_timestamp [17:52:16]Write 4 bytes [17:52:16]NVStorageSaveData done [17:52:16]ExternCall_PrintAddStr [17:52:16]wPrintStart [17:52:16]Write to MH i2c: 01 00 00 5F 2A 89 [17:52:16]Write i2c OK [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: 01 [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: 01 07 00 [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: 01 07 00 5F 2A 00 00 00 00 00 FF 0F 9E [17:52:16]RasterBufferAndPrint [17:52:16]line Счет N : (3)189857 [17:52:16]line ИНН: 02508201610067 [17:52:16]line Контрольно-Кассовый Чек [17:52:16]line ПРОДАЖА [17:52:16]line Товар: 2000036210013 [17:52:16]line Кофе Капучино (GABB TRADE) [17:52:16]line 1.000 * 115.00 [17:52:16]line = 115.00 [17:52:16]line НДС 12% НСП 1% [17:52:16]line > о реализуемом товаре [17:52:16]line Товар: 2000036240010 [17:52:16]line Кофе Латте (GABB TRADE) [17:52:16]line 1.000 * 115.00 [17:52:16]line = 115.00 [17:52:16]line НДС 12% НСП 1% [17:52:16]line > о реализуемом товаре [17:52:16]line Товар: 4607015235777 [17:52:16]line Печ. сд. Яшкино вишня 137г [17:52:16]line 1.000 * 90.00 [17:52:16]line = 90.00 [17:52:16]line НДС 12% НСП 1% [17:52:16]line > о реализуемом товаре [17:52:16]line ИТОГО: 320.00 [17:52:16]line НСП 1% : 2.84 [17:52:16]line НДС 12% : 33.98 [17:52:16]line Наличными: 0.00 [17:52:16]line Безнал.: 320.00 [17:52:16]line Место: АЗС № 95 "Партнер Нефть" [17:52:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:52:16]line СНО: Общий режим [17:52:16]line Чек 112 17.08.2024 17:52 [17:52:16]line Смена: 465 ФФД: 1.0 [17:52:16]line ЗНМ: 0300000078 [17:52:16]line РНМ: 0000000000092546 [17:52:16]line Версия ККМ: 001 [17:52:16]line Платежная система: O! деньги [17:52:16]line ФМ: 0000000000871800 [17:52:16]line ФД: 49675 [17:52:16]line ФПД: 263478303942686 [17:52:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T175218&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49675&fm=263478303942686&tin=02508201610067®Number=0000000000092546&sum=32000 [17:52:16]line 0 [17:52:16]OFD Sender: Processing packet 49675 [packets to send 21, broken 20] [17:52:16]ProducePacketName [17:52:16]name=ofd_packets/00049675 [17:52:16]OFD Sender: To server: pG, [17:52:16]CommunicateWithHost lk.salyk.kg:30040 [17:52:16]ConnectInit lk.salyk.kg [17:52:16]written 0, free lines is 4095 [17:52:16]Connected sock=9 [17:52:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 07 02 00 00 9C EA FF 01 AC 6F 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 52 E3 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C2 00 00 35 04 06 00 EF A1 D2 B6 68 1E 4D 7E 72 FB 89 91 A5 B3 [17:52:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 99 AA 47 00 ED DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C2 00 00 F4 03 04 00 8E 8E C0 66 B6 04 01 00 00 7F 85 84 1B C2 97 B7 FE [17:52:16]CommunicateWithHost err = 0 [17:52:16]CheckOFDResponse [17:52:16]1017 (14) - 77093643461234 [17:52:16]1041 (16) - 0000000000871800 [17:52:16]1040 (4) - 49675 [17:52:16]1012 (4) - 17.08.2024 11:50 [17:52:16]1206 (1) - 0 [17:52:16]OFD Sender: Remove packet 49675 [17:52:16]ProducePacketName [17:52:16]name=ofd_packets/00049675 [17:52:16]NVStorageDeleteData [17:52:16]Write to MH i2c: 01 00 00 95 2A BF [17:52:16]Write i2c OK [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: 01 [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: 01 07 00 [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: 01 07 00 95 2A 00 00 00 00 00 3F 0C 11 [17:52:16]RasterBufferAndPrint [17:52:16]line [17:52:16]line [17:52:16]line [17:52:16]line [17:52:16]line [17:52:16]written 0, free lines is 3144 [17:52:16]MH_Cut [17:52:16]Write to MH i2c: D1 01 00 9C 2A 01 98 [17:52:16]Write i2c OK [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: D1 [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: D1 01 00 [17:52:16]MH_I2C_Read... [17:52:16]Read from MH i2c: D1 01 00 9C 2A 00 97 [17:52:16]Write to MH i2c: 01 00 00 9D 2A C7 [17:52:16]Write i2c OK [17:52:16]MH_I2C_Read... [17:52:17]OFD Sender: No OFD packet to send [17:52:17]*** Cut start [17:52:17]*** Purtial cut [17:52:17]*** Stage 1: CUTSNS_PIN = 1 [17:52:17]Read from MH i2c: 01 [17:52:17]MH_I2C_Read... [17:52:17]*** Stop cut motor [17:52:17]*** Cut end [17:52:17]Read from MH i2c: 01 07 00 [17:52:17]MH_I2C_Read... [17:52:17]Read from MH i2c: 01 07 00 9D 2A 00 00 00 00 00 FF 0F DC [17:52:17]process_action close_receipt done [17:52:17]requested_data is exist [17:52:17]produce_requested_data [17:52:17]requested_item fm.sn is exist - process it [17:52:17]wFMCommunicate request_size=4 [17:52:17]MH_SAM_APDU [17:52:17]CAPDU: 80 11 00 00 [17:52:17]Write to MH i2c: E2 08 00 9E 2A 80 11 00 00 00 00 00 00 42 [17:52:17]Write i2c OK [17:52:17]MH_I2C_Read... [17:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:17]Read from MH i2c: E2 [17:52:17]MH_I2C_Read... [17:52:17]Read from MH i2c: E2 17 00 [17:52:17]MH_I2C_Read... [17:52:17]Read from MH i2c: E2 17 00 9E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8D [17:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:52:17]wFMCommunicate OK [17:52:17]requested_item fd.num is exist - process it [17:52:17]SAM_PROTO_GetFieldsCounters [17:52:17]wFMCommunicate request_size=4 [17:52:17]MH_SAM_APDU [17:52:17]CAPDU: 80 13 00 00 [17:52:17]Write to MH i2c: E2 08 00 9F 2A 80 13 00 00 00 00 00 00 45 [17:52:17]Write i2c OK [17:52:17]MH_I2C_Read... [17:52:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:18]Read from MH i2c: E2 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: E2 62 00 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: E2 62 00 9F 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0B C2 00 00 0E 04 04 00 D1 01 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 4E [17:52:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0B C2 00 00 0E 04 04 00 D1 01 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:52:18]wFMCommunicate OK [17:52:18]SAM_PROTO_GetFieldsCounters done [17:52:18]requested_item shift.num is exist - process it [17:52:18]requested_item shift.opened is exist - process it [17:52:18]req_shift_opened [17:52:18]FM_GetShiftState [17:52:18]SAM_PROTO_GetShiftState [17:52:18]wFMCommunicate request_size=4 [17:52:18]MH_SAM_APDU [17:52:18]CAPDU: 80 13 01 00 [17:52:18]Write to MH i2c: E2 08 00 A0 2A 80 13 01 00 00 00 00 00 47 [17:52:18]Write i2c OK [17:52:18]MH_I2C_Read... [17:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:18]Read from MH i2c: E2 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: E2 0E 00 [17:52:18]MH_I2C_Read... [17:52:18]Read from MH i2c: E2 0E 00 A0 2A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 8C [17:52:18]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [17:52:18]wFMCommunicate OK [17:52:18]SAM_PROTO_GetShiftState done [17:52:18]FM_GetShiftState done [17:52:18]req_shift_opened done [17:52:18]requested_item shift.open_date is exist - process it [17:52:18]req_shift_open_date [17:52:18]req_shift_open_date done [17:52:18]produce_requested_data done [17:52:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49675,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [17:52:18]process_action_free close_receipt [17:52:18]json_value_free [17:52:18]json_value_free done [17:52:18]process_json_proto returns [17:52:18]Send response to host [17:52:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49675,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [17:52:18]free response buf [17:52:18]execute_script done [17:52:18]execute_script returns [17:52:18]free content buf [17:52:18]Sock 10.Close socket [17:52:18]Sock 10.Thread stoped [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]accept exits with 7 [18:37:04]New connection [18:37:04]New thread 3066944868 created [18:37:04]Thread 3066801508 joined [18:37:04]Waiting for new connection... [18:37:04] Sock 7.Parse request [18:37:04]Sock 7.Check first char [18:37:04]Sock 7.First char is OK [18:37:04]request: POST /json_proto HTTP/1.0 [18:37:04]Method: POST [18:37:04]URL: /json_proto [18:37:04]Method is POST - this is cgi request [18:37:04]url: /json_proto [18:37:04]query_string will be loaded in cgi processing [18:37:04]execute_cgi json_proto POST (null) [18:37:04]execute_cgi path=json_proto method=POST [18:37:04]POST find Content-Length [18:37:04]Host: 172.17.46.196:8080 [18:37:04]Content-Length: 867 [18:37:04]Content-Type: application/json [18:37:04] [18:37:04]POST finish read [18:37:04]Found Content-Length = 867 [18:37:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189858", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:04]execute_script... [18:37:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189858", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:04]POST & json_proto [18:37:04]process_json_proto [18:37:04]json parsed OK: [18:37:04]protocol is kg_v1.0 [18:37:04]action value=close_receipt [18:37:04]process_action close_receipt [18:37:04]cmd_close_receipt [18:37:04]MH_GetDate [18:37:04]Write to MH i2c: F0 00 00 A1 2A BA [18:37:04]Write i2c OK [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: F0 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: F0 09 00 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: F0 09 00 A1 2A 00 D5 ED C0 66 07 E8 5D 66 5D [18:37:04]GetLastDocTimeStamp 1723917138 [18:37:04]current date 1723919829 [18:37:04]FM_GetShiftState [18:37:04]SAM_PROTO_GetShiftState [18:37:04]wFMCommunicate request_size=4 [18:37:04]MH_SAM_APDU [18:37:04]CAPDU: 80 13 01 00 [18:37:04]Write to MH i2c: E2 08 00 A2 2A 80 13 01 00 00 00 00 00 49 [18:37:04]Write i2c OK [18:37:04]MH_I2C_Read... [18:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:04]Read from MH i2c: E2 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: E2 0E 00 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: E2 0E 00 A2 2A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 8E [18:37:04]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [18:37:04]wFMCommunicate OK [18:37:04]SAM_PROTO_GetShiftState done [18:37:04]FM_GetShiftState done [18:37:04]opened in 1723853354 [18:37:04]opened+sec_in_day 1723939754 [18:37:04]quantity*price = 12000 [18:37:04]sum+1 = 12001 [18:37:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 0.00 Безнал.: 120.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 113 17.08.2024 18:37 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49676 ФПД: 1950599282202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T183709&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49676&fm=1950599282202&tin=02508201610067®Number=0000000000092546&sum=12000 0 [18:37:05]StoreToDocumentArchive [18:37:05]shift 465 fd 49676 [18:37:05]save to /storage/0465/doc_00049676 [18:37:05]save last doc name /storage/0465/doc_00049676 to /storage/kkm_last_doc_name [18:37:05]save OK [18:37:05]Clear old archive folders... [18:37:05]ProcessDocumentItem done err = 0, tmpTLVsize=298 [18:37:05]tlvbuf is B6F56990 [18:37:05]SAM_PROTO_ClearQueue [18:37:05]wFMCommunicate request_size=4 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 09 00 00 [18:37:05]Write to MH i2c: E2 08 00 AF 2A 80 09 00 00 00 00 00 00 4B [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 AF 2A 00 90 00 4D [18:37:05]RAPDU: 90 00 [18:37:05]wFMCommunicate OK [18:37:05]SAM_PROTO_ClearQueue done [18:37:05]KKMCreateOFDPacket [18:37:05]OFDProtocolAddRootSTLVToBuf [18:37:05]FM_MakeSignedData [18:37:05]FM_MakeSignedData [18:37:05]SAM_PROTO_SignData [18:37:05]wFMCommunicate request_size=4 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 0D 01 02 [18:37:05]Write to MH i2c: E2 08 00 B0 2A 80 0D 01 02 00 00 00 00 53 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 B0 2A 00 90 00 4E [18:37:05]RAPDU: 90 00 [18:37:05]wFMCommunicate OK [18:37:05]wFMCommunicate request_size=255 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D5 ED C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [18:37:05]Write to MH i2c: E2 02 01 B1 2A 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D5 ED C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 7C [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 B1 2A 00 90 00 4F [18:37:05]RAPDU: 90 00 [18:37:05]wFMCommunicate OK [18:37:05]wFMCommunicate request_size=57 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0C C2 00 00 35 04 06 00 01 C6 28 C6 FE 1A [18:37:05]Write to MH i2c: E2 3C 00 B2 2A 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0C C2 00 00 35 04 06 00 01 C6 28 C6 FE 1A 00 00 A7 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 B2 2A 00 90 00 50 [18:37:05]RAPDU: 90 00 [18:37:05]wFMCommunicate OK [18:37:05]wFMCommunicate request_size=4 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 0D 03 02 [18:37:05]Write to MH i2c: E2 08 00 B3 2A 80 0D 03 02 00 00 00 00 58 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 0B 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 0B 00 B3 2A 00 4B 33 84 0F 10 39 D3 54 90 00 DA [18:37:05]RAPDU: 4B 33 84 0F 10 39 D3 54 90 00 [18:37:05]wFMCommunicate OK [18:37:05]SAM_PROTO_SignData done [18:37:05]FM_MakeSignedData done [18:37:05]CreateOFDProtocolMessage [18:37:05]wFMCommunicate request_size=4 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 11 00 00 [18:37:05]Write to MH i2c: E2 08 00 B4 2A 80 11 00 00 00 00 00 00 58 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 17 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 17 00 B4 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A3 [18:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:37:05]wFMCommunicate OK [18:37:05]CreateOFDProtocolMessage done [18:37:05]OFDSenderStorePacket 49676 [18:37:05]StoreOFDPacket docnum=49676 [18:37:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3E 01 00 00 9E 59 36 01 99 4E 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D5 ED C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0C C2 00 00 35 04 06 00 01 C6 28 C6 FE 1A 4B 33 84 0F 10 39 D3 54 [18:37:05]CheckFolder [18:37:05]dirname=/storage/ofd_packets [18:37:05]CheckFolder done [18:37:05]ProducePacketName [18:37:05]name=ofd_packets/00049676 [18:37:05]NVStorageSaveData ofd_packets/00049676 [18:37:05]File name is /storage/ofd_packets/00049676 [18:37:05]Write 348 bytes [18:37:05]NVStorageSaveData done [18:37:05]OFDSenderStorePacket done [18:37:05]KKMCreateOFDPacket done [18:37:06]NVStorageSaveData kkm_last_timestamp [18:37:06]File name is /storage/kkm_last_timestamp [18:37:06]Write 4 bytes [18:37:06]NVStorageSaveData done [18:37:06]ExternCall_PrintAddStr [18:37:06]wPrintStart [18:37:06]Write to MH i2c: 01 00 00 B5 2A DF [18:37:06]Write i2c OK [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: 01 [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: 01 07 00 [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: 01 07 00 B5 2A 00 00 00 00 00 FF 0F F4 [18:37:06]RasterBufferAndPrint [18:37:06]line Счет N : (3)189858 [18:37:06]line ИНН: 02508201610067 [18:37:06]line Контрольно-Кассовый Чек [18:37:06]line ПРОДАЖА [18:37:06]line Товар: 5449000189356 [18:37:06]line Холодный чай Fuse манго ананас 1л [18:37:06]line 1.000 * 120.00 [18:37:06]line = 120.00 [18:37:06]line НДС 12% НСП 1% [18:37:06]line > о реализуемом товаре [18:37:06]line ИТОГО: 120.00 [18:37:06]line НСП 1% : 1.06 [18:37:06]line НДС 12% : 12.74 [18:37:06]line Наличными: 0.00 [18:37:06]line Безнал.: 120.00 [18:37:06]line Место: АЗС № 95 "Партнер Нефть" [18:37:06]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:37:06]line СНО: Общий режим [18:37:06]line Чек 113 17.08.2024 18:37 [18:37:06]line Смена: 465 ФФД: 1.0 [18:37:06]line ЗНМ: 0300000078 [18:37:06]line РНМ: 0000000000092546 [18:37:06]line Версия ККМ: 001 [18:37:06]line Платежная система: O! деньги [18:37:06]line ФМ: 0000000000871800 [18:37:06]line ФД: 49676 [18:37:06]line ФПД: 1950599282202 [18:37:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T183709&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49676&fm=1950599282202&tin=02508201610067®Number=0000000000092546&sum=12000 [18:37:06]line 0 [18:37:06]OFD Sender: Processing packet 49676 [packets to send 21, broken 20] [18:37:06]ProducePacketName [18:37:06]name=ofd_packets/00049676 [18:37:06]OFD Sender: To server: pG, [18:37:06]CommunicateWithHost lk.salyk.kg:30040 [18:37:06]ConnectInit lk.salyk.kg [18:37:06]written 0, free lines is 4095 [18:37:06]Connected sock=10 [18:37:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3E 01 00 00 9E 59 36 01 99 4E 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D5 ED C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0C C2 00 00 35 04 06 00 01 C6 28 C6 FE 1A 4B 33 84 0F 10 39 D3 54 [18:37:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FD B3 47 00 FC 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 31 38 30 30 10 04 04 00 0C C2 00 00 F4 03 04 00 10 99 C0 66 B6 04 01 00 00 47 15 AD D7 1C 82 4E 21 [18:37:06]CommunicateWithHost err = 0 [18:37:06]CheckOFDResponse [18:37:06]1017 (14) - 77093643461234 [18:37:06]1041 (16) - 0000000000871800 [18:37:06]1040 (4) - 49676 [18:37:06]1012 (4) - 17.08.2024 12:35 [18:37:06]1206 (1) - 0 [18:37:06]OFD Sender: Remove packet 49676 [18:37:06]ProducePacketName [18:37:06]name=ofd_packets/00049676 [18:37:06]NVStorageDeleteData [18:37:06]Write to MH i2c: 01 00 00 E0 2A 0A [18:37:06]Write i2c OK [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: 01 [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: 01 07 00 [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: 01 07 00 E0 2A 00 00 00 00 00 C1 0C DE [18:37:06]RasterBufferAndPrint [18:37:06]line [18:37:06]line [18:37:06]line [18:37:06]line [18:37:06]line [18:37:06]written 0, free lines is 3271 [18:37:06]MH_Cut [18:37:06]Write to MH i2c: D1 01 00 E7 2A 01 E3 [18:37:06]Write i2c OK [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: D1 [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: D1 01 00 [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: D1 01 00 E7 2A 00 E2 [18:37:06]Write to MH i2c: 01 00 00 E8 2A 12 [18:37:06]Write i2c OK [18:37:06]MH_I2C_Read... [18:37:07]OFD Sender: No OFD packet to send [18:37:07]*** Cut start [18:37:07]*** Purtial cut [18:37:07]*** CUTSNS_PIN = 0 [18:37:07]*** Stage 1: CUTSNS_PIN = 1 [18:37:09]Read from MH i2c: 01 [18:37:09]MH_I2C_Read... [18:37:09]*** Stop cut motor [18:37:09]*** Cut end [18:37:09]Read from MH i2c: 01 07 00 [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: 01 07 00 E8 2A 00 00 00 00 00 FF 0F 27 [18:37:09]process_action close_receipt done [18:37:09]requested_data is exist [18:37:09]produce_requested_data [18:37:09]requested_item fm.sn is exist - process it [18:37:09]wFMCommunicate request_size=4 [18:37:09]MH_SAM_APDU [18:37:09]CAPDU: 80 11 00 00 [18:37:09]Write to MH i2c: E2 08 00 E9 2A 80 11 00 00 00 00 00 00 8D [18:37:09]Write i2c OK [18:37:09]MH_I2C_Read... [18:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:09]Read from MH i2c: E2 [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: E2 17 00 [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: E2 17 00 E9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D8 [18:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:37:09]wFMCommunicate OK [18:37:09]requested_item fd.num is exist - process it [18:37:09]SAM_PROTO_GetFieldsCounters [18:37:09]wFMCommunicate request_size=4 [18:37:09]MH_SAM_APDU [18:37:09]CAPDU: 80 13 00 00 [18:37:09]Write to MH i2c: E2 08 00 EA 2A 80 13 00 00 00 00 00 00 90 [18:37:09]Write i2c OK [18:37:09]MH_I2C_Read... [18:37:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:09]Read from MH i2c: E2 [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: E2 62 00 [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: E2 62 00 EA 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0C C2 00 00 0E 04 04 00 D1 01 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 9D [18:37: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0C C2 00 00 0E 04 04 00 D1 01 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 [18:37:09]wFMCommunicate OK [18:37:09]SAM_PROTO_GetFieldsCounters done [18:37:09]requested_item shift.num is exist - process it [18:37:09]requested_item shift.opened is exist - process it [18:37:09]req_shift_opened [18:37:09]FM_GetShiftState [18:37:09]SAM_PROTO_GetShiftState [18:37:09]wFMCommunicate request_size=4 [18:37:09]MH_SAM_APDU [18:37:09]CAPDU: 80 13 01 00 [18:37:09]Write to MH i2c: E2 08 00 EB 2A 80 13 01 00 00 00 00 00 92 [18:37:09]Write i2c OK [18:37:09]MH_I2C_Read... [18:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:09]Read from MH i2c: E2 [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: E2 0E 00 [18:37:09]MH_I2C_Read... [18:37:09]Read from MH i2c: E2 0E 00 EB 2A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D7 [18:37:09]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [18:37:09]wFMCommunicate OK [18:37:09]SAM_PROTO_GetShiftState done [18:37:09]FM_GetShiftState done [18:37:09]req_shift_opened done [18:37:09]requested_item shift.open_date is exist - process it [18:37:09]req_shift_open_date [18:37:09]req_shift_open_date done [18:37:09]produce_requested_data done [18:37:09]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49676,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [18:37:09]process_action_free close_receipt [18:37:09]json_value_free [18:37:09]json_value_free done [18:37:09]process_json_proto returns [18:37:09]Send response to host [18:37:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49676,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [18:37:09]free response buf [18:37:09]execute_script done [18:37:09]execute_script returns [18:37:09]free content buf [18:37:09]Sock 7.Close socket [18:37:09]Sock 7.Thread stoped [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: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]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:51]accept exits with 9 [18:38:51]New connection [18:38:51]New thread 3066801508 created [18:38:51]Thread 3066944868 joined [18:38:51]Waiting for new connection... [18:38:51] Sock 9.Parse request [18:38:51]Sock 9.Check first char [18:38:51]Sock 9.First char is OK [18:38:51]request: POST /json_proto HTTP/1.0 [18:38:51]Method: POST [18:38:51]URL: /json_proto [18:38:51]Method is POST - this is cgi request [18:38:51]url: /json_proto [18:38:51]query_string will be loaded in cgi processing [18:38:51]execute_cgi json_proto POST (null) [18:38:51]execute_cgi path=json_proto method=POST [18:38:51]POST find Content-Length [18:38:51]Host: 172.17.46.196:8080 [18:38:51]Content-Length: 1981 [18:38:51]Content-Type: application/json [18:38:51] [18:38:51]POST finish read [18:38:51]Found Content-Length = 1981 [18:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189859", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870003986641", "name": "\u041F\u0438\u0432\u043E \u041A\u0430\u0440\u0430\u0433 \u0414\u0440\u0430\u0444\u0442 \u041C\u044F\u0433\u043A\u043E\u0435 \u041A\u0440\u0443\u0436\u043A\u0430 \u0441\u0432\u0435\u0436 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:51]execute_script... [18:38:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189859", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870003986641", "name": "\u041F\u0438\u0432\u043E \u041A\u0430\u0440\u0430\u0433 \u0414\u0440\u0430\u0444\u0442 \u041C\u044F\u0433\u043A\u043E\u0435 \u041A\u0440\u0443\u0436\u043A\u0430 \u0441\u0432\u0435\u0436 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:51]POST & json_proto [18:38:51]process_json_proto [18:38:51]json parsed OK: [18:38:51]protocol is kg_v1.0 [18:38:51]action value=close_receipt [18:38:51]process_action close_receipt [18:38:51]cmd_close_receipt [18:38:51]MH_GetDate [18:38:51]Write to MH i2c: F0 00 00 EC 2A 05 [18:38:51]Write i2c OK [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: F0 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: F0 09 00 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: F0 09 00 EC 2A 00 40 EE C0 66 07 E8 5D 66 14 [18:38:51]GetLastDocTimeStamp 1723919829 [18:38:51]current date 1723919936 [18:38:51]FM_GetShiftState [18:38:51]SAM_PROTO_GetShiftState [18:38:51]wFMCommunicate request_size=4 [18:38:51]MH_SAM_APDU [18:38:51]CAPDU: 80 13 01 00 [18:38:51]Write to MH i2c: E2 08 00 ED 2A 80 13 01 00 00 00 00 00 94 [18:38:51]Write i2c OK [18:38:51]MH_I2C_Read... [18:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:51]Read from MH i2c: E2 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 0E 00 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 0E 00 ED 2A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D9 [18:38:51]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [18:38:51]wFMCommunicate OK [18:38:51]SAM_PROTO_GetShiftState done [18:38:51]FM_GetShiftState done [18:38:51]opened in 1723853354 [18:38:51]opened+sec_in_day 1723939754 [18:38:51]quantity*price = 14500 [18:38:51]sum+1 = 14501 [18:38:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870003986641 Пиво Караг Драфт Мягкое Кружка свеж 0,5л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000000286 Напиток Кока-Кола 2л 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000027340020 Пакет бумажный витая ручка 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 550.00 НСП 1% : 4.86 НДС 12% : 58.40 Наличными: 0.00 Безнал.: 550.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 114 17.08.2024 18:38 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49677 ФПД: 251852044105185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T183856&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49677&fm=251852044105185&tin=02508201610067®Number=0000000000092546&sum=55000 0 [18:38:52]StoreToDocumentArchive [18:38:52]shift 465 fd 49677 [18:38:52]save to /storage/0465/doc_00049677 [18:38:52]save last doc name /storage/0465/doc_00049677 to /storage/kkm_last_doc_name [18:38:52]save OK [18:38:52]Clear old archive folders... [18:38:52]ProcessDocumentItem done err = 0, tmpTLVsize=736 [18:38:52]tlvbuf is B6DA6250 [18:38:52]SAM_PROTO_ClearQueue [18:38:52]wFMCommunicate request_size=4 [18:38:52]MH_SAM_APDU [18:38:52]CAPDU: 80 09 00 00 [18:38:52]Write to MH i2c: E2 08 00 FA 2A 80 09 00 00 00 00 00 00 96 [18:38:52]Write i2c OK [18:38:52]MH_I2C_Read... [18:38:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:52]Read from MH i2c: E2 [18:38:52]MH_I2C_Read... [18:38:52]Read from MH i2c: E2 03 00 [18:38:52]MH_I2C_Read... [18:38:52]Read from MH i2c: E2 03 00 FA 2A 00 90 00 98 [18:38:52]RAPDU: 90 00 [18:38:52]wFMCommunicate OK [18:38:52]SAM_PROTO_ClearQueue done [18:38:52]KKMCreateOFDPacket [18:38:52]OFDProtocolAddRootSTLVToBuf [18:38:52]FM_MakeSignedData [18:38:52]FM_MakeSignedData [18:38:52]SAM_PROTO_SignData [18:38:52]wFMCommunicate request_size=4 [18:38:52]MH_SAM_APDU [18:38:52]CAPDU: 80 0D 01 02 [18:38:52]Write to MH i2c: E2 08 00 FB 2A 80 0D 01 02 00 00 00 00 9E [18:38:52]Write i2c OK [18:38:52]MH_I2C_Read... [18:38:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:52]Read from MH i2c: E2 [18:38:52]MH_I2C_Read... [18:38:52]Read from MH i2c: E2 03 00 [18:38:52]MH_I2C_Read... [18:38:52]Read from MH i2c: E2 03 00 FB 2A 00 90 00 99 [18:38:52]RAPDU: 90 00 [18:38:52]wFMCommunicate OK [18:38:52]wFMCommunicate request_size=255 [18:38:52]MH_SAM_APDU [18:38:52]CAPDU: 80 0D 02 02 FA 03 00 E0 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 36 36 34 31 06 04 47 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9A D0 B0 D1 80 D0 B0 D0 B3 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D1 81 D0 B2 D0 B5 D0 B6 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F [18:38:52]Write to MH i2c: E2 02 01 FC 2A 80 0D 02 02 FA 00 03 00 E0 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 36 36 34 31 06 04 47 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9A D0 B0 D1 80 D0 B0 D0 B3 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D1 81 D0 B2 D0 B5 D0 B6 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 00 8D [18:38:53]Write i2c OK [18:38:53]MH_I2C_Read... [18:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:53]Read from MH i2c: E2 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 03 00 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 03 00 FC 2A 00 90 00 9A [18:38:53]RAPDU: 90 00 [18:38:53]wFMCommunicate OK [18:38:53]wFMCommunicate request_size=255 [18:38:53]MH_SAM_APDU [18:38:53]CAPDU: 80 0D 02 02 FA 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 [18:38:53]Write to MH i2c: E2 02 01 FD 2A 80 0D 02 02 FA 00 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 00 00 CD [18:38:53]Write i2c OK [18:38:53]MH_I2C_Read... [18:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:53]Read from MH i2c: E2 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 03 00 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 03 00 FD 2A 00 90 00 9B [18:38:53]RAPDU: 90 00 [18:38:53]wFMCommunicate OK [18:38:53]wFMCommunicate request_size=245 [18:38:53]MH_SAM_APDU [18:38:53]CAPDU: 80 0D 02 02 F0 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 40 EE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C2 00 00 35 04 06 00 E5 0E DF 9F F5 E1 [18:38:53]Write to MH i2c: E2 F8 00 FE 2A 80 0D 02 02 F0 00 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 40 EE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C2 00 00 35 04 06 00 E5 0E DF 9F F5 E1 00 00 2E [18:38:53]Write i2c OK [18:38:53]MH_I2C_Read... [18:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:53]Read from MH i2c: E2 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 03 00 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 03 00 FE 2A 00 90 00 9C [18:38:53]RAPDU: 90 00 [18:38:53]wFMCommunicate OK [18:38:53]wFMCommunicate request_size=4 [18:38:53]MH_SAM_APDU [18:38:53]CAPDU: 80 0D 03 02 [18:38:53]Write to MH i2c: E2 08 00 FF 2A 80 0D 03 02 00 00 00 00 A4 [18:38:53]Write i2c OK [18:38:53]MH_I2C_Read... [18:38:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:53]Read from MH i2c: E2 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 0B 00 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 0B 00 FF 2A 00 D2 21 24 E8 FE 74 CA 23 90 00 03 [18:38:53]RAPDU: D2 21 24 E8 FE 74 CA 23 90 00 [18:38:53]wFMCommunicate OK [18:38:53]SAM_PROTO_SignData done [18:38:53]FM_MakeSignedData done [18:38:53]CreateOFDProtocolMessage [18:38:53]wFMCommunicate request_size=4 [18:38:53]MH_SAM_APDU [18:38:53]CAPDU: 80 11 00 00 [18:38:53]Write to MH i2c: E2 08 00 00 2B 80 11 00 00 00 00 00 00 A5 [18:38:53]Write i2c OK [18:38:53]MH_I2C_Read... [18:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:54]Read from MH i2c: E2 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 17 00 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: E2 17 00 00 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F0 [18:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:38:54]wFMCommunicate OK [18:38:54]CreateOFDProtocolMessage done [18:38:54]OFDSenderStorePacket 49677 [18:38:54]StoreOFDPacket docnum=49677 [18:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 F4 02 00 00 43 2B EC 02 49 CE 5A 03 01 00 03 00 E0 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 36 36 34 31 06 04 47 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9A D0 B0 D1 80 D0 B0 D0 B3 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D1 81 D0 B2 D0 B5 D0 B6 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 40 EE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C2 00 00 35 04 06 00 E5 0E DF 9F F5 E1 D2 21 24 E8 FE 74 CA 23 [18:38:54]CheckFolder [18:38:54]dirname=/storage/ofd_packets [18:38:54]CheckFolder done [18:38:54]ProducePacketName [18:38:54]name=ofd_packets/00049677 [18:38:54]NVStorageSaveData ofd_packets/00049677 [18:38:54]File name is /storage/ofd_packets/00049677 [18:38:54]Write 786 bytes [18:38:54]NVStorageSaveData done [18:38:54]OFDSenderStorePacket done [18:38:54]KKMCreateOFDPacket done [18:38:54]NVStorageSaveData kkm_last_timestamp [18:38:54]File name is /storage/kkm_last_timestamp [18:38:54]Write 4 bytes [18:38:54]NVStorageSaveData done [18:38:54]ExternCall_PrintAddStr [18:38:54]wPrintStart [18:38:54]Write to MH i2c: 01 00 00 01 2B 2C [18:38:54]Write i2c OK [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: 01 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: 01 07 00 [18:38:54]MH_I2C_Read... [18:38:54]Read from MH i2c: 01 07 00 01 2B 00 00 00 00 00 FF 0F 41 [18:38:54]RasterBufferAndPrint [18:38:54]line Счет N : (3)189859 [18:38:54]line ИНН: 02508201610067 [18:38:54]line Контрольно-Кассовый Чек [18:38:54]line ПРОДАЖА [18:38:54]line Товар: 4700001610012 [18:38:54]line Пиво Арпа 0,5л [18:38:54]line 1.000 * 145.00 [18:38:54]line = 145.00 [18:38:54]line НДС 12% НСП 1% [18:38:54]line > о реализуемом товаре [18:38:54]line Товар: 4870003986641 [18:38:54]line Пиво Караг Драфт Мягкое Кружка свеж 0,5л [18:38:54]line 1.000 * 125.00 [18:38:54]line = 125.00 [18:38:54]line НДС 12% НСП 1% [18:38:54]line > о реализуемом товаре [18:38:54]line Товар: 4700000160358 [18:38:54]line Вода Легенда 1л [18:38:54]line 1.000 * 50.00 [18:38:54]line = 50.00 [18:38:54]line НДС 12% НСП 1% [18:38:54]line > о реализуемом товаре [18:38:54]line Товар: 5449000000286 [18:38:54]line Напиток Кока-Кола 2л [18:38:54]line 1.000 * 205.00 [18:38:54]line = 205.00 [18:38:54]line НДС 12% НСП 1% [18:38:54]line > о реализуемом товаре [18:38:54]line Товар: 2000027340020 [18:38:54]line Пакет бумажный витая ручка [18:38:54]line 1.000 * 25.00 [18:38:54]line = 25.00 [18:38:54]line НДС 12% НСП 1% [18:38:54]line > о реализуемом товаре [18:38:54]line ИТОГО: 550.00 [18:38:54]line НСП 1% : 4.86 [18:38:54]line НДС 12% : 58.40 [18:38:54]line Наличными: 0.00 [18:38:54]line Безнал.: 550.00 [18:38:54]line Место: АЗС № 95 "Партнер Нефть" [18:38:54]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:38:54]line СНО: Общий режим [18:38:54]line Чек 114 17.08.2024 18:38 [18:38:54]line Смена: 465 ФФД: 1.0 [18:38:54]line ЗНМ: 0300000078 [18:38:54]line РНМ: 0000000000092546 [18:38:54]line Версия ККМ: 001 [18:38:54]line Платежная система: O! деньги [18:38:54]line ФМ: 0000000000871800 [18:38:54]line ФД: 49677 [18:38:54]line ФПД: 251852044105185 [18:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T183856&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49677&fm=251852044105185&tin=02508201610067®Number=0000000000092546&sum=55000 [18:38:54]line 0 [18:38:54]OFD Sender: Processing packet 49677 [packets to send 21, broken 20] [18:38:54]ProducePacketName [18:38:54]name=ofd_packets/00049677 [18:38:54]OFD Sender: To server: pG, [18:38:54]CommunicateWithHost lk.salyk.kg:30040 [18:38:54]ConnectInit lk.salyk.kg [18:38:54]written 0, free lines is 4095 [18:38:54]Connected sock=11 [18:38:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 F4 02 00 00 43 2B EC 02 49 CE 5A 03 01 00 03 00 E0 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 36 36 34 31 06 04 47 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9A D0 B0 D1 80 D0 B0 D0 B3 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D1 81 D0 B2 D0 B5 D0 B6 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 40 EE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C2 00 00 35 04 06 00 E5 0E DF 9F F5 E1 D2 21 24 E8 FE 74 CA 23 [18:38:55]Write to MH i2c: 01 00 00 44 2B 6F [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: 01 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: 01 07 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: 01 07 00 44 2B 00 00 00 00 00 77 0B F8 [18:38:55]RasterBufferAndPrint [18:38:55]line [18:38:55]line [18:38:55]line [18:38:55]line [18:38:55]line [18:38:55]written 0, free lines is 2944 [18:38:55]MH_Cut [18:38:55]Write to MH i2c: D1 01 00 4B 2B 01 48 [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: D1 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: D1 01 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: D1 01 00 4B 2B 00 47 [18:38:55]Write to MH i2c: 01 00 00 4C 2B 77 [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 67 49 47 00 B1 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 31 38 30 30 10 04 04 00 0D C2 00 00 F4 03 04 00 7D 99 C0 66 B6 04 01 00 00 9D E3 56 F6 6C 00 9F 44 [18:38:55]CommunicateWithHost err = 0 [18:38:55]CheckOFDResponse [18:38:55]1017 (14) - 77093643461234 [18:38:55]1041 (16) - 0000000000871800 [18:38:55]1040 (4) - 49677 [18:38:55]1012 (4) - 17.08.2024 12:37 [18:38:55]1206 (1) - 0 [18:38:55]OFD Sender: Remove packet 49677 [18:38:55]ProducePacketName [18:38:55]name=ofd_packets/00049677 [18:38:55]NVStorageDeleteData [18:38:56]OFD Sender: No OFD packet to send [18:38:56]*** Cut start [18:38:56]*** Purtial cut [18:38:56]*** Stage 1: CUTSNS_PIN = 1 [18:38:56]Read from MH i2c: 01 [18:38:56]MH_I2C_Read... [18:38:56]*** Stop cut motor [18:38:56]*** Cut end [18:38:56]Read from MH i2c: 01 07 00 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: 01 07 00 4C 2B 00 00 00 00 00 FF 0F 8C [18:38:56]process_action close_receipt done [18:38:56]requested_data is exist [18:38:56]produce_requested_data [18:38:56]requested_item fm.sn is exist - process it [18:38:56]wFMCommunicate request_size=4 [18:38:56]MH_SAM_APDU [18:38:56]CAPDU: 80 11 00 00 [18:38:56]Write to MH i2c: E2 08 00 4D 2B 80 11 00 00 00 00 00 00 F2 [18:38:56]Write i2c OK [18:38:56]MH_I2C_Read... [18:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:56]Read from MH i2c: E2 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 17 00 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 17 00 4D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3D [18:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:38:56]wFMCommunicate OK [18:38:56]requested_item fd.num is exist - process it [18:38:56]SAM_PROTO_GetFieldsCounters [18:38:56]wFMCommunicate request_size=4 [18:38:56]MH_SAM_APDU [18:38:56]CAPDU: 80 13 00 00 [18:38:56]Write to MH i2c: E2 08 00 4E 2B 80 13 00 00 00 00 00 00 F5 [18:38:56]Write i2c OK [18:38:56]MH_I2C_Read... [18:38:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:56]Read from MH i2c: E2 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 62 00 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 62 00 4E 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0D C2 00 00 0E 04 04 00 D1 01 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 06 [18:38: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0D C2 00 00 0E 04 04 00 D1 01 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 [18:38:56]wFMCommunicate OK [18:38:56]SAM_PROTO_GetFieldsCounters done [18:38:56]requested_item shift.num is exist - process it [18:38:56]requested_item shift.opened is exist - process it [18:38:56]req_shift_opened [18:38:56]FM_GetShiftState [18:38:56]SAM_PROTO_GetShiftState [18:38:56]wFMCommunicate request_size=4 [18:38:56]MH_SAM_APDU [18:38:56]CAPDU: 80 13 01 00 [18:38:56]Write to MH i2c: E2 08 00 4F 2B 80 13 01 00 00 00 00 00 F7 [18:38:56]Write i2c OK [18:38:56]MH_I2C_Read... [18:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:56]Read from MH i2c: E2 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 0E 00 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 0E 00 4F 2B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 3C [18:38:56]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [18:38:56]wFMCommunicate OK [18:38:56]SAM_PROTO_GetShiftState done [18:38:56]FM_GetShiftState done [18:38:56]req_shift_opened done [18:38:56]requested_item shift.open_date is exist - process it [18:38:56]req_shift_open_date [18:38:56]req_shift_open_date done [18:38:56]produce_requested_data done [18:38:56]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49677,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [18:38:56]process_action_free close_receipt [18:38:56]json_value_free [18:38:56]json_value_free done [18:38:56]process_json_proto returns [18:38:56]Send response to host [18:38:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49677,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [18:38:56]free response buf [18:38:56]execute_script done [18:38:56]execute_script returns [18:38:56]free content buf [18:38:56]Sock 9.Close socket [18:38:56]Sock 9.Thread stoped [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:31]int [18:39:31]Write to MH i2c: 01 00 00 50 2B 7B [18:39:31]*** FLAG_PRN_KEY set [18:39:31]Write i2c OK [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: 01 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: 01 07 00 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: 01 07 00 50 2B 00 08 00 00 00 FF 0F 98 [18:39:31]state=0 [18:39:31]Key pressed [18:39:31]Feed [18:39:31]Write to MH i2c: D8 00 00 51 2B 53 [18:39:31]Write i2c OK [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: D8 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: D8 01 00 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: D8 01 00 51 2B 00 54 [18:39:31]int [18:39:31]Write to MH i2c: 01 00 00 52 2B 7D [18:39:31]Write i2c OK [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: 01 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: 01 07 00 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: 01 07 00 52 2B 00 48 00 00 00 3C 00 08 [18:39:31]state=2 [18:39:31]Key pressed [18:39:31]int [18:39:31]Write to MH i2c: 01 00 00 53 2B 7E [18:39:31]*** FLAG_PRN_KEY reset [18:39:31]Write i2c OK [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: 01 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: 01 07 00 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: 01 07 00 53 2B 00 00 00 00 00 F6 0F 8A [18:39:31]state=2 [18:39:31]Stop feed [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:13]accept exits with 7 [18:47:13]New connection [18:47:13]New thread 3066944868 created [18:47:13]Thread 3066801508 joined [18:47:13]Waiting for new connection... [18:47:13] Sock 7.Parse request [18:47:13]Sock 7.Check first char [18:47:13]Sock 7.First char is OK [18:47:13]request: POST /json_proto HTTP/1.0 [18:47:13]Method: POST [18:47:13]URL: /json_proto [18:47:13]Method is POST - this is cgi request [18:47:13]url: /json_proto [18:47:13]query_string will be loaded in cgi processing [18:47:13]execute_cgi json_proto POST (null) [18:47:13]execute_cgi path=json_proto method=POST [18:47:13]POST find Content-Length [18:47:13]Host: 172.17.46.196:8080 [18:47:13]Content-Length: 719 [18:47:13]Content-Type: application/json [18:47:13] [18:47:13]POST finish read [18:47:13]Found Content-Length = 719 [18:47:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189860", "tax_sys" : 0, "items" : [ { "code": "4870145004975", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 5 \u043C\u044F\u0433\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:13]execute_script... [18:47:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189860", "tax_sys" : 0, "items" : [ { "code": "4870145004975", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 5 \u043C\u044F\u0433\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:13]POST & json_proto [18:47:13]process_json_proto [18:47:13]json parsed OK: [18:47:13]protocol is kg_v1.0 [18:47:13]action value=close_receipt [18:47:13]process_action close_receipt [18:47:13]cmd_close_receipt [18:47:13]MH_GetDate [18:47:13]Write to MH i2c: F0 00 00 54 2B 6E [18:47:13]Write i2c OK [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: F0 [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: F0 09 00 [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: F0 09 00 54 2B 00 36 F0 C0 66 07 E8 5D 66 75 [18:47:13]GetLastDocTimeStamp 1723919936 [18:47:13]current date 1723920438 [18:47:13]FM_GetShiftState [18:47:13]SAM_PROTO_GetShiftState [18:47:13]wFMCommunicate request_size=4 [18:47:13]MH_SAM_APDU [18:47:13]CAPDU: 80 13 01 00 [18:47:13]Write to MH i2c: E2 08 00 55 2B 80 13 01 00 00 00 00 00 FD [18:47:13]Write i2c OK [18:47:13]MH_I2C_Read... [18:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:13]Read from MH i2c: E2 [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: E2 0E 00 [18:47:13]MH_I2C_Read... [18:47:13]Read from MH i2c: E2 0E 00 55 2B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 42 [18:47:13]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [18:47:13]wFMCommunicate OK [18:47:13]SAM_PROTO_GetShiftState done [18:47:13]FM_GetShiftState done [18:47:13]opened in 1723853354 [18:47:13]opened+sec_in_day 1723939754 [18:47:13]quantity*price = 18000 [18:47:13]sum+1 = 18001 [18:47:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 115 17.08.2024 18:47 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49678 ФПД: 238361710986447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T184718&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49678&fm=238361710986447&tin=02508201610067®Number=0000000000092546&sum=18000 0 [18:47:14]StoreToDocumentArchive [18:47:14]shift 465 fd 49678 [18:47:14]save to /storage/0465/doc_00049678 [18:47:14]save last doc name /storage/0465/doc_00049678 to /storage/kkm_last_doc_name [18:47:14]save OK [18:47:14]Clear old archive folders... [18:47:14]ProcessDocumentItem done err = 0, tmpTLVsize=304 [18:47:14]tlvbuf is 01898130 [18:47:14]SAM_PROTO_ClearQueue [18:47:14]wFMCommunicate request_size=4 [18:47:14]MH_SAM_APDU [18:47:14]CAPDU: 80 09 00 00 [18:47:14]Write to MH i2c: E2 08 00 62 2B 80 09 00 00 00 00 00 00 FF [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:14]Read from MH i2c: E2 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 03 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 03 00 62 2B 00 90 00 01 [18:47:14]RAPDU: 90 00 [18:47:14]wFMCommunicate OK [18:47:14]SAM_PROTO_ClearQueue done [18:47:14]KKMCreateOFDPacket [18:47:14]OFDProtocolAddRootSTLVToBuf [18:47:14]FM_MakeSignedData [18:47:14]FM_MakeSignedData [18:47:14]SAM_PROTO_SignData [18:47:14]wFMCommunicate request_size=4 [18:47:14]MH_SAM_APDU [18:47:14]CAPDU: 80 0D 01 02 [18:47:14]Write to MH i2c: E2 08 00 63 2B 80 0D 01 02 00 00 00 00 07 [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:14]Read from MH i2c: E2 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 03 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 03 00 63 2B 00 90 00 02 [18:47:14]RAPDU: 90 00 [18:47:14]wFMCommunicate OK [18:47:14]wFMCommunicate request_size=255 [18:47:14]MH_SAM_APDU [18:47:14]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 37 35 06 04 3E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 35 20 D0 BC D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 36 F0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 [18:47:14]Write to MH i2c: E2 02 01 64 2B 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 37 35 06 04 3E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 35 20 D0 BC D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 36 F0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 00 00 47 [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:14]Read from MH i2c: E2 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 03 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 03 00 64 2B 00 90 00 03 [18:47:14]RAPDU: 90 00 [18:47:14]wFMCommunicate OK [18:47:14]wFMCommunicate request_size=63 [18:47:14]MH_SAM_APDU [18:47:14]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C2 00 00 35 04 06 00 D8 C9 E9 1C 84 CF [18:47:14]Write to MH i2c: E2 42 00 65 2B 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C2 00 00 35 04 06 00 D8 C9 E9 1C 84 CF 00 00 16 [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:14]Read from MH i2c: E2 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 03 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 03 00 65 2B 00 90 00 04 [18:47:14]RAPDU: 90 00 [18:47:14]wFMCommunicate OK [18:47:14]wFMCommunicate request_size=4 [18:47:14]MH_SAM_APDU [18:47:14]CAPDU: 80 0D 03 02 [18:47:14]Write to MH i2c: E2 08 00 66 2B 80 0D 03 02 00 00 00 00 0C [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:14]Read from MH i2c: E2 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 0B 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: E2 0B 00 66 2B 00 6B A1 38 87 C2 0B 7D 12 90 00 34 [18:47:14]RAPDU: 6B A1 38 87 C2 0B 7D 12 90 00 [18:47:14]wFMCommunicate OK [18:47:14]SAM_PROTO_SignData done [18:47:14]FM_MakeSignedData done [18:47:14]CreateOFDProtocolMessage [18:47:14]wFMCommunicate request_size=4 [18:47:14]MH_SAM_APDU [18:47:14]CAPDU: 80 11 00 00 [18:47:14]Write to MH i2c: E2 08 00 67 2B 80 11 00 00 00 00 00 00 0C [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:15]Read from MH i2c: E2 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 17 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 17 00 67 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 57 [18:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:47:15]wFMCommunicate OK [18:47:15]CreateOFDProtocolMessage done [18:47:15]OFDSenderStorePacket 49678 [18:47:15]StoreOFDPacket docnum=49678 [18:47:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 08 1F 3C 01 31 D5 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 37 35 06 04 3E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 35 20 D0 BC D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 36 F0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C2 00 00 35 04 06 00 D8 C9 E9 1C 84 CF 6B A1 38 87 C2 0B 7D 12 [18:47:15]CheckFolder [18:47:15]dirname=/storage/ofd_packets [18:47:15]CheckFolder done [18:47:15]ProducePacketName [18:47:15]name=ofd_packets/00049678 [18:47:15]NVStorageSaveData ofd_packets/00049678 [18:47:15]File name is /storage/ofd_packets/00049678 [18:47:15]Write 354 bytes [18:47:15]NVStorageSaveData done [18:47:15]OFDSenderStorePacket done [18:47:15]KKMCreateOFDPacket done [18:47:15]NVStorageSaveData kkm_last_timestamp [18:47:15]File name is /storage/kkm_last_timestamp [18:47:15]Write 4 bytes [18:47:15]NVStorageSaveData done [18:47:15]ExternCall_PrintAddStr [18:47:15]wPrintStart [18:47:15]Write to MH i2c: 01 00 00 68 2B 93 [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: 01 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: 01 07 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: 01 07 00 68 2B 00 00 00 00 00 FF 0F A8 [18:47:15]RasterBufferAndPrint [18:47:15]line Счет N : (3)189860 [18:47:15]line ИНН: 02508201610067 [18:47:15]line Контрольно-Кассовый Чек [18:47:15]line ПРОДАЖА [18:47:15]line Товар: 4870145004975 [18:47:15]line Пиво Жатецкий Гусь 5 мягкое 0,43л ж/б [18:47:15]line 2.000 * 90.00 [18:47:15]line = 180.00 [18:47:15]line НДС 12% НСП 1% [18:47:15]line > о реализуемом товаре [18:47:15]line ИТОГО: 180.00 [18:47:15]line НСП 1% : 1.59 [18:47:15]line НДС 12% : 19.11 [18:47:15]line Наличными: 180.00 [18:47:15]line Безнал.: 0.00 [18:47:15]line Место: АЗС № 95 "Партнер Нефть" [18:47:15]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:47:15]line СНО: Общий режим [18:47:15]line Чек 115 17.08.2024 18:47 [18:47:15]line Смена: 465 ФФД: 1.0 [18:47:15]line ЗНМ: 0300000078 [18:47:15]line РНМ: 0000000000092546 [18:47:15]line Версия ККМ: 001 [18:47:15]line ФМ: 0000000000871800 [18:47:15]line ФД: 49678 [18:47:15]line ФПД: 238361710986447 [18:47:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T184718&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49678&fm=238361710986447&tin=02508201610067®Number=0000000000092546&sum=18000 [18:47:15]line 0 [18:47:15]OFD Sender: Processing packet 49678 [packets to send 21, broken 20] [18:47:15]ProducePacketName [18:47:15]name=ofd_packets/00049678 [18:47:15]OFD Sender: To server: pG, [18:47:15]CommunicateWithHost lk.salyk.kg:30040 [18:47:15]ConnectInit lk.salyk.kg [18:47:15]written 0, free lines is 4095 [18:47:15]Connected sock=9 [18:47:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 08 1F 3C 01 31 D5 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 37 35 06 04 3E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 35 20 D0 BC D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 36 F0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C2 00 00 35 04 06 00 D8 C9 E9 1C 84 CF 6B A1 38 87 C2 0B 7D 12 [18:47:15]Write to MH i2c: 01 00 00 91 2B BC [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: 01 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: 01 07 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: 01 07 00 91 2B 00 00 00 00 00 DC 0C AB [18:47:15]RasterBufferAndPrint [18:47:15]line [18:47:15]line [18:47:15]line [18:47:15]line [18:47:15]line [18:47:15]written 0, free lines is 3298 [18:47:15]MH_Cut [18:47:15]Write to MH i2c: D1 01 00 98 2B 01 95 [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: D1 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: D1 01 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: D1 01 00 98 2B 00 94 [18:47:15]Write to MH i2c: 01 00 00 99 2B C4 [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8D 0A 47 00 DE 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 31 38 30 30 10 04 04 00 0E C2 00 00 F4 03 04 00 71 9B C0 66 B6 04 01 00 00 D7 A6 48 3E 70 8A 2B 99 [18:47:15]CommunicateWithHost err = 0 [18:47:15]CheckOFDResponse [18:47:15]1017 (14) - 77093643461234 [18:47:15]1041 (16) - 0000000000871800 [18:47:15]1040 (4) - 49678 [18:47:15]1012 (4) - 17.08.2024 12:45 [18:47:15]1206 (1) - 0 [18:47:15]OFD Sender: Remove packet 49678 [18:47:15]ProducePacketName [18:47:15]name=ofd_packets/00049678 [18:47:15]NVStorageDeleteData [18:47:16]OFD Sender: No OFD packet to send [18:47:16]*** Cut start [18:47:16]*** Purtial cut [18:47:16]*** CUTSNS_PIN = 0 [18:47:16]*** Stage 1: CUTSNS_PIN = 1 [18:47:18]Read from MH i2c: 01 [18:47:18]MH_I2C_Read... [18:47:18]*** Stop cut motor [18:47:18]*** Cut end [18:47:18]Read from MH i2c: 01 07 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: 01 07 00 99 2B 00 00 00 00 00 FF 0F D9 [18:47:18]process_action close_receipt done [18:47:18]requested_data is exist [18:47:18]produce_requested_data [18:47:18]requested_item fm.sn is exist - process it [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 11 00 00 [18:47:18]Write to MH i2c: E2 08 00 9A 2B 80 11 00 00 00 00 00 00 3F [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 17 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 17 00 9A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8A [18:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:47:18]wFMCommunicate OK [18:47:18]requested_item fd.num is exist - process it [18:47:18]SAM_PROTO_GetFieldsCounters [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 13 00 00 [18:47:18]Write to MH i2c: E2 08 00 9B 2B 80 13 00 00 00 00 00 00 42 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 62 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 62 00 9B 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0E C2 00 00 0E 04 04 00 D1 01 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 57 [18:47:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0E C2 00 00 0E 04 04 00 D1 01 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 [18:47:18]wFMCommunicate OK [18:47:18]SAM_PROTO_GetFieldsCounters done [18:47:18]requested_item shift.num is exist - process it [18:47:18]requested_item shift.opened is exist - process it [18:47:18]req_shift_opened [18:47:18]FM_GetShiftState [18:47:18]SAM_PROTO_GetShiftState [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 13 01 00 [18:47:18]Write to MH i2c: E2 08 00 9C 2B 80 13 01 00 00 00 00 00 44 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 0E 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 0E 00 9C 2B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 89 [18:47:18]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [18:47:18]wFMCommunicate OK [18:47:18]SAM_PROTO_GetShiftState done [18:47:18]FM_GetShiftState done [18:47:18]req_shift_opened done [18:47:18]requested_item shift.open_date is exist - process it [18:47:18]req_shift_open_date [18:47:18]req_shift_open_date done [18:47:18]produce_requested_data done [18:47:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49678,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [18:47:18]process_action_free close_receipt [18:47:18]json_value_free [18:47:18]json_value_free done [18:47:18]process_json_proto returns [18:47:18]Send response to host [18:47:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49678,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [18:47:18]free response buf [18:47:18]execute_script done [18:47:18]execute_script returns [18:47:18]free content buf [18:47:18]Sock 7.Close socket [18:47:18]Sock 7.Thread stoped [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:48:59]accept exits with 10 [18:48:59]New connection [18:48:59]New thread 3066801508 created [18:48:59]Thread 3066944868 joined [18:48:59]Waiting for new connection... [18:48:59] Sock 10.Parse request [18:48:59]Sock 10.Check first char [18:48:59]Sock 10.First char is OK [18:48:59]request: POST /json_proto HTTP/1.0 [18:48:59]Method: POST [18:48:59]URL: /json_proto [18:48:59]Method is POST - this is cgi request [18:48:59]url: /json_proto [18:48:59]query_string will be loaded in cgi processing [18:48:59]execute_cgi json_proto POST (null) [18:48:59]execute_cgi path=json_proto method=POST [18:48:59]POST find Content-Length [18:48:59]Host: 172.17.46.196:8080 [18:48:59]Content-Length: 655 [18:48:59]Content-Type: application/json [18:48:59] [18:48:59]POST finish read [18:48:59]Found Content-Length = 655 [18:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189861", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:59]execute_script... [18:48:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189861", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:59]POST & json_proto [18:48:59]process_json_proto [18:48:59]json parsed OK: [18:48:59]protocol is kg_v1.0 [18:48:59]action value=close_receipt [18:48:59]process_action close_receipt [18:48:59]cmd_close_receipt [18:48:59]MH_GetDate [18:48:59]Write to MH i2c: F0 00 00 9D 2B B7 [18:48:59]Write i2c OK [18:48:59]MH_I2C_Read... [18:48:59]Read from MH i2c: F0 [18:48:59]MH_I2C_Read... [18:48:59]Read from MH i2c: F0 09 00 [18:48:59]MH_I2C_Read... [18:48:59]Read from MH i2c: F0 09 00 9D 2B 00 A0 F0 C0 66 07 E8 5D 66 28 [18:48:59]GetLastDocTimeStamp 1723920438 [18:48:59]current date 1723920544 [18:48:59]FM_GetShiftState [18:48:59]SAM_PROTO_GetShiftState [18:48:59]wFMCommunicate request_size=4 [18:48:59]MH_SAM_APDU [18:48:59]CAPDU: 80 13 01 00 [18:48:59]Write to MH i2c: E2 08 00 9E 2B 80 13 01 00 00 00 00 00 46 [18:48:59]Write i2c OK [18:48:59]MH_I2C_Read... [18:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:59]Read from MH i2c: E2 [18:48:59]MH_I2C_Read... [18:48:59]Read from MH i2c: E2 0E 00 [18:48:59]MH_I2C_Read... [18:48:59]Read from MH i2c: E2 0E 00 9E 2B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 8B [18:48:59]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [18:48:59]wFMCommunicate OK [18:48:59]SAM_PROTO_GetShiftState done [18:48:59]FM_GetShiftState done [18:48:59]opened in 1723853354 [18:48:59]opened+sec_in_day 1723939754 [18:48:59]quantity*price = 8500 [18:48:59]sum+1 = 8501 [18:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 116 17.08.2024 18:49 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49679 ФПД: 175249446256264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T184904&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49679&fm=175249446256264&tin=02508201610067®Number=0000000000092546&sum=8500 0 [18:49:00]StoreToDocumentArchive [18:49:00]shift 465 fd 49679 [18:49:00]save to /storage/0465/doc_00049679 [18:49:00]save last doc name /storage/0465/doc_00049679 to /storage/kkm_last_doc_name [18:49:00]save OK [18:49:00]Clear old archive folders... [18:49:00]ProcessDocumentItem done err = 0, tmpTLVsize=294 [18:49:00]tlvbuf is B6F53700 [18:49:00]SAM_PROTO_ClearQueue [18:49:00]wFMCommunicate request_size=4 [18:49:00]MH_SAM_APDU [18:49:00]CAPDU: 80 09 00 00 [18:49:00]Write to MH i2c: E2 08 00 AB 2B 80 09 00 00 00 00 00 00 48 [18:49:00]Write i2c OK [18:49:00]MH_I2C_Read... [18:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:00]Read from MH i2c: E2 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 03 00 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 03 00 AB 2B 00 90 00 4A [18:49:00]RAPDU: 90 00 [18:49:00]wFMCommunicate OK [18:49:00]SAM_PROTO_ClearQueue done [18:49:00]KKMCreateOFDPacket [18:49:00]OFDProtocolAddRootSTLVToBuf [18:49:00]FM_MakeSignedData [18:49:00]FM_MakeSignedData [18:49:00]SAM_PROTO_SignData [18:49:00]wFMCommunicate request_size=4 [18:49:00]MH_SAM_APDU [18:49:00]CAPDU: 80 0D 01 02 [18:49:00]Write to MH i2c: E2 08 00 AC 2B 80 0D 01 02 00 00 00 00 50 [18:49:00]Write i2c OK [18:49:00]MH_I2C_Read... [18:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:00]Read from MH i2c: E2 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 03 00 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 03 00 AC 2B 00 90 00 4B [18:49:00]RAPDU: 90 00 [18:49:00]wFMCommunicate OK [18:49:00]wFMCommunicate request_size=255 [18:49:00]MH_SAM_APDU [18:49:00]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A0 F0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [18:49:00]Write to MH i2c: E2 02 01 AD 2B 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A0 F0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 30 [18:49:00]Write i2c OK [18:49:00]MH_I2C_Read... [18:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:00]Read from MH i2c: E2 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 03 00 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 03 00 AD 2B 00 90 00 4C [18:49:00]RAPDU: 90 00 [18:49:00]wFMCommunicate OK [18:49:00]wFMCommunicate request_size=53 [18:49:00]MH_SAM_APDU [18:49:00]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C2 00 00 35 04 06 00 9F 63 70 FD BE 88 [18:49:00]Write to MH i2c: E2 38 00 AE 2B 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C2 00 00 35 04 06 00 9F 63 70 FD BE 88 00 00 C7 [18:49:00]Write i2c OK [18:49:00]MH_I2C_Read... [18:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:00]Read from MH i2c: E2 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 03 00 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 03 00 AE 2B 00 90 00 4D [18:49:00]RAPDU: 90 00 [18:49:00]wFMCommunicate OK [18:49:00]wFMCommunicate request_size=4 [18:49:00]MH_SAM_APDU [18:49:00]CAPDU: 80 0D 03 02 [18:49:00]Write to MH i2c: E2 08 00 AF 2B 80 0D 03 02 00 00 00 00 55 [18:49:00]Write i2c OK [18:49:00]MH_I2C_Read... [18:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:00]Read from MH i2c: E2 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 0B 00 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 0B 00 AF 2B 00 1A 34 F0 5B 4D 06 84 4D 90 00 13 [18:49:00]RAPDU: 1A 34 F0 5B 4D 06 84 4D 90 00 [18:49:00]wFMCommunicate OK [18:49:00]SAM_PROTO_SignData done [18:49:00]FM_MakeSignedData done [18:49:00]CreateOFDProtocolMessage [18:49:00]wFMCommunicate request_size=4 [18:49:00]MH_SAM_APDU [18:49:00]CAPDU: 80 11 00 00 [18:49:00]Write to MH i2c: E2 08 00 B0 2B 80 11 00 00 00 00 00 00 55 [18:49:00]Write i2c OK [18:49:00]MH_I2C_Read... [18:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:01]Read from MH i2c: E2 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 17 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 17 00 B0 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A0 [18:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:49:01]wFMCommunicate OK [18:49:01]CreateOFDProtocolMessage done [18:49:01]OFDSenderStorePacket 49679 [18:49:01]StoreOFDPacket docnum=49679 [18:49:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 7F CB 32 01 9C 05 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A0 F0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C2 00 00 35 04 06 00 9F 63 70 FD BE 88 1A 34 F0 5B 4D 06 84 4D [18:49:01]CheckFolder [18:49:01]dirname=/storage/ofd_packets [18:49:01]CheckFolder done [18:49:01]ProducePacketName [18:49:01]name=ofd_packets/00049679 [18:49:01]NVStorageSaveData ofd_packets/00049679 [18:49:01]File name is /storage/ofd_packets/00049679 [18:49:01]Write 344 bytes [18:49:01]NVStorageSaveData done [18:49:01]OFDSenderStorePacket done [18:49:01]KKMCreateOFDPacket done [18:49:01]NVStorageSaveData kkm_last_timestamp [18:49:01]File name is /storage/kkm_last_timestamp [18:49:01]Write 4 bytes [18:49:01]NVStorageSaveData done [18:49:01]ExternCall_PrintAddStr [18:49:01]wPrintStart [18:49:01]Write to MH i2c: 01 00 00 B1 2B DC [18:49:01]Write i2c OK [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: 01 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: 01 07 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: 01 07 00 B1 2B 00 00 00 00 00 FF 0F F1 [18:49:01]RasterBufferAndPrint [18:49:01]line Счет N : (3)189861 [18:49:01]line ИНН: 02508201610067 [18:49:01]line Контрольно-Кассовый Чек [18:49:01]line ПРОДАЖА [18:49:01]line Товар: 4600682557456 [18:49:01]line Напиток FLash up energy эн ж/б 0,5/0,45л [18:49:01]line 1.000 * 85.00 [18:49:01]line = 85.00 [18:49:01]line НДС 12% НСП 1% [18:49:01]line > о реализуемом товаре [18:49:01]line ИТОГО: 85.00 [18:49:01]line НСП 1% : 0.75 [18:49:01]line НДС 12% : 9.03 [18:49:01]line Наличными: 85.00 [18:49:01]line Безнал.: 0.00 [18:49:01]line Место: АЗС № 95 "Партнер Нефть" [18:49:01]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:49:01]line СНО: Общий режим [18:49:01]line Чек 116 17.08.2024 18:49 [18:49:01]line Смена: 465 ФФД: 1.0 [18:49:01]line ЗНМ: 0300000078 [18:49:01]line РНМ: 0000000000092546 [18:49:01]line Версия ККМ: 001 [18:49:01]line ФМ: 0000000000871800 [18:49:01]line ФД: 49679 [18:49:01]line ФПД: 175249446256264 [18:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T184904&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49679&fm=175249446256264&tin=02508201610067®Number=0000000000092546&sum=8500 [18:49:01]line 0 [18:49:01]OFD Sender: Processing packet 49679 [packets to send 21, broken 20] [18:49:01]ProducePacketName [18:49:01]name=ofd_packets/00049679 [18:49:01]OFD Sender: To server: pG, [18:49:01]CommunicateWithHost lk.salyk.kg:30040 [18:49:01]ConnectInit lk.salyk.kg [18:49:01]written 0, free lines is 4095 [18:49:01]Write to MH i2c: 01 00 00 DA 2B 05 [18:49:01]Write i2c OK [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: 01 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: 01 07 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: 01 07 00 DA 2B 00 00 00 00 00 D8 0C F0 [18:49:01]RasterBufferAndPrint [18:49:01]line [18:49:01]line [18:49:01]line [18:49:01]line [18:49:01]line [18:49:01]written 0, free lines is 3295 [18:49:01]MH_Cut [18:49:01]Write to MH i2c: D1 01 00 E1 2B 01 DE [18:49:01]Write i2c OK [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: D1 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: D1 01 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: D1 01 00 E1 2B 00 DD [18:49:01]Write to MH i2c: 01 00 00 E2 2B 0D [18:49:01]Write i2c OK [18:49:01]MH_I2C_Read... [18:49:02]*** Cut start [18:49:02]*** Purtial cut [18:49:02]*** Stage 1: CUTSNS_PIN = 1 [18:49:02]Read from MH i2c: 01 [18:49:02]MH_I2C_Read... [18:49:02]*** Stop cut motor [18:49:02]*** Cut end [18:49:02]Read from MH i2c: 01 07 00 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: 01 07 00 E2 2B 00 00 00 00 00 FF 0F 22 [18:49:02]process_action close_receipt done [18:49:02]requested_data is exist [18:49:02]produce_requested_data [18:49:02]requested_item fm.sn is exist - process it [18:49:02]wFMCommunicate request_size=4 [18:49:02]MH_SAM_APDU [18:49:02]CAPDU: 80 11 00 00 [18:49:02]Write to MH i2c: E2 08 00 E3 2B 80 11 00 00 00 00 00 00 88 [18:49:02]Write i2c OK [18:49:02]MH_I2C_Read... [18:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:02]Read from MH i2c: E2 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: E2 17 00 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: E2 17 00 E3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D3 [18:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:49:02]wFMCommunicate OK [18:49:02]requested_item fd.num is exist - process it [18:49:02]SAM_PROTO_GetFieldsCounters [18:49:02]wFMCommunicate request_size=4 [18:49:02]MH_SAM_APDU [18:49:02]CAPDU: 80 13 00 00 [18:49:02]Write to MH i2c: E2 08 00 E4 2B 80 13 00 00 00 00 00 00 8B [18:49:02]Write i2c OK [18:49:02]MH_I2C_Read... [18:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:03]Read from MH i2c: E2 [18:49:03]MH_I2C_Read... [18:49:03]Read from MH i2c: E2 62 00 [18:49:03]MH_I2C_Read... [18:49:03]Read from MH i2c: E2 62 00 E4 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0F C2 00 00 0E 04 04 00 D1 01 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 A4 [18:49: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0F C2 00 00 0E 04 04 00 D1 01 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 [18:49:03]wFMCommunicate OK [18:49:03]SAM_PROTO_GetFieldsCounters done [18:49:03]requested_item shift.num is exist - process it [18:49:03]requested_item shift.opened is exist - process it [18:49:03]req_shift_opened [18:49:03]FM_GetShiftState [18:49:03]SAM_PROTO_GetShiftState [18:49:03]wFMCommunicate request_size=4 [18:49:03]MH_SAM_APDU [18:49:03]CAPDU: 80 13 01 00 [18:49:03]Write to MH i2c: E2 08 00 E5 2B 80 13 01 00 00 00 00 00 8D [18:49:03]Write i2c OK [18:49:03]MH_I2C_Read... [18:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:03]Read from MH i2c: E2 [18:49:03]MH_I2C_Read... [18:49:03]Read from MH i2c: E2 0E 00 [18:49:03]MH_I2C_Read... [18:49:03]Read from MH i2c: E2 0E 00 E5 2B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D2 [18:49:03]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [18:49:03]wFMCommunicate OK [18:49:03]SAM_PROTO_GetShiftState done [18:49:03]FM_GetShiftState done [18:49:03]req_shift_opened done [18:49:03]requested_item shift.open_date is exist - process it [18:49:03]req_shift_open_date [18:49:03]req_shift_open_date done [18:49:03]produce_requested_data done [18:49:03]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49679,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [18:49:03]process_action_free close_receipt [18:49:03]json_value_free [18:49:03]json_value_free done [18:49:03]process_json_proto returns [18:49:03]Send response to host [18:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49679,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [18:49:03]free response buf [18:49:03]execute_script done [18:49:03]execute_script returns [18:49:03]free content buf [18:49:03]Sock 10.Close socket [18:49:03]Sock 10.Thread stoped [18:51:11]ConnectInit Can't connect to host [18:51:11]CommunicateWithHost connect error [18:51:11]CommunicateWithHost err = -1 [18:51:11]OFD Sender: Server communicate error [18:51:16]OFD Sender: Processing packet 49679 [packets to send 21, broken 20] [18:51:16]ProducePacketName [18:51:16]name=ofd_packets/00049679 [18:51:16]OFD Sender: To server: pG, [18:51:16]CommunicateWithHost lk.salyk.kg:30040 [18:51:16]ConnectInit lk.salyk.kg [18:51:16]Connected sock=9 [18:51:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 7F CB 32 01 9C 05 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A0 F0 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C2 00 00 35 04 06 00 9F 63 70 FD BE 88 1A 34 F0 5B 4D 06 84 4D [18:51:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D9 F7 47 00 05 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 31 38 30 30 10 04 04 00 0F C2 00 00 F4 03 04 00 62 9C C0 66 B6 04 01 00 00 F3 A4 B9 4F 4B 06 18 45 [18:51:17]CommunicateWithHost err = 0 [18:51:17]CheckOFDResponse [18:51:17]1017 (14) - 77093643461234 [18:51:17]1041 (16) - 0000000000871800 [18:51:17]1040 (4) - 49679 [18:51:17]1012 (4) - 17.08.2024 12:49 [18:51:17]1206 (1) - 0 [18:51:17]OFD Sender: Remove packet 49679 [18:51:17]ProducePacketName [18:51:17]name=ofd_packets/00049679 [18:51:17]NVStorageDeleteData [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:20]accept exits with 7 [18:54:20]New connection [18:54:20]New thread 3066944868 created [18:54:20]Thread 3066801508 joined [18:54:20]Waiting for new connection... [18:54:20] Sock 7.Parse request [18:54:20]Sock 7.Check first char [18:54:20]Sock 7.First char is OK [18:54:20]request: POST /json_proto HTTP/1.0 [18:54:20]Method: POST [18:54:20]URL: /json_proto [18:54:20]Method is POST - this is cgi request [18:54:20]url: /json_proto [18:54:20]query_string will be loaded in cgi processing [18:54:20]execute_cgi json_proto POST (null) [18:54:20]execute_cgi path=json_proto method=POST [18:54:20]POST find Content-Length [18:54:20]Host: 172.17.46.196:8080 [18:54:20]Content-Length: 1080 [18:54:20]Content-Type: application/json [18:54:20] [18:54:20]POST finish read [18:54:20]Found Content-Length = 1080 [18:54:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189862", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:20]execute_script... [18:54: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 : (3)189862", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:20]POST & json_proto [18:54:20]process_json_proto [18:54:20]json parsed OK: [18:54:20]protocol is kg_v1.0 [18:54:20]action value=close_receipt [18:54:20]process_action close_receipt [18:54:20]cmd_close_receipt [18:54:20]MH_GetDate [18:54:20]Write to MH i2c: F0 00 00 E6 2B 00 [18:54:20]Write i2c OK [18:54:20]MH_I2C_Read... [18:54:20]Read from MH i2c: F0 [18:54:20]MH_I2C_Read... [18:54:20]Read from MH i2c: F0 09 00 [18:54:20]MH_I2C_Read... [18:54:20]Read from MH i2c: F0 09 00 E6 2B 00 E1 F1 C0 66 07 E8 5D 66 B3 [18:54:20]GetLastDocTimeStamp 1723920544 [18:54:20]current date 1723920865 [18:54:20]FM_GetShiftState [18:54:20]SAM_PROTO_GetShiftState [18:54:20]wFMCommunicate request_size=4 [18:54:20]MH_SAM_APDU [18:54:20]CAPDU: 80 13 01 00 [18:54:20]Write to MH i2c: E2 08 00 E7 2B 80 13 01 00 00 00 00 00 8F [18:54:20]Write i2c OK [18:54:20]MH_I2C_Read... [18:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:20]Read from MH i2c: E2 [18:54:20]MH_I2C_Read... [18:54:20]Read from MH i2c: E2 0E 00 [18:54:20]MH_I2C_Read... [18:54:20]Read from MH i2c: E2 0E 00 E7 2B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D4 [18:54:20]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [18:54:20]wFMCommunicate OK [18:54:20]SAM_PROTO_GetShiftState done [18:54:20]FM_GetShiftState done [18:54:20]opened in 1723853354 [18:54:20]opened+sec_in_day 1723939754 [18:54:20]quantity*price = 6000 [18:54:20]sum+1 = 6001 [18:54:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.10 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 117 17.08.2024 18:54 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49680 ФПД: 252131206856001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T185425&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49680&fm=252131206856001&tin=02508201610067®Number=0000000000092546&sum=12500 0 [18:54:21]StoreToDocumentArchive [18:54:21]shift 465 fd 49680 [18:54:21]save to /storage/0465/doc_00049680 [18:54:21]save last doc name /storage/0465/doc_00049680 to /storage/kkm_last_doc_name [18:54:21]save OK [18:54:21]Clear old archive folders... [18:54:21]ProcessDocumentItem done err = 0, tmpTLVsize=385 [18:54:21]tlvbuf is 01890B90 [18:54:21]SAM_PROTO_ClearQueue [18:54:21]wFMCommunicate request_size=4 [18:54:21]MH_SAM_APDU [18:54:21]CAPDU: 80 09 00 00 [18:54:21]Write to MH i2c: E2 08 00 F4 2B 80 09 00 00 00 00 00 00 91 [18:54:21]Write i2c OK [18:54:21]MH_I2C_Read... [18:54:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:21]Read from MH i2c: E2 [18:54:21]MH_I2C_Read... [18:54:21]Read from MH i2c: E2 03 00 [18:54:21]MH_I2C_Read... [18:54:21]Read from MH i2c: E2 03 00 F4 2B 00 90 00 93 [18:54:21]RAPDU: 90 00 [18:54:21]wFMCommunicate OK [18:54:21]SAM_PROTO_ClearQueue done [18:54:21]KKMCreateOFDPacket [18:54:21]OFDProtocolAddRootSTLVToBuf [18:54:21]FM_MakeSignedData [18:54:21]FM_MakeSignedData [18:54:21]SAM_PROTO_SignData [18:54:21]wFMCommunicate request_size=4 [18:54:21]MH_SAM_APDU [18:54:21]CAPDU: 80 0D 01 02 [18:54:21]Write to MH i2c: E2 08 00 F5 2B 80 0D 01 02 00 00 00 00 99 [18:54:21]Write i2c OK [18:54:21]MH_I2C_Read... [18:54:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:21]Read from MH i2c: E2 [18:54:21]MH_I2C_Read... [18:54:21]Read from MH i2c: E2 03 00 [18:54:21]MH_I2C_Read... [18:54:21]Read from MH i2c: E2 03 00 F5 2B 00 90 00 94 [18:54:21]RAPDU: 90 00 [18:54:21]wFMCommunicate OK [18:54:21]wFMCommunicate request_size=255 [18:54:21]MH_SAM_APDU [18:54:21]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [18:54:21]Write to MH i2c: E2 02 01 F6 2B 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 DA [18:54:21]Write i2c OK [18:54:21]MH_I2C_Read... [18:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:22]Read from MH i2c: E2 [18:54:22]MH_I2C_Read... [18:54:22]Read from MH i2c: E2 03 00 [18:54:22]MH_I2C_Read... [18:54:22]Read from MH i2c: E2 03 00 F6 2B 00 90 00 95 [18:54:22]RAPDU: 90 00 [18:54:22]wFMCommunicate OK [18:54:22]wFMCommunicate request_size=144 [18:54:22]MH_SAM_APDU [18:54:22]CAPDU: 80 0D 02 02 8B 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E1 F1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 10 C2 00 00 35 04 06 00 E5 4F DF 05 7D 41 [18:54:22]Write to MH i2c: E2 93 00 F7 2B 80 0D 02 02 8B 00 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E1 F1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 10 C2 00 00 35 04 06 00 E5 4F DF 05 7D 41 00 00 65 [18:54:22]Write i2c OK [18:54:22]MH_I2C_Read... [18:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:22]Read from MH i2c: E2 [18:54:22]MH_I2C_Read... [18:54:22]Read from MH i2c: E2 03 00 [18:54:22]MH_I2C_Read... [18:54:22]Read from MH i2c: E2 03 00 F7 2B 00 90 00 96 [18:54:22]RAPDU: 90 00 [18:54:22]wFMCommunicate OK [18:54:22]wFMCommunicate request_size=4 [18:54:22]MH_SAM_APDU [18:54:22]CAPDU: 80 0D 03 02 [18:54:22]Write to MH i2c: E2 08 00 F8 2B 80 0D 03 02 00 00 00 00 9E [18:54:22]Write i2c OK [18:54:22]MH_I2C_Read... [18:54:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:22]Read from MH i2c: E2 [18:54:22]MH_I2C_Read... [18:54:22]Read from MH i2c: E2 0B 00 [18:54:22]MH_I2C_Read... [18:54:22]Read from MH i2c: E2 0B 00 F8 2B 00 2C 40 6B 45 B9 3B 2D AD 90 00 89 [18:54:22]RAPDU: 2C 40 6B 45 B9 3B 2D AD 90 00 [18:54:22]wFMCommunicate OK [18:54:22]SAM_PROTO_SignData done [18:54:22]FM_MakeSignedData done [18:54:22]CreateOFDProtocolMessage [18:54:22]wFMCommunicate request_size=4 [18:54:22]MH_SAM_APDU [18:54:22]CAPDU: 80 11 00 00 [18:54:22]Write to MH i2c: E2 08 00 F9 2B 80 11 00 00 00 00 00 00 9E [18:54:22]Write i2c OK [18:54:22]MH_I2C_Read... [18:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:22]Read from MH i2c: E2 [18:54:22]MH_I2C_Read... [18:54:22]Read from MH i2c: E2 17 00 [18:54:22]MH_I2C_Read... [18:54:22]Read from MH i2c: E2 17 00 F9 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E9 [18:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:54:22]wFMCommunicate OK [18:54:22]CreateOFDProtocolMessage done [18:54:22]OFDSenderStorePacket 49680 [18:54:22]StoreOFDPacket docnum=49680 [18:54:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 95 01 00 00 19 C4 8D 01 07 89 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E1 F1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 10 C2 00 00 35 04 06 00 E5 4F DF 05 7D 41 2C 40 6B 45 B9 3B 2D AD [18:54:22]CheckFolder [18:54:22]dirname=/storage/ofd_packets [18:54:22]CheckFolder done [18:54:22]ProducePacketName [18:54:22]name=ofd_packets/00049680 [18:54:22]NVStorageSaveData ofd_packets/00049680 [18:54:22]File name is /storage/ofd_packets/00049680 [18:54:22]Write 435 bytes [18:54:22]NVStorageSaveData done [18:54:22]OFDSenderStorePacket done [18:54:22]KKMCreateOFDPacket done [18:54:22]NVStorageSaveData kkm_last_timestamp [18:54:22]File name is /storage/kkm_last_timestamp [18:54:22]Write 4 bytes [18:54:22]NVStorageSaveData done [18:54:22]ExternCall_PrintAddStr [18:54:22]wPrintStart [18:54:22]Write to MH i2c: 01 00 00 FA 2B 25 [18:54:22]OFD Sender: Processing packet 49680 [packets to send 21, broken 20] [18:54:22]ProducePacketName [18:54:22]name=ofd_packets/00049680 [18:54:22]OFD Sender: To server: pG, [18:54:22]CommunicateWithHost lk.salyk.kg:30040 [18:54:22]ConnectInit lk.salyk.kg [18:54:22]Write i2c OK [18:54:22]MH_I2C_Read... [18:54:22]Read from MH i2c: 01 [18:54:22]MH_I2C_Read... [18:54:22]Read from MH i2c: 01 07 00 [18:54:22]MH_I2C_Read... [18:54:22]Read from MH i2c: 01 07 00 FA 2B 00 00 00 00 00 FF 0F 3A [18:54:22]RasterBufferAndPrint [18:54:22]line Счет N : (3)189862 [18:54:22]line ИНН: 02508201610067 [18:54:22]line Контрольно-Кассовый Чек [18:54:22]line ПРОДАЖА [18:54:22]line Товар: 4700000160204 [18:54:22]line Вода Легенда 1,5л [18:54:22]line 1.000 * 60.00 [18:54:22]line = 60.00 [18:54:22]line НДС 12% НСП 1% [18:54:22]line > о реализуемом товаре [18:54:22]line Товар: 4700040114137 [18:54:22]line Султан чай 1л. зел лимон [18:54:22]line 1.000 * 65.00 [18:54:22]line = 65.00 [18:54:22]line НДС 12% НСП 1% [18:54:22]line > о реализуемом товаре [18:54:22]line ИТОГО: 125.00 [18:54:22]line НСП 1% : 1.10 [18:54:22]line НДС 12% : 13.27 [18:54:22]line Наличными: 0.00 [18:54:22]line Безнал.: 125.00 [18:54:22]line Место: АЗС № 95 "Партнер Нефть" [18:54:22]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:54:22]line СНО: Общий режим [18:54:22]line Чек 117 17.08.2024 18:54 [18:54:22]line Смена: 465 ФФД: 1.0 [18:54:22]line ЗНМ: 0300000078 [18:54:22]line РНМ: 0000000000092546 [18:54:22]line Версия ККМ: 001 [18:54:22]line Платежная система: O! деньги [18:54:22]line ФМ: 0000000000871800 [18:54:22]line ФД: 49680 [18:54:22]line ФПД: 252131206856001 [18:54:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T185425&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49680&fm=252131206856001&tin=02508201610067®Number=0000000000092546&sum=12500 [18:54:22]line 0 [18:54:22]written 0, free lines is 4095 [18:54:23]Connected sock=10 [18:54:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 95 01 00 00 19 C4 8D 01 07 89 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E1 F1 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 10 C2 00 00 35 04 06 00 E5 4F DF 05 7D 41 2C 40 6B 45 B9 3B 2D AD [18:54:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 07 9E 47 00 23 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 10 C2 00 00 F4 03 04 00 1D 9D C0 66 B6 04 01 00 00 73 46 4C CA 1F 26 F1 C0 [18:54:23]CommunicateWithHost err = 0 [18:54:23]CheckOFDResponse [18:54:23]1017 (14) - 77093643461234 [18:54:23]1041 (16) - 0000000000871800 [18:54:23]1040 (4) - 49680 [18:54:23]1012 (4) - 17.08.2024 12:52 [18:54:23]1206 (1) - 0 [18:54:23]OFD Sender: Remove packet 49680 [18:54:23]ProducePacketName [18:54:23]name=ofd_packets/00049680 [18:54:23]NVStorageDeleteData [18:54:23]Write to MH i2c: 01 00 00 2A 2C 56 [18:54:23]Write i2c OK [18:54:23]MH_I2C_Read... [18:54:23]Read from MH i2c: 01 [18:54:23]MH_I2C_Read... [18:54:23]Read from MH i2c: 01 07 00 [18:54:23]MH_I2C_Read... [18:54:23]Read from MH i2c: 01 07 00 2A 2C 00 00 00 00 00 7C 0C E5 [18:54:23]RasterBufferAndPrint [18:54:23]line [18:54:23]line [18:54:23]line [18:54:23]line [18:54:23]line [18:54:23]written 0, free lines is 3200 [18:54:23]MH_Cut [18:54:23]Write to MH i2c: D1 01 00 31 2C 01 2F [18:54:23]Write i2c OK [18:54:23]MH_I2C_Read... [18:54:23]Read from MH i2c: D1 [18:54:23]MH_I2C_Read... [18:54:23]Read from MH i2c: D1 01 00 [18:54:23]MH_I2C_Read... [18:54:23]Read from MH i2c: D1 01 00 31 2C 00 2E [18:54:23]Write to MH i2c: 01 00 00 32 2C 5E [18:54:23]Write i2c OK [18:54:23]MH_I2C_Read... [18:54:23]OFD Sender: No OFD packet to send [18:54:24]*** Cut start [18:54:24]*** Purtial cut [18:54:24]*** CUTSNS_PIN = 0 [18:54:24]*** Stage 1: CUTSNS_PIN = 1 [18:54:26]Read from MH i2c: 01 [18:54:26]MH_I2C_Read... [18:54:26]*** Stop cut motor [18:54:26]*** Cut end [18:54:26]Read from MH i2c: 01 07 00 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: 01 07 00 32 2C 00 00 00 00 00 FF 0F 73 [18:54:26]process_action close_receipt done [18:54:26]requested_data is exist [18:54:26]produce_requested_data [18:54:26]requested_item fm.sn is exist - process it [18:54:26]wFMCommunicate request_size=4 [18:54:26]MH_SAM_APDU [18:54:26]CAPDU: 80 11 00 00 [18:54:26]Write to MH i2c: E2 08 00 33 2C 80 11 00 00 00 00 00 00 D9 [18:54:26]Write i2c OK [18:54:26]MH_I2C_Read... [18:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:26]Read from MH i2c: E2 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 17 00 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 17 00 33 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 24 [18:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:54:26]wFMCommunicate OK [18:54:26]requested_item fd.num is exist - process it [18:54:26]SAM_PROTO_GetFieldsCounters [18:54:26]wFMCommunicate request_size=4 [18:54:26]MH_SAM_APDU [18:54:26]CAPDU: 80 13 00 00 [18:54:26]Write to MH i2c: E2 08 00 34 2C 80 13 00 00 00 00 00 00 DC [18:54:26]Write i2c OK [18:54:26]MH_I2C_Read... [18:54:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:26]Read from MH i2c: E2 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 62 00 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 62 00 34 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 10 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [18:54: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 10 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:26]wFMCommunicate OK [18:54:26]SAM_PROTO_GetFieldsCounters done [18:54:26]requested_item shift.num is exist - process it [18:54:26]requested_item shift.opened is exist - process it [18:54:26]req_shift_opened [18:54:26]FM_GetShiftState [18:54:26]SAM_PROTO_GetShiftState [18:54:26]wFMCommunicate request_size=4 [18:54:26]MH_SAM_APDU [18:54:26]CAPDU: 80 13 01 00 [18:54:26]Write to MH i2c: E2 08 00 35 2C 80 13 01 00 00 00 00 00 DE [18:54:26]Write i2c OK [18:54:26]MH_I2C_Read... [18:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:26]Read from MH i2c: E2 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 0E 00 [18:54:26]MH_I2C_Read... [18:54:26]Read from MH i2c: E2 0E 00 35 2C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 23 [18:54:26]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [18:54:26]wFMCommunicate OK [18:54:26]SAM_PROTO_GetShiftState done [18:54:26]FM_GetShiftState done [18:54:26]req_shift_opened done [18:54:26]requested_item shift.open_date is exist - process it [18:54:26]req_shift_open_date [18:54:26]req_shift_open_date done [18:54:26]produce_requested_data done [18:54:26]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49680,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [18:54:26]process_action_free close_receipt [18:54:26]json_value_free [18:54:26]json_value_free done [18:54:26]process_json_proto returns [18:54:26]Send response to host [18:54:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49680,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [18:54:26]free response buf [18:54:26]execute_script done [18:54:26]execute_script returns [18:54:26]free content buf [18:54:26]Sock 7.Close socket [18:54:26]Sock 7.Thread stoped [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]accept exits with 9 [19:03:39]New connection [19:03:39]New thread 3066801508 created [19:03:39]Thread 3066944868 joined [19:03:39]Waiting for new connection... [19:03:39] Sock 9.Parse request [19:03:39]Sock 9.Check first char [19:03:39]Sock 9.First char is OK [19:03:39]request: POST /json_proto HTTP/1.0 [19:03:39]Method: POST [19:03:39]URL: /json_proto [19:03:39]Method is POST - this is cgi request [19:03:39]url: /json_proto [19:03:39]query_string will be loaded in cgi processing [19:03:39]execute_cgi json_proto POST (null) [19:03:39]execute_cgi path=json_proto method=POST [19:03:39]POST find Content-Length [19:03:39]Host: 172.17.46.196:8080 [19:03:39]Content-Length: 623 [19:03:39]Content-Type: application/json [19:03:39] [19:03:39]POST finish read [19:03:39]Found Content-Length = 623 [19:03:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189863", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:39]execute_script... [19:03:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189863", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:39]POST & json_proto [19:03:39]process_json_proto [19:03:39]json parsed OK: [19:03:39]protocol is kg_v1.0 [19:03:39]action value=close_receipt [19:03:39]process_action close_receipt [19:03:39]cmd_close_receipt [19:03:39]MH_GetDate [19:03:39]Write to MH i2c: F0 00 00 36 2C 51 [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: F0 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: F0 09 00 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: F0 09 00 36 2C 00 10 F4 C0 66 07 E8 5D 66 36 [19:03:39]GetLastDocTimeStamp 1723920865 [19:03:39]current date 1723921424 [19:03:39]FM_GetShiftState [19:03:39]SAM_PROTO_GetShiftState [19:03:39]wFMCommunicate request_size=4 [19:03:39]MH_SAM_APDU [19:03:39]CAPDU: 80 13 01 00 [19:03:39]Write to MH i2c: E2 08 00 37 2C 80 13 01 00 00 00 00 00 E0 [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:39]OFD Sender: No OFD packet to send [19:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:39]Read from MH i2c: E2 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 0E 00 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 0E 00 37 2C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 25 [19:03:39]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:03:39]wFMCommunicate OK [19:03:39]SAM_PROTO_GetShiftState done [19:03:39]FM_GetShiftState done [19:03:39]opened in 1723853354 [19:03:39]opened+sec_in_day 1723939754 [19:03:39]quantity*price = 28000 [19:03:39]sum+1 = 28001 [19:03:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 118 17.08.2024 19:03 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49681 ФПД: 67054584573556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T190344&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49681&fm=67054584573556&tin=02508201610067®Number=0000000000092546&sum=28000 0 [19:03:40]StoreToDocumentArchive [19:03:40]shift 465 fd 49681 [19:03:40]save to /storage/0465/doc_00049681 [19:03:40]save last doc name /storage/0465/doc_00049681 to /storage/kkm_last_doc_name [19:03:40]save OK [19:03:40]Clear old archive folders... [19:03:40]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:03:40]tlvbuf is 018D9070 [19:03:40]SAM_PROTO_ClearQueue [19:03:40]wFMCommunicate request_size=4 [19:03:40]MH_SAM_APDU [19:03:40]CAPDU: 80 09 00 00 [19:03:40]Write to MH i2c: E2 08 00 44 2C 80 09 00 00 00 00 00 00 E2 [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:40]Read from MH i2c: E2 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 44 2C 00 90 00 E4 [19:03:40]RAPDU: 90 00 [19:03:40]wFMCommunicate OK [19:03:40]SAM_PROTO_ClearQueue done [19:03:40]KKMCreateOFDPacket [19:03:40]OFDProtocolAddRootSTLVToBuf [19:03:40]FM_MakeSignedData [19:03:40]FM_MakeSignedData [19:03:40]SAM_PROTO_SignData [19:03:40]wFMCommunicate request_size=4 [19:03:40]MH_SAM_APDU [19:03:40]CAPDU: 80 0D 01 02 [19:03:40]Write to MH i2c: E2 08 00 45 2C 80 0D 01 02 00 00 00 00 EA [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:40]Read from MH i2c: E2 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 45 2C 00 90 00 E5 [19:03:40]RAPDU: 90 00 [19:03:40]wFMCommunicate OK [19:03:40]wFMCommunicate request_size=255 [19:03:40]MH_SAM_APDU [19:03:40]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 10 F4 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [19:03:40]Write to MH i2c: E2 02 01 46 2C 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 10 F4 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 DE [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:40]Read from MH i2c: E2 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 46 2C 00 90 00 E6 [19:03:40]RAPDU: 90 00 [19:03:40]wFMCommunicate OK [19:03:40]wFMCommunicate request_size=34 [19:03:40]MH_SAM_APDU [19:03:40]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C2 00 00 35 04 06 00 3C FC 5C B1 AE 74 [19:03:40]Write to MH i2c: E2 25 00 47 2C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C2 00 00 35 04 06 00 3C FC 5C B1 AE 74 00 00 E0 [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:40]Read from MH i2c: E2 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 47 2C 00 90 00 E7 [19:03:40]RAPDU: 90 00 [19:03:40]wFMCommunicate OK [19:03:40]wFMCommunicate request_size=4 [19:03:40]MH_SAM_APDU [19:03:40]CAPDU: 80 0D 03 02 [19:03:40]Write to MH i2c: E2 08 00 48 2C 80 0D 03 02 00 00 00 00 EF [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:40]Read from MH i2c: E2 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 0B 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 0B 00 48 2C 00 91 57 22 B8 55 DE 39 D9 90 00 F7 [19:03:40]RAPDU: 91 57 22 B8 55 DE 39 D9 90 00 [19:03:40]wFMCommunicate OK [19:03:40]SAM_PROTO_SignData done [19:03:40]FM_MakeSignedData done [19:03:40]CreateOFDProtocolMessage [19:03:40]wFMCommunicate request_size=4 [19:03:40]MH_SAM_APDU [19:03:40]CAPDU: 80 11 00 00 [19:03:40]Write to MH i2c: E2 08 00 49 2C 80 11 00 00 00 00 00 00 EF [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:41]Read from MH i2c: E2 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: E2 17 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: E2 17 00 49 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3A [19:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:03:41]wFMCommunicate OK [19:03:41]CreateOFDProtocolMessage done [19:03:41]OFDSenderStorePacket 49681 [19:03:41]StoreOFDPacket docnum=49681 [19:03:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 AC 82 1F 01 A0 A6 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 10 F4 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C2 00 00 35 04 06 00 3C FC 5C B1 AE 74 91 57 22 B8 55 DE 39 D9 [19:03:41]CheckFolder [19:03:41]dirname=/storage/ofd_packets [19:03:41]CheckFolder done [19:03:41]ProducePacketName [19:03:41]name=ofd_packets/00049681 [19:03:41]NVStorageSaveData ofd_packets/00049681 [19:03:41]File name is /storage/ofd_packets/00049681 [19:03:41]Write 325 bytes [19:03:41]NVStorageSaveData done [19:03:41]OFDSenderStorePacket done [19:03:41]KKMCreateOFDPacket done [19:03:41]NVStorageSaveData kkm_last_timestamp [19:03:41]File name is /storage/kkm_last_timestamp [19:03:41]Write 4 bytes [19:03:41]NVStorageSaveData done [19:03:41]ExternCall_PrintAddStr [19:03:41]wPrintStart [19:03:41]Write to MH i2c: 01 00 00 4A 2C 76 [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 07 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 07 00 4A 2C 00 00 00 00 00 FF 0F 8B [19:03:41]RasterBufferAndPrint [19:03:41]line Счет N : (3)189863 [19:03:41]line ИНН: 02508201610067 [19:03:41]line Контрольно-Кассовый Чек [19:03:41]line ПРОДАЖА [19:03:41]line Товар: 48743587 [19:03:41]line Сигареты Winston XStyle Silver [19:03:41]line 2.000 * 140.00 [19:03:41]line = 280.00 [19:03:41]line НДС 12% НСП 1% [19:03:41]line > о реализуемом товаре [19:03:41]line ИТОГО: 280.00 [19:03:41]line НСП 1% : 2.48 [19:03:41]line НДС 12% : 29.73 [19:03:41]line Наличными: 280.00 [19:03:41]line Безнал.: 0.00 [19:03:41]line Место: АЗС № 95 "Партнер Нефть" [19:03:41]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:03:41]line СНО: Общий режим [19:03:41]line Чек 118 17.08.2024 19:03 [19:03:41]line Смена: 465 ФФД: 1.0 [19:03:41]line ЗНМ: 0300000078 [19:03:41]line РНМ: 0000000000092546 [19:03:41]line Версия ККМ: 001 [19:03:41]line ФМ: 0000000000871800 [19:03:41]line ФД: 49681 [19:03:41]line ФПД: 67054584573556 [19:03:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T190344&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49681&fm=67054584573556&tin=02508201610067®Number=0000000000092546&sum=28000 [19:03:41]OFD Sender: Processing packet 49681 [packets to send 21, broken 20] [19:03:41]ProducePacketName [19:03:41]name=ofd_packets/00049681 [19:03:41]OFD Sender: To server: pG, [19:03:41]CommunicateWithHost lk.salyk.kg:30040 [19:03:41]ConnectInit lk.salyk.kg [19:03:41]line 0 [19:03:41]written 0, free lines is 4095 [19:03:41]Connected sock=10 [19:03:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 AC 82 1F 01 A0 A6 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 10 F4 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C2 00 00 35 04 06 00 3C FC 5C B1 AE 74 91 57 22 B8 55 DE 39 D9 [19:03:41]Write to MH i2c: 01 00 00 73 2C 9F [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 07 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 07 00 73 2C 00 00 00 00 00 E4 0C 96 [19:03:41]RasterBufferAndPrint [19:03:41]line [19:03:41]line [19:03:41]line [19:03:41]line [19:03:41]line [19:03:41]written 0, free lines is 3306 [19:03:41]MH_Cut [19:03:41]Write to MH i2c: D1 01 00 7A 2C 01 78 [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: D1 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: D1 01 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: D1 01 00 7A 2C 00 77 [19:03:41]Write to MH i2c: 01 00 00 7B 2C A7 [19:03:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 99 17 47 00 CA 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 31 38 30 30 10 04 04 00 11 C2 00 00 F4 03 04 00 4B 9F C0 66 B6 04 01 00 00 9F A2 39 7E 0B 3F 2C EE [19:03:41]CommunicateWithHost err = 0 [19:03:41]CheckOFDResponse [19:03:41]1017 (14) - 77093643461234 [19:03:41]1041 (16) - 0000000000871800 [19:03:41]1040 (4) - 49681 [19:03:41]1012 (4) - 17.08.2024 13:02 [19:03:41]1206 (1) - 0 [19:03:41]OFD Sender: Remove packet 49681 [19:03:41]ProducePacketName [19:03:41]name=ofd_packets/00049681 [19:03:41]NVStorageDeleteData [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:42]OFD Sender: No OFD packet to send [19:03:42]*** Cut start [19:03:42]*** Purtial cut [19:03:42]*** Stage 1: CUTSNS_PIN = 1 [19:03:42]Read from MH i2c: 01 [19:03:42]MH_I2C_Read... [19:03:42]*** Stop cut motor [19:03:42]*** Cut end [19:03:42]Read from MH i2c: 01 07 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: 01 07 00 7B 2C 00 00 00 00 00 FF 0F BC [19:03:42]process_action close_receipt done [19:03:42]requested_data is exist [19:03:42]produce_requested_data [19:03:42]requested_item fm.sn is exist - process it [19:03:42]wFMCommunicate request_size=4 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 80 11 00 00 [19:03:42]Write to MH i2c: E2 08 00 7C 2C 80 11 00 00 00 00 00 00 22 [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 17 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 17 00 7C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6D [19:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:03:42]wFMCommunicate OK [19:03:42]requested_item fd.num is exist - process it [19:03:42]SAM_PROTO_GetFieldsCounters [19:03:42]wFMCommunicate request_size=4 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 80 13 00 00 [19:03:42]Write to MH i2c: E2 08 00 7D 2C 80 13 00 00 00 00 00 00 25 [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 62 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 62 00 7D 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 11 C2 00 00 0E 04 04 00 D1 01 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 46 [19:03: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 11 C2 00 00 0E 04 04 00 D1 01 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 [19:03:42]wFMCommunicate OK [19:03:42]SAM_PROTO_GetFieldsCounters done [19:03:42]requested_item shift.num is exist - process it [19:03:42]requested_item shift.opened is exist - process it [19:03:42]req_shift_opened [19:03:42]FM_GetShiftState [19:03:42]SAM_PROTO_GetShiftState [19:03:42]wFMCommunicate request_size=4 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 80 13 01 00 [19:03:42]Write to MH i2c: E2 08 00 7E 2C 80 13 01 00 00 00 00 00 27 [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 0E 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 0E 00 7E 2C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 6C [19:03:42]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:03:42]wFMCommunicate OK [19:03:42]SAM_PROTO_GetShiftState done [19:03:42]FM_GetShiftState done [19:03:42]req_shift_opened done [19:03:42]requested_item shift.open_date is exist - process it [19:03:42]req_shift_open_date [19:03:42]req_shift_open_date done [19:03:42]produce_requested_data done [19:03:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49681,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [19:03:42]process_action_free close_receipt [19:03:42]json_value_free [19:03:42]json_value_free done [19:03:42]process_json_proto returns [19:03:42]Send response to host [19:03:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49681,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [19:03:42]free response buf [19:03:42]execute_script done [19:03:42]execute_script returns [19:03:42]free content buf [19:03:42]Sock 9.Close socket [19:03:42]Sock 9.Thread stoped [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]accept exits with 7 [19:07:47]New connection [19:07:47]New thread 3066944868 created [19:07:47]Thread 3066801508 joined [19:07:47]Waiting for new connection... [19:07:47] Sock 7.Parse request [19:07:47]Sock 7.Check first char [19:07:47]Sock 7.First char is OK [19:07:47]request: POST /json_proto HTTP/1.0 [19:07:47]Method: POST [19:07:47]URL: /json_proto [19:07:47]Method is POST - this is cgi request [19:07:47]url: /json_proto [19:07:47]query_string will be loaded in cgi processing [19:07:47]execute_cgi json_proto POST (null) [19:07:47]execute_cgi path=json_proto method=POST [19:07:47]POST find Content-Length [19:07:47]Host: 172.17.46.196:8080 [19:07:47]Content-Length: 782 [19:07:47]Content-Type: application/json [19:07:47] [19:07:47]POST finish read [19:07:47]Found Content-Length = 782 [19:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189864", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:47]execute_script... [19: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 : (3)189864", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:47]POST & json_proto [19:07:47]process_json_proto [19:07:47]json parsed OK: [19:07:47]protocol is kg_v1.0 [19:07:47]action value=close_receipt [19:07:47]process_action close_receipt [19:07:47]cmd_close_receipt [19:07:47]MH_GetDate [19:07:47]Write to MH i2c: F0 00 00 7F 2C 9A [19:07:47]Write i2c OK [19:07:47]MH_I2C_Read... [19:07:47]Read from MH i2c: F0 [19:07:47]MH_I2C_Read... [19:07:47]Read from MH i2c: F0 09 00 [19:07:47]MH_I2C_Read... [19:07:47]Read from MH i2c: F0 09 00 7F 2C 00 08 F5 C0 66 07 E8 5D 66 78 [19:07:47]GetLastDocTimeStamp 1723921424 [19:07:47]current date 1723921672 [19:07:47]FM_GetShiftState [19:07:47]SAM_PROTO_GetShiftState [19:07:47]wFMCommunicate request_size=4 [19:07:47]MH_SAM_APDU [19:07:47]CAPDU: 80 13 01 00 [19:07:47]Write to MH i2c: E2 08 00 80 2C 80 13 01 00 00 00 00 00 29 [19:07:47]Write i2c OK [19:07:47]MH_I2C_Read... [19:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:47]Read from MH i2c: E2 [19:07:47]MH_I2C_Read... [19:07:47]Read from MH i2c: E2 0E 00 [19:07:47]MH_I2C_Read... [19:07:47]Read from MH i2c: E2 0E 00 80 2C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 6E [19:07:47]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:07:47]wFMCommunicate OK [19:07:47]SAM_PROTO_GetShiftState done [19:07:47]FM_GetShiftState done [19:07:47]opened in 1723853354 [19:07:47]opened+sec_in_day 1723939754 [19:07:47]quantity*price = 14000 [19:07:47]sum+1 = 14001 [19:07:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 119 17.08.2024 19:07 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49682 ФПД: 72122374348961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T190752&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49682&fm=72122374348961&tin=02508201610067®Number=0000000000092546&sum=14000 0 [19:07:48]StoreToDocumentArchive [19:07:48]shift 465 fd 49682 [19:07:48]save to /storage/0465/doc_00049682 [19:07:48]save last doc name /storage/0465/doc_00049682 to /storage/kkm_last_doc_name [19:07:48]save OK [19:07:48]Clear old archive folders... [19:07:48]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:07:48]tlvbuf is 0190CA50 [19:07:48]SAM_PROTO_ClearQueue [19:07:48]wFMCommunicate request_size=4 [19:07:48]MH_SAM_APDU [19:07:48]CAPDU: 80 09 00 00 [19:07:48]Write to MH i2c: E2 08 00 8D 2C 80 09 00 00 00 00 00 00 2B [19:07:48]Write i2c OK [19:07:48]MH_I2C_Read... [19:07:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:48]Read from MH i2c: E2 [19:07:48]MH_I2C_Read... [19:07:48]Read from MH i2c: E2 03 00 [19:07:48]MH_I2C_Read... [19:07:48]Read from MH i2c: E2 03 00 8D 2C 00 90 00 2D [19:07:48]RAPDU: 90 00 [19:07:48]wFMCommunicate OK [19:07:48]SAM_PROTO_ClearQueue done [19:07:48]KKMCreateOFDPacket [19:07:48]OFDProtocolAddRootSTLVToBuf [19:07:48]FM_MakeSignedData [19:07:48]FM_MakeSignedData [19:07:48]SAM_PROTO_SignData [19:07:48]wFMCommunicate request_size=4 [19:07:48]MH_SAM_APDU [19:07:48]CAPDU: 80 0D 01 02 [19:07:48]Write to MH i2c: E2 08 00 8E 2C 80 0D 01 02 00 00 00 00 33 [19:07:48]Write i2c OK [19:07:48]MH_I2C_Read... [19:07:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:48]Read from MH i2c: E2 [19:07:48]MH_I2C_Read... [19:07:48]Read from MH i2c: E2 03 00 [19:07:48]MH_I2C_Read... [19:07:48]Read from MH i2c: E2 03 00 8E 2C 00 90 00 2E [19:07:48]RAPDU: 90 00 [19:07:48]wFMCommunicate OK [19:07:48]wFMCommunicate request_size=255 [19:07:48]MH_SAM_APDU [19:07:48]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 08 F5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [19:07:48]Write to MH i2c: E2 02 01 8F 2C 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 08 F5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 95 [19:07:48]Write i2c OK [19:07:48]MH_I2C_Read... [19:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:48]Read from MH i2c: E2 [19:07:48]MH_I2C_Read... [19:07:48]Read from MH i2c: E2 03 00 [19:07:48]MH_I2C_Read... [19:07:48]Read from MH i2c: E2 03 00 8F 2C 00 90 00 2F [19:07:48]RAPDU: 90 00 [19:07:48]wFMCommunicate OK [19:07:48]wFMCommunicate request_size=32 [19:07:48]MH_SAM_APDU [19:07:48]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C2 00 00 35 04 06 00 41 98 4C 80 E0 A1 [19:07:48]Write to MH i2c: E2 23 00 90 2C 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C2 00 00 35 04 06 00 41 98 4C 80 E0 A1 00 00 85 [19:07:48]Write i2c OK [19:07:48]MH_I2C_Read... [19:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:48]Read from MH i2c: E2 [19:07:48]MH_I2C_Read... [19:07:48]Read from MH i2c: E2 03 00 [19:07:48]MH_I2C_Read... [19:07:48]Read from MH i2c: E2 03 00 90 2C 00 90 00 30 [19:07:48]RAPDU: 90 00 [19:07:48]wFMCommunicate OK [19:07:48]wFMCommunicate request_size=4 [19:07:48]MH_SAM_APDU [19:07:48]CAPDU: 80 0D 03 02 [19:07:48]Write to MH i2c: E2 08 00 91 2C 80 0D 03 02 00 00 00 00 38 [19:07:48]Write i2c OK [19:07:48]MH_I2C_Read... [19:07:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:48]Read from MH i2c: E2 [19:07:48]MH_I2C_Read... [19:07:48]Read from MH i2c: E2 0B 00 [19:07:48]MH_I2C_Read... [19:07:48]Read from MH i2c: E2 0B 00 91 2C 00 65 B0 F8 9B 5D 95 F2 7A 90 00 3F [19:07:48]RAPDU: 65 B0 F8 9B 5D 95 F2 7A 90 00 [19:07:48]wFMCommunicate OK [19:07:48]SAM_PROTO_SignData done [19:07:48]FM_MakeSignedData done [19:07:48]CreateOFDProtocolMessage [19:07:48]wFMCommunicate request_size=4 [19:07:48]MH_SAM_APDU [19:07:48]CAPDU: 80 11 00 00 [19:07:48]Write to MH i2c: E2 08 00 92 2C 80 11 00 00 00 00 00 00 38 [19:07:48]Write i2c OK [19:07:48]MH_I2C_Read... [19:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:49]Read from MH i2c: E2 [19:07:49]MH_I2C_Read... [19:07:49]Read from MH i2c: E2 17 00 [19:07:49]MH_I2C_Read... [19:07:49]Read from MH i2c: E2 17 00 92 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 83 [19:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:07:49]wFMCommunicate OK [19:07:49]CreateOFDProtocolMessage done [19:07:49]OFDSenderStorePacket 49682 [19:07:49]StoreOFDPacket docnum=49682 [19:07:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 73 74 1D 01 60 FB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 08 F5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C2 00 00 35 04 06 00 41 98 4C 80 E0 A1 65 B0 F8 9B 5D 95 F2 7A [19:07:49]CheckFolder [19:07:49]dirname=/storage/ofd_packets [19:07:49]CheckFolder done [19:07:49]ProducePacketName [19:07:49]name=ofd_packets/00049682 [19:07:49]NVStorageSaveData ofd_packets/00049682 [19:07:49]File name is /storage/ofd_packets/00049682 [19:07:49]Write 323 bytes [19:07:49]NVStorageSaveData done [19:07:49]OFDSenderStorePacket done [19:07:49]KKMCreateOFDPacket done [19:07:49]NVStorageSaveData kkm_last_timestamp [19:07:49]File name is /storage/kkm_last_timestamp [19:07:49]Write 4 bytes [19:07:49]NVStorageSaveData done [19:07:49]ExternCall_PrintAddStr [19:07:49]wPrintStart [19:07:49]Write to MH i2c: 01 00 00 93 2C BF [19:07:49]Write i2c OK [19:07:49]MH_I2C_Read... [19:07:49]Read from MH i2c: 01 [19:07:49]MH_I2C_Read... [19:07:49]Read from MH i2c: 01 07 00 [19:07:49]MH_I2C_Read... [19:07:49]Read from MH i2c: 01 07 00 93 2C 00 00 00 00 00 FF 0F D4 [19:07:49]RasterBufferAndPrint [19:07:49]line Счет N : (3)189864 [19:07:49]line ИНН: 02508201610067 [19:07:49]line Контрольно-Кассовый Чек [19:07:49]line ПРОДАЖА [19:07:49]line Товар: 48743570 [19:07:49]line Сигареты Winston XStyle Blue [19:07:49]line 1.000 * 140.00 [19:07:49]line = 140.00 [19:07:49]line НДС 12% НСП 1% [19:07:49]line > о реализуемом товаре [19:07:49]line ИТОГО: 140.00 [19:07:49]line НСП 1% : 1.24 [19:07:49]line НДС 12% : 14.87 [19:07:49]line Наличными: 0.00 [19:07:49]line Безнал.: 140.00 [19:07:49]line Место: АЗС № 95 "Партнер Нефть" [19:07:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:07:49]line СНО: Общий режим [19:07:49]line Чек 119 17.08.2024 19:07 [19:07:49]line Смена: 465 ФФД: 1.0 [19:07:49]line ЗНМ: 0300000078 [19:07:49]line РНМ: 0000000000092546 [19:07:49]line Версия ККМ: 001 [19:07:49]line Платежная система: O! деньги [19:07:49]line ФМ: 0000000000871800 [19:07:49]line ФД: 49682 [19:07:49]line ФПД: 72122374348961 [19:07:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T190752&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49682&fm=72122374348961&tin=02508201610067®Number=0000000000092546&sum=14000 [19:07:49]OFD Sender: Processing packet 49682 [packets to send 21, broken 20] [19:07:49]ProducePacketName [19:07:49]name=ofd_packets/00049682 [19:07:49]OFD Sender: To server: pG, [19:07:49]CommunicateWithHost lk.salyk.kg:30040 [19:07:49]ConnectInit lk.salyk.kg [19:07:49]line 0 [19:07:49]written 0, free lines is 4095 [19:07:49]Connected sock=10 [19:07:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 73 74 1D 01 60 FB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 08 F5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C2 00 00 35 04 06 00 41 98 4C 80 E0 A1 65 B0 F8 9B 5D 95 F2 7A [19:07:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C9 53 47 00 D5 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 31 38 30 30 10 04 04 00 12 C2 00 00 F4 03 04 00 43 A0 C0 66 B6 04 01 00 00 41 EF 77 68 B0 13 0E 26 [19:07:49]CommunicateWithHost err = 0 [19:07:49]CheckOFDResponse [19:07:49]1017 (14) - 77093643461234 [19:07:49]1041 (16) - 0000000000871800 [19:07:49]1040 (4) - 49682 [19:07:49]1012 (4) - 17.08.2024 13:06 [19:07:49]1206 (1) - 0 [19:07:49]OFD Sender: Remove packet 49682 [19:07:49]ProducePacketName [19:07:49]name=ofd_packets/00049682 [19:07:49]NVStorageDeleteData [19:07:49]Write to MH i2c: 01 00 00 BD 2C E9 [19:07:49]Write i2c OK [19:07:49]MH_I2C_Read... [19:07:49]Read from MH i2c: 01 [19:07:49]MH_I2C_Read... [19:07:49]Read from MH i2c: 01 07 00 [19:07:49]MH_I2C_Read... [19:07:49]Read from MH i2c: 01 07 00 BD 2C 00 00 00 00 00 E3 0C DF [19:07:49]RasterBufferAndPrint [19:07:49]line [19:07:49]line [19:07:49]line [19:07:49]line [19:07:49]line [19:07:49]written 0, free lines is 3305 [19:07:49]MH_Cut [19:07:49]Write to MH i2c: D1 01 00 C4 2C 01 C2 [19:07:49]Write i2c OK [19:07:49]MH_I2C_Read... [19:07:49]Read from MH i2c: D1 [19:07:49]MH_I2C_Read... [19:07:49]Read from MH i2c: D1 01 00 [19:07:49]MH_I2C_Read... [19:07:49]Read from MH i2c: D1 01 00 C4 2C 00 C1 [19:07:49]Write to MH i2c: 01 00 00 C5 2C F1 [19:07:49]Write i2c OK [19:07:49]MH_I2C_Read... [19:07:50]OFD Sender: No OFD packet to send [19:07:50]*** Cut start [19:07:50]*** Purtial cut [19:07:50]*** CUTSNS_PIN = 0 [19:07:50]*** Stage 1: CUTSNS_PIN = 1 [19:07:52]Read from MH i2c: 01 [19:07:52]MH_I2C_Read... [19:07:52]*** Stop cut motor [19:07:52]*** Cut end [19:07:52]Read from MH i2c: 01 07 00 [19:07:52]MH_I2C_Read... [19:07:52]Read from MH i2c: 01 07 00 C5 2C 00 00 00 00 00 FF 0F 06 [19:07:52]process_action close_receipt done [19:07:52]requested_data is exist [19:07:52]produce_requested_data [19:07:52]requested_item fm.sn is exist - process it [19:07:52]wFMCommunicate request_size=4 [19:07:52]MH_SAM_APDU [19:07:52]CAPDU: 80 11 00 00 [19:07:52]Write to MH i2c: E2 08 00 C6 2C 80 11 00 00 00 00 00 00 6C [19:07:52]Write i2c OK [19:07:52]MH_I2C_Read... [19:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:52]Read from MH i2c: E2 [19:07:52]MH_I2C_Read... [19:07:52]Read from MH i2c: E2 17 00 [19:07:52]MH_I2C_Read... [19:07:52]Read from MH i2c: E2 17 00 C6 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B7 [19:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:07:52]wFMCommunicate OK [19:07:52]requested_item fd.num is exist - process it [19:07:52]SAM_PROTO_GetFieldsCounters [19:07:52]wFMCommunicate request_size=4 [19:07:52]MH_SAM_APDU [19:07:52]CAPDU: 80 13 00 00 [19:07:52]Write to MH i2c: E2 08 00 C7 2C 80 13 00 00 00 00 00 00 6F [19:07:52]Write i2c OK [19:07:52]MH_I2C_Read... [19:07:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:52]Read from MH i2c: E2 [19:07:52]MH_I2C_Read... [19:07:52]Read from MH i2c: E2 62 00 [19:07:52]MH_I2C_Read... [19:07:52]Read from MH i2c: E2 62 00 C7 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 12 C2 00 00 0E 04 04 00 D1 01 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 94 [19:07:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 12 C2 00 00 0E 04 04 00 D1 01 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 [19:07:52]wFMCommunicate OK [19:07:52]SAM_PROTO_GetFieldsCounters done [19:07:52]requested_item shift.num is exist - process it [19:07:52]requested_item shift.opened is exist - process it [19:07:52]req_shift_opened [19:07:52]FM_GetShiftState [19:07:52]SAM_PROTO_GetShiftState [19:07:52]wFMCommunicate request_size=4 [19:07:52]MH_SAM_APDU [19:07:52]CAPDU: 80 13 01 00 [19:07:52]Write to MH i2c: E2 08 00 C8 2C 80 13 01 00 00 00 00 00 71 [19:07:52]Write i2c OK [19:07:52]MH_I2C_Read... [19:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:52]Read from MH i2c: E2 [19:07:52]MH_I2C_Read... [19:07:52]Read from MH i2c: E2 0E 00 [19:07:52]MH_I2C_Read... [19:07:52]Read from MH i2c: E2 0E 00 C8 2C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 B6 [19:07:52]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:07:52]wFMCommunicate OK [19:07:52]SAM_PROTO_GetShiftState done [19:07:52]FM_GetShiftState done [19:07:52]req_shift_opened done [19:07:52]requested_item shift.open_date is exist - process it [19:07:52]req_shift_open_date [19:07:52]req_shift_open_date done [19:07:52]produce_requested_data done [19:07:52]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49682,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [19:07:52]process_action_free close_receipt [19:07:52]json_value_free [19:07:52]json_value_free done [19:07:52]process_json_proto returns [19:07:52]Send response to host [19:07:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49682,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [19:07:52]free response buf [19:07:52]execute_script done [19:07:52]execute_script returns [19:07:52]free content buf [19:07:52]Sock 7.Close socket [19:07:52]Sock 7.Thread stoped [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:41]accept exits with 9 [19:08:41]New connection [19:08:41]New thread 3066801508 created [19:08:41]Thread 3066944868 joined [19:08:41]Waiting for new connection... [19:08:41] Sock 9.Parse request [19:08:41]Sock 9.Check first char [19:08:41]Sock 9.First char is OK [19:08:41]request: POST /json_proto HTTP/1.0 [19:08:41]Method: POST [19:08:41]URL: /json_proto [19:08:41]Method is POST - this is cgi request [19:08:41]url: /json_proto [19:08:41]query_string will be loaded in cgi processing [19:08:41]execute_cgi json_proto POST (null) [19:08:41]execute_cgi path=json_proto method=POST [19:08:41]POST find Content-Length [19:08:41]Host: 172.17.46.196:8080 [19:08:41]Content-Length: 1054 [19:08:41]Content-Type: application/json [19:08:41] [19:08:41]POST finish read [19:08:41]Found Content-Length = 1054 [19:08:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189865", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 246.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:41]execute_script... [19: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 : (3)189865", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 246.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:41]POST & json_proto [19:08:41]process_json_proto [19:08:41]json parsed OK: [19:08:41]protocol is kg_v1.0 [19:08:41]action value=close_receipt [19:08:41]process_action close_receipt [19:08:41]cmd_close_receipt [19:08:41]MH_GetDate [19:08:41]Write to MH i2c: F0 00 00 C9 2C E4 [19:08:41]Write i2c OK [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: F0 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: F0 09 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: F0 09 00 C9 2C 00 3E F5 C0 66 07 E8 5D 66 F8 [19:08:41]GetLastDocTimeStamp 1723921672 [19:08:41]current date 1723921726 [19:08:41]FM_GetShiftState [19:08:41]SAM_PROTO_GetShiftState [19:08:41]wFMCommunicate request_size=4 [19:08:41]MH_SAM_APDU [19:08:41]CAPDU: 80 13 01 00 [19:08:41]Write to MH i2c: E2 08 00 CA 2C 80 13 01 00 00 00 00 00 73 [19:08:41]Write i2c OK [19:08:41]MH_I2C_Read... [19:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:41]Read from MH i2c: E2 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 0E 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 0E 00 CA 2C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 B8 [19:08:41]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:08:41]wFMCommunicate OK [19:08:41]SAM_PROTO_GetShiftState done [19:08:41]FM_GetShiftState done [19:08:41]opened in 1723853354 [19:08:41]opened+sec_in_day 1723939754 [19:08:41]quantity*price = 15100 [19:08:41]sum+1 = 15101 [19:08:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 246.00 НСП 1% : 2.18 НДС 12% : 26.12 Наличными: 0.00 Безнал.: 246.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 120 17.08.2024 19:08 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49683 ФПД: 87636570557020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T190846&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49683&fm=87636570557020&tin=02508201610067®Number=0000000000092546&sum=24600 0 [19:08:42]StoreToDocumentArchive [19:08:42]shift 465 fd 49683 [19:08:42]save to /storage/0465/doc_00049683 [19:08:42]save last doc name /storage/0465/doc_00049683 to /storage/kkm_last_doc_name [19:08:42]save OK [19:08:42]Clear old archive folders... [19:08:42]ProcessDocumentItem done err = 0, tmpTLVsize=397 [19:08:42]tlvbuf is 018A39A0 [19:08:42]SAM_PROTO_ClearQueue [19:08:42]wFMCommunicate request_size=4 [19:08:42]MH_SAM_APDU [19:08:42]CAPDU: 80 09 00 00 [19:08:42]Write to MH i2c: E2 08 00 D7 2C 80 09 00 00 00 00 00 00 75 [19:08:42]Write i2c OK [19:08:42]MH_I2C_Read... [19:08:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:42]Read from MH i2c: E2 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 03 00 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 03 00 D7 2C 00 90 00 77 [19:08:42]RAPDU: 90 00 [19:08:42]wFMCommunicate OK [19:08:42]SAM_PROTO_ClearQueue done [19:08:42]KKMCreateOFDPacket [19:08:42]OFDProtocolAddRootSTLVToBuf [19:08:42]FM_MakeSignedData [19:08:42]FM_MakeSignedData [19:08:42]SAM_PROTO_SignData [19:08:42]wFMCommunicate request_size=4 [19:08:42]MH_SAM_APDU [19:08:42]CAPDU: 80 0D 01 02 [19:08:42]Write to MH i2c: E2 08 00 D8 2C 80 0D 01 02 00 00 00 00 7D [19:08:42]Write i2c OK [19:08:42]MH_I2C_Read... [19:08:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:42]Read from MH i2c: E2 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 03 00 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 03 00 D8 2C 00 90 00 78 [19:08:42]RAPDU: 90 00 [19:08:42]wFMCommunicate OK [19:08:42]wFMCommunicate request_size=255 [19:08:42]MH_SAM_APDU [19:08:42]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 [19:08:42]Write to MH i2c: E2 02 01 D9 2C 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 00 00 E1 [19:08:42]Write i2c OK [19:08:42]MH_I2C_Read... [19:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:42]Read from MH i2c: E2 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 03 00 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 03 00 D9 2C 00 90 00 79 [19:08:42]RAPDU: 90 00 [19:08:42]wFMCommunicate OK [19:08:42]wFMCommunicate request_size=156 [19:08:42]MH_SAM_APDU [19:08:42]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 3E F5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C2 00 00 35 04 06 00 4F B4 7A A8 4A 5C [19:08:42]Write to MH i2c: E2 9F 00 DA 2C 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 3E F5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C2 00 00 35 04 06 00 4F B4 7A A8 4A 5C 00 00 A3 [19:08:42]Write i2c OK [19:08:42]MH_I2C_Read... [19:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:42]Read from MH i2c: E2 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 03 00 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: E2 03 00 DA 2C 00 90 00 7A [19:08:42]RAPDU: 90 00 [19:08:42]wFMCommunicate OK [19:08:42]wFMCommunicate request_size=4 [19:08:42]MH_SAM_APDU [19:08:42]CAPDU: 80 0D 03 02 [19:08:42]Write to MH i2c: E2 08 00 DB 2C 80 0D 03 02 00 00 00 00 82 [19:08:42]Write i2c OK [19:08:42]MH_I2C_Read... [19:08:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:43]Read from MH i2c: E2 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 0B 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 0B 00 DB 2C 00 83 D1 A0 6E A0 15 44 B7 90 00 95 [19:08:43]RAPDU: 83 D1 A0 6E A0 15 44 B7 90 00 [19:08:43]wFMCommunicate OK [19:08:43]SAM_PROTO_SignData done [19:08:43]FM_MakeSignedData done [19:08:43]CreateOFDProtocolMessage [19:08:43]wFMCommunicate request_size=4 [19:08:43]MH_SAM_APDU [19:08:43]CAPDU: 80 11 00 00 [19:08:43]Write to MH i2c: E2 08 00 DC 2C 80 11 00 00 00 00 00 00 82 [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:43]Read from MH i2c: E2 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 17 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 17 00 DC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CD [19:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:08:43]wFMCommunicate OK [19:08:43]CreateOFDProtocolMessage done [19:08:43]OFDSenderStorePacket 49683 [19:08:43]StoreOFDPacket docnum=49683 [19:08:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A1 01 00 00 54 C5 99 01 B5 F4 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 3E F5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C2 00 00 35 04 06 00 4F B4 7A A8 4A 5C 83 D1 A0 6E A0 15 44 B7 [19:08:43]CheckFolder [19:08:43]dirname=/storage/ofd_packets [19:08:43]CheckFolder done [19:08:43]ProducePacketName [19:08:43]name=ofd_packets/00049683 [19:08:43]NVStorageSaveData ofd_packets/00049683 [19:08:43]File name is /storage/ofd_packets/00049683 [19:08:43]Write 447 bytes [19:08:43]NVStorageSaveData done [19:08:43]OFDSenderStorePacket done [19:08:43]KKMCreateOFDPacket done [19:08:43]NVStorageSaveData kkm_last_timestamp [19:08:43]File name is /storage/kkm_last_timestamp [19:08:43]Write 4 bytes [19:08:43]NVStorageSaveData done [19:08:43]ExternCall_PrintAddStr [19:08:43]wPrintStart [19:08:43]Write to MH i2c: 01 00 00 DD 2C 09 [19:08:43]OFD Sender: Processing packet 49683 [packets to send 21, broken 20] [19:08:43]ProducePacketName [19:08:43]name=ofd_packets/00049683 [19:08:43]OFD Sender: To server: pG, [19:08:43]CommunicateWithHost lk.salyk.kg:30040 [19:08:43]ConnectInit lk.salyk.kg [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: 01 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: 01 07 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: 01 07 00 DD 2C 00 00 00 00 00 FF 0F 1E [19:08:43]RasterBufferAndPrint [19:08:43]line Счет N : (3)189865 [19:08:43]line ИНН: 02508201610067 [19:08:43]line Контрольно-Кассовый Чек [19:08:43]line ПРОДАЖА [19:08:43]line Товар: 48741958 [19:08:43]line Сигареты Parliament Aqua Blue [19:08:43]line 1.000 * 151.00 [19:08:43]line = 151.00 [19:08:43]line НДС 12% НСП 1% [19:08:43]line > о реализуемом товаре [19:08:43]line Товар: 4700000480050 [19:08:43]line Напиток Nitro Energy эн green ж/б 0,45л [19:08:43]line 1.000 * 95.00 [19:08:43]line = 95.00 [19:08:43]line НДС 12% НСП 1% [19:08:43]line > о реализуемом товаре [19:08:43]line ИТОГО: 246.00 [19:08:43]line НСП 1% : 2.18 [19:08:43]line НДС 12% : 26.12 [19:08:43]line Наличными: 0.00 [19:08:43]line Безнал.: 246.00 [19:08:43]line Место: АЗС № 95 "Партнер Нефть" [19:08:43]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:08:43]line СНО: Общий режим [19:08:43]line Чек 120 17.08.2024 19:08 [19:08:43]line Смена: 465 ФФД: 1.0 [19:08:43]line ЗНМ: 0300000078 [19:08:43]line РНМ: 0000000000092546 [19:08:43]line Версия ККМ: 001 [19:08:43]line Платежная система: O! деньги [19:08:43]line ФМ: 0000000000871800 [19:08:43]line ФД: 49683 [19:08:43]line ФПД: 87636570557020 [19:08:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T190846&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49683&fm=87636570557020&tin=02508201610067®Number=0000000000092546&sum=24600 [19:08:43]line 0 [19:08:43]written 0, free lines is 4095 [19:08:43]Connected sock=10 [19:08:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A1 01 00 00 54 C5 99 01 B5 F4 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 3E F5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C2 00 00 35 04 06 00 4F B4 7A A8 4A 5C 83 D1 A0 6E A0 15 44 B7 [19:08:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 82 0C 47 00 66 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 31 38 30 30 10 04 04 00 13 C2 00 00 F4 03 04 00 79 A0 C0 66 B6 04 01 00 00 0E D2 6C 77 5A FB CB 9D [19:08:43]CommunicateWithHost err = 0 [19:08:43]CheckOFDResponse [19:08:43]1017 (14) - 77093643461234 [19:08:43]1041 (16) - 0000000000871800 [19:08:43]1040 (4) - 49683 [19:08:43]1012 (4) - 17.08.2024 13:07 [19:08:43]1206 (1) - 0 [19:08:43]OFD Sender: Remove packet 49683 [19:08:43]ProducePacketName [19:08:43]name=ofd_packets/00049683 [19:08:43]NVStorageDeleteData [19:08:43]Write to MH i2c: 01 00 00 0F 2D 3C [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: 01 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: 01 07 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: 01 07 00 0F 2D 00 00 00 00 00 4A 0C 99 [19:08:43]RasterBufferAndPrint [19:08:43]line [19:08:43]line [19:08:43]line [19:08:43]line [19:08:43]line [19:08:43]written 0, free lines is 3153 [19:08:43]MH_Cut [19:08:43]Write to MH i2c: D1 01 00 16 2D 01 15 [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: D1 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: D1 01 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: D1 01 00 16 2D 00 14 [19:08:43]Write to MH i2c: 01 00 00 17 2D 44 [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:44]OFD Sender: No OFD packet to send [19:08:44]*** Cut start [19:08:44]*** Purtial cut [19:08:44]*** Stage 1: CUTSNS_PIN = 1 [19:08:45]Read from MH i2c: 01 [19:08:45]MH_I2C_Read... [19:08:45]*** Stop cut motor [19:08:45]*** Cut end [19:08:45]Read from MH i2c: 01 07 00 [19:08:45]MH_I2C_Read... [19:08:45]Read from MH i2c: 01 07 00 17 2D 00 00 00 00 00 FF 0F 59 [19:08:45]process_action close_receipt done [19:08:45]requested_data is exist [19:08:45]produce_requested_data [19:08:45]requested_item fm.sn is exist - process it [19:08:45]wFMCommunicate request_size=4 [19:08:45]MH_SAM_APDU [19:08:45]CAPDU: 80 11 00 00 [19:08:45]Write to MH i2c: E2 08 00 18 2D 80 11 00 00 00 00 00 00 BF [19:08:45]Write i2c OK [19:08:45]MH_I2C_Read... [19:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:45]Read from MH i2c: E2 [19:08:45]MH_I2C_Read... [19:08:45]Read from MH i2c: E2 17 00 [19:08:45]MH_I2C_Read... [19:08:45]Read from MH i2c: E2 17 00 18 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0A [19:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:08:45]wFMCommunicate OK [19:08:45]requested_item fd.num is exist - process it [19:08:45]SAM_PROTO_GetFieldsCounters [19:08:45]wFMCommunicate request_size=4 [19:08:45]MH_SAM_APDU [19:08:45]CAPDU: 80 13 00 00 [19:08:45]Write to MH i2c: E2 08 00 19 2D 80 13 00 00 00 00 00 00 C2 [19:08:45]Write i2c OK [19:08:45]MH_I2C_Read... [19:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:45]Read from MH i2c: E2 [19:08:45]MH_I2C_Read... [19:08:45]Read from MH i2c: E2 62 00 [19:08:45]MH_I2C_Read... [19:08:45]Read from MH i2c: E2 62 00 19 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 13 C2 00 00 0E 04 04 00 D1 01 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 EB [19:08: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 13 C2 00 00 0E 04 04 00 D1 01 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 [19:08:45]wFMCommunicate OK [19:08:45]SAM_PROTO_GetFieldsCounters done [19:08:45]requested_item shift.num is exist - process it [19:08:45]requested_item shift.opened is exist - process it [19:08:45]req_shift_opened [19:08:45]FM_GetShiftState [19:08:45]SAM_PROTO_GetShiftState [19:08:45]wFMCommunicate request_size=4 [19:08:45]MH_SAM_APDU [19:08:45]CAPDU: 80 13 01 00 [19:08:45]Write to MH i2c: E2 08 00 1A 2D 80 13 01 00 00 00 00 00 C4 [19:08:45]Write i2c OK [19:08:45]MH_I2C_Read... [19:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:45]Read from MH i2c: E2 [19:08:45]MH_I2C_Read... [19:08:45]Read from MH i2c: E2 0E 00 [19:08:45]MH_I2C_Read... [19:08:45]Read from MH i2c: E2 0E 00 1A 2D 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 09 [19:08:45]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:08:45]wFMCommunicate OK [19:08:45]SAM_PROTO_GetShiftState done [19:08:45]FM_GetShiftState done [19:08:45]req_shift_opened done [19:08:45]requested_item shift.open_date is exist - process it [19:08:45]req_shift_open_date [19:08:45]req_shift_open_date done [19:08:45]produce_requested_data done [19:08:45]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49683,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [19:08:45]process_action_free close_receipt [19:08:45]json_value_free [19:08:45]json_value_free done [19:08:45]process_json_proto returns [19:08:45]Send response to host [19:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49683,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [19:08:45]free response buf [19:08:45]execute_script done [19:08:45]execute_script returns [19:08:45]free content buf [19:08:45]Sock 9.Close socket [19:08:45]Sock 9.Thread stoped [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:20]accept exits with 7 [19:09:20]New connection [19:09:20]New thread 3066944868 created [19:09:20]Thread 3066801508 joined [19:09:20]Waiting for new connection... [19:09:20] Sock 7.Parse request [19:09:20]Sock 7.Check first char [19:09:20]Sock 7.First char is OK [19:09:20]request: POST /json_proto HTTP/1.0 [19:09:20]Method: POST [19:09:20]URL: /json_proto [19:09:20]Method is POST - this is cgi request [19:09:20]url: /json_proto [19:09:20]query_string will be loaded in cgi processing [19:09:20]execute_cgi json_proto POST (null) [19:09:20]execute_cgi path=json_proto method=POST [19:09:20]POST find Content-Length [19:09:20]Host: 172.17.46.196:8080 [19:09:20]Content-Length: 781 [19:09:20]Content-Type: application/json [19:09:20] [19:09:20]POST finish read [19:09:20]Found Content-Length = 781 [19:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189866", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:20]execute_script... [19:09: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 : (3)189866", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:20]POST & json_proto [19:09:20]process_json_proto [19:09:20]json parsed OK: [19:09:20]protocol is kg_v1.0 [19:09:20]action value=close_receipt [19:09:20]process_action close_receipt [19:09:20]cmd_close_receipt [19:09:20]MH_GetDate [19:09:20]Write to MH i2c: F0 00 00 1B 2D 37 [19:09:20]Write i2c OK [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: F0 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: F0 09 00 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: F0 09 00 1B 2D 00 65 F5 C0 66 07 E8 5D 66 72 [19:09:20]GetLastDocTimeStamp 1723921726 [19:09:20]current date 1723921765 [19:09:20]FM_GetShiftState [19:09:20]SAM_PROTO_GetShiftState [19:09:20]wFMCommunicate request_size=4 [19:09:20]MH_SAM_APDU [19:09:20]CAPDU: 80 13 01 00 [19:09:20]Write to MH i2c: E2 08 00 1C 2D 80 13 01 00 00 00 00 00 C6 [19:09:20]Write i2c OK [19:09:20]MH_I2C_Read... [19:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:20]Read from MH i2c: E2 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 0E 00 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 0E 00 1C 2D 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 0B [19:09:20]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:09:20]wFMCommunicate OK [19:09:20]SAM_PROTO_GetShiftState done [19:09:20]FM_GetShiftState done [19:09:20]opened in 1723853354 [19:09:20]opened+sec_in_day 1723939754 [19:09:20]quantity*price = 13500 [19:09:20]sum+1 = 13501 [19:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 0.00 Безнал.: 135.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 121 17.08.2024 19:09 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49684 ФПД: 266884043631825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T190925&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49684&fm=266884043631825&tin=02508201610067®Number=0000000000092546&sum=13500 0 [19:09:21]StoreToDocumentArchive [19:09:21]shift 465 fd 49684 [19:09:21]save to /storage/0465/doc_00049684 [19:09:21]save last doc name /storage/0465/doc_00049684 to /storage/kkm_last_doc_name [19:09:21]save OK [19:09:21]Clear old archive folders... [19:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:09:21]tlvbuf is 018FB190 [19:09:21]SAM_PROTO_ClearQueue [19:09:21]wFMCommunicate request_size=4 [19:09:21]MH_SAM_APDU [19:09:21]CAPDU: 80 09 00 00 [19:09:21]Write to MH i2c: E2 08 00 29 2D 80 09 00 00 00 00 00 00 C8 [19:09:21]Write i2c OK [19:09:21]MH_I2C_Read... [19:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:21]Read from MH i2c: E2 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: E2 03 00 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: E2 03 00 29 2D 00 90 00 CA [19:09:21]RAPDU: 90 00 [19:09:21]wFMCommunicate OK [19:09:21]SAM_PROTO_ClearQueue done [19:09:21]KKMCreateOFDPacket [19:09:21]OFDProtocolAddRootSTLVToBuf [19:09:21]FM_MakeSignedData [19:09:21]FM_MakeSignedData [19:09:21]SAM_PROTO_SignData [19:09:21]wFMCommunicate request_size=4 [19:09:21]MH_SAM_APDU [19:09:21]CAPDU: 80 0D 01 02 [19:09:21]Write to MH i2c: E2 08 00 2A 2D 80 0D 01 02 00 00 00 00 D0 [19:09:21]Write i2c OK [19:09:21]MH_I2C_Read... [19:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:21]Read from MH i2c: E2 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: E2 03 00 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: E2 03 00 2A 2D 00 90 00 CB [19:09:21]RAPDU: 90 00 [19:09:21]wFMCommunicate OK [19:09:21]wFMCommunicate request_size=255 [19:09:21]MH_SAM_APDU [19:09:21]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 65 F5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [19:09:21]Write to MH i2c: E2 02 01 2B 2D 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 65 F5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 57 [19:09:21]Write i2c OK [19:09:21]MH_I2C_Read... [19:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:21]Read from MH i2c: E2 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: E2 03 00 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: E2 03 00 2B 2D 00 90 00 CC [19:09:21]RAPDU: 90 00 [19:09:21]wFMCommunicate OK [19:09:21]wFMCommunicate request_size=31 [19:09:21]MH_SAM_APDU [19:09:21]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 14 C2 00 00 35 04 06 00 F2 BA C8 9D EC D1 [19:09:21]Write to MH i2c: E2 22 00 2C 2D 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 14 C2 00 00 35 04 06 00 F2 BA C8 9D EC D1 00 00 9A [19:09:21]Write i2c OK [19:09:21]MH_I2C_Read... [19:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:21]Read from MH i2c: E2 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: E2 03 00 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: E2 03 00 2C 2D 00 90 00 CD [19:09:21]RAPDU: 90 00 [19:09:21]wFMCommunicate OK [19:09:21]wFMCommunicate request_size=4 [19:09:21]MH_SAM_APDU [19:09:21]CAPDU: 80 0D 03 02 [19:09:21]Write to MH i2c: E2 08 00 2D 2D 80 0D 03 02 00 00 00 00 D5 [19:09:21]Write i2c OK [19:09:21]MH_I2C_Read... [19:09:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:21]Read from MH i2c: E2 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: E2 0B 00 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: E2 0B 00 2D 2D 00 FC 16 63 BF 42 42 37 31 90 00 F6 [19:09:21]RAPDU: FC 16 63 BF 42 42 37 31 90 00 [19:09:21]wFMCommunicate OK [19:09:21]SAM_PROTO_SignData done [19:09:21]FM_MakeSignedData done [19:09:21]CreateOFDProtocolMessage [19:09:21]wFMCommunicate request_size=4 [19:09:21]MH_SAM_APDU [19:09:21]CAPDU: 80 11 00 00 [19:09:21]Write to MH i2c: E2 08 00 2E 2D 80 11 00 00 00 00 00 00 D5 [19:09:21]Write i2c OK [19:09:21]MH_I2C_Read... [19:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:22]Read from MH i2c: E2 [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: E2 17 00 [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: E2 17 00 2E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 20 [19:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:09:22]wFMCommunicate OK [19:09:22]CreateOFDProtocolMessage done [19:09:22]OFDSenderStorePacket 49684 [19:09:22]StoreOFDPacket docnum=49684 [19:09:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 B7 78 1C 01 2E 1E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 65 F5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 14 C2 00 00 35 04 06 00 F2 BA C8 9D EC D1 FC 16 63 BF 42 42 37 31 [19:09:22]CheckFolder [19:09:22]dirname=/storage/ofd_packets [19:09:22]CheckFolder done [19:09:22]ProducePacketName [19:09:22]name=ofd_packets/00049684 [19:09:22]NVStorageSaveData ofd_packets/00049684 [19:09:22]File name is /storage/ofd_packets/00049684 [19:09:22]Write 322 bytes [19:09:22]NVStorageSaveData done [19:09:22]OFDSenderStorePacket done [19:09:22]KKMCreateOFDPacket done [19:09:22]NVStorageSaveData kkm_last_timestamp [19:09:22]File name is /storage/kkm_last_timestamp [19:09:22]Write 4 bytes [19:09:22]NVStorageSaveData done [19:09:22]ExternCall_PrintAddStr [19:09:22]wPrintStart [19:09:22]Write to MH i2c: 01 00 00 2F 2D 5C [19:09:22]OFD Sender: Processing packet 49684 [packets to send 21, broken 20] [19:09:22]ProducePacketName [19:09:22]name=ofd_packets/00049684 [19:09:22]OFD Sender: To server: pG, [19:09:22]CommunicateWithHost lk.salyk.kg:30040 [19:09:22]Write i2c OK [19:09:22]ConnectInit lk.salyk.kg [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: 01 [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: 01 07 00 [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: 01 07 00 2F 2D 00 00 00 00 00 FF 0F 71 [19:09:22]RasterBufferAndPrint [19:09:22]line Счет N : (3)189866 [19:09:22]line ИНН: 02508201610067 [19:09:22]line Контрольно-Кассовый Чек [19:09:22]line ПРОДАЖА [19:09:22]line Товар: 48745000 [19:09:22]line Сигареты Winston Purple Mix [19:09:22]line 1.000 * 135.00 [19:09:22]line = 135.00 [19:09:22]line НДС 12% НСП 1% [19:09:22]line > о реализуемом товаре [19:09:22]line ИТОГО: 135.00 [19:09:22]line НСП 1% : 1.19 [19:09:22]line НДС 12% : 14.34 [19:09:22]line Наличными: 0.00 [19:09:22]line Безнал.: 135.00 [19:09:22]line Место: АЗС № 95 "Партнер Нефть" [19:09:22]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:09:22]line СНО: Общий режим [19:09:22]line Чек 121 17.08.2024 19:09 [19:09:22]line Смена: 465 ФФД: 1.0 [19:09:22]line ЗНМ: 0300000078 [19:09:22]line РНМ: 0000000000092546 [19:09:22]line Версия ККМ: 001 [19:09:22]line Платежная система: O! деньги [19:09:22]line ФМ: 0000000000871800 [19:09:22]line ФД: 49684 [19:09:22]line ФПД: 266884043631825 [19:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T190925&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49684&fm=266884043631825&tin=02508201610067®Number=0000000000092546&sum=13500 [19:09:22]line 0 [19:09:22]written 0, free lines is 4095 [19:09:22]Connected sock=10 [19:09:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 B7 78 1C 01 2E 1E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 65 F5 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 14 C2 00 00 35 04 06 00 F2 BA C8 9D EC D1 FC 16 63 BF 42 42 37 31 [19:09:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BC 45 47 00 F9 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 31 38 30 30 10 04 04 00 14 C2 00 00 F4 03 04 00 A0 A0 C0 66 B6 04 01 00 00 7B EC 36 DB 91 C7 6C 89 [19:09:22]CommunicateWithHost err = 0 [19:09:22]CheckOFDResponse [19:09:22]1017 (14) - 77093643461234 [19:09:22]1041 (16) - 0000000000871800 [19:09:22]1040 (4) - 49684 [19:09:22]1012 (4) - 17.08.2024 13:07 [19:09:22]1206 (1) - 0 [19:09:22]OFD Sender: Remove packet 49684 [19:09:22]ProducePacketName [19:09:22]name=ofd_packets/00049684 [19:09:22]NVStorageDeleteData [19:09:22]Write to MH i2c: 01 00 00 59 2D 86 [19:09:22]Write i2c OK [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: 01 [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: 01 07 00 [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: 01 07 00 59 2D 00 00 00 00 00 CB 0C 64 [19:09:22]RasterBufferAndPrint [19:09:22]line [19:09:22]line [19:09:22]line [19:09:22]line [19:09:22]line [19:09:22]written 0, free lines is 3281 [19:09:22]MH_Cut [19:09:22]Write to MH i2c: D1 01 00 60 2D 01 5F [19:09:22]Write i2c OK [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: D1 [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: D1 01 00 [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: D1 01 00 60 2D 00 5E [19:09:22]Write to MH i2c: 01 00 00 61 2D 8E [19:09:22]Write i2c OK [19:09:22]MH_I2C_Read... [19:09:22]OFD Sender: No OFD packet to send [19:09:23]*** Cut start [19:09:23]*** Purtial cut [19:09:23]*** CUTSNS_PIN = 0 [19:09:23]*** Stage 1: CUTSNS_PIN = 1 [19:09:25]Read from MH i2c: 01 [19:09:25]MH_I2C_Read... [19:09:25]*** Stop cut motor [19:09:25]*** Cut end [19:09:25]Read from MH i2c: 01 07 00 [19:09:25]MH_I2C_Read... [19:09:25]Read from MH i2c: 01 07 00 61 2D 00 00 00 00 00 FF 0F A3 [19:09:25]process_action close_receipt done [19:09:25]requested_data is exist [19:09:25]produce_requested_data [19:09:25]requested_item fm.sn is exist - process it [19:09:25]wFMCommunicate request_size=4 [19:09:25]MH_SAM_APDU [19:09:25]CAPDU: 80 11 00 00 [19:09:25]Write to MH i2c: E2 08 00 62 2D 80 11 00 00 00 00 00 00 09 [19:09:25]Write i2c OK [19:09:25]MH_I2C_Read... [19:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:25]Read from MH i2c: E2 [19:09:25]MH_I2C_Read... [19:09:25]Read from MH i2c: E2 17 00 [19:09:25]MH_I2C_Read... [19:09:25]Read from MH i2c: E2 17 00 62 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 54 [19:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:09:25]wFMCommunicate OK [19:09:25]requested_item fd.num is exist - process it [19:09:25]SAM_PROTO_GetFieldsCounters [19:09:25]wFMCommunicate request_size=4 [19:09:25]MH_SAM_APDU [19:09:25]CAPDU: 80 13 00 00 [19:09:25]Write to MH i2c: E2 08 00 63 2D 80 13 00 00 00 00 00 00 0C [19:09:25]Write i2c OK [19:09:25]MH_I2C_Read... [19:09:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:25]Read from MH i2c: E2 [19:09:25]MH_I2C_Read... [19:09:25]Read from MH i2c: E2 62 00 [19:09:25]MH_I2C_Read... [19:09:25]Read from MH i2c: E2 62 00 63 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 14 C2 00 00 0E 04 04 00 D1 01 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 39 [19:09: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 14 C2 00 00 0E 04 04 00 D1 01 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 [19:09:25]wFMCommunicate OK [19:09:25]SAM_PROTO_GetFieldsCounters done [19:09:25]requested_item shift.num is exist - process it [19:09:25]requested_item shift.opened is exist - process it [19:09:25]req_shift_opened [19:09:25]FM_GetShiftState [19:09:25]SAM_PROTO_GetShiftState [19:09:25]wFMCommunicate request_size=4 [19:09:25]MH_SAM_APDU [19:09:25]CAPDU: 80 13 01 00 [19:09:25]Write to MH i2c: E2 08 00 64 2D 80 13 01 00 00 00 00 00 0E [19:09:25]Write i2c OK [19:09:25]MH_I2C_Read... [19:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:25]Read from MH i2c: E2 [19:09:25]MH_I2C_Read... [19:09:25]Read from MH i2c: E2 0E 00 [19:09:25]MH_I2C_Read... [19:09:25]Read from MH i2c: E2 0E 00 64 2D 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 53 [19:09:25]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:09:25]wFMCommunicate OK [19:09:25]SAM_PROTO_GetShiftState done [19:09:25]FM_GetShiftState done [19:09:25]req_shift_opened done [19:09:25]requested_item shift.open_date is exist - process it [19:09:25]req_shift_open_date [19:09:25]req_shift_open_date done [19:09:25]produce_requested_data done [19:09:25]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49684,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [19:09:25]process_action_free close_receipt [19:09:25]json_value_free [19:09:25]json_value_free done [19:09:25]process_json_proto returns [19:09:25]Send response to host [19:09:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49684,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [19:09:25]free response buf [19:09:25]execute_script done [19:09:25]execute_script returns [19:09:25]free content buf [19:09:25]Sock 7.Close socket [19:09:25]Sock 7.Thread stoped [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:56]int [19:33:56]Write to MH i2c: 01 00 00 65 2D 92 [19:33:56]*** FLAG_PRN_KEY set [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: 01 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: 01 07 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: 01 07 00 65 2D 00 08 00 00 00 FF 0F AF [19:33:56]state=0 [19:33:56]Key pressed [19:33:56]Feed [19:33:56]Write to MH i2c: D8 00 00 66 2D 6A [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: D8 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: D8 01 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: D8 01 00 66 2D 00 6B [19:33:56]int [19:33:56]Write to MH i2c: 01 00 00 67 2D 94 [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: 01 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: 01 07 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: 01 07 00 67 2D 00 48 00 00 00 3C 00 1F [19:33:56]state=2 [19:33:56]Key pressed [19:33:56]int [19:33:56]Write to MH i2c: 01 00 00 68 2D 95 [19:33:56]*** FLAG_PRN_KEY reset [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: 01 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: 01 07 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: 01 07 00 68 2D 00 00 00 00 00 F5 0F A0 [19:33:56]state=2 [19:33:56]Stop feed [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:16]accept exits with 9 [19:36:16]New connection [19:36:16]New thread 3066801508 created [19:36:16]Thread 3066944868 joined [19:36:16]Waiting for new connection... [19:36:16] Sock 9.Parse request [19:36:16]Sock 9.Check first char [19:36:16]Sock 9.First char is OK [19:36:16]request: POST /json_proto HTTP/1.0 [19:36:16]Method: POST [19:36:16]URL: /json_proto [19:36:16]Method is POST - this is cgi request [19:36:16]url: /json_proto [19:36:16]query_string will be loaded in cgi processing [19:36:16]execute_cgi json_proto POST (null) [19:36:16]execute_cgi path=json_proto method=POST [19:36:16]POST find Content-Length [19:36:16]Host: 172.17.46.196:8080 [19:36:16]Content-Length: 630 [19:36:16]Content-Type: application/json [19:36:16] [19:36:16]POST finish read [19:36:16]Found Content-Length = 630 [19:36:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189867", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:16]execute_script... [19:36:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189867", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:16]POST & json_proto [19:36:16]process_json_proto [19:36:16]json parsed OK: [19:36:16]protocol is kg_v1.0 [19:36:16]action value=close_receipt [19:36:16]process_action close_receipt [19:36:16]cmd_close_receipt [19:36:16]MH_GetDate [19:36:16]Write to MH i2c: F0 00 00 69 2D 85 [19:36:16]Write i2c OK [19:36:16]MH_I2C_Read... [19:36:16]Read from MH i2c: F0 [19:36:16]MH_I2C_Read... [19:36:16]Read from MH i2c: F0 09 00 [19:36:16]MH_I2C_Read... [19:36:16]Read from MH i2c: F0 09 00 69 2D 00 B5 FB C0 66 07 E8 5D 66 16 [19:36:16]GetLastDocTimeStamp 1723921765 [19:36:16]current date 1723923381 [19:36:16]FM_GetShiftState [19:36:16]SAM_PROTO_GetShiftState [19:36:16]wFMCommunicate request_size=4 [19:36:16]MH_SAM_APDU [19:36:16]CAPDU: 80 13 01 00 [19:36:16]Write to MH i2c: E2 08 00 6A 2D 80 13 01 00 00 00 00 00 14 [19:36:16]Write i2c OK [19:36:16]MH_I2C_Read... [19:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:16]Read from MH i2c: E2 [19:36:16]MH_I2C_Read... [19:36:16]Read from MH i2c: E2 0E 00 [19:36:16]MH_I2C_Read... [19:36:16]Read from MH i2c: E2 0E 00 6A 2D 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 59 [19:36:16]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:36:16]wFMCommunicate OK [19:36:16]SAM_PROTO_GetShiftState done [19:36:16]FM_GetShiftState done [19:36:16]opened in 1723853354 [19:36:16]opened+sec_in_day 1723939754 [19:36:16]quantity*price = 5000 [19:36:16]sum+1 = 5001 [19:36:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 122 17.08.2024 19:36 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49685 ФПД: 134382581599554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T193621&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49685&fm=134382581599554&tin=02508201610067®Number=0000000000092546&sum=5000 0 [19:36:17]StoreToDocumentArchive [19:36:17]shift 465 fd 49685 [19:36:17]save to /storage/0465/doc_00049685 [19:36:17]save last doc name /storage/0465/doc_00049685 to /storage/kkm_last_doc_name [19:36:17]save OK [19:36:17]Clear old archive folders... [19:36:17]ProcessDocumentItem done err = 0, tmpTLVsize=269 [19:36:17]tlvbuf is 01840680 [19:36:17]SAM_PROTO_ClearQueue [19:36:17]wFMCommunicate request_size=4 [19:36:17]MH_SAM_APDU [19:36:17]CAPDU: 80 09 00 00 [19:36:17]Write to MH i2c: E2 08 00 77 2D 80 09 00 00 00 00 00 00 16 [19:36:17]Write i2c OK [19:36:17]MH_I2C_Read... [19:36:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:17]Read from MH i2c: E2 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 03 00 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 03 00 77 2D 00 90 00 18 [19:36:17]RAPDU: 90 00 [19:36:17]wFMCommunicate OK [19:36:17]SAM_PROTO_ClearQueue done [19:36:17]KKMCreateOFDPacket [19:36:17]OFDProtocolAddRootSTLVToBuf [19:36:17]FM_MakeSignedData [19:36:17]FM_MakeSignedData [19:36:17]SAM_PROTO_SignData [19:36:17]wFMCommunicate request_size=4 [19:36:17]MH_SAM_APDU [19:36:17]CAPDU: 80 0D 01 02 [19:36:17]Write to MH i2c: E2 08 00 78 2D 80 0D 01 02 00 00 00 00 1E [19:36:17]Write i2c OK [19:36:17]MH_I2C_Read... [19:36:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:17]Read from MH i2c: E2 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 03 00 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 03 00 78 2D 00 90 00 19 [19:36:17]RAPDU: 90 00 [19:36:17]wFMCommunicate OK [19:36:17]wFMCommunicate request_size=255 [19:36:17]MH_SAM_APDU [19:36:17]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B5 FB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [19:36:17]Write to MH i2c: E2 02 01 79 2D 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B5 FB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 58 [19:36:17]Write i2c OK [19:36:17]MH_I2C_Read... [19:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:17]Read from MH i2c: E2 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 03 00 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 03 00 79 2D 00 90 00 1A [19:36:17]RAPDU: 90 00 [19:36:17]wFMCommunicate OK [19:36:17]wFMCommunicate request_size=28 [19:36:17]MH_SAM_APDU [19:36:17]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 15 C2 00 00 35 04 06 00 7A 38 62 0A 4D 42 [19:36:17]Write to MH i2c: E2 1F 00 7A 2D 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 15 C2 00 00 35 04 06 00 7A 38 62 0A 4D 42 00 00 2A [19:36:17]Write i2c OK [19:36:17]MH_I2C_Read... [19:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:17]Read from MH i2c: E2 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 03 00 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 03 00 7A 2D 00 90 00 1B [19:36:17]RAPDU: 90 00 [19:36:17]wFMCommunicate OK [19:36:17]wFMCommunicate request_size=4 [19:36:17]MH_SAM_APDU [19:36:17]CAPDU: 80 0D 03 02 [19:36:17]Write to MH i2c: E2 08 00 7B 2D 80 0D 03 02 00 00 00 00 23 [19:36:17]Write i2c OK [19:36:17]MH_I2C_Read... [19:36:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:17]Read from MH i2c: E2 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 0B 00 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 0B 00 7B 2D 00 41 C1 48 3B 58 FD E6 5F 90 00 43 [19:36:17]RAPDU: 41 C1 48 3B 58 FD E6 5F 90 00 [19:36:17]wFMCommunicate OK [19:36:17]SAM_PROTO_SignData done [19:36:17]FM_MakeSignedData done [19:36:17]CreateOFDProtocolMessage [19:36:17]wFMCommunicate request_size=4 [19:36:17]MH_SAM_APDU [19:36:17]CAPDU: 80 11 00 00 [19:36:17]Write to MH i2c: E2 08 00 7C 2D 80 11 00 00 00 00 00 00 23 [19:36:17]Write i2c OK [19:36:17]MH_I2C_Read... [19:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:18]Read from MH i2c: E2 [19:36:18]MH_I2C_Read... [19:36:18]Read from MH i2c: E2 17 00 [19:36:18]MH_I2C_Read... [19:36:18]Read from MH i2c: E2 17 00 7C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6E [19:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:36:18]wFMCommunicate OK [19:36:18]CreateOFDProtocolMessage done [19:36:18]OFDSenderStorePacket 49685 [19:36:18]StoreOFDPacket docnum=49685 [19:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 88 8E 19 01 10 85 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B5 FB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C2 00 00 35 04 06 00 7A 38 62 0A 4D 42 41 C1 48 3B 58 FD E6 5F [19:36:18]CheckFolder [19:36:18]dirname=/storage/ofd_packets [19:36:18]CheckFolder done [19:36:18]ProducePacketName [19:36:18]name=ofd_packets/00049685 [19:36:18]NVStorageSaveData ofd_packets/00049685 [19:36:18]File name is /storage/ofd_packets/00049685 [19:36:18]Write 319 bytes [19:36:18]NVStorageSaveData done [19:36:18]OFDSenderStorePacket done [19:36:18]KKMCreateOFDPacket done [19:36:18]NVStorageSaveData kkm_last_timestamp [19:36:18]File name is /storage/kkm_last_timestamp [19:36:18]Write 4 bytes [19:36:18]NVStorageSaveData done [19:36:18]ExternCall_PrintAddStr [19:36:18]wPrintStart [19:36:18]Write to MH i2c: 01 00 00 7D 2D AA [19:36:18]Write i2c OK [19:36:18]MH_I2C_Read... [19:36:18]Read from MH i2c: 01 [19:36:18]MH_I2C_Read... [19:36:18]Read from MH i2c: 01 07 00 [19:36:18]MH_I2C_Read... [19:36:18]Read from MH i2c: 01 07 00 7D 2D 00 00 00 00 00 FF 0F BF [19:36:18]RasterBufferAndPrint [19:36:18]line Счет N : (3)189867 [19:36:18]line ИНН: 02508201610067 [19:36:18]line Контрольно-Кассовый Чек [19:36:18]line ПРОДАЖА [19:36:18]line Товар: 4700000160358 [19:36:18]line Вода Легенда 1л [19:36:18]line 1.000 * 50.00 [19:36:18]line = 50.00 [19:36:18]line НДС 12% НСП 1% [19:36:18]line > о реализуемом товаре [19:36:18]line ИТОГО: 50.00 [19:36:18]line НСП 1% : 0.44 [19:36:18]line НДС 12% : 5.31 [19:36:18]line Наличными: 50.00 [19:36:18]line Безнал.: 0.00 [19:36:18]line Место: АЗС № 95 "Партнер Нефть" [19:36:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:36:18]line СНО: Общий режим [19:36:18]line Чек 122 17.08.2024 19:36 [19:36:18]line Смена: 465 ФФД: 1.0 [19:36:18]line ЗНМ: 0300000078 [19:36:18]line РНМ: 0000000000092546 [19:36:18]line Версия ККМ: 001 [19:36:18]line ФМ: 0000000000871800 [19:36:18]line ФД: 49685 [19:36:18]line ФПД: 134382581599554 [19:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T193621&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49685&fm=134382581599554&tin=02508201610067®Number=0000000000092546&sum=5000 [19:36:18]line 0 [19:36:18]OFD Sender: Processing packet 49685 [packets to send 21, broken 20] [19:36:18]ProducePacketName [19:36:18]name=ofd_packets/00049685 [19:36:18]OFD Sender: To server: pG, [19:36:18]CommunicateWithHost lk.salyk.kg:30040 [19:36:18]ConnectInit lk.salyk.kg [19:36:18]written 0, free lines is 4095 [19:36:18]Connected sock=10 [19:36:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 88 8E 19 01 10 85 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B5 FB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C2 00 00 35 04 06 00 7A 38 62 0A 4D 42 41 C1 48 3B 58 FD E6 5F [19:36:18]Write to MH i2c: 01 00 00 A5 2D D2 [19:36:18]Write i2c OK [19:36:18]MH_I2C_Read... [19:36:18]Read from MH i2c: 01 [19:36:18]MH_I2C_Read... [19:36:18]Read from MH i2c: 01 07 00 [19:36:18]MH_I2C_Read... [19:36:18]Read from MH i2c: 01 07 00 A5 2D 00 00 00 00 00 F2 0C D7 [19:36:18]RasterBufferAndPrint [19:36:18]line [19:36:18]line [19:36:18]line [19:36:18]line [19:36:18]line [19:36:18]written 0, free lines is 3323 [19:36:18]MH_Cut [19:36:18]Write to MH i2c: D1 01 00 AC 2D 01 AB [19:36:18]Write i2c OK [19:36:18]MH_I2C_Read... [19:36:18]Read from MH i2c: D1 [19:36:18]MH_I2C_Read... [19:36:18]Read from MH i2c: D1 01 00 [19:36:18]MH_I2C_Read... [19:36:18]Read from MH i2c: D1 01 00 AC 2D 00 AA [19:36:18]Write to MH i2c: 01 00 00 AD 2D DA [19:36:18]Write i2c OK [19:36:18]MH_I2C_Read... [19:36:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 76 CB 47 00 E4 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C2 00 00 F4 03 04 00 F0 A6 C0 66 B6 04 01 00 00 96 1B 34 A8 BB 55 24 B1 [19:36:18]CommunicateWithHost err = 0 [19:36:18]CheckOFDResponse [19:36:18]1017 (14) - 77093643461234 [19:36:18]1041 (16) - 0000000000871800 [19:36:18]1040 (4) - 49685 [19:36:18]1012 (4) - 17.08.2024 13:34 [19:36:18]1206 (1) - 0 [19:36:18]OFD Sender: Remove packet 49685 [19:36:18]ProducePacketName [19:36:18]name=ofd_packets/00049685 [19:36:18]NVStorageDeleteData [19:36:19]OFD Sender: No OFD packet to send [19:36:19]*** Cut start [19:36:19]*** Purtial cut [19:36:19]*** Stage 1: CUTSNS_PIN = 1 [19:36:19]Read from MH i2c: 01 [19:36:19]MH_I2C_Read... [19:36:19]*** Stop cut motor [19:36:19]*** Cut end [19:36:19]Read from MH i2c: 01 07 00 [19:36:19]MH_I2C_Read... [19:36:19]Read from MH i2c: 01 07 00 AD 2D 00 00 00 00 00 FF 0F EF [19:36:19]process_action close_receipt done [19:36:19]requested_data is exist [19:36:19]produce_requested_data [19:36:19]requested_item fm.sn is exist - process it [19:36:19]wFMCommunicate request_size=4 [19:36:19]MH_SAM_APDU [19:36:19]CAPDU: 80 11 00 00 [19:36:19]Write to MH i2c: E2 08 00 AE 2D 80 11 00 00 00 00 00 00 55 [19:36:19]Write i2c OK [19:36:19]MH_I2C_Read... [19:36:19]Read from MH i2c: E2 [19:36:19]MH_I2C_Read... [19:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:19]Read from MH i2c: E2 17 00 [19:36:19]MH_I2C_Read... [19:36:19]Read from MH i2c: E2 17 00 AE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A0 [19:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:36:19]wFMCommunicate OK [19:36:19]requested_item fd.num is exist - process it [19:36:19]SAM_PROTO_GetFieldsCounters [19:36:19]wFMCommunicate request_size=4 [19:36:19]MH_SAM_APDU [19:36:19]CAPDU: 80 13 00 00 [19:36:19]Write to MH i2c: E2 08 00 AF 2D 80 13 00 00 00 00 00 00 58 [19:36:19]Write i2c OK [19:36:19]MH_I2C_Read... [19:36:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:20]Read from MH i2c: E2 [19:36:20]MH_I2C_Read... [19:36:20]Read from MH i2c: E2 62 00 [19:36:20]MH_I2C_Read... [19:36:20]Read from MH i2c: E2 62 00 AF 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 15 C2 00 00 0E 04 04 00 D1 01 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 89 [19:36: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 15 C2 00 00 0E 04 04 00 D1 01 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 [19:36:20]wFMCommunicate OK [19:36:20]SAM_PROTO_GetFieldsCounters done [19:36:20]requested_item shift.num is exist - process it [19:36:20]requested_item shift.opened is exist - process it [19:36:20]req_shift_opened [19:36:20]FM_GetShiftState [19:36:20]SAM_PROTO_GetShiftState [19:36:20]wFMCommunicate request_size=4 [19:36:20]MH_SAM_APDU [19:36:20]CAPDU: 80 13 01 00 [19:36:20]Write to MH i2c: E2 08 00 B0 2D 80 13 01 00 00 00 00 00 5A [19:36:20]Write i2c OK [19:36:20]MH_I2C_Read... [19:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:20]Read from MH i2c: E2 [19:36:20]MH_I2C_Read... [19:36:20]Read from MH i2c: E2 0E 00 [19:36:20]MH_I2C_Read... [19:36:20]Read from MH i2c: E2 0E 00 B0 2D 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 9F [19:36:20]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:36:20]wFMCommunicate OK [19:36:20]SAM_PROTO_GetShiftState done [19:36:20]FM_GetShiftState done [19:36:20]req_shift_opened done [19:36:20]requested_item shift.open_date is exist - process it [19:36:20]req_shift_open_date [19:36:20]req_shift_open_date done [19:36:20]produce_requested_data done [19:36:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49685,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [19:36:20]process_action_free close_receipt [19:36:20]json_value_free [19:36:20]json_value_free done [19:36:20]process_json_proto returns [19:36:20]Send response to host [19:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49685,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [19:36:20]free response buf [19:36:20]execute_script done [19:36:20]execute_script returns [19:36:20]free content buf [19:36:20]Sock 9.Close socket [19:36:20]Sock 9.Thread stoped [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:55]accept exits with 7 [19:36:55]New connection [19:36:55]New thread 3066944868 created [19:36:55]Thread 3066801508 joined [19:36:55]Waiting for new connection... [19:36:55] Sock 7.Parse request [19:36:55]Sock 7.Check first char [19:36:55]Sock 7.First char is OK [19:36:55]request: POST /json_proto HTTP/1.0 [19:36:55]Method: POST [19:36:55]URL: /json_proto [19:36:55]Method is POST - this is cgi request [19:36:55]url: /json_proto [19:36:55]query_string will be loaded in cgi processing [19:36:55]execute_cgi json_proto POST (null) [19:36:55]execute_cgi path=json_proto method=POST [19:36:55]POST find Content-Length [19:36:55]Host: 172.17.46.196:8080 [19:36:55]Content-Length: 641 [19:36:55]Content-Type: application/json [19:36:55] [19:36:55]POST finish read [19:36:55]Found Content-Length = 641 [19:36:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189868", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:55]execute_script... [19:36:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189868", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:55]POST & json_proto [19:36:55]process_json_proto [19:36:55]json parsed OK: [19:36:55]protocol is kg_v1.0 [19:36:55]action value=close_receipt [19:36:55]process_action close_receipt [19:36:55]cmd_close_receipt [19:36:55]MH_GetDate [19:36:55]Write to MH i2c: F0 00 00 B1 2D CD [19:36:55]Write i2c OK [19:36:55]MH_I2C_Read... [19:36:55]Read from MH i2c: F0 [19:36:55]MH_I2C_Read... [19:36:55]Read from MH i2c: F0 09 00 [19:36:55]MH_I2C_Read... [19:36:55]Read from MH i2c: F0 09 00 B1 2D 00 DC FB C0 66 07 E8 5D 66 85 [19:36:55]GetLastDocTimeStamp 1723923381 [19:36:55]current date 1723923420 [19:36:55]FM_GetShiftState [19:36:55]SAM_PROTO_GetShiftState [19:36:55]wFMCommunicate request_size=4 [19:36:55]MH_SAM_APDU [19:36:55]CAPDU: 80 13 01 00 [19:36:55]Write to MH i2c: E2 08 00 B2 2D 80 13 01 00 00 00 00 00 5C [19:36:55]Write i2c OK [19:36:55]MH_I2C_Read... [19:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:55]Read from MH i2c: E2 [19:36:55]MH_I2C_Read... [19:36:55]Read from MH i2c: E2 0E 00 [19:36:55]MH_I2C_Read... [19:36:55]Read from MH i2c: E2 0E 00 B2 2D 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 A1 [19:36:55]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:36:55]wFMCommunicate OK [19:36:55]SAM_PROTO_GetShiftState done [19:36:55]FM_GetShiftState done [19:36:55]opened in 1723853354 [19:36:55]opened+sec_in_day 1723939754 [19:36:55]quantity*price = 4000 [19:36:55]sum+1 = 4001 [19:36:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 123 17.08.2024 19:37 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49686 ФПД: 223619765992716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T193700&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49686&fm=223619765992716&tin=02508201610067®Number=0000000000092546&sum=4000 0 [19:36:56]StoreToDocumentArchive [19:36:56]shift 465 fd 49686 [19:36:56]save to /storage/0465/doc_00049686 [19:36:56]save last doc name /storage/0465/doc_00049686 to /storage/kkm_last_doc_name [19:36:56]save OK [19:36:56]Clear old archive folders... [19:36:56]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:36:56]tlvbuf is 018D9070 [19:36:56]SAM_PROTO_ClearQueue [19:36:56]wFMCommunicate request_size=4 [19:36:56]MH_SAM_APDU [19:36:56]CAPDU: 80 09 00 00 [19:36:56]Write to MH i2c: E2 08 00 BF 2D 80 09 00 00 00 00 00 00 5E [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:56]Read from MH i2c: E2 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 BF 2D 00 90 00 60 [19:36:56]RAPDU: 90 00 [19:36:56]wFMCommunicate OK [19:36:56]SAM_PROTO_ClearQueue done [19:36:56]KKMCreateOFDPacket [19:36:56]OFDProtocolAddRootSTLVToBuf [19:36:56]FM_MakeSignedData [19:36:56]FM_MakeSignedData [19:36:56]SAM_PROTO_SignData [19:36:56]wFMCommunicate request_size=4 [19:36:56]MH_SAM_APDU [19:36:56]CAPDU: 80 0D 01 02 [19:36:56]Write to MH i2c: E2 08 00 C0 2D 80 0D 01 02 00 00 00 00 66 [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:56]Read from MH i2c: E2 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 C0 2D 00 90 00 61 [19:36:56]RAPDU: 90 00 [19:36:56]wFMCommunicate OK [19:36:56]wFMCommunicate request_size=255 [19:36:56]MH_SAM_APDU [19:36:56]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 DC FB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [19:36:56]Write to MH i2c: E2 02 01 C1 2D 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 DC FB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 D1 [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:56]Read from MH i2c: E2 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 C1 2D 00 90 00 62 [19:36:56]RAPDU: 90 00 [19:36:56]wFMCommunicate OK [19:36:56]wFMCommunicate request_size=31 [19:36:56]MH_SAM_APDU [19:36:56]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 16 C2 00 00 35 04 06 00 CB 61 88 B7 7D 0C [19:36:56]Write to MH i2c: E2 22 00 C2 2D 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 16 C2 00 00 35 04 06 00 CB 61 88 B7 7D 0C 00 00 58 [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:56]Read from MH i2c: E2 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 C2 2D 00 90 00 63 [19:36:56]RAPDU: 90 00 [19:36:56]wFMCommunicate OK [19:36:56]wFMCommunicate request_size=4 [19:36:56]MH_SAM_APDU [19:36:56]CAPDU: 80 0D 03 02 [19:36:56]Write to MH i2c: E2 08 00 C3 2D 80 0D 03 02 00 00 00 00 6B [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:56]Read from MH i2c: E2 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 0B 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 0B 00 C3 2D 00 5B D1 62 04 2B 2E 69 36 90 00 F6 [19:36:56]RAPDU: 5B D1 62 04 2B 2E 69 36 90 00 [19:36:56]wFMCommunicate OK [19:36:56]SAM_PROTO_SignData done [19:36:56]FM_MakeSignedData done [19:36:56]CreateOFDProtocolMessage [19:36:56]wFMCommunicate request_size=4 [19:36:56]MH_SAM_APDU [19:36:56]CAPDU: 80 11 00 00 [19:36:56]Write to MH i2c: E2 08 00 C4 2D 80 11 00 00 00 00 00 00 6B [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:56]Read from MH i2c: E2 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 17 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 17 00 C4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B6 [19:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:36:56]wFMCommunicate OK [19:36:56]CreateOFDProtocolMessage done [19:36:56]OFDSenderStorePacket 49686 [19:36:56]StoreOFDPacket docnum=49686 [19:36:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 EA E3 1C 01 BD 8F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 DC FB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 16 C2 00 00 35 04 06 00 CB 61 88 B7 7D 0C 5B D1 62 04 2B 2E 69 36 [19:36:56]CheckFolder [19:36:56]dirname=/storage/ofd_packets [19:36:56]CheckFolder done [19:36:56]ProducePacketName [19:36:56]name=ofd_packets/00049686 [19:36:56]NVStorageSaveData ofd_packets/00049686 [19:36:56]File name is /storage/ofd_packets/00049686 [19:36:56]Write 322 bytes [19:36:56]NVStorageSaveData done [19:36:56]OFDSenderStorePacket done [19:36:56]KKMCreateOFDPacket done [19:36:56]NVStorageSaveData kkm_last_timestamp [19:36:56]File name is /storage/kkm_last_timestamp [19:36:56]Write 4 bytes [19:36:56]NVStorageSaveData done [19:36:56]ExternCall_PrintAddStr [19:36:56]wPrintStart [19:36:56]Write to MH i2c: 01 00 00 C5 2D F2 [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: 01 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: 01 07 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: 01 07 00 C5 2D 00 00 00 00 00 FF 0F 07 [19:36:56]RasterBufferAndPrint [19:36:56]line Счет N : (3)189868 [19:36:56]line ИНН: 02508201610067 [19:36:56]line Контрольно-Кассовый Чек [19:36:56]line ПРОДАЖА [19:36:56]line Товар: 40822426 [19:36:56]line Вода Бонаква 0,5л б/г [19:36:56]line 1.000 * 40.00 [19:36:56]line = 40.00 [19:36:56]line НДС 12% НСП 1% [19:36:56]line > о реализуемом товаре [19:36:56]line ИТОГО: 40.00 [19:36:56]line НСП 1% : 0.35 [19:36:56]line НДС 12% : 4.25 [19:36:56]line Наличными: 40.00 [19:36:56]line Безнал.: 0.00 [19:36:56]line Место: АЗС № 95 "Партнер Нефть" [19:36:56]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:36:56]line СНО: Общий режим [19:36:56]line Чек 123 17.08.2024 19:37 [19:36:56]line Смена: 465 ФФД: 1.0 [19:36:56]line ЗНМ: 0300000078 [19:36:56]line РНМ: 0000000000092546 [19:36:56]line Версия ККМ: 001 [19:36:56]line ФМ: 0000000000871800 [19:36:56]line ФД: 49686 [19:36:56]line ФПД: 223619765992716 [19:36:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T193700&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49686&fm=223619765992716&tin=02508201610067®Number=0000000000092546&sum=4000 [19:36:57]OFD Sender: Processing packet 49686 [packets to send 21, broken 20] [19:36:57]ProducePacketName [19:36:57]name=ofd_packets/00049686 [19:36:57]OFD Sender: To server: pG, [19:36:57]CommunicateWithHost lk.salyk.kg:30040 [19:36:57]ConnectInit lk.salyk.kg [19:36:57]line 0 [19:36:57]written 0, free lines is 4095 [19:36:57]Connected sock=10 [19:36:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 EA E3 1C 01 BD 8F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 DC FB C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 16 C2 00 00 35 04 06 00 CB 61 88 B7 7D 0C 5B D1 62 04 2B 2E 69 36 [19:36:57]Write to MH i2c: 01 00 00 ED 2D 1A [19:36:57]Write i2c OK [19:36:57]MH_I2C_Read... [19:36:57]Read from MH i2c: 01 [19:36:57]MH_I2C_Read... [19:36:57]Read from MH i2c: 01 07 00 [19:36:57]MH_I2C_Read... [19:36:57]Read from MH i2c: 01 07 00 ED 2D 00 00 00 00 00 F1 0C 1E [19:36:57]RasterBufferAndPrint [19:36:57]line [19:36:57]line [19:36:57]line [19:36:57]line [19:36:57]line [19:36:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A4 8C 47 00 C2 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 16 C2 00 00 F4 03 04 00 17 A7 C0 66 B6 04 01 00 00 91 16 2C 34 2F 00 85 2C [19:36:57]CommunicateWithHost err = 0 [19:36:57]CheckOFDResponse [19:36:57]1017 (14) - 77093643461234 [19:36:57]1041 (16) - 0000000000871800 [19:36:57]1040 (4) - 49686 [19:36:57]1012 (4) - 17.08.2024 13:35 [19:36:57]1206 (1) - 0 [19:36:57]OFD Sender: Remove packet 49686 [19:36:57]ProducePacketName [19:36:57]name=ofd_packets/00049686 [19:36:57]NVStorageDeleteData [19:36:57]written 0, free lines is 3328 [19:36:57]MH_Cut [19:36:57]Write to MH i2c: D1 01 00 F4 2D 01 F3 [19:36:57]Write i2c OK [19:36:57]MH_I2C_Read... [19:36:57]Read from MH i2c: D1 [19:36:57]MH_I2C_Read... [19:36:57]Read from MH i2c: D1 01 00 [19:36:57]MH_I2C_Read... [19:36:57]Read from MH i2c: D1 01 00 F4 2D 00 F2 [19:36:57]Write to MH i2c: 01 00 00 F5 2D 22 [19:36:57]Write i2c OK [19:36:57]MH_I2C_Read... [19:36:58]OFD Sender: No OFD packet to send [19:36:58]*** Cut start [19:36:58]*** Purtial cut [19:36:58]*** CUTSNS_PIN = 0 [19:36:58]*** Stage 1: CUTSNS_PIN = 1 [19:37:00]Read from MH i2c: 01 [19:37:00]MH_I2C_Read... [19:37:00]*** Stop cut motor [19:37:00]*** Cut end [19:37:00]Read from MH i2c: 01 07 00 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: 01 07 00 F5 2D 00 00 00 00 00 FF 0F 37 [19:37:00]process_action close_receipt done [19:37:00]requested_data is exist [19:37:00]produce_requested_data [19:37:00]requested_item fm.sn is exist - process it [19:37:00]wFMCommunicate request_size=4 [19:37:00]MH_SAM_APDU [19:37:00]CAPDU: 80 11 00 00 [19:37:00]Write to MH i2c: E2 08 00 F6 2D 80 11 00 00 00 00 00 00 9D [19:37:00]Write i2c OK [19:37:00]MH_I2C_Read... [19:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:00]Read from MH i2c: E2 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 17 00 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 17 00 F6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E8 [19:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:37:00]wFMCommunicate OK [19:37:00]requested_item fd.num is exist - process it [19:37:00]SAM_PROTO_GetFieldsCounters [19:37:00]wFMCommunicate request_size=4 [19:37:00]MH_SAM_APDU [19:37:00]CAPDU: 80 13 00 00 [19:37:00]Write to MH i2c: E2 08 00 F7 2D 80 13 00 00 00 00 00 00 A0 [19:37:00]Write i2c OK [19:37:00]MH_I2C_Read... [19:37:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:00]Read from MH i2c: E2 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 62 00 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 62 00 F7 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 16 C2 00 00 0E 04 04 00 D1 01 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 D5 [19:37: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 16 C2 00 00 0E 04 04 00 D1 01 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 [19:37:00]wFMCommunicate OK [19:37:00]SAM_PROTO_GetFieldsCounters done [19:37:00]requested_item shift.num is exist - process it [19:37:00]requested_item shift.opened is exist - process it [19:37:00]req_shift_opened [19:37:00]FM_GetShiftState [19:37:00]SAM_PROTO_GetShiftState [19:37:00]wFMCommunicate request_size=4 [19:37:00]MH_SAM_APDU [19:37:00]CAPDU: 80 13 01 00 [19:37:00]Write to MH i2c: E2 08 00 F8 2D 80 13 01 00 00 00 00 00 A2 [19:37:00]Write i2c OK [19:37:00]MH_I2C_Read... [19:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:00]Read from MH i2c: E2 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 0E 00 [19:37:00]MH_I2C_Read... [19:37:00]Read from MH i2c: E2 0E 00 F8 2D 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 E7 [19:37:00]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:37:00]wFMCommunicate OK [19:37:00]SAM_PROTO_GetShiftState done [19:37:00]FM_GetShiftState done [19:37:00]req_shift_opened done [19:37:00]requested_item shift.open_date is exist - process it [19:37:00]req_shift_open_date [19:37:00]req_shift_open_date done [19:37:00]produce_requested_data done [19:37:00]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49686,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [19:37:00]process_action_free close_receipt [19:37:00]json_value_free [19:37:00]json_value_free done [19:37:00]process_json_proto returns [19:37:00]Send response to host [19:37:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49686,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [19:37:00]free response buf [19:37:00]execute_script done [19:37:00]execute_script returns [19:37:00]free content buf [19:37:00]Sock 7.Close socket [19:37:00]Sock 7.Thread stoped [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]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]accept exits with 9 [19:40:43]New connection [19:40:43]New thread 3066801508 created [19:40:43]Thread 3066944868 joined [19:40:43]Waiting for new connection... [19:40:43] Sock 9.Parse request [19:40:43]Sock 9.Check first char [19:40:43]Sock 9.First char is OK [19:40:43]request: POST /json_proto HTTP/1.0 [19:40:43]Method: POST [19:40:43]URL: /json_proto [19:40:43]Method is POST - this is cgi request [19:40:43]url: /json_proto [19:40:43]query_string will be loaded in cgi processing [19:40:43]execute_cgi json_proto POST (null) [19:40:43]execute_cgi path=json_proto method=POST [19:40:43]POST find Content-Length [19:40:43]Host: 172.17.46.196:8080 [19:40:43]Content-Length: 642 [19:40:43]Content-Type: application/json [19:40:43] [19:40:43]POST finish read [19:40:43]Found Content-Length = 642 [19:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189869", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:43]execute_script... [19:40:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189869", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:43]POST & json_proto [19:40:43]process_json_proto [19:40:43]json parsed OK: [19:40:43]protocol is kg_v1.0 [19:40:43]action value=close_receipt [19:40:43]process_action close_receipt [19:40:43]cmd_close_receipt [19:40:43]MH_GetDate [19:40:43]Write to MH i2c: F0 00 00 F9 2D 15 [19:40:43]Write i2c OK [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: F0 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: F0 09 00 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: F0 09 00 F9 2D 00 C0 FC C0 66 07 E8 5D 66 B2 [19:40:43]GetLastDocTimeStamp 1723923420 [19:40:43]current date 1723923648 [19:40:43]FM_GetShiftState [19:40:43]SAM_PROTO_GetShiftState [19:40:43]wFMCommunicate request_size=4 [19:40:43]MH_SAM_APDU [19:40:43]CAPDU: 80 13 01 00 [19:40:43]Write to MH i2c: E2 08 00 FA 2D 80 13 01 00 00 00 00 00 A4 [19:40:43]Write i2c OK [19:40:43]MH_I2C_Read... [19:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:43]Read from MH i2c: E2 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: E2 0E 00 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: E2 0E 00 FA 2D 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 E9 [19:40:43]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:40:43]wFMCommunicate OK [19:40:43]SAM_PROTO_GetShiftState done [19:40:43]FM_GetShiftState done [19:40:43]opened in 1723853354 [19:40:43]opened+sec_in_day 1723939754 [19:40:43]quantity*price = 5900 [19:40:43]sum+1 = 5901 [19:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 124 17.08.2024 19:40 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49687 ФПД: 88838901742523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T194048&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49687&fm=88838901742523&tin=02508201610067®Number=0000000000092546&sum=5900 0 [19:40:44]StoreToDocumentArchive [19:40:44]shift 465 fd 49687 [19:40:44]save to /storage/0465/doc_00049687 [19:40:44]save last doc name /storage/0465/doc_00049687 to /storage/kkm_last_doc_name [19:40:44]save OK [19:40:44]Clear old archive folders... [19:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=281 [19:40:44]tlvbuf is 0188DF50 [19:40:44]SAM_PROTO_ClearQueue [19:40:44]wFMCommunicate request_size=4 [19:40:44]MH_SAM_APDU [19:40:44]CAPDU: 80 09 00 00 [19:40:44]Write to MH i2c: E2 08 00 07 2E 80 09 00 00 00 00 00 00 A7 [19:40:44]Write i2c OK [19:40:44]MH_I2C_Read... [19:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:44]Read from MH i2c: E2 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 03 00 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 03 00 07 2E 00 90 00 A9 [19:40:44]RAPDU: 90 00 [19:40:44]wFMCommunicate OK [19:40:44]SAM_PROTO_ClearQueue done [19:40:44]KKMCreateOFDPacket [19:40:44]OFDProtocolAddRootSTLVToBuf [19:40:44]FM_MakeSignedData [19:40:44]FM_MakeSignedData [19:40:44]SAM_PROTO_SignData [19:40:44]wFMCommunicate request_size=4 [19:40:44]MH_SAM_APDU [19:40:44]CAPDU: 80 0D 01 02 [19:40:44]Write to MH i2c: E2 08 00 08 2E 80 0D 01 02 00 00 00 00 AF [19:40:44]Write i2c OK [19:40:44]MH_I2C_Read... [19:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:44]Read from MH i2c: E2 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 03 00 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 03 00 08 2E 00 90 00 AA [19:40:44]RAPDU: 90 00 [19:40:44]wFMCommunicate OK [19:40:44]wFMCommunicate request_size=255 [19:40:44]MH_SAM_APDU [19:40:44]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C0 FC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 [19:40:44]Write to MH i2c: E2 02 01 09 2E 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C0 FC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 6D [19:40:44]Write i2c OK [19:40:44]MH_I2C_Read... [19:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:44]Read from MH i2c: E2 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 03 00 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 03 00 09 2E 00 90 00 AB [19:40:44]RAPDU: 90 00 [19:40:44]wFMCommunicate OK [19:40:44]wFMCommunicate request_size=40 [19:40:44]MH_SAM_APDU [19:40:44]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C2 00 00 35 04 06 00 50 CC 6B 2E 3B BB [19:40:44]Write to MH i2c: E2 2B 00 0A 2E 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C2 00 00 35 04 06 00 50 CC 6B 2E 3B BB 00 00 EB [19:40:44]Write i2c OK [19:40:44]MH_I2C_Read... [19:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:44]Read from MH i2c: E2 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 03 00 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 03 00 0A 2E 00 90 00 AC [19:40:44]RAPDU: 90 00 [19:40:44]wFMCommunicate OK [19:40:44]wFMCommunicate request_size=4 [19:40:44]MH_SAM_APDU [19:40:44]CAPDU: 80 0D 03 02 [19:40:44]Write to MH i2c: E2 08 00 0B 2E 80 0D 03 02 00 00 00 00 B4 [19:40:44]Write i2c OK [19:40:44]MH_I2C_Read... [19:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:44]Read from MH i2c: E2 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 0B 00 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 0B 00 0B 2E 00 01 7F C8 BA C6 D6 0B 1F 90 00 7D [19:40:44]RAPDU: 01 7F C8 BA C6 D6 0B 1F 90 00 [19:40:44]wFMCommunicate OK [19:40:44]SAM_PROTO_SignData done [19:40:44]FM_MakeSignedData done [19:40:44]CreateOFDProtocolMessage [19:40:44]wFMCommunicate request_size=4 [19:40:44]MH_SAM_APDU [19:40:44]CAPDU: 80 11 00 00 [19:40:44]Write to MH i2c: E2 08 00 0C 2E 80 11 00 00 00 00 00 00 B4 [19:40:44]Write i2c OK [19:40:44]MH_I2C_Read... [19:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:44]Read from MH i2c: E2 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 17 00 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 17 00 0C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FF [19:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:40:44]wFMCommunicate OK [19:40:44]CreateOFDProtocolMessage done [19:40:44]OFDSenderStorePacket 49687 [19:40:44]StoreOFDPacket docnum=49687 [19:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 C1 6E 25 01 EB E6 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C0 FC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C2 00 00 35 04 06 00 50 CC 6B 2E 3B BB 01 7F C8 BA C6 D6 0B 1F [19:40:44]CheckFolder [19:40:44]dirname=/storage/ofd_packets [19:40:44]CheckFolder done [19:40:44]ProducePacketName [19:40:44]name=ofd_packets/00049687 [19:40:44]NVStorageSaveData ofd_packets/00049687 [19:40:44]File name is /storage/ofd_packets/00049687 [19:40:44]Write 331 bytes [19:40:44]NVStorageSaveData done [19:40:44]OFDSenderStorePacket done [19:40:44]KKMCreateOFDPacket done [19:40:44]NVStorageSaveData kkm_last_timestamp [19:40:44]File name is /storage/kkm_last_timestamp [19:40:44]Write 4 bytes [19:40:44]NVStorageSaveData done [19:40:44]ExternCall_PrintAddStr [19:40:44]wPrintStart [19:40:44]Write to MH i2c: 01 00 00 0D 2E 3B [19:40:44]Write i2c OK [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: 01 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: 01 07 00 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: 01 07 00 0D 2E 00 00 00 00 00 FF 0F 50 [19:40:44]RasterBufferAndPrint [19:40:44]line Счет N : (3)189869 [19:40:44]line ИНН: 02508201610067 [19:40:44]line Контрольно-Кассовый Чек [19:40:44]line ПРОДАЖА [19:40:44]line Товар: 4607065001445 [19:40:44]line Шок батончик Snickers 50,5г [19:40:44]line 1.000 * 59.00 [19:40:44]line = 59.00 [19:40:44]line НДС 12% НСП 1% [19:40:44]line > о реализуемом товаре [19:40:44]line ИТОГО: 59.00 [19:40:44]line НСП 1% : 0.52 [19:40:44]line НДС 12% : 6.26 [19:40:44]line Наличными: 59.00 [19:40:44]line Безнал.: 0.00 [19:40:44]line Место: АЗС № 95 "Партнер Нефть" [19:40:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:40:44]line СНО: Общий режим [19:40:44]line Чек 124 17.08.2024 19:40 [19:40:44]line Смена: 465 ФФД: 1.0 [19:40:44]line ЗНМ: 0300000078 [19:40:44]line РНМ: 0000000000092546 [19:40:44]line Версия ККМ: 001 [19:40:44]line ФМ: 0000000000871800 [19:40:44]line ФД: 49687 [19:40:44]line ФПД: 88838901742523 [19:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T194048&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49687&fm=88838901742523&tin=02508201610067®Number=0000000000092546&sum=5900 [19:40:45]line 0 [19:40:45]OFD Sender: Processing packet 49687 [packets to send 21, broken 20] [19:40:45]ProducePacketName [19:40:45]name=ofd_packets/00049687 [19:40:45]OFD Sender: To server: pG, [19:40:45]CommunicateWithHost lk.salyk.kg:30040 [19:40:45]ConnectInit lk.salyk.kg [19:40:45]written 0, free lines is 4095 [19:40:45]Write to MH i2c: 01 00 00 35 2E 63 [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: 01 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: 01 07 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: 01 07 00 35 2E 00 00 00 00 00 E6 0C 5C [19:40:45]RasterBufferAndPrint [19:40:45]line [19:40:45]line [19:40:45]line [19:40:45]line [19:40:45]line [19:40:45]written 0, free lines is 3308 [19:40:45]MH_Cut [19:40:45]Write to MH i2c: D1 01 00 3C 2E 01 3C [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: D1 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: D1 01 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: D1 01 00 3C 2E 00 3B [19:40:45]Write to MH i2c: 01 00 00 3D 2E 6B [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]Connected sock=10 [19:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 C1 6E 25 01 EB E6 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C0 FC C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C2 00 00 35 04 06 00 50 CC 6B 2E 3B BB 01 7F C8 BA C6 D6 0B 1F [19:40:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C0 C6 47 00 B0 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C2 00 00 F4 03 04 00 FC A7 C0 66 B6 04 01 00 00 59 E2 A7 81 A1 4C 48 80 [19:40:46]CommunicateWithHost err = 0 [19:40:46]CheckOFDResponse [19:40:46]1017 (14) - 77093643461234 [19:40:46]1041 (16) - 0000000000871800 [19:40:46]1040 (4) - 49687 [19:40:46]1012 (4) - 17.08.2024 13:39 [19:40:46]1206 (1) - 0 [19:40:46]OFD Sender: Remove packet 49687 [19:40:46]ProducePacketName [19:40:46]name=ofd_packets/00049687 [19:40:46]NVStorageDeleteData [19:40:46]*** Cut start [19:40:46]*** Purtial cut [19:40:46]*** Stage 1: CUTSNS_PIN = 1 [19:40:46]Read from MH i2c: 01 [19:40:46]MH_I2C_Read... [19:40:46]*** Stop cut motor [19:40:46]*** Cut end [19:40:46]Read from MH i2c: 01 07 00 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: 01 07 00 3D 2E 00 00 00 00 00 FF 0F 80 [19:40:46]process_action close_receipt done [19:40:46]requested_data is exist [19:40:46]produce_requested_data [19:40:46]requested_item fm.sn is exist - process it [19:40:46]wFMCommunicate request_size=4 [19:40:46]MH_SAM_APDU [19:40:46]CAPDU: 80 11 00 00 [19:40:46]Write to MH i2c: E2 08 00 3E 2E 80 11 00 00 00 00 00 00 E6 [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:46]Read from MH i2c: E2 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 17 00 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 17 00 3E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 31 [19:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:40:46]wFMCommunicate OK [19:40:46]requested_item fd.num is exist - process it [19:40:46]SAM_PROTO_GetFieldsCounters [19:40:46]wFMCommunicate request_size=4 [19:40:46]MH_SAM_APDU [19:40:46]CAPDU: 80 13 00 00 [19:40:46]Write to MH i2c: E2 08 00 3F 2E 80 13 00 00 00 00 00 00 E9 [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:46]OFD Sender: No OFD packet to send [19:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:46]Read from MH i2c: E2 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 62 00 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: E2 62 00 3F 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 17 C2 00 00 0E 04 04 00 D1 01 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 22 [19:40: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 17 C2 00 00 0E 04 04 00 D1 01 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 [19:40:46]wFMCommunicate OK [19:40:46]SAM_PROTO_GetFieldsCounters done [19:40:46]requested_item shift.num is exist - process it [19:40:46]requested_item shift.opened is exist - process it [19:40:46]req_shift_opened [19:40:46]FM_GetShiftState [19:40:46]SAM_PROTO_GetShiftState [19:40:46]wFMCommunicate request_size=4 [19:40:46]MH_SAM_APDU [19:40:46]CAPDU: 80 13 01 00 [19:40:46]Write to MH i2c: E2 08 00 40 2E 80 13 01 00 00 00 00 00 EB [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:47]Read from MH i2c: E2 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 0E 00 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 0E 00 40 2E 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 30 [19:40:47]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:40:47]wFMCommunicate OK [19:40:47]SAM_PROTO_GetShiftState done [19:40:47]FM_GetShiftState done [19:40:47]req_shift_opened done [19:40:47]requested_item shift.open_date is exist - process it [19:40:47]req_shift_open_date [19:40:47]req_shift_open_date done [19:40:47]produce_requested_data done [19:40:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49687,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [19:40:47]process_action_free close_receipt [19:40:47]json_value_free [19:40:47]json_value_free done [19:40:47]process_json_proto returns [19:40:47]Send response to host [19:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49687,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [19:40:47]free response buf [19:40:47]execute_script done [19:40:47]execute_script returns [19:40:47]free content buf [19:40:47]Sock 9.Close socket [19:40:47]Sock 9.Thread stoped [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:18]int [19:42:18]Write to MH i2c: 01 00 00 41 2E 6F [19:42:18]*** FLAG_PRN_KEY set [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 07 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 07 00 41 2E 00 08 00 00 00 FF 0F 8C [19:42:18]state=0 [19:42:18]Key pressed [19:42:18]Feed [19:42:18]Write to MH i2c: D8 00 00 42 2E 47 [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: D8 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: D8 01 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: D8 01 00 42 2E 00 48 [19:42:18]int [19:42:18]Write to MH i2c: 01 00 00 43 2E 71 [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 07 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 07 00 43 2E 00 48 00 00 00 3C 00 FC [19:42:18]state=2 [19:42:18]Key pressed [19:42:18]int [19:42:18]Write to MH i2c: 01 00 00 44 2E 72 [19:42:18]*** FLAG_PRN_KEY reset [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 07 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 07 00 44 2E 00 00 00 00 00 F6 0F 7E [19:42:18]state=2 [19:42:18]Stop feed [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:52]accept exits with 7 [19:47:52]New connection [19:47:52]New thread 3066944868 created [19:47:52]Thread 3066801508 joined [19:47:52]Waiting for new connection... [19:47:52] Sock 7.Parse request [19:47:52]Sock 7.Check first char [19:47:52]Sock 7.First char is OK [19:47:52]request: POST /json_proto HTTP/1.0 [19:47:52]Method: POST [19:47:52]URL: /json_proto [19:47:52]Method is POST - this is cgi request [19:47:52]url: /json_proto [19:47:52]query_string will be loaded in cgi processing [19:47:52]execute_cgi json_proto POST (null) [19:47:52]execute_cgi path=json_proto method=POST [19:47:52]POST find Content-Length [19:47:52]Host: 172.17.46.196:8080 [19:47:52]Content-Length: 783 [19:47:52]Content-Type: application/json [19:47:52] [19:47:52]POST finish read [19:47:52]Found Content-Length = 783 [19:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189870", "tax_sys" : 0, "items" : [ { "code": "4860114390178", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0422\u0430\u0440\u0445", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:52]execute_script... [19:47:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189870", "tax_sys" : 0, "items" : [ { "code": "4860114390178", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0422\u0430\u0440\u0445", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:52]POST & json_proto [19:47:52]process_json_proto [19:47:52]json parsed OK: [19:47:52]protocol is kg_v1.0 [19:47:52]action value=close_receipt [19:47:52]process_action close_receipt [19:47:52]cmd_close_receipt [19:47:52]MH_GetDate [19:47:52]Write to MH i2c: F0 00 00 45 2E 62 [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: F0 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: F0 09 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: F0 09 00 45 2E 00 6D FE C0 66 07 E8 5D 66 AE [19:47:52]GetLastDocTimeStamp 1723923648 [19:47:52]current date 1723924077 [19:47:52]FM_GetShiftState [19:47:52]SAM_PROTO_GetShiftState [19:47:52]wFMCommunicate request_size=4 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 13 01 00 [19:47:52]Write to MH i2c: E2 08 00 46 2E 80 13 01 00 00 00 00 00 F1 [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 0E 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 0E 00 46 2E 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 36 [19:47:52]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:47:52]wFMCommunicate OK [19:47:52]SAM_PROTO_GetShiftState done [19:47:52]FM_GetShiftState done [19:47:52]opened in 1723853354 [19:47:52]opened+sec_in_day 1723939754 [19:47:52]quantity*price = 15500 [19:47:52]sum+1 = 15501 [19:47:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 125 17.08.2024 19:47 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49688 ФПД: 97073522294378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T194757&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49688&fm=97073522294378&tin=02508201610067®Number=0000000000092546&sum=15500 0 [19:47:53]StoreToDocumentArchive [19:47:53]shift 465 fd 49688 [19:47:53]save to /storage/0465/doc_00049688 [19:47:53]save last doc name /storage/0465/doc_00049688 to /storage/kkm_last_doc_name [19:47:53]save OK [19:47:53]Clear old archive folders... [19:47:53]ProcessDocumentItem done err = 0, tmpTLVsize=319 [19:47:53]tlvbuf is 01898780 [19:47:53]SAM_PROTO_ClearQueue [19:47:53]wFMCommunicate request_size=4 [19:47:53]MH_SAM_APDU [19:47:53]CAPDU: 80 09 00 00 [19:47:53]Write to MH i2c: E2 08 00 53 2E 80 09 00 00 00 00 00 00 F3 [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:53]Read from MH i2c: E2 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 03 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 03 00 53 2E 00 90 00 F5 [19:47:53]RAPDU: 90 00 [19:47:53]wFMCommunicate OK [19:47:53]SAM_PROTO_ClearQueue done [19:47:53]KKMCreateOFDPacket [19:47:53]OFDProtocolAddRootSTLVToBuf [19:47:53]FM_MakeSignedData [19:47:53]FM_MakeSignedData [19:47:53]SAM_PROTO_SignData [19:47:53]wFMCommunicate request_size=4 [19:47:53]MH_SAM_APDU [19:47:53]CAPDU: 80 0D 01 02 [19:47:53]Write to MH i2c: E2 08 00 54 2E 80 0D 01 02 00 00 00 00 FB [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:53]Read from MH i2c: E2 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 03 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 03 00 54 2E 00 90 00 F6 [19:47:53]RAPDU: 90 00 [19:47:53]wFMCommunicate OK [19:47:53]wFMCommunicate request_size=255 [19:47:53]MH_SAM_APDU [19:47:53]CAPDU: 80 0D 02 02 FA 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 6D FE [19:47:53]Write to MH i2c: E2 02 01 55 2E 80 0D 02 02 FA 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 6D FE 00 00 C2 [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:53]Read from MH i2c: E2 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 03 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 03 00 55 2E 00 90 00 F7 [19:47:53]RAPDU: 90 00 [19:47:53]wFMCommunicate OK [19:47:53]wFMCommunicate request_size=78 [19:47:53]MH_SAM_APDU [19:47:53]CAPDU: 80 0D 02 02 49 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C2 00 00 35 04 06 00 58 49 B0 D0 3E 6A [19:47:53]Write to MH i2c: E2 51 00 56 2E 80 0D 02 02 49 00 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C2 00 00 35 04 06 00 58 49 B0 D0 3E 6A 00 00 CF [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:53]Read from MH i2c: E2 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 03 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 03 00 56 2E 00 90 00 F8 [19:47:53]RAPDU: 90 00 [19:47:53]wFMCommunicate OK [19:47:53]wFMCommunicate request_size=4 [19:47:53]MH_SAM_APDU [19:47:53]CAPDU: 80 0D 03 02 [19:47:53]Write to MH i2c: E2 08 00 57 2E 80 0D 03 02 00 00 00 00 00 [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:53]Read from MH i2c: E2 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 0B 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 0B 00 57 2E 00 2B F2 2F 2A 5A 62 07 AA 90 00 E4 [19:47:53]RAPDU: 2B F2 2F 2A 5A 62 07 AA 90 00 [19:47:53]wFMCommunicate OK [19:47:53]SAM_PROTO_SignData done [19:47:53]FM_MakeSignedData done [19:47:53]CreateOFDProtocolMessage [19:47:53]wFMCommunicate request_size=4 [19:47:53]MH_SAM_APDU [19:47:53]CAPDU: 80 11 00 00 [19:47:53]Write to MH i2c: E2 08 00 58 2E 80 11 00 00 00 00 00 00 00 [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:54]Read from MH i2c: E2 [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: E2 17 00 [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: E2 17 00 58 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4B [19:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:47:54]wFMCommunicate OK [19:47:54]CreateOFDProtocolMessage done [19:47:54]OFDSenderStorePacket 49688 [19:47:54]StoreOFDPacket docnum=49688 [19:47:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 53 01 00 00 E0 7C 4B 01 BB 50 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 6D FE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C2 00 00 35 04 06 00 58 49 B0 D0 3E 6A 2B F2 2F 2A 5A 62 07 AA [19:47:54]CheckFolder [19:47:54]dirname=/storage/ofd_packets [19:47:54]CheckFolder done [19:47:54]ProducePacketName [19:47:54]name=ofd_packets/00049688 [19:47:54]NVStorageSaveData ofd_packets/00049688 [19:47:54]File name is /storage/ofd_packets/00049688 [19:47:54]Write 369 bytes [19:47:54]NVStorageSaveData done [19:47:54]OFDSenderStorePacket done [19:47:54]KKMCreateOFDPacket done [19:47:54]NVStorageSaveData kkm_last_timestamp [19:47:54]File name is /storage/kkm_last_timestamp [19:47:54]Write 4 bytes [19:47:54]NVStorageSaveData done [19:47:54]ExternCall_PrintAddStr [19:47:54]wPrintStart [19:47:54]Write to MH i2c: 01 00 00 59 2E 87 [19:47:54]Write i2c OK [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: 01 [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: 01 07 00 [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: 01 07 00 59 2E 00 00 00 00 00 FF 0F 9C [19:47:54]RasterBufferAndPrint [19:47:54]line Счет N : (3)189870 [19:47:54]line ИНН: 02508201610067 [19:47:54]line Контрольно-Кассовый Чек [19:47:54]line ПРОДАЖА [19:47:54]line Товар: 4860114390178 [19:47:54]line Напиток безалкогольный газированный Тарх [19:47:54]line 1.000 * 155.00 [19:47:54]line = 155.00 [19:47:54]line НДС 12% НСП 1% [19:47:54]line > о реализуемом товаре [19:47:54]line ИТОГО: 155.00 [19:47:54]line НСП 1% : 1.37 [19:47:54]line НДС 12% : 16.46 [19:47:54]line Наличными: 155.00 [19:47:54]line Безнал.: 0.00 [19:47:54]line Место: АЗС № 95 "Партнер Нефть" [19:47:54]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:47:54]line СНО: Общий режим [19:47:54]line Чек 125 17.08.2024 19:47 [19:47:54]line Смена: 465 ФФД: 1.0 [19:47:54]line ЗНМ: 0300000078 [19:47:54]line РНМ: 0000000000092546 [19:47:54]line Версия ККМ: 001 [19:47:54]line ФМ: 0000000000871800 [19:47:54]line ФД: 49688 [19:47:54]line ФПД: 97073522294378 [19:47:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T194757&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49688&fm=97073522294378&tin=02508201610067®Number=0000000000092546&sum=15500 [19:47:54]line 0 [19:47:54]OFD Sender: Processing packet 49688 [packets to send 21, broken 20] [19:47:54]ProducePacketName [19:47:54]name=ofd_packets/00049688 [19:47:54]OFD Sender: To server: pG, [19:47:54]CommunicateWithHost lk.salyk.kg:30040 [19:47:54]ConnectInit lk.salyk.kg [19:47:54]written 0, free lines is 4095 [19:47:54]Connected sock=10 [19:47:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 53 01 00 00 E0 7C 4B 01 BB 50 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 6D FE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C2 00 00 35 04 06 00 58 49 B0 D0 3E 6A 2B F2 2F 2A 5A 62 07 AA [19:47:54]Write to MH i2c: 01 00 00 82 2E B0 [19:47:54]Write i2c OK [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: 01 [19:47:54]MH_I2C_Read... [19:47:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5D 04 47 00 CD F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C2 00 00 F4 03 04 00 A8 A9 C0 66 B6 04 01 00 00 DA 28 0C 55 E5 90 F2 DB [19:47:54]CommunicateWithHost err = 0 [19:47:54]CheckOFDResponse [19:47:54]1017 (14) - 77093643461234 [19:47:54]1041 (16) - 0000000000871800 [19:47:54]1040 (4) - 49688 [19:47:54]1012 (4) - 17.08.2024 13:46 [19:47:54]1206 (1) - 0 [19:47:54]OFD Sender: Remove packet 49688 [19:47:54]ProducePacketName [19:47:54]name=ofd_packets/00049688 [19:47:54]NVStorageDeleteData [19:47:54]Read from MH i2c: 01 07 00 [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: 01 07 00 82 2E 00 00 00 00 00 D3 0C 96 [19:47:54]RasterBufferAndPrint [19:47:54]line [19:47:54]line [19:47:54]line [19:47:54]line [19:47:54]line [19:47:54]written 0, free lines is 3300 [19:47:54]MH_Cut [19:47:54]Write to MH i2c: D1 01 00 89 2E 01 89 [19:47:54]Write i2c OK [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: D1 [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: D1 01 00 [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: D1 01 00 89 2E 00 88 [19:47:54]Write to MH i2c: 01 00 00 8A 2E B8 [19:47:54]Write i2c OK [19:47:54]MH_I2C_Read... [19:47:55]OFD Sender: No OFD packet to send [19:47:55]*** Cut start [19:47:55]*** Purtial cut [19:47:55]*** CUTSNS_PIN = 0 [19:47:55]*** Stage 1: CUTSNS_PIN = 1 [19:47:57]Read from MH i2c: 01 [19:47:57]MH_I2C_Read... [19:47:57]*** Stop cut motor [19:47:57]*** Cut end [19:47:57]Read from MH i2c: 01 07 00 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: 01 07 00 8A 2E 00 00 00 00 00 FF 0F CD [19:47:57]process_action close_receipt done [19:47:57]requested_data is exist [19:47:57]produce_requested_data [19:47:57]requested_item fm.sn is exist - process it [19:47:57]wFMCommunicate request_size=4 [19:47:57]MH_SAM_APDU [19:47:57]CAPDU: 80 11 00 00 [19:47:57]Write to MH i2c: E2 08 00 8B 2E 80 11 00 00 00 00 00 00 33 [19:47:57]Write i2c OK [19:47:57]MH_I2C_Read... [19:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:57]Read from MH i2c: E2 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 17 00 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 17 00 8B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7E [19:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:47:57]wFMCommunicate OK [19:47:57]requested_item fd.num is exist - process it [19:47:57]SAM_PROTO_GetFieldsCounters [19:47:57]wFMCommunicate request_size=4 [19:47:57]MH_SAM_APDU [19:47:57]CAPDU: 80 13 00 00 [19:47:57]Write to MH i2c: E2 08 00 8C 2E 80 13 00 00 00 00 00 00 36 [19:47:57]Write i2c OK [19:47:57]MH_I2C_Read... [19:47:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:57]Read from MH i2c: E2 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 62 00 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 62 00 8C 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 18 C2 00 00 0E 04 04 00 D1 01 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 73 [19:47: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 18 C2 00 00 0E 04 04 00 D1 01 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 [19:47:57]wFMCommunicate OK [19:47:57]SAM_PROTO_GetFieldsCounters done [19:47:57]requested_item shift.num is exist - process it [19:47:57]requested_item shift.opened is exist - process it [19:47:57]req_shift_opened [19:47:57]FM_GetShiftState [19:47:57]SAM_PROTO_GetShiftState [19:47:57]wFMCommunicate request_size=4 [19:47:57]MH_SAM_APDU [19:47:57]CAPDU: 80 13 01 00 [19:47:57]Write to MH i2c: E2 08 00 8D 2E 80 13 01 00 00 00 00 00 38 [19:47:57]Write i2c OK [19:47:57]MH_I2C_Read... [19:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:57]Read from MH i2c: E2 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 0E 00 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 0E 00 8D 2E 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 7D [19:47:57]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:47:57]wFMCommunicate OK [19:47:57]SAM_PROTO_GetShiftState done [19:47:57]FM_GetShiftState done [19:47:57]req_shift_opened done [19:47:57]requested_item shift.open_date is exist - process it [19:47:57]req_shift_open_date [19:47:57]req_shift_open_date done [19:47:57]produce_requested_data done [19:47:57]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49688,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [19:47:57]process_action_free close_receipt [19:47:57]json_value_free [19:47:57]json_value_free done [19:47:57]process_json_proto returns [19:47:57]Send response to host [19:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49688,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [19:47:57]free response buf [19:47:57]execute_script done [19:47:57]execute_script returns [19:47:57]free content buf [19:47:57]Sock 7.Close socket [19:47:57]Sock 7.Thread stoped [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:22]accept exits with 9 [19:48:22]New connection [19:48:22]New thread 3066801508 created [19:48:22]Thread 3066944868 joined [19:48:22]Waiting for new connection... [19:48:22] Sock 9.Parse request [19:48:22]Sock 9.Check first char [19:48:22]Sock 9.First char is OK [19:48:22]request: POST /json_proto HTTP/1.0 [19:48:22]Method: POST [19:48:22]URL: /json_proto [19:48:22]Method is POST - this is cgi request [19:48:22]url: /json_proto [19:48:22]query_string will be loaded in cgi processing [19:48:22]execute_cgi json_proto POST (null) [19:48:22]execute_cgi path=json_proto method=POST [19:48:22]POST find Content-Length [19:48:22]Host: 172.17.46.196:8080 [19:48:22]Content-Length: 669 [19:48:22]Content-Type: application/json [19:48:22] [19:48:22]POST finish read [19:48:22]Found Content-Length = 669 [19:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189871", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:22]execute_script... [19:48:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189871", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:22]POST & json_proto [19:48:22]process_json_proto [19:48:22]json parsed OK: [19:48:22]protocol is kg_v1.0 [19:48:22]action value=close_receipt [19:48:22]process_action close_receipt [19:48:22]cmd_close_receipt [19:48:22]MH_GetDate [19:48:22]Write to MH i2c: F0 00 00 8E 2E AB [19:48:22]Write i2c OK [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: F0 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: F0 09 00 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: F0 09 00 8E 2E 00 8B FE C0 66 07 E8 5D 66 15 [19:48:22]GetLastDocTimeStamp 1723924077 [19:48:22]current date 1723924107 [19:48:22]FM_GetShiftState [19:48:22]SAM_PROTO_GetShiftState [19:48:22]wFMCommunicate request_size=4 [19:48:22]MH_SAM_APDU [19:48:22]CAPDU: 80 13 01 00 [19:48:22]Write to MH i2c: E2 08 00 8F 2E 80 13 01 00 00 00 00 00 3A [19:48:22]Write i2c OK [19:48:22]MH_I2C_Read... [19:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:22]Read from MH i2c: E2 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: E2 0E 00 [19:48:22]MH_I2C_Read... [19:48:22]Read from MH i2c: E2 0E 00 8F 2E 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 7F [19:48:22]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:48:22]wFMCommunicate OK [19:48:22]SAM_PROTO_GetShiftState done [19:48:22]FM_GetShiftState done [19:48:22]opened in 1723853354 [19:48:22]opened+sec_in_day 1723939754 [19:48:22]quantity*price = 6500 [19:48:22]sum+1 = 6501 [19:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 126 17.08.2024 19:48 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49689 ФПД: 168036933738245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T194827&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49689&fm=168036933738245&tin=02508201610067®Number=0000000000092546&sum=6500 0 [19:48:23]StoreToDocumentArchive [19:48:23]shift 465 fd 49689 [19:48:23]save to /storage/0465/doc_00049689 [19:48:23]save last doc name /storage/0465/doc_00049689 to /storage/kkm_last_doc_name [19:48:23]save OK [19:48:23]Clear old archive folders... [19:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=284 [19:48:23]tlvbuf is 018A3940 [19:48:23]SAM_PROTO_ClearQueue [19:48:23]wFMCommunicate request_size=4 [19:48:23]MH_SAM_APDU [19:48:23]CAPDU: 80 09 00 00 [19:48:23]Write to MH i2c: E2 08 00 9C 2E 80 09 00 00 00 00 00 00 3C [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:23]Read from MH i2c: E2 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 03 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 03 00 9C 2E 00 90 00 3E [19:48:23]RAPDU: 90 00 [19:48:23]wFMCommunicate OK [19:48:23]SAM_PROTO_ClearQueue done [19:48:23]KKMCreateOFDPacket [19:48:23]OFDProtocolAddRootSTLVToBuf [19:48:23]FM_MakeSignedData [19:48:23]FM_MakeSignedData [19:48:23]SAM_PROTO_SignData [19:48:23]wFMCommunicate request_size=4 [19:48:23]MH_SAM_APDU [19:48:23]CAPDU: 80 0D 01 02 [19:48:23]Write to MH i2c: E2 08 00 9D 2E 80 0D 01 02 00 00 00 00 44 [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:23]Read from MH i2c: E2 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 03 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 03 00 9D 2E 00 90 00 3F [19:48:23]RAPDU: 90 00 [19:48:23]wFMCommunicate OK [19:48:23]wFMCommunicate request_size=255 [19:48:23]MH_SAM_APDU [19:48:23]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8B FE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [19:48:23]Write to MH i2c: E2 02 01 9E 2E 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8B FE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 D0 [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:23]Read from MH i2c: E2 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 03 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 03 00 9E 2E 00 90 00 40 [19:48:23]RAPDU: 90 00 [19:48:23]wFMCommunicate OK [19:48:23]wFMCommunicate request_size=43 [19:48:23]MH_SAM_APDU [19:48:23]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C2 00 00 35 04 06 00 98 D4 25 BE 9F 05 [19:48:23]Write to MH i2c: E2 2E 00 9F 2E 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C2 00 00 35 04 06 00 98 D4 25 BE 9F 05 00 00 F5 [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:23]Read from MH i2c: E2 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 03 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 03 00 9F 2E 00 90 00 41 [19:48:23]RAPDU: 90 00 [19:48:23]wFMCommunicate OK [19:48:23]wFMCommunicate request_size=4 [19:48:23]MH_SAM_APDU [19:48:23]CAPDU: 80 0D 03 02 [19:48:23]Write to MH i2c: E2 08 00 A0 2E 80 0D 03 02 00 00 00 00 49 [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:23]Read from MH i2c: E2 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 0B 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 0B 00 A0 2E 00 6D B1 71 EF B7 2E 23 D4 90 00 A4 [19:48:23]RAPDU: 6D B1 71 EF B7 2E 23 D4 90 00 [19:48:23]wFMCommunicate OK [19:48:23]SAM_PROTO_SignData done [19:48:23]FM_MakeSignedData done [19:48:23]CreateOFDProtocolMessage [19:48:23]wFMCommunicate request_size=4 [19:48:23]MH_SAM_APDU [19:48:23]CAPDU: 80 11 00 00 [19:48:23]Write to MH i2c: E2 08 00 A1 2E 80 11 00 00 00 00 00 00 49 [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:23]Read from MH i2c: E2 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 17 00 [19:48:23]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 17 00 A1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 94 [19:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:48:24]wFMCommunicate OK [19:48:24]CreateOFDProtocolMessage done [19:48:24]OFDSenderStorePacket 49689 [19:48:24]StoreOFDPacket docnum=49689 [19:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 0B 8F 28 01 98 0F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8B FE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C2 00 00 35 04 06 00 98 D4 25 BE 9F 05 6D B1 71 EF B7 2E 23 D4 [19:48:24]CheckFolder [19:48:24]dirname=/storage/ofd_packets [19:48:24]CheckFolder done [19:48:24]ProducePacketName [19:48:24]name=ofd_packets/00049689 [19:48:24]NVStorageSaveData ofd_packets/00049689 [19:48:24]File name is /storage/ofd_packets/00049689 [19:48:24]Write 334 bytes [19:48:24]NVStorageSaveData done [19:48:24]OFDSenderStorePacket done [19:48:24]KKMCreateOFDPacket done [19:48:24]NVStorageSaveData kkm_last_timestamp [19:48:24]File name is /storage/kkm_last_timestamp [19:48:24]Write 4 bytes [19:48:24]NVStorageSaveData done [19:48:24]ExternCall_PrintAddStr [19:48:24]wPrintStart [19:48:24]Write to MH i2c: 01 00 00 A2 2E D0 [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: 01 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: 01 07 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: 01 07 00 A2 2E 00 00 00 00 00 FF 0F E5 [19:48:24]RasterBufferAndPrint [19:48:24]line Счет N : (3)189871 [19:48:24]line ИНН: 02508201610067 [19:48:24]line Контрольно-Кассовый Чек [19:48:24]line ПРОДАЖА [19:48:24]line Товар: 4700040114137 [19:48:24]line Султан чай 1л. зел лимон [19:48:24]line 1.000 * 65.00 [19:48:24]line = 65.00 [19:48:24]line НДС 12% НСП 1% [19:48:24]line > о реализуемом товаре [19:48:24]line ИТОГО: 65.00 [19:48:24]line НСП 1% : 0.57 [19:48:24]line НДС 12% : 6.90 [19:48:24]line Наличными: 65.00 [19:48:24]line Безнал.: 0.00 [19:48:24]line Место: АЗС № 95 "Партнер Нефть" [19:48:24]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:48:24]line СНО: Общий режим [19:48:24]line Чек 126 17.08.2024 19:48 [19:48:24]line Смена: 465 ФФД: 1.0 [19:48:24]line ЗНМ: 0300000078 [19:48:24]line РНМ: 0000000000092546 [19:48:24]line Версия ККМ: 001 [19:48:24]line ФМ: 0000000000871800 [19:48:24]line ФД: 49689 [19:48:24]line ФПД: 168036933738245 [19:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T194827&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49689&fm=168036933738245&tin=02508201610067®Number=0000000000092546&sum=6500 [19:48:24]line 0 [19:48:24]OFD Sender: Processing packet 49689 [packets to send 21, broken 20] [19:48:24]ProducePacketName [19:48:24]name=ofd_packets/00049689 [19:48:24]OFD Sender: To server: pG, [19:48:24]CommunicateWithHost lk.salyk.kg:30040 [19:48:24]ConnectInit lk.salyk.kg [19:48:24]written 0, free lines is 4095 [19:48:24]Connected sock=10 [19:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 0B 8F 28 01 98 0F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8B FE C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C2 00 00 35 04 06 00 98 D4 25 BE 9F 05 6D B1 71 EF B7 2E 23 D4 [19:48:24]Write to MH i2c: 01 00 00 CA 2E F8 [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: 01 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: 01 07 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: 01 07 00 CA 2E 00 00 00 00 00 F1 0C FC [19:48:24]RasterBufferAndPrint [19:48:24]line [19:48:24]line [19:48:24]line [19:48:24]line [19:48:24]line [19:48:24]written 0, free lines is 3319 [19:48:24]MH_Cut [19:48:24]Write to MH i2c: D1 01 00 D1 2E 01 D1 [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: D1 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: D1 01 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: D1 01 00 D1 2E 00 D0 [19:48:24]Write to MH i2c: 01 00 00 D2 2E 00 [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A9 59 47 00 FE 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 31 38 30 30 10 04 04 00 19 C2 00 00 F4 03 04 00 C6 A9 C0 66 B6 04 01 00 00 E4 D6 75 77 F3 60 1E 6A [19:48:24]CommunicateWithHost err = 0 [19:48:24]CheckOFDResponse [19:48:24]1017 (14) - 77093643461234 [19:48:24]1041 (16) - 0000000000871800 [19:48:24]1040 (4) - 49689 [19:48:24]1012 (4) - 17.08.2024 13:46 [19:48:24]1206 (1) - 0 [19:48:24]OFD Sender: Remove packet 49689 [19:48:24]ProducePacketName [19:48:24]name=ofd_packets/00049689 [19:48:24]NVStorageDeleteData [19:48:25]OFD Sender: No OFD packet to send [19:48:25]*** Cut start [19:48:25]*** Purtial cut [19:48:25]*** Stage 1: CUTSNS_PIN = 1 [19:48:25]Read from MH i2c: 01 [19:48:25]MH_I2C_Read... [19:48:25]*** Stop cut motor [19:48:25]*** Cut end [19:48:25]Read from MH i2c: 01 07 00 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: 01 07 00 D2 2E 00 00 00 00 00 FF 0F 15 [19:48:25]process_action close_receipt done [19:48:25]requested_data is exist [19:48:25]produce_requested_data [19:48:25]requested_item fm.sn is exist - process it [19:48:25]wFMCommunicate request_size=4 [19:48:25]MH_SAM_APDU [19:48:25]CAPDU: 80 11 00 00 [19:48:25]Write to MH i2c: E2 08 00 D3 2E 80 11 00 00 00 00 00 00 7B [19:48:25]Write i2c OK [19:48:25]MH_I2C_Read... [19:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:25]Read from MH i2c: E2 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: E2 17 00 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: E2 17 00 D3 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C6 [19:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:48:25]wFMCommunicate OK [19:48:25]requested_item fd.num is exist - process it [19:48:25]SAM_PROTO_GetFieldsCounters [19:48:25]wFMCommunicate request_size=4 [19:48:25]MH_SAM_APDU [19:48:25]CAPDU: 80 13 00 00 [19:48:25]Write to MH i2c: E2 08 00 D4 2E 80 13 00 00 00 00 00 00 7E [19:48:25]Write i2c OK [19:48:25]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 62 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 62 00 D4 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 19 C2 00 00 0E 04 04 00 D1 01 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 BF [19:48: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 19 C2 00 00 0E 04 04 00 D1 01 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 [19:48:26]wFMCommunicate OK [19:48:26]SAM_PROTO_GetFieldsCounters done [19:48:26]requested_item shift.num is exist - process it [19:48:26]requested_item shift.opened is exist - process it [19:48:26]req_shift_opened [19:48:26]FM_GetShiftState [19:48:26]SAM_PROTO_GetShiftState [19:48:26]wFMCommunicate request_size=4 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 13 01 00 [19:48:26]Write to MH i2c: E2 08 00 D5 2E 80 13 01 00 00 00 00 00 80 [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 0E 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 0E 00 D5 2E 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 C5 [19:48:26]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:48:26]wFMCommunicate OK [19:48:26]SAM_PROTO_GetShiftState done [19:48:26]FM_GetShiftState done [19:48:26]req_shift_opened done [19:48:26]requested_item shift.open_date is exist - process it [19:48:26]req_shift_open_date [19:48:26]req_shift_open_date done [19:48:26]produce_requested_data done [19:48:26]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49689,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [19:48:26]process_action_free close_receipt [19:48:26]json_value_free [19:48:26]json_value_free done [19:48:26]process_json_proto returns [19:48:26]Send response to host [19:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49689,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [19:48:26]free response buf [19:48:26]execute_script done [19:48:26]execute_script returns [19:48:26]free content buf [19:48:26]Sock 9.Close socket [19:48:26]Sock 9.Thread stoped [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:52:56]accept exits with 7 [19:52:56]New connection [19:52:56]New thread 3066944868 created [19:52:56]Thread 3066801508 joined [19:52:56]Waiting for new connection... [19:52:56] Sock 7.Parse request [19:52:56]Sock 7.Check first char [19:52:56]Sock 7.First char is OK [19:52:56]request: POST /json_proto HTTP/1.0 [19:52:56]Method: POST [19:52:56]URL: /json_proto [19:52:56]Method is POST - this is cgi request [19:52:56]url: /json_proto [19:52:56]query_string will be loaded in cgi processing [19:52:56]execute_cgi json_proto POST (null) [19:52:56]execute_cgi path=json_proto method=POST [19:52:56]POST find Content-Length [19:52:56]Host: 172.17.46.196:8080 [19:52:56]Content-Length: 893 [19:52:56]Content-Type: application/json [19:52:56] [19:52:56]POST finish read [19:52:56]Found Content-Length = 893 [19:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189872", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 266.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:56]execute_script... [19:52:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189872", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 266.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:56]POST & json_proto [19:52:56]process_json_proto [19:52:56]json parsed OK: [19:52:56]protocol is kg_v1.0 [19:52:56]action value=close_receipt [19:52:56]process_action close_receipt [19:52:56]cmd_close_receipt [19:52:56]MH_GetDate [19:52:56]Write to MH i2c: F0 00 00 D6 2E F3 [19:52:56]Write i2c OK [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: F0 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: F0 09 00 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: F0 09 00 D6 2E 00 9D FF C0 66 07 E8 5D 66 70 [19:52:56]GetLastDocTimeStamp 1723924107 [19:52:56]current date 1723924381 [19:52:56]FM_GetShiftState [19:52:56]SAM_PROTO_GetShiftState [19:52:56]wFMCommunicate request_size=4 [19:52:56]MH_SAM_APDU [19:52:56]CAPDU: 80 13 01 00 [19:52:56]Write to MH i2c: E2 08 00 D7 2E 80 13 01 00 00 00 00 00 82 [19:52:56]Write i2c OK [19:52:56]MH_I2C_Read... [19:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:56]Read from MH i2c: E2 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: E2 0E 00 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: E2 0E 00 D7 2E 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 C7 [19:52:56]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:52:56]wFMCommunicate OK [19:52:56]SAM_PROTO_GetShiftState done [19:52:56]FM_GetShiftState done [19:52:56]opened in 1723853354 [19:52:56]opened+sec_in_day 1723939754 [19:52:56]quantity*price = 15500 [19:52:56]sum+1 = 15501 [19:52:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 266.00 НСП 1% : 2.35 НДС 12% : 28.25 Наличными: 266.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 127 17.08.2024 19:53 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49690 ФПД: 62758451776732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T195301&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49690&fm=62758451776732&tin=02508201610067®Number=0000000000092546&sum=26600 0 [19:52:57]StoreToDocumentArchive [19:52:57]shift 465 fd 49690 [19:52:57]save to /storage/0465/doc_00049690 [19:52:57]save last doc name /storage/0465/doc_00049690 to /storage/kkm_last_doc_name [19:52:57]save OK [19:52:57]Clear old archive folders... [19:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=383 [19:52:57]tlvbuf is 018A3600 [19:52:57]SAM_PROTO_ClearQueue [19:52:57]wFMCommunicate request_size=4 [19:52:57]MH_SAM_APDU [19:52:57]CAPDU: 80 09 00 00 [19:52:57]Write to MH i2c: E2 08 00 E4 2E 80 09 00 00 00 00 00 00 84 [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:57]Read from MH i2c: E2 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 03 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 03 00 E4 2E 00 90 00 86 [19:52:57]RAPDU: 90 00 [19:52:57]wFMCommunicate OK [19:52:57]SAM_PROTO_ClearQueue done [19:52:57]KKMCreateOFDPacket [19:52:57]OFDProtocolAddRootSTLVToBuf [19:52:57]FM_MakeSignedData [19:52:57]FM_MakeSignedData [19:52:57]SAM_PROTO_SignData [19:52:57]wFMCommunicate request_size=4 [19:52:57]MH_SAM_APDU [19:52:57]CAPDU: 80 0D 01 02 [19:52:57]Write to MH i2c: E2 08 00 E5 2E 80 0D 01 02 00 00 00 00 8C [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:57]Read from MH i2c: E2 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 03 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 03 00 E5 2E 00 90 00 87 [19:52:57]RAPDU: 90 00 [19:52:57]wFMCommunicate OK [19:52:57]wFMCommunicate request_size=255 [19:52:57]MH_SAM_APDU [19:52:57]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB [19:52:57]Write to MH i2c: E2 02 01 E6 2E 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 50 [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:57]Read from MH i2c: E2 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 03 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 03 00 E6 2E 00 90 00 88 [19:52:57]RAPDU: 90 00 [19:52:57]wFMCommunicate OK [19:52:57]wFMCommunicate request_size=142 [19:52:57]MH_SAM_APDU [19:52:57]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0B 00 00 00 00 07 04 06 00 E8 67 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 9D FF C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C2 00 00 35 04 06 00 39 14 17 39 8C DC [19:52:57]Write to MH i2c: E2 91 00 E7 2E 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0B 00 00 00 00 07 04 06 00 E8 67 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 9D FF C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C2 00 00 35 04 06 00 39 14 17 39 8C DC 00 00 1E [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:58]Read from MH i2c: E2 [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: E2 03 00 [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: E2 03 00 E7 2E 00 90 00 89 [19:52:58]RAPDU: 90 00 [19:52:58]wFMCommunicate OK [19:52:58]wFMCommunicate request_size=4 [19:52:58]MH_SAM_APDU [19:52:58]CAPDU: 80 0D 03 02 [19:52:58]Write to MH i2c: E2 08 00 E8 2E 80 0D 03 02 00 00 00 00 91 [19:52:58]Write i2c OK [19:52:58]MH_I2C_Read... [19:52:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:58]Read from MH i2c: E2 [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: E2 0B 00 [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: E2 0B 00 E8 2E 00 F3 F9 D8 E4 D8 94 A9 2B 90 00 7A [19:52:58]RAPDU: F3 F9 D8 E4 D8 94 A9 2B 90 00 [19:52:58]wFMCommunicate OK [19:52:58]SAM_PROTO_SignData done [19:52:58]FM_MakeSignedData done [19:52:58]CreateOFDProtocolMessage [19:52:58]wFMCommunicate request_size=4 [19:52:58]MH_SAM_APDU [19:52:58]CAPDU: 80 11 00 00 [19:52:58]Write to MH i2c: E2 08 00 E9 2E 80 11 00 00 00 00 00 00 91 [19:52:58]Write i2c OK [19:52:58]MH_I2C_Read... [19:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:58]Read from MH i2c: E2 [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: E2 17 00 [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: E2 17 00 E9 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DC [19:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:52:58]wFMCommunicate OK [19:52:58]CreateOFDProtocolMessage done [19:52:58]OFDSenderStorePacket 49690 [19:52:58]StoreOFDPacket docnum=49690 [19:52:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 93 01 00 00 D3 E0 8B 01 33 B4 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0B 00 00 00 00 07 04 06 00 E8 67 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 9D FF C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C2 00 00 35 04 06 00 39 14 17 39 8C DC F3 F9 D8 E4 D8 94 A9 2B [19:52:58]CheckFolder [19:52:58]dirname=/storage/ofd_packets [19:52:58]CheckFolder done [19:52:58]ProducePacketName [19:52:58]name=ofd_packets/00049690 [19:52:58]NVStorageSaveData ofd_packets/00049690 [19:52:58]File name is /storage/ofd_packets/00049690 [19:52:58]Write 433 bytes [19:52:58]NVStorageSaveData done [19:52:58]OFDSenderStorePacket done [19:52:58]KKMCreateOFDPacket done [19:52:58]NVStorageSaveData kkm_last_timestamp [19:52:58]File name is /storage/kkm_last_timestamp [19:52:58]Write 4 bytes [19:52:58]NVStorageSaveData done [19:52:58]ExternCall_PrintAddStr [19:52:58]wPrintStart [19:52:58]Write to MH i2c: 01 00 00 EA 2E 18 [19:52:58]Write i2c OK [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: 01 [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: 01 07 00 [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: 01 07 00 EA 2E 00 00 00 00 00 FF 0F 2D [19:52:58]RasterBufferAndPrint [19:52:58]line Счет N : (3)189872 [19:52:58]line ИНН: 02508201610067 [19:52:58]line Контрольно-Кассовый Чек [19:52:58]line ПРОДАЖА [19:52:58]line Товар: 5449000176448 [19:52:58]line Сок Piko Pulpy апельсин ПЭТ 1л [19:52:58]line 1.000 * 155.00 [19:52:58]line = 155.00 [19:52:58]line НДС 12% НСП 1% [19:52:58]line > о реализуемом товаре [19:52:58]line Товар: 4870001570071 [19:52:58]line Напиток Pepsi 1л [19:52:58]line 1.000 * 111.00 [19:52:58]line = 111.00 [19:52:58]line НДС 12% НСП 1% [19:52:58]line > о реализуемом товаре [19:52:58]line ИТОГО: 266.00 [19:52:58]line НСП 1% : 2.35 [19:52:58]line НДС 12% : 28.25 [19:52:58]line Наличными: 266.00 [19:52:58]line Безнал.: 0.00 [19:52:58]line Место: АЗС № 95 "Партнер Нефть" [19:52:58]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:52:58]line СНО: Общий режим [19:52:58]line Чек 127 17.08.2024 19:53 [19:52:58]line Смена: 465 ФФД: 1.0 [19:52:58]line ЗНМ: 0300000078 [19:52:58]line РНМ: 0000000000092546 [19:52:58]line Версия ККМ: 001 [19:52:58]line ФМ: 0000000000871800 [19:52:58]line ФД: 49690 [19:52:58]line ФПД: 62758451776732 [19:52:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T195301&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49690&fm=62758451776732&tin=02508201610067®Number=0000000000092546&sum=26600 [19:52:58]line 0 [19:52:58]OFD Sender: Processing packet 49690 [packets to send 21, broken 20] [19:52:58]ProducePacketName [19:52:58]name=ofd_packets/00049690 [19:52:58]OFD Sender: To server: pG, [19:52:58]CommunicateWithHost lk.salyk.kg:30040 [19:52:58]ConnectInit lk.salyk.kg [19:52:58]written 0, free lines is 4095 [19:52:58]Connected sock=10 [19:52:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 93 01 00 00 D3 E0 8B 01 33 B4 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0B 00 00 00 00 07 04 06 00 E8 67 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 9D FF C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C2 00 00 35 04 06 00 39 14 17 39 8C DC F3 F9 D8 E4 D8 94 A9 2B [19:52:58]Write to MH i2c: 01 00 00 19 2F 48 [19:52:58]Write i2c OK [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: 01 [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: 01 07 00 [19:52:58]MH_I2C_Read... [19:52:58]Read from MH i2c: 01 07 00 19 2F 00 00 00 00 00 8C 0C E7 [19:52:58]RasterBufferAndPrint [19:52:58]line [19:52:58]line [19:52:58]line [19:52:58]line [19:52:58]line [19:52:58]written 0, free lines is 3217 [19:52:59]MH_Cut [19:52:59]Write to MH i2c: D1 01 00 20 2F 01 21 [19:52:59]Write i2c OK [19:52:59]MH_I2C_Read... [19:52:59]Read from MH i2c: D1 [19:52:59]MH_I2C_Read... [19:52:59]Read from MH i2c: D1 01 00 [19:52:59]MH_I2C_Read... [19:52:59]Read from MH i2c: D1 01 00 20 2F 00 20 [19:52:59]Write to MH i2c: 01 00 00 21 2F 50 [19:52:59]Write i2c OK [19:52:59]MH_I2C_Read... [19:52:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 67 49 47 00 B1 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 31 38 30 30 10 04 04 00 1A C2 00 00 F4 03 04 00 D8 AA C0 66 B6 04 01 00 00 D9 00 02 36 D4 D5 82 DF [19:52:59]CommunicateWithHost err = 0 [19:52:59]CheckOFDResponse [19:52:59]1017 (14) - 77093643461234 [19:52:59]1041 (16) - 0000000000871800 [19:52:59]1040 (4) - 49690 [19:52:59]1012 (4) - 17.08.2024 13:51 [19:52:59]1206 (1) - 0 [19:52:59]OFD Sender: Remove packet 49690 [19:52:59]ProducePacketName [19:52:59]name=ofd_packets/00049690 [19:52:59]NVStorageDeleteData [19:52:59]OFD Sender: No OFD packet to send [19:52:59]*** Cut start [19:52:59]*** Purtial cut [19:52:59]*** CUTSNS_PIN = 0 [19:53:00]*** Stage 1: CUTSNS_PIN = 1 [19:53:01]Read from MH i2c: 01 [19:53:01]MH_I2C_Read... [19:53:01]*** Stop cut motor [19:53:01]*** Cut end [19:53:01]Read from MH i2c: 01 07 00 [19:53:01]MH_I2C_Read... [19:53:01]Read from MH i2c: 01 07 00 21 2F 00 00 00 00 00 FF 0F 65 [19:53:01]process_action close_receipt done [19:53:01]requested_data is exist [19:53:01]produce_requested_data [19:53:01]requested_item fm.sn is exist - process it [19:53:01]wFMCommunicate request_size=4 [19:53:01]MH_SAM_APDU [19:53:01]CAPDU: 80 11 00 00 [19:53:01]Write to MH i2c: E2 08 00 22 2F 80 11 00 00 00 00 00 00 CB [19:53:01]Write i2c OK [19:53:01]MH_I2C_Read... [19:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:01]Read from MH i2c: E2 [19:53:01]MH_I2C_Read... [19:53:01]Read from MH i2c: E2 17 00 [19:53:01]MH_I2C_Read... [19:53:01]Read from MH i2c: E2 17 00 22 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 16 [19:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:53:01]wFMCommunicate OK [19:53:01]requested_item fd.num is exist - process it [19:53:01]SAM_PROTO_GetFieldsCounters [19:53:01]wFMCommunicate request_size=4 [19:53:01]MH_SAM_APDU [19:53:01]CAPDU: 80 13 00 00 [19:53:01]Write to MH i2c: E2 08 00 23 2F 80 13 00 00 00 00 00 00 CE [19:53:01]Write i2c OK [19:53:01]MH_I2C_Read... [19:53:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:02]Read from MH i2c: E2 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 62 00 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 62 00 23 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1A C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [19:53: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1A C2 00 00 0E 04 04 00 D1 01 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 [19:53:02]wFMCommunicate OK [19:53:02]SAM_PROTO_GetFieldsCounters done [19:53:02]requested_item shift.num is exist - process it [19:53:02]requested_item shift.opened is exist - process it [19:53:02]req_shift_opened [19:53:02]FM_GetShiftState [19:53:02]SAM_PROTO_GetShiftState [19:53:02]wFMCommunicate request_size=4 [19:53:02]MH_SAM_APDU [19:53:02]CAPDU: 80 13 01 00 [19:53:02]Write to MH i2c: E2 08 00 24 2F 80 13 01 00 00 00 00 00 D0 [19:53:02]Write i2c OK [19:53:02]MH_I2C_Read... [19:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:02]Read from MH i2c: E2 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 0E 00 [19:53:02]MH_I2C_Read... [19:53:02]Read from MH i2c: E2 0E 00 24 2F 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 15 [19:53:02]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [19:53:02]wFMCommunicate OK [19:53:02]SAM_PROTO_GetShiftState done [19:53:02]FM_GetShiftState done [19:53:02]req_shift_opened done [19:53:02]requested_item shift.open_date is exist - process it [19:53:02]req_shift_open_date [19:53:02]req_shift_open_date done [19:53:02]produce_requested_data done [19:53:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49690,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [19:53:02]process_action_free close_receipt [19:53:02]json_value_free [19:53:02]json_value_free done [19:53:02]process_json_proto returns [19:53:02]Send response to host [19:53:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49690,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [19:53:02]free response buf [19:53:02]execute_script done [19:53:02]execute_script returns [19:53:02]free content buf [19:53:02]Sock 7.Close socket [19:53:02]Sock 7.Thread stoped [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:28]int [19:53:28]Write to MH i2c: 01 00 00 25 2F 54 [19:53:28]*** FLAG_PRN_KEY set [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 25 2F 00 08 00 00 00 FF 0F 71 [19:53:28]state=0 [19:53:28]Key pressed [19:53:28]Feed [19:53:28]Write to MH i2c: D8 00 00 26 2F 2C [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: D8 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: D8 01 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: D8 01 00 26 2F 00 2D [19:53:28]int [19:53:28]Write to MH i2c: 01 00 00 27 2F 56 [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 27 2F 00 48 00 00 00 3C 00 E1 [19:53:28]state=2 [19:53:28]Key pressed [19:53:28]int [19:53:28]Write to MH i2c: 01 00 00 28 2F 57 [19:53:28]*** FLAG_PRN_KEY reset [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 28 2F 00 00 00 00 00 F6 0F 63 [19:53:28]state=2 [19:53:28]Stop feed [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55: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: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:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [20:18:22]ConnectInit Can't connect to host [20:18:24]OFD Sender: No OFD packet to send [20:19:31]ConnectInit Can't connect to host [20:19:34]OFD Sender: No OFD packet to send [20:26:28]ConnectInit Can't connect to host [20:26:31]OFD Sender: Processing packet 49692 [packets to send 22, broken 20] [20:26:31]ProducePacketName [20:26:31]name=ofd_packets/00049692 [20:26:31]OFD Sender: To server: pG, [20:26:31]CommunicateWithHost lk.salyk.kg:30040 [20:26:31]ConnectInit lk.salyk.kg [20:30:04]ConnectInit Can't connect to host [20:30:06]OFD Sender: Processing packet 49692 [packets to send 22, broken 20] [20:30:06]ProducePacketName [20:30:06]name=ofd_packets/00049692 [20:30:06]OFD Sender: To server: pG, [20:30:06]CommunicateWithHost lk.salyk.kg:30040 [20:30:06]ConnectInit lk.salyk.kg [20:40:26]ConnectInit Can't connect to host [20:40:27]OFD Sender: Processing packet 49692 [packets to send 28, broken 20] [20:40:27]ProducePacketName [20:40:27]name=ofd_packets/00049692 [20:40:27]OFD Sender: To server: pG, [20:40:27]CommunicateWithHost lk.salyk.kg:30040 [20:40:27]ConnectInit lk.salyk.kg [20:40:32]ConnectInit Can't take IP for lk.salyk.kg [20:40:32]CommunicateWithHost connect error [20:40:32]CommunicateWithHost err = -1 [20:40:32]OFD Sender: Server communicate error [20:40:33]accept exits with 11 [20:40:33]New connection [20:40:33]New thread 3066944868 created [20:40:33]Thread 3066801508 joined [20:40:33]Waiting for new connection... [20:40:33] Sock 11.Parse request [20:40:33]Sock 11.Check first char [20:40:33]Sock 11.First char is OK [20:40:33]request: POST /json_proto HTTP/1.0 [20:40:33]Method: POST [20:40:33]URL: /json_proto [20:40:33]Method is POST - this is cgi request [20:40:33]url: /json_proto [20:40:33]query_string will be loaded in cgi processing [20:40:33]execute_cgi json_proto POST (null) [20:40:33]execute_cgi path=json_proto method=POST [20:40:33]POST find Content-Length [20:40:33]Host: 172.17.46.196:8080 [20:40:33]Content-Length: 941 [20:40:33]Content-Type: application/json [20:40:33] [20:40:33]POST finish read [20:40:33]Found Content-Length = 941 [20:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189882", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:33]execute_script... [20:40:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189882", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:33]POST & json_proto [20:40:33]process_json_proto [20:40:33]json parsed OK: [20:40:33]protocol is kg_v1.0 [20:40:33]action value=close_receipt [20:40:33]process_action close_receipt [20:40:33]cmd_close_receipt [20:40:33]MH_GetDate [20:40:33]Write to MH i2c: F0 00 00 DB 31 FB [20:40:33]Write i2c OK [20:40:33]MH_I2C_Read... [20:40:33]Read from MH i2c: F0 [20:40:33]MH_I2C_Read... [20:40:33]Read from MH i2c: F0 09 00 [20:40:33]MH_I2C_Read... [20:40:33]Read from MH i2c: F0 09 00 DB 31 00 C6 0A C1 66 07 E8 5D 66 AD [20:40:33]GetLastDocTimeStamp 1723927040 [20:40:33]current date 1723927238 [20:40:33]FM_GetShiftState [20:40:33]SAM_PROTO_GetShiftState [20:40:33]wFMCommunicate request_size=4 [20:40:33]MH_SAM_APDU [20:40:33]CAPDU: 80 13 01 00 [20:40:33]Write to MH i2c: E2 08 00 DC 31 80 13 01 00 00 00 00 00 8A [20:40:33]Write i2c OK [20:40:33]MH_I2C_Read... [20:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:33]Read from MH i2c: E2 [20:40:33]MH_I2C_Read... [20:40:33]Read from MH i2c: E2 0E 00 [20:40:33]MH_I2C_Read... [20:40:33]Read from MH i2c: E2 0E 00 DC 31 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 CF [20:40:33]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [20:40:33]wFMCommunicate OK [20:40:33]SAM_PROTO_GetShiftState done [20:40:33]FM_GetShiftState done [20:40:33]opened in 1723853354 [20:40:33]opened+sec_in_day 1723939754 [20:40:33]quantity*price = 14000 [20:40:33]sum+1 = 14001 [20:40:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202522701 Напиток Maxi Чай черный Малина 1,2 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.35 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 137 17.08.2024 20:40 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49700 ФПД: 182870561570931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T204038&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49700&fm=182870561570931&tin=02508201610067®Number=0000000000092546&sum=26500 0 [20:40:34]StoreToDocumentArchive [20:40:34]shift 465 fd 49700 [20:40:34]save to /storage/0465/doc_00049700 [20:40:34]save last doc name /storage/0465/doc_00049700 to /storage/kkm_last_doc_name [20:40:34]save OK [20:40:34]Clear old archive folders... [20:40:34]ProcessDocumentItem done err = 0, tmpTLVsize=403 [20:40:34]tlvbuf is 01879870 [20:40:34]SAM_PROTO_ClearQueue [20:40:34]wFMCommunicate request_size=4 [20:40:34]MH_SAM_APDU [20:40:34]CAPDU: 80 09 00 00 [20:40:34]Write to MH i2c: E2 08 00 E9 31 80 09 00 00 00 00 00 00 8C [20:40:34]Write i2c OK [20:40:34]MH_I2C_Read... [20:40:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:34]Read from MH i2c: E2 [20:40:34]MH_I2C_Read... [20:40:34]Read from MH i2c: E2 03 00 [20:40:34]MH_I2C_Read... [20:40:34]Read from MH i2c: E2 03 00 E9 31 00 90 00 8E [20:40:34]RAPDU: 90 00 [20:40:34]wFMCommunicate OK [20:40:34]SAM_PROTO_ClearQueue done [20:40:34]KKMCreateOFDPacket [20:40:34]OFDProtocolAddRootSTLVToBuf [20:40:34]FM_MakeSignedData [20:40:34]FM_MakeSignedData [20:40:34]SAM_PROTO_SignData [20:40:34]wFMCommunicate request_size=4 [20:40:34]MH_SAM_APDU [20:40:34]CAPDU: 80 0D 01 02 [20:40:34]Write to MH i2c: E2 08 00 EA 31 80 0D 01 02 00 00 00 00 94 [20:40:34]Write i2c OK [20:40:34]MH_I2C_Read... [20:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:34]Read from MH i2c: E2 [20:40:34]MH_I2C_Read... [20:40:34]Read from MH i2c: E2 03 00 [20:40:34]MH_I2C_Read... [20:40:34]Read from MH i2c: E2 03 00 EA 31 00 90 00 8F [20:40:34]RAPDU: 90 00 [20:40:34]wFMCommunicate OK [20:40:34]wFMCommunicate request_size=255 [20:40:34]MH_SAM_APDU [20:40:34]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 [20:40:34]Write to MH i2c: E2 02 01 EB 31 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 40 [20:40:34]Write i2c OK [20:40:34]MH_I2C_Read... [20:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:34]Read from MH i2c: E2 [20:40:34]MH_I2C_Read... [20:40:34]Read from MH i2c: E2 03 00 [20:40:34]MH_I2C_Read... [20:40:34]Read from MH i2c: E2 03 00 EB 31 00 90 00 90 [20:40:34]RAPDU: 90 00 [20:40:34]wFMCommunicate OK [20:40:34]wFMCommunicate request_size=162 [20:40:34]MH_SAM_APDU [20:40:34]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 C6 0A C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 24 C2 00 00 35 04 06 00 A6 51 DE DC C0 73 [20:40:34]Write to MH i2c: E2 A5 00 EC 31 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 C6 0A C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 24 C2 00 00 35 04 06 00 A6 51 DE DC C0 73 00 00 01 [20:40:34]Write i2c OK [20:40:34]MH_I2C_Read... [20:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:35]Read from MH i2c: E2 [20:40:35]MH_I2C_Read... [20:40:35]Read from MH i2c: E2 03 00 [20:40:35]MH_I2C_Read... [20:40:35]Read from MH i2c: E2 03 00 EC 31 00 90 00 91 [20:40:35]RAPDU: 90 00 [20:40:35]wFMCommunicate OK [20:40:35]wFMCommunicate request_size=4 [20:40:35]MH_SAM_APDU [20:40:35]CAPDU: 80 0D 03 02 [20:40:35]Write to MH i2c: E2 08 00 ED 31 80 0D 03 02 00 00 00 00 99 [20:40:35]Write i2c OK [20:40:35]MH_I2C_Read... [20:40:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:35]Read from MH i2c: E2 [20:40:35]MH_I2C_Read... [20:40:35]Read from MH i2c: E2 0B 00 [20:40:35]MH_I2C_Read... [20:40:35]Read from MH i2c: E2 0B 00 ED 31 00 C3 A5 7B 93 DA 9D F9 38 90 00 B8 [20:40:35]RAPDU: C3 A5 7B 93 DA 9D F9 38 90 00 [20:40:35]wFMCommunicate OK [20:40:35]SAM_PROTO_SignData done [20:40:35]FM_MakeSignedData done [20:40:35]CreateOFDProtocolMessage [20:40:35]wFMCommunicate request_size=4 [20:40:35]MH_SAM_APDU [20:40:35]CAPDU: 80 11 00 00 [20:40:35]Write to MH i2c: E2 08 00 EE 31 80 11 00 00 00 00 00 00 99 [20:40:35]Write i2c OK [20:40:35]MH_I2C_Read... [20:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:35]Read from MH i2c: E2 [20:40:35]MH_I2C_Read... [20:40:35]Read from MH i2c: E2 17 00 [20:40:35]MH_I2C_Read... [20:40:35]Read from MH i2c: E2 17 00 EE 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E4 [20:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:40:35]wFMCommunicate OK [20:40:35]CreateOFDProtocolMessage done [20:40:35]OFDSenderStorePacket 49700 [20:40:35]StoreOFDPacket docnum=49700 [20:40:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A7 01 00 00 8E DC 9F 01 54 17 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 C6 0A C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 24 C2 00 00 35 04 06 00 A6 51 DE DC C0 73 C3 A5 7B 93 DA 9D F9 38 [20:40:35]CheckFolder [20:40:35]dirname=/storage/ofd_packets [20:40:35]CheckFolder done [20:40:35]ProducePacketName [20:40:35]name=ofd_packets/00049700 [20:40:35]NVStorageSaveData ofd_packets/00049700 [20:40:35]File name is /storage/ofd_packets/00049700 [20:40:35]Write 453 bytes [20:40:35]NVStorageSaveData done [20:40:35]OFDSenderStorePacket done [20:40:35]KKMCreateOFDPacket done [20:40:35]NVStorageSaveData kkm_last_timestamp [20:40:35]File name is /storage/kkm_last_timestamp [20:40:35]Write 4 bytes [20:40:35]NVStorageSaveData done [20:40:35]ExternCall_PrintAddStr [20:40:35]wPrintStart [20:40:35]Write to MH i2c: 01 00 00 EF 31 20 [20:40:35]Write i2c OK [20:40:35]MH_I2C_Read... [20:40:35]Read from MH i2c: 01 [20:40:35]MH_I2C_Read... [20:40:35]Read from MH i2c: 01 07 00 [20:40:35]MH_I2C_Read... [20:40:35]Read from MH i2c: 01 07 00 EF 31 00 00 00 00 00 FF 0F 35 [20:40:35]RasterBufferAndPrint [20:40:35]line Счет N : (3)189882 [20:40:35]line ИНН: 02508201610067 [20:40:35]line Контрольно-Кассовый Чек [20:40:35]line ПРОДАЖА [20:40:35]line Товар: 48743587 [20:40:35]line Сигареты Winston XStyle Silver [20:40:35]line 1.000 * 140.00 [20:40:35]line = 140.00 [20:40:35]line НДС 12% НСП 1% [20:40:35]line > о реализуемом товаре [20:40:35]line Товар: 4870202522701 [20:40:35]line Напиток Maxi Чай черный Малина 1,2 [20:40:35]line 1.000 * 125.00 [20:40:35]line = 125.00 [20:40:35]line НДС 12% НСП 1% [20:40:35]line > о реализуемом товаре [20:40:35]line ИТОГО: 265.00 [20:40:35]line НСП 1% : 2.35 [20:40:35]line НДС 12% : 28.14 [20:40:35]line Наличными: 265.00 [20:40:35]line Безнал.: 0.00 [20:40:35]line Место: АЗС № 95 "Партнер Нефть" [20:40:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:40:35]line СНО: Общий режим [20:40:35]line Чек 137 17.08.2024 20:40 [20:40:35]line Смена: 465 ФФД: 1.0 [20:40:35]line ЗНМ: 0300000078 [20:40:35]line РНМ: 0000000000092546 [20:40:35]line Версия ККМ: 001 [20:40:35]line ФМ: 0000000000871800 [20:40:35]line ФД: 49700 [20:40:35]line ФПД: 182870561570931 [20:40:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T204038&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49700&fm=182870561570931&tin=02508201610067®Number=0000000000092546&sum=26500 [20:40:35]line 0 [20:40:35]OFD Sender: Processing packet 49692 [packets to send 29, broken 20] [20:40:35]ProducePacketName [20:40:35]name=ofd_packets/00049692 [20:40:35]OFD Sender: To server: pG, [20:40:35]CommunicateWithHost lk.salyk.kg:30040 [20:40:35]ConnectInit lk.salyk.kg [20:40:35]written 0, free lines is 4095 [20:40:36]Write to MH i2c: 01 00 00 1F 32 51 [20:40:36]Write i2c OK [20:40:36]MH_I2C_Read... [20:40:36]Read from MH i2c: 01 [20:40:36]MH_I2C_Read... [20:40:36]Read from MH i2c: 01 07 00 [20:40:36]MH_I2C_Read... [20:40:36]Read from MH i2c: 01 07 00 1F 32 00 00 00 00 00 50 0C B4 [20:40:36]RasterBufferAndPrint [20:40:36]line [20:40:36]line [20:40:36]line [20:40:36]line [20:40:36]line [20:40:36]written 0, free lines is 3158 [20:40:36]MH_Cut [20:40:36]Write to MH i2c: D1 01 00 26 32 01 2A [20:40:36]Write i2c OK [20:40:36]MH_I2C_Read... [20:40:36]Read from MH i2c: D1 [20:40:36]MH_I2C_Read... [20:40:36]Read from MH i2c: D1 01 00 [20:40:36]MH_I2C_Read... [20:40:36]Read from MH i2c: D1 01 00 26 32 00 29 [20:40:36]Write to MH i2c: 01 00 00 27 32 59 [20:40:36]Write i2c OK [20:40:36]MH_I2C_Read... [20:40:36]*** Cut start [20:40:36]*** Purtial cut [20:40:36]*** CUTSNS_PIN = 0 [20:40:37]*** Stage 1: CUTSNS_PIN = 1 [20:40:38]Read from MH i2c: 01 [20:40:38]MH_I2C_Read... [20:40:38]*** Stop cut motor [20:40:38]*** Cut end [20:40:38]Read from MH i2c: 01 07 00 [20:40:38]MH_I2C_Read... [20:40:38]Read from MH i2c: 01 07 00 27 32 00 00 00 00 00 FF 0F 6E [20:40:38]process_action close_receipt done [20:40:38]requested_data is exist [20:40:38]produce_requested_data [20:40:38]requested_item fm.sn is exist - process it [20:40:38]wFMCommunicate request_size=4 [20:40:38]MH_SAM_APDU [20:40:38]CAPDU: 80 11 00 00 [20:40:38]Write to MH i2c: E2 08 00 28 32 80 11 00 00 00 00 00 00 D4 [20:40:38]Write i2c OK [20:40:38]MH_I2C_Read... [20:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:39]Read from MH i2c: E2 [20:40:39]MH_I2C_Read... [20:40:39]Read from MH i2c: E2 17 00 [20:40:39]MH_I2C_Read... [20:40:39]Read from MH i2c: E2 17 00 28 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1F [20:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:40:39]wFMCommunicate OK [20:40:39]requested_item fd.num is exist - process it [20:40:39]SAM_PROTO_GetFieldsCounters [20:40:39]wFMCommunicate request_size=4 [20:40:39]MH_SAM_APDU [20:40:39]CAPDU: 80 13 00 00 [20:40:39]Write to MH i2c: E2 08 00 29 32 80 13 00 00 00 00 00 00 D7 [20:40:39]Write i2c OK [20:40:39]MH_I2C_Read... [20:40:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:39]Read from MH i2c: E2 [20:40:39]MH_I2C_Read... [20:40:39]Read from MH i2c: E2 62 00 [20:40:39]MH_I2C_Read... [20:40:39]Read from MH i2c: E2 62 00 29 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 24 C2 00 00 0E 04 04 00 D1 01 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 44 [20:40: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 24 C2 00 00 0E 04 04 00 D1 01 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 [20:40:39]wFMCommunicate OK [20:40:39]SAM_PROTO_GetFieldsCounters done [20:40:39]requested_item shift.num is exist - process it [20:40:39]requested_item shift.opened is exist - process it [20:40:39]req_shift_opened [20:40:39]FM_GetShiftState [20:40:39]SAM_PROTO_GetShiftState [20:40:39]wFMCommunicate request_size=4 [20:40:39]MH_SAM_APDU [20:40:39]CAPDU: 80 13 01 00 [20:40:39]Write to MH i2c: E2 08 00 2A 32 80 13 01 00 00 00 00 00 D9 [20:40:39]Write i2c OK [20:40:39]MH_I2C_Read... [20:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:39]Read from MH i2c: E2 [20:40:39]MH_I2C_Read... [20:40:39]Read from MH i2c: E2 0E 00 [20:40:39]MH_I2C_Read... [20:40:39]Read from MH i2c: E2 0E 00 2A 32 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 1E [20:40:39]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [20:40:39]wFMCommunicate OK [20:40:39]SAM_PROTO_GetShiftState done [20:40:39]FM_GetShiftState done [20:40:39]req_shift_opened done [20:40:39]requested_item shift.open_date is exist - process it [20:40:39]req_shift_open_date [20:40:39]req_shift_open_date done [20:40:39]produce_requested_data done [20:40:39]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49700,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [20:40:39]process_action_free close_receipt [20:40:39]json_value_free [20:40:39]json_value_free done [20:40:39]process_json_proto returns [20:40:39]Send response to host [20:40:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49700,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [20:40:39]free response buf [20:40:39]execute_script done [20:40:39]execute_script returns [20:40:39]free content buf [20:40:39]Sock 11.Close socket [20:40:39]Sock 11.Thread stoped [20:40:40]ConnectInit Can't take IP for lk.salyk.kg [20:40:40]CommunicateWithHost connect error [20:40:40]CommunicateWithHost err = -1 [20:40:40]OFD Sender: Server communicate error [20:40:45]OFD Sender: Processing packet 49692 [packets to send 29, broken 20] [20:40:45]ProducePacketName [20:40:45]name=ofd_packets/00049692 [20:40:45]OFD Sender: To server: pG, [20:40:45]CommunicateWithHost lk.salyk.kg:30040 [20:40:45]ConnectInit lk.salyk.kg [20:40:48]Connected sock=9 [20:40:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 05 02 00 00 E7 11 FD 01 C7 5E 5A 03 01 00 03 00 F1 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 FF 05 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1C C2 00 00 35 04 06 00 78 61 3F 03 D1 97 79 8D 37 33 E4 D9 12 6C [20:40:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 3D 46 47 00 47 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1C C2 00 00 F4 03 04 00 0F B6 C0 66 B6 04 01 00 00 95 43 C4 82 4E 20 8A 59 [20:40:49]CommunicateWithHost err = 0 [20:40:49]CheckOFDResponse [20:40:49]1017 (14) - 77093643461234 [20:40:49]1041 (16) - 0000000000871800 [20:40:49]1040 (4) - 49692 [20:40:49]1012 (4) - 17.08.2024 14:39 [20:40:49]1206 (1) - 0 [20:40:49]OFD Sender: Remove packet 49692 [20:40:49]ProducePacketName [20:40:49]name=ofd_packets/00049692 [20:40:49]NVStorageDeleteData [20:40:49]OFD Sender: Processing packet 49693 [packets to send 28, broken 20] [20:40:49]ProducePacketName [20:40:49]name=ofd_packets/00049693 [20:40:49]OFD Sender: To server: pG, [20:40:49]CommunicateWithHost lk.salyk.kg:30040 [20:40:49]ConnectInit lk.salyk.kg [20:40:49]Connected sock=9 [20:40:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 AE 7A 1F 01 87 E8 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 26 06 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1D C2 00 00 35 04 06 00 0B 27 7A D6 5A 1D BA DB 64 3B 99 9C 61 E4 [20:40:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CA E1 47 00 B9 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 31 38 30 30 10 04 04 00 1D C2 00 00 F4 03 04 00 10 B6 C0 66 B6 04 01 00 00 A5 59 B3 C4 21 AA 87 6D [20:40:50]CommunicateWithHost err = 0 [20:40:50]CheckOFDResponse [20:40:50]1017 (14) - 77093643461234 [20:40:50]1041 (16) - 0000000000871800 [20:40:50]1040 (4) - 49693 [20:40:50]1012 (4) - 17.08.2024 14:39 [20:40:50]1206 (1) - 0 [20:40:50]OFD Sender: Remove packet 49693 [20:40:50]ProducePacketName [20:40:50]name=ofd_packets/00049693 [20:40:50]NVStorageDeleteData [20:40:50]OFD Sender: Processing packet 49694 [packets to send 27, broken 20] [20:40:50]ProducePacketName [20:40:50]name=ofd_packets/00049694 [20:40:50]OFD Sender: To server: pG, [20:40:50]CommunicateWithHost lk.salyk.kg:30040 [20:40:50]ConnectInit lk.salyk.kg [20:40:50]Connected sock=9 [20:40:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2F 01 00 00 5D 06 27 01 81 0F 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 70 08 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1E C2 00 00 35 04 06 00 17 4F BA 94 B4 5D 58 B3 5B BF 23 09 9A AD [20:40:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 69 4E 47 00 39 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1E C2 00 00 F4 03 04 00 11 B6 C0 66 B6 04 01 00 00 9F DB EB 8F A6 70 D2 C8 [20:40:51]CommunicateWithHost err = 0 [20:40:51]CheckOFDResponse [20:40:51]1017 (14) - 77093643461234 [20:40:51]1041 (16) - 0000000000871800 [20:40:51]1040 (4) - 49694 [20:40:51]1012 (4) - 17.08.2024 14:39 [20:40:51]1206 (1) - 0 [20:40:51]OFD Sender: Remove packet 49694 [20:40:51]ProducePacketName [20:40:51]name=ofd_packets/00049694 [20:40:51]NVStorageDeleteData [20:40:51]OFD Sender: Processing packet 49695 [packets to send 26, broken 20] [20:40:51]ProducePacketName [20:40:51]name=ofd_packets/00049695 [20:40:51]OFD Sender: To server: pG, [20:40:51]CommunicateWithHost lk.salyk.kg:30040 [20:40:51]ConnectInit lk.salyk.kg [20:40:51]Connected sock=9 [20:40:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3E 01 00 00 9D 56 36 01 D9 ED 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A1 08 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1F C2 00 00 35 04 06 00 C9 7F AA 6F 7D A6 AC 4F 5E FE 3A BF A1 6F [20:40:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FB 70 47 00 F0 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 31 38 30 30 10 04 04 00 1F C2 00 00 F4 03 04 00 12 B6 C0 66 B6 04 01 00 00 7A A3 18 21 42 87 90 DE [20:40:52]CommunicateWithHost err = 0 [20:40:52]CheckOFDResponse [20:40:52]1017 (14) - 77093643461234 [20:40:52]1041 (16) - 0000000000871800 [20:40:52]1040 (4) - 49695 [20:40:52]1012 (4) - 17.08.2024 14:39 [20:40:52]1206 (1) - 0 [20:40:52]OFD Sender: Remove packet 49695 [20:40:52]ProducePacketName [20:40:52]name=ofd_packets/00049695 [20:40:52]NVStorageDeleteData [20:40:52]OFD Sender: Processing packet 49696 [packets to send 25, broken 20] [20:40:52]ProducePacketName [20:40:52]name=ofd_packets/00049696 [20:40:52]OFD Sender: To server: pG, [20:40:52]CommunicateWithHost lk.salyk.kg:30040 [20:40:52]ConnectInit lk.salyk.kg [20:40:53]Connected sock=9 [20:40:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 FF 30 2B 01 78 87 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 23 09 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 20 C2 00 00 35 04 06 00 80 6E ED 69 C4 22 C1 AD BE 5D 64 7F CD DD [20:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9B C4 47 00 4E 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 20 C2 00 00 F4 03 04 00 13 B6 C0 66 B6 04 01 00 00 50 65 73 85 D1 1C 2C 1A [20:40:53]CommunicateWithHost err = 0 [20:40:53]CheckOFDResponse [20:40:53]1017 (14) - 77093643461234 [20:40:53]1041 (16) - 0000000000871800 [20:40:53]1040 (4) - 49696 [20:40:53]1012 (4) - 17.08.2024 14:39 [20:40:53]1206 (1) - 0 [20:40:53]OFD Sender: Remove packet 49696 [20:40:53]ProducePacketName [20:40:53]name=ofd_packets/00049696 [20:40:53]NVStorageDeleteData [20:40:53]OFD Sender: Processing packet 49697 [packets to send 24, broken 20] [20:40:53]ProducePacketName [20:40:53]name=ofd_packets/00049697 [20:40:53]OFD Sender: To server: pG, [20:40:53]CommunicateWithHost lk.salyk.kg:30040 [20:40:53]ConnectInit lk.salyk.kg [20:43:03]ConnectInit Can't connect to host [20:43:03]CommunicateWithHost connect error [20:43:03]CommunicateWithHost err = -1 [20:43:03]OFD Sender: Server communicate error [20:43:08]OFD Sender: Processing packet 49697 [packets to send 24, broken 20] [20:43:08]ProducePacketName [20:43:08]name=ofd_packets/00049697 [20:43:08]OFD Sender: To server: pG, [20:43:08]CommunicateWithHost lk.salyk.kg:30040 [20:43:08]ConnectInit lk.salyk.kg [20:43:09]Connected sock=9 [20:43:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9D 01 00 00 F0 DA 95 01 91 20 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 88 09 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 21 C2 00 00 35 04 06 00 AE 2B CB 4C 69 A0 19 1A B1 72 79 71 2B F4 [20:43:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4D 59 47 00 80 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 21 C2 00 00 F4 03 04 00 9B B6 C0 66 B6 04 01 00 00 49 FC 33 23 B4 D6 06 70 [20:43:09]CommunicateWithHost err = 0 [20:43:09]CheckOFDResponse [20:43:09]1017 (14) - 77093643461234 [20:43:09]1041 (16) - 0000000000871800 [20:43:09]1040 (4) - 49697 [20:43:09]1012 (4) - 17.08.2024 14:41 [20:43:09]1206 (1) - 0 [20:43:09]OFD Sender: Remove packet 49697 [20:43:09]ProducePacketName [20:43:09]name=ofd_packets/00049697 [20:43:09]NVStorageDeleteData [20:43:09]OFD Sender: Processing packet 49698 [packets to send 23, broken 20] [20:43:09]ProducePacketName [20:43:09]name=ofd_packets/00049698 [20:43:09]OFD Sender: To server: pG, [20:43:09]CommunicateWithHost lk.salyk.kg:30040 [20:43:09]ConnectInit lk.salyk.kg [20:43:09]Connected sock=9 [20:43:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 4A 57 32 01 4A BA 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 BE 09 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 22 C2 00 00 35 04 06 00 C1 3B 7B 16 07 34 BA D8 BC FA F1 BA A9 9D [20:43:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 12 96 47 00 4F 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 31 38 30 30 10 04 04 00 22 C2 00 00 F4 03 04 00 9C B6 C0 66 B6 04 01 00 00 02 8C 2C E2 39 DE 1F 68 [20:43:10]CommunicateWithHost err = 0 [20:43:10]CheckOFDResponse [20:43:10]1017 (14) - 77093643461234 [20:43:10]1041 (16) - 0000000000871800 [20:43:10]1040 (4) - 49698 [20:43:10]1012 (4) - 17.08.2024 14:41 [20:43:10]1206 (1) - 0 [20:43:10]OFD Sender: Remove packet 49698 [20:43:10]ProducePacketName [20:43:10]name=ofd_packets/00049698 [20:43:10]NVStorageDeleteData [20:43:10]OFD Sender: Processing packet 49699 [packets to send 22, broken 20] [20:43:10]ProducePacketName [20:43:10]name=ofd_packets/00049699 [20:43:10]OFD Sender: To server: pG, [20:43:10]CommunicateWithHost lk.salyk.kg:30040 [20:43:10]ConnectInit lk.salyk.kg [20:43:10]Connected sock=9 [20:43:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 87 01 00 00 7C 7A 7F 01 B4 CD 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 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 00 0A C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 23 C2 00 00 35 04 06 00 C1 FC FE 6B 7D E0 86 15 67 48 C3 F7 C9 0F [20:43:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B2 90 47 00 27 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 23 C2 00 00 F4 03 04 00 9D B6 C0 66 B6 04 01 00 00 27 CA 2A 10 98 D6 5A CD [20:43:11]CommunicateWithHost err = 0 [20:43:11]CheckOFDResponse [20:43:11]1017 (14) - 77093643461234 [20:43:11]1041 (16) - 0000000000871800 [20:43:11]1040 (4) - 49699 [20:43:11]1012 (4) - 17.08.2024 14:41 [20:43:11]1206 (1) - 0 [20:43:11]OFD Sender: Remove packet 49699 [20:43:11]ProducePacketName [20:43:11]name=ofd_packets/00049699 [20:43:11]NVStorageDeleteData [20:43:11]OFD Sender: Processing packet 49700 [packets to send 21, broken 20] [20:43:11]ProducePacketName [20:43:11]name=ofd_packets/00049700 [20:43:11]OFD Sender: To server: pG, [20:43:11]CommunicateWithHost lk.salyk.kg:30040 [20:43:11]ConnectInit lk.salyk.kg [20:43:12]Connected sock=10 [20:43:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A7 01 00 00 8E DC 9F 01 54 17 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 C6 0A C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 24 C2 00 00 35 04 06 00 A6 51 DE DC C0 73 C3 A5 7B 93 DA 9D F9 38 [20:43:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 14 B4 47 00 CB 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 31 38 30 30 10 04 04 00 24 C2 00 00 F4 03 04 00 9E B6 C0 66 B6 04 01 00 00 86 B4 1E 06 19 6A 37 21 [20:43:12]CommunicateWithHost err = 0 [20:43:12]CheckOFDResponse [20:43:12]1017 (14) - 77093643461234 [20:43:12]1041 (16) - 0000000000871800 [20:43:12]1040 (4) - 49700 [20:43:12]1012 (4) - 17.08.2024 14:41 [20:43:12]1206 (1) - 0 [20:43:12]OFD Sender: Remove packet 49700 [20:43:12]ProducePacketName [20:43:12]name=ofd_packets/00049700 [20:43:12]NVStorageDeleteData [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:10]accept exits with 7 [20:45:10]New connection [20:45:10]New thread 3066801508 created [20:45:10]Thread 3066944868 joined [20:45:10]Waiting for new connection... [20:45:10] Sock 7.Parse request [20:45:10]Sock 7.Check first char [20:45:10]Sock 7.First char is OK [20:45:10]request: POST /json_proto HTTP/1.0 [20:45:10]Method: POST [20:45:10]URL: /json_proto [20:45:10]Method is POST - this is cgi request [20:45:10]url: /json_proto [20:45:10]query_string will be loaded in cgi processing [20:45:10]execute_cgi json_proto POST (null) [20:45:10]execute_cgi path=json_proto method=POST [20:45:10]POST find Content-Length [20:45:10]Host: 172.17.46.196:8080 [20:45:10]Content-Length: 801 [20:45:10]Content-Type: application/json [20:45:10] [20:45:10]POST finish read [20:45:10]Found Content-Length = 801 [20:45:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189883", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:10]execute_script... [20:45:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189883", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:10]POST & json_proto [20:45:10]process_json_proto [20:45:10]json parsed OK: [20:45:10]protocol is kg_v1.0 [20:45:10]action value=close_receipt [20:45:10]process_action close_receipt [20:45:10]cmd_close_receipt [20:45:10]MH_GetDate [20:45:10]Write to MH i2c: F0 00 00 2B 32 4C [20:45:10]Write i2c OK [20:45:10]MH_I2C_Read... [20:45:10]Read from MH i2c: F0 [20:45:10]MH_I2C_Read... [20:45:10]Read from MH i2c: F0 09 00 [20:45:10]MH_I2C_Read... [20:45:10]Read from MH i2c: F0 09 00 2B 32 00 DB 0B C1 66 07 E8 5D 66 14 [20:45:10]GetLastDocTimeStamp 1723927238 [20:45:10]current date 1723927515 [20:45:10]FM_GetShiftState [20:45:10]SAM_PROTO_GetShiftState [20:45:10]wFMCommunicate request_size=4 [20:45:10]MH_SAM_APDU [20:45:10]CAPDU: 80 13 01 00 [20:45:10]Write to MH i2c: E2 08 00 2C 32 80 13 01 00 00 00 00 00 DB [20:45:10]Write i2c OK [20:45:10]MH_I2C_Read... [20:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:10]Read from MH i2c: E2 [20:45:10]MH_I2C_Read... [20:45:10]Read from MH i2c: E2 0E 00 [20:45:10]MH_I2C_Read... [20:45:10]Read from MH i2c: E2 0E 00 2C 32 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 20 [20:45:10]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [20:45:10]wFMCommunicate OK [20:45:10]SAM_PROTO_GetShiftState done [20:45:10]FM_GetShiftState done [20:45:10]opened in 1723853354 [20:45:10]opened+sec_in_day 1723939754 [20:45:10]quantity*price = 15000 [20:45:10]sum+1 = 15001 [20:45:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 138 17.08.2024 20:45 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49701 ФПД: 90338949815968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T204515&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49701&fm=90338949815968&tin=02508201610067®Number=0000000000092546&sum=15000 0 [20:45:11]StoreToDocumentArchive [20:45:11]shift 465 fd 49701 [20:45:11]save to /storage/0465/doc_00049701 [20:45:11]save last doc name /storage/0465/doc_00049701 to /storage/kkm_last_doc_name [20:45:11]save OK [20:45:11]Clear old archive folders... [20:45:11]ProcessDocumentItem done err = 0, tmpTLVsize=276 [20:45:11]tlvbuf is 018ACD00 [20:45:11]SAM_PROTO_ClearQueue [20:45:11]wFMCommunicate request_size=4 [20:45:11]MH_SAM_APDU [20:45:11]CAPDU: 80 09 00 00 [20:45:11]Write to MH i2c: E2 08 00 39 32 80 09 00 00 00 00 00 00 DD [20:45:11]Write i2c OK [20:45:11]MH_I2C_Read... [20:45:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:45:11]Read from MH i2c: E2 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 03 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 03 00 39 32 00 90 00 DF [20:45:11]RAPDU: 90 00 [20:45:11]wFMCommunicate OK [20:45:11]SAM_PROTO_ClearQueue done [20:45:11]KKMCreateOFDPacket [20:45:11]OFDProtocolAddRootSTLVToBuf [20:45:11]FM_MakeSignedData [20:45:11]FM_MakeSignedData [20:45:11]SAM_PROTO_SignData [20:45:11]wFMCommunicate request_size=4 [20:45:11]MH_SAM_APDU [20:45:11]CAPDU: 80 0D 01 02 [20:45:11]Write to MH i2c: E2 08 00 3A 32 80 0D 01 02 00 00 00 00 E5 [20:45:11]Write i2c OK [20:45:11]MH_I2C_Read... [20:45:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:45:11]Read from MH i2c: E2 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 03 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 03 00 3A 32 00 90 00 E0 [20:45:11]RAPDU: 90 00 [20:45:11]wFMCommunicate OK [20:45:11]wFMCommunicate request_size=255 [20:45:11]MH_SAM_APDU [20:45:11]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DB 0B C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [20:45:11]Write to MH i2c: E2 02 01 3B 32 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DB 0B C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 07 [20:45:11]Write i2c OK [20:45:11]MH_I2C_Read... [20:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:11]Read from MH i2c: E2 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 03 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 03 00 3B 32 00 90 00 E1 [20:45:11]RAPDU: 90 00 [20:45:11]wFMCommunicate OK [20:45:11]wFMCommunicate request_size=35 [20:45:11]MH_SAM_APDU [20:45:11]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C2 00 00 35 04 06 00 52 29 AD 03 5E A0 [20:45:11]Write to MH i2c: E2 26 00 3C 32 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C2 00 00 35 04 06 00 52 29 AD 03 5E A0 00 00 E3 [20:45:11]Write i2c OK [20:45:11]MH_I2C_Read... [20:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:11]Read from MH i2c: E2 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 03 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 03 00 3C 32 00 90 00 E2 [20:45:11]RAPDU: 90 00 [20:45:11]wFMCommunicate OK [20:45:11]wFMCommunicate request_size=4 [20:45:11]MH_SAM_APDU [20:45:11]CAPDU: 80 0D 03 02 [20:45:11]Write to MH i2c: E2 08 00 3D 32 80 0D 03 02 00 00 00 00 EA [20:45:11]Write i2c OK [20:45:11]MH_I2C_Read... [20:45:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:45:11]Read from MH i2c: E2 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 0B 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 0B 00 3D 32 00 8E B4 D9 76 00 0D 59 5E 90 00 40 [20:45:11]RAPDU: 8E B4 D9 76 00 0D 59 5E 90 00 [20:45:11]wFMCommunicate OK [20:45:11]SAM_PROTO_SignData done [20:45:11]FM_MakeSignedData done [20:45:11]CreateOFDProtocolMessage [20:45:11]wFMCommunicate request_size=4 [20:45:11]MH_SAM_APDU [20:45:11]CAPDU: 80 11 00 00 [20:45:11]Write to MH i2c: E2 08 00 3E 32 80 11 00 00 00 00 00 00 EA [20:45:11]Write i2c OK [20:45:11]MH_I2C_Read... [20:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:11]Read from MH i2c: E2 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 17 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 17 00 3E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 35 [20:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:45:11]wFMCommunicate OK [20:45:11]CreateOFDProtocolMessage done [20:45:11]OFDSenderStorePacket 49701 [20:45:11]StoreOFDPacket docnum=49701 [20:45:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 22 42 20 01 31 36 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DB 0B C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C2 00 00 35 04 06 00 52 29 AD 03 5E A0 8E B4 D9 76 00 0D 59 5E [20:45:11]CheckFolder [20:45:11]dirname=/storage/ofd_packets [20:45:11]CheckFolder done [20:45:11]ProducePacketName [20:45:11]name=ofd_packets/00049701 [20:45:11]NVStorageSaveData ofd_packets/00049701 [20:45:11]File name is /storage/ofd_packets/00049701 [20:45:11]Write 326 bytes [20:45:11]NVStorageSaveData done [20:45:11]OFDSenderStorePacket done [20:45:11]KKMCreateOFDPacket done [20:45:11]NVStorageSaveData kkm_last_timestamp [20:45:11]File name is /storage/kkm_last_timestamp [20:45:11]Write 4 bytes [20:45:11]NVStorageSaveData done [20:45:11]ExternCall_PrintAddStr [20:45:11]wPrintStart [20:45:11]Write to MH i2c: 01 00 00 3F 32 71 [20:45:11]Write i2c OK [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: 01 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: 01 07 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: 01 07 00 3F 32 00 00 00 00 00 FF 0F 86 [20:45:11]RasterBufferAndPrint [20:45:11]line Счет N : (3)189883 [20:45:11]line ИНН: 02508201610067 [20:45:11]line Контрольно-Кассовый Чек [20:45:11]line ПРОДАЖА [20:45:11]line Товар: 48747073 [20:45:11]line Сигареты Richmond Royal Edition [20:45:11]line 1.000 * 150.00 [20:45:11]line = 150.00 [20:45:11]line НДС 12% НСП 1% [20:45:11]line > о реализуемом товаре [20:45:11]line ИТОГО: 150.00 [20:45:11]line НСП 1% : 1.33 [20:45:11]line НДС 12% : 15.93 [20:45:11]line Наличными: 0.00 [20:45:11]line Безнал.: 150.00 [20:45:11]line Место: АЗС № 95 "Партнер Нефть" [20:45:11]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:45:11]line СНО: Общий режим [20:45:11]line Чек 138 17.08.2024 20:45 [20:45:11]line Смена: 465 ФФД: 1.0 [20:45:11]line ЗНМ: 0300000078 [20:45:11]line РНМ: 0000000000092546 [20:45:11]line Версия ККМ: 001 [20:45:11]line Платежная система: Бакай Банк [20:45:11]line ФМ: 0000000000871800 [20:45:11]line ФД: 49701 [20:45:11]line ФПД: 90338949815968 [20:45:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T204515&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49701&fm=90338949815968&tin=02508201610067®Number=0000000000092546&sum=15000 [20:45:12]OFD Sender: Processing packet 49701 [packets to send 21, broken 20] [20:45:12]ProducePacketName [20:45:12]name=ofd_packets/00049701 [20:45:12]OFD Sender: To server: pG, [20:45:12]CommunicateWithHost lk.salyk.kg:30040 [20:45:12]ConnectInit lk.salyk.kg [20:45:12]line 0 [20:45:12]written 0, free lines is 4095 [20:45:12]Connected sock=10 [20:45:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 22 42 20 01 31 36 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DB 0B C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C2 00 00 35 04 06 00 52 29 AD 03 5E A0 8E B4 D9 76 00 0D 59 5E [20:45:12]Write to MH i2c: 01 00 00 6A 32 9C [20:45:12]Write i2c OK [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: 01 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: 01 07 00 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: 01 07 00 6A 32 00 00 00 00 00 A3 0C 52 [20:45:12]RasterBufferAndPrint [20:45:12]line [20:45:12]line [20:45:12]line [20:45:12]line [20:45:12]line [20:45:12]written 0, free lines is 3242 [20:45:12]MH_Cut [20:45:12]Write to MH i2c: D1 01 00 71 32 01 75 [20:45:12]Write i2c OK [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: D1 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: D1 01 00 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: D1 01 00 71 32 00 74 [20:45:12]Write to MH i2c: 01 00 00 72 32 A4 [20:45:12]Write i2c OK [20:45:12]MH_I2C_Read... [20:45:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D1 0C 47 00 67 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C2 00 00 F4 03 04 00 16 B7 C0 66 B6 04 01 00 00 69 7E 7E 67 A7 81 BD 0A [20:45:12]CommunicateWithHost err = 0 [20:45:12]CheckOFDResponse [20:45:12]1017 (14) - 77093643461234 [20:45:12]1041 (16) - 0000000000871800 [20:45:12]1040 (4) - 49701 [20:45:12]1012 (4) - 17.08.2024 14:43 [20:45:12]1206 (1) - 0 [20:45:12]OFD Sender: Remove packet 49701 [20:45:12]ProducePacketName [20:45:12]name=ofd_packets/00049701 [20:45:12]NVStorageDeleteData [20:45:13]OFD Sender: No OFD packet to send [20:45:13]*** Cut start [20:45:13]*** Purtial cut [20:45:13]*** Stage 1: CUTSNS_PIN = 1 [20:45:13]Read from MH i2c: 01 [20:45:13]MH_I2C_Read... [20:45:13]*** Stop cut motor [20:45:13]*** Cut end [20:45:13]Read from MH i2c: 01 07 00 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: 01 07 00 72 32 00 00 00 00 00 FF 0F B9 [20:45:13]process_action close_receipt done [20:45:13]requested_data is exist [20:45:13]produce_requested_data [20:45:13]requested_item fm.sn is exist - process it [20:45:13]wFMCommunicate request_size=4 [20:45:13]MH_SAM_APDU [20:45:13]CAPDU: 80 11 00 00 [20:45:13]Write to MH i2c: E2 08 00 73 32 80 11 00 00 00 00 00 00 1F [20:45:13]Write i2c OK [20:45:13]MH_I2C_Read... [20:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:13]Read from MH i2c: E2 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: E2 17 00 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: E2 17 00 73 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6A [20:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:45:13]wFMCommunicate OK [20:45:13]requested_item fd.num is exist - process it [20:45:13]SAM_PROTO_GetFieldsCounters [20:45:13]wFMCommunicate request_size=4 [20:45:13]MH_SAM_APDU [20:45:13]CAPDU: 80 13 00 00 [20:45:13]Write to MH i2c: E2 08 00 74 32 80 13 00 00 00 00 00 00 22 [20:45:13]Write i2c OK [20:45:13]MH_I2C_Read... [20:45:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:45:14]Read from MH i2c: E2 [20:45:14]MH_I2C_Read... [20:45:14]Read from MH i2c: E2 62 00 [20:45:14]MH_I2C_Read... [20:45:14]Read from MH i2c: E2 62 00 74 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 25 C2 00 00 0E 04 04 00 D1 01 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 93 [20:45: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 25 C2 00 00 0E 04 04 00 D1 01 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 [20:45:14]wFMCommunicate OK [20:45:14]SAM_PROTO_GetFieldsCounters done [20:45:14]requested_item shift.num is exist - process it [20:45:14]requested_item shift.opened is exist - process it [20:45:14]req_shift_opened [20:45:14]FM_GetShiftState [20:45:14]SAM_PROTO_GetShiftState [20:45:14]wFMCommunicate request_size=4 [20:45:14]MH_SAM_APDU [20:45:14]CAPDU: 80 13 01 00 [20:45:14]Write to MH i2c: E2 08 00 75 32 80 13 01 00 00 00 00 00 24 [20:45:14]Write i2c OK [20:45:14]MH_I2C_Read... [20:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:14]Read from MH i2c: E2 [20:45:14]MH_I2C_Read... [20:45:14]Read from MH i2c: E2 0E 00 [20:45:14]MH_I2C_Read... [20:45:14]Read from MH i2c: E2 0E 00 75 32 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 69 [20:45:14]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [20:45:14]wFMCommunicate OK [20:45:14]SAM_PROTO_GetShiftState done [20:45:14]FM_GetShiftState done [20:45:14]req_shift_opened done [20:45:14]requested_item shift.open_date is exist - process it [20:45:14]req_shift_open_date [20:45:14]req_shift_open_date done [20:45:14]produce_requested_data done [20:45:14]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49701,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [20:45:14]process_action_free close_receipt [20:45:14]json_value_free [20:45:14]json_value_free done [20:45:14]process_json_proto returns [20:45:14]Send response to host [20:45:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49701,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [20:45:14]free response buf [20:45:14]execute_script done [20:45:14]execute_script returns [20:45:14]free content buf [20:45:14]Sock 7.Close socket [20:45:14]Sock 7.Thread stoped [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:06]int [21:11:06]Write to MH i2c: 01 00 00 76 32 A8 [21:11:06]*** FLAG_PRN_KEY set [21:11:06]Write i2c OK [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 07 00 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 07 00 76 32 00 08 00 00 00 FF 0F C5 [21:11:06]state=0 [21:11:06]Key pressed [21:11:06]Feed [21:11:06]Write to MH i2c: D8 00 00 77 32 80 [21:11:06]Write i2c OK [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: D8 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: D8 01 00 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: D8 01 00 77 32 00 81 [21:11:06]int [21:11:06]Write to MH i2c: 01 00 00 78 32 AA [21:11:06]Write i2c OK [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 07 00 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 07 00 78 32 00 48 00 00 00 3C 00 35 [21:11:06]state=2 [21:11:06]Key pressed [21:11:06]int [21:11:06]Write to MH i2c: 01 00 00 79 32 AB [21:11:06]*** FLAG_PRN_KEY reset [21:11:06]Write i2c OK [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 07 00 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 07 00 79 32 00 00 00 00 00 FE 0F BF [21:11:06]state=2 [21:11:06]Stop feed [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]accept exits with 9 [21:13:04]New connection [21:13:04]New thread 3066944868 created [21:13:04]Thread 3066801508 joined [21:13:04]Waiting for new connection... [21:13:04] Sock 9.Parse request [21:13:04]Sock 9.Check first char [21:13:04]Sock 9.First char is OK [21:13:04]request: POST /json_proto HTTP/1.0 [21:13:04]Method: POST [21:13:04]URL: /json_proto [21:13:04]Method is POST - this is cgi request [21:13:04]url: /json_proto [21:13:04]query_string will be loaded in cgi processing [21:13:04]execute_cgi json_proto POST (null) [21:13:04]execute_cgi path=json_proto method=POST [21:13:04]POST find Content-Length [21:13:04]Host: 172.17.46.196:8080 [21:13:04]Content-Length: 2150 [21:13:04]Content-Type: application/json [21:13:04] [21:13:04]POST finish read [21:13:04]Found Content-Length = 2150 [21:13:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189884", "tax_sys" : 0, "items" : [ { "code": "4600721018832", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u0437\u043E\u043B 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 755.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:04]execute_script... [21:13:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189884", "tax_sys" : 0, "items" : [ { "code": "4600721018832", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u0437\u043E\u043B 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 755.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:04]POST & json_proto [21:13:04]process_json_proto [21:13:04]json parsed OK: [21:13:04]protocol is kg_v1.0 [21:13:04]action value=close_receipt [21:13:04]process_action close_receipt [21:13:04]cmd_close_receipt [21:13:04]MH_GetDate [21:13:04]Write to MH i2c: F0 00 00 7A 32 9B [21:13:04]Write i2c OK [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: F0 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: F0 09 00 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: F0 09 00 7A 32 00 66 12 C1 66 07 E8 5D 66 F5 [21:13:04]GetLastDocTimeStamp 1723927515 [21:13:04]current date 1723929190 [21:13:04]FM_GetShiftState [21:13:04]SAM_PROTO_GetShiftState [21:13:04]wFMCommunicate request_size=4 [21:13:04]MH_SAM_APDU [21:13:04]CAPDU: 80 13 01 00 [21:13:04]Write to MH i2c: E2 08 00 7B 32 80 13 01 00 00 00 00 00 2A [21:13:04]Write i2c OK [21:13:04]MH_I2C_Read... [21:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:04]Read from MH i2c: E2 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: E2 0E 00 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: E2 0E 00 7B 32 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 6F [21:13:04]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:13:04]wFMCommunicate OK [21:13:04]SAM_PROTO_GetShiftState done [21:13:04]FM_GetShiftState done [21:13:04]opened in 1723853354 [21:13:04]opened+sec_in_day 1723939754 [21:13:04]quantity*price = 14500 [21:13:04]sum+1 = 14501 [21:13:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700001610012 Пиво Арпа 0,5л 2.000 * 145.00 = 290.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745895 Сигареты RICHMOND KS GOLD EDITION 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4650243871828 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000027340020 Пакет бумажный витая ручка 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 755.00 НСП 1% : 6.68 НДС 12% : 80.18 Наличными: 0.00 Безнал.: 755.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 139 17.08.2024 21:13 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49702 ФПД: 133041049331515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T211310&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49702&fm=133041049331515&tin=02508201610067®Number=0000000000092546&sum=75500 0 [21:13:06]StoreToDocumentArchive [21:13:06]shift 465 fd 49702 [21:13:06]save to /storage/0465/doc_00049702 [21:13:06]save last doc name /storage/0465/doc_00049702 to /storage/kkm_last_doc_name [21:13:06]save OK [21:13:06]Clear old archive folders... [21:13:06]ProcessDocumentItem done err = 0, tmpTLVsize=829 [21:13:06]tlvbuf is 01915AD0 [21:13:06]SAM_PROTO_ClearQueue [21:13:06]wFMCommunicate request_size=4 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 09 00 00 [21:13:06]Write to MH i2c: E2 08 00 88 32 80 09 00 00 00 00 00 00 2C [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:06]Read from MH i2c: E2 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 03 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 03 00 88 32 00 90 00 2E [21:13:06]RAPDU: 90 00 [21:13:06]wFMCommunicate OK [21:13:06]SAM_PROTO_ClearQueue done [21:13:06]KKMCreateOFDPacket [21:13:06]OFDProtocolAddRootSTLVToBuf [21:13:06]FM_MakeSignedData [21:13:06]FM_MakeSignedData [21:13:06]SAM_PROTO_SignData [21:13:06]wFMCommunicate request_size=4 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 0D 01 02 [21:13:06]Write to MH i2c: E2 08 00 89 32 80 0D 01 02 00 00 00 00 34 [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:06]Read from MH i2c: E2 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 03 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 03 00 89 32 00 90 00 2F [21:13:06]RAPDU: 90 00 [21:13:06]wFMCommunicate OK [21:13:06]wFMCommunicate request_size=255 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 0D 02 02 FA 03 00 3D 03 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 [21:13:06]Write to MH i2c: E2 02 01 8A 32 80 0D 02 02 FA 00 03 00 3D 03 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 00 00 C8 [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:06]Read from MH i2c: E2 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 03 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 03 00 8A 32 00 90 00 30 [21:13:06]RAPDU: 90 00 [21:13:06]wFMCommunicate OK [21:13:06]wFMCommunicate request_size=255 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 0D 02 02 FA D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 [21:13:06]Write to MH i2c: E2 02 01 8B 32 80 0D 02 02 FA 00 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 00 00 BE [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:06]Read from MH i2c: E2 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 03 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 03 00 8B 32 00 90 00 31 [21:13:06]RAPDU: 90 00 [21:13:06]wFMCommunicate OK [21:13:06]wFMCommunicate request_size=255 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 0D 02 02 FA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 26 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 [21:13:06]Write to MH i2c: E2 02 01 8C 32 80 0D 02 02 FA 00 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 26 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 00 06 [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:06]Read from MH i2c: E2 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 03 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 03 00 8C 32 00 90 00 32 [21:13:06]RAPDU: 90 00 [21:13:06]wFMCommunicate OK [21:13:06]wFMCommunicate request_size=88 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 0D 02 02 53 8B 00 00 00 F4 03 04 00 66 12 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C2 00 00 35 04 06 00 79 00 08 7C 67 3B [21:13:06]Write to MH i2c: E2 5B 00 8D 32 80 0D 02 02 53 00 8B 00 00 00 F4 03 04 00 66 12 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C2 00 00 35 04 06 00 79 00 08 7C 67 3B 00 00 01 [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:07]Read from MH i2c: E2 [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: E2 03 00 [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: E2 03 00 8D 32 00 90 00 33 [21:13:07]RAPDU: 90 00 [21:13:07]wFMCommunicate OK [21:13:07]wFMCommunicate request_size=4 [21:13:07]MH_SAM_APDU [21:13:07]CAPDU: 80 0D 03 02 [21:13:07]Write to MH i2c: E2 08 00 8E 32 80 0D 03 02 00 00 00 00 3B [21:13:07]Write i2c OK [21:13:07]MH_I2C_Read... [21:13:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:07]Read from MH i2c: E2 [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: E2 0B 00 [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: E2 0B 00 8E 32 00 DD 40 2C B8 11 8F DD 78 90 00 32 [21:13:07]RAPDU: DD 40 2C B8 11 8F DD 78 90 00 [21:13:07]wFMCommunicate OK [21:13:07]SAM_PROTO_SignData done [21:13:07]FM_MakeSignedData done [21:13:07]CreateOFDProtocolMessage [21:13:07]wFMCommunicate request_size=4 [21:13:07]MH_SAM_APDU [21:13:07]CAPDU: 80 11 00 00 [21:13:07]Write to MH i2c: E2 08 00 8F 32 80 11 00 00 00 00 00 00 3B [21:13:07]Write i2c OK [21:13:07]MH_I2C_Read... [21:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:07]Read from MH i2c: E2 [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: E2 17 00 [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: E2 17 00 8F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 86 [21:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:13:07]wFMCommunicate OK [21:13:07]CreateOFDProtocolMessage done [21:13:07]OFDSenderStorePacket 49702 [21:13:07]StoreOFDPacket docnum=49702 [21:13:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 51 03 00 00 8D 87 49 03 C1 80 5A 03 01 00 03 00 3D 03 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 26 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 66 12 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C2 00 00 35 04 06 00 79 00 08 7C 67 3B DD 40 2C B8 11 8F DD 78 [21:13:07]CheckFolder [21:13:07]dirname=/storage/ofd_packets [21:13:07]CheckFolder done [21:13:07]ProducePacketName [21:13:07]name=ofd_packets/00049702 [21:13:07]NVStorageSaveData ofd_packets/00049702 [21:13:07]File name is /storage/ofd_packets/00049702 [21:13:07]Write 879 bytes [21:13:07]NVStorageSaveData done [21:13:07]OFDSenderStorePacket done [21:13:07]KKMCreateOFDPacket done [21:13:07]NVStorageSaveData kkm_last_timestamp [21:13:07]File name is /storage/kkm_last_timestamp [21:13:07]Write 4 bytes [21:13:07]NVStorageSaveData done [21:13:07]ExternCall_PrintAddStr [21:13:07]wPrintStart [21:13:07]Write to MH i2c: 01 00 00 90 32 C2 [21:13:07]Write i2c OK [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: 01 [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: 01 07 00 [21:13:07]MH_I2C_Read... [21:13:07]Read from MH i2c: 01 07 00 90 32 00 00 00 00 00 FF 0F D7 [21:13:07]RasterBufferAndPrint [21:13:07]line Счет N : (3)189884 [21:13:07]line ИНН: 02508201610067 [21:13:07]line Контрольно-Кассовый Чек [21:13:07]line ПРОДАЖА [21:13:07]line Товар: 4600721018832 [21:13:07]line Пиво Сиб.Кор зол 0,5л ст [21:13:07]line 1.000 * 145.00 [21:13:07]line = 145.00 [21:13:07]line НДС 12% НСП 1% [21:13:07]line > о реализуемом товаре [21:13:07]line Товар: 4700001610012 [21:13:07]line Пиво Арпа 0,5л [21:13:07]line 2.000 * 145.00 [21:13:07]line = 290.00 [21:13:07]line НДС 12% НСП 1% [21:13:07]line > о реализуемом товаре [21:13:07]line Товар: 48745895 [21:13:07]line Сигареты RICHMOND KS GOLD EDITION [21:13:07]line 1.000 * 155.00 [21:13:07]line = 155.00 [21:13:07]line НДС 12% НСП 1% [21:13:07]line > о реализуемом товаре [21:13:07]line Товар: 4700000160358 [21:13:07]line Вода Легенда 1л [21:13:07]line 1.000 * 50.00 [21:13:07]line = 50.00 [21:13:07]line НДС 12% НСП 1% [21:13:07]line > о реализуемом товаре [21:13:07]line Товар: 4650243871828 [21:13:07]line Gorilla эн нап манго-кокос 0,45 ж/б [21:13:07]line 1.000 * 90.00 [21:13:07]line = 90.00 [21:13:07]line НДС 12% НСП 1% [21:13:07]line > о реализуемом товаре [21:13:07]line Товар: 2000027340020 [21:13:07]line Пакет бумажный витая ручка [21:13:07]line 1.000 * 25.00 [21:13:07]line = 25.00 [21:13:07]line НДС 12% НСП 1% [21:13:07]OFD Sender: Processing packet 49702 [packets to send 21, broken 20] [21:13:07]ProducePacketName [21:13:07]name=ofd_packets/00049702 [21:13:07]OFD Sender: To server: pG, [21:13:07]CommunicateWithHost lk.salyk.kg:30040 [21:13:07]ConnectInit lk.salyk.kg [21:13:07]line > о реализуемом товаре [21:13:07]line ИТОГО: 755.00 [21:13:07]line НСП 1% : 6.68 [21:13:07]line НДС 12% : 80.18 [21:13:07]line Наличными: 0.00 [21:13:07]line Безнал.: 755.00 [21:13:07]line Место: АЗС № 95 "Партнер Нефть" [21:13:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:13:07]line СНО: Общий режим [21:13:07]line Чек 139 17.08.2024 21:13 [21:13:07]line Смена: 465 ФФД: 1.0 [21:13:07]line ЗНМ: 0300000078 [21:13:07]line РНМ: 0000000000092546 [21:13:07]line Версия ККМ: 001 [21:13:07]line Платежная система: O! деньги [21:13:07]line ФМ: 0000000000871800 [21:13:07]line ФД: 49702 [21:13:07]line ФПД: 133041049331515 [21:13:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T211310&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49702&fm=133041049331515&tin=02508201610067®Number=0000000000092546&sum=75500 [21:13:07]line 0 [21:13:07]written 0, free lines is 4095 [21:13:07]Connected sock=7 [21:13:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 51 03 00 00 8D 87 49 03 C1 80 5A 03 01 00 03 00 3D 03 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 26 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 66 12 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C2 00 00 35 04 06 00 79 00 08 7C 67 3B DD 40 2C B8 11 8F DD 78 [21:13:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C2 A4 47 00 4E 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C2 00 00 F4 03 04 00 A2 BD C0 66 B6 04 01 00 00 A6 59 69 F0 6A E8 0D 5A [21:13:08]CommunicateWithHost err = 0 [21:13:08]CheckOFDResponse [21:13:08]1017 (14) - 77093643461234 [21:13:08]1041 (16) - 0000000000871800 [21:13:08]1040 (4) - 49702 [21:13:08]1012 (4) - 17.08.2024 15:11 [21:13:08]1206 (1) - 0 [21:13:08]OFD Sender: Remove packet 49702 [21:13:08]ProducePacketName [21:13:08]name=ofd_packets/00049702 [21:13:08]NVStorageDeleteData [21:13:08]Write to MH i2c: 01 00 00 DA 32 0C [21:13:08]Write i2c OK [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: 01 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: 01 07 00 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: 01 07 00 DA 32 00 00 00 00 00 FE 0A 1B [21:13:08]RasterBufferAndPrint [21:13:08]line [21:13:08]line [21:13:08]line [21:13:08]line [21:13:08]line [21:13:08]written 0, free lines is 2825 [21:13:08]MH_Cut [21:13:08]Write to MH i2c: D1 01 00 E1 32 01 E5 [21:13:08]Write i2c OK [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: D1 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: D1 01 00 [21:13:08]MH_I2C_Read... [21:13:08]Read from MH i2c: D1 01 00 E1 32 00 E4 [21:13:08]Write to MH i2c: 01 00 00 E2 32 14 [21:13:08]Write i2c OK [21:13:08]MH_I2C_Read... [21:13:08]OFD Sender: No OFD packet to send [21:13:09]*** Cut start [21:13:09]*** Purtial cut [21:13:09]*** CUTSNS_PIN = 0 [21:13:09]*** Stage 1: CUTSNS_PIN = 1 [21:13:11]Read from MH i2c: 01 [21:13:11]MH_I2C_Read... [21:13:11]*** Stop cut motor [21:13:11]*** Cut end [21:13:11]Read from MH i2c: 01 07 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: 01 07 00 E2 32 00 00 00 00 00 FF 0F 29 [21:13:11]process_action close_receipt done [21:13:11]requested_data is exist [21:13:11]produce_requested_data [21:13:11]requested_item fm.sn is exist - process it [21:13:11]wFMCommunicate request_size=4 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 11 00 00 [21:13:11]Write to MH i2c: E2 08 00 E3 32 80 11 00 00 00 00 00 00 8F [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 17 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 17 00 E3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DA [21:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:13:11]wFMCommunicate OK [21:13:11]requested_item fd.num is exist - process it [21:13:11]SAM_PROTO_GetFieldsCounters [21:13:11]wFMCommunicate request_size=4 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 13 00 00 [21:13:11]Write to MH i2c: E2 08 00 E4 32 80 13 00 00 00 00 00 00 92 [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 62 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 62 00 E4 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 26 C2 00 00 0E 04 04 00 D1 01 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 07 [21:13: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 26 C2 00 00 0E 04 04 00 D1 01 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 [21:13:11]wFMCommunicate OK [21:13:11]SAM_PROTO_GetFieldsCounters done [21:13:11]requested_item shift.num is exist - process it [21:13:11]requested_item shift.opened is exist - process it [21:13:11]req_shift_opened [21:13:11]FM_GetShiftState [21:13:11]SAM_PROTO_GetShiftState [21:13:11]wFMCommunicate request_size=4 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 13 01 00 [21:13:11]Write to MH i2c: E2 08 00 E5 32 80 13 01 00 00 00 00 00 94 [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 0E 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 0E 00 E5 32 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D9 [21:13:11]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:13:11]wFMCommunicate OK [21:13:11]SAM_PROTO_GetShiftState done [21:13:11]FM_GetShiftState done [21:13:11]req_shift_opened done [21:13:11]requested_item shift.open_date is exist - process it [21:13:11]req_shift_open_date [21:13:11]req_shift_open_date done [21:13:11]produce_requested_data done [21:13:11]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49702,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [21:13:11]process_action_free close_receipt [21:13:11]json_value_free [21:13:11]json_value_free done [21:13:11]process_json_proto returns [21:13:11]Send response to host [21:13:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49702,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [21:13:11]free response buf [21:13:11]execute_script done [21:13:11]execute_script returns [21:13:11]free content buf [21:13:11]Sock 9.Close socket [21:13:11]Sock 9.Thread stoped [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:52]accept exits with 10 [21:13:52]New connection [21:13:52]New thread 3066801508 created [21:13:52]Thread 3066944868 joined [21:13:52]Waiting for new connection... [21:13:52] Sock 10.Parse request [21:13:52]Sock 10.Check first char [21:13:52]Sock 10.First char is OK [21:13:52]request: POST /json_proto HTTP/1.0 [21:13:52]Method: POST [21:13:52]URL: /json_proto [21:13:52]Method is POST - this is cgi request [21:13:52]url: /json_proto [21:13:52]query_string will be loaded in cgi processing [21:13:52]execute_cgi json_proto POST (null) [21:13:52]execute_cgi path=json_proto method=POST [21:13:52]POST find Content-Length [21:13:52]Host: 172.17.46.196:8080 [21:13:52]Content-Length: 623 [21:13:52]Content-Type: application/json [21:13:52] [21:13:52]POST finish read [21:13:52]Found Content-Length = 623 [21:13:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189885", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:52]execute_script... [21:13:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189885", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:52]POST & json_proto [21:13:52]process_json_proto [21:13:52]json parsed OK: [21:13:52]protocol is kg_v1.0 [21:13:52]action value=close_receipt [21:13:52]process_action close_receipt [21:13:52]cmd_close_receipt [21:13:52]MH_GetDate [21:13:52]Write to MH i2c: F0 00 00 E6 32 07 [21:13:52]Write i2c OK [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: F0 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: F0 09 00 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: F0 09 00 E6 32 00 95 12 C1 66 07 E8 5D 66 90 [21:13:52]GetLastDocTimeStamp 1723929190 [21:13:52]current date 1723929237 [21:13:52]FM_GetShiftState [21:13:52]SAM_PROTO_GetShiftState [21:13:52]wFMCommunicate request_size=4 [21:13:52]MH_SAM_APDU [21:13:52]CAPDU: 80 13 01 00 [21:13:52]Write to MH i2c: E2 08 00 E7 32 80 13 01 00 00 00 00 00 96 [21:13:52]Write i2c OK [21:13:52]MH_I2C_Read... [21:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:52]Read from MH i2c: E2 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 0E 00 [21:13:52]MH_I2C_Read... [21:13:52]Read from MH i2c: E2 0E 00 E7 32 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 DB [21:13:52]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:13:52]wFMCommunicate OK [21:13:52]SAM_PROTO_GetShiftState done [21:13:52]FM_GetShiftState done [21:13:52]opened in 1723853354 [21:13:52]opened+sec_in_day 1723939754 [21:13:52]quantity*price = 14000 [21:13:52]sum+1 = 14001 [21:13:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 140 17.08.2024 21:13 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49703 ФПД: 269466153725487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T211357&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49703&fm=269466153725487&tin=02508201610067®Number=0000000000092546&sum=14000 0 [21:13:53]StoreToDocumentArchive [21:13:53]shift 465 fd 49703 [21:13:53]save to /storage/0465/doc_00049703 [21:13:53]save last doc name /storage/0465/doc_00049703 to /storage/kkm_last_doc_name [21:13:53]save OK [21:13:53]Clear old archive folders... [21:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=275 [21:13:53]tlvbuf is 01821110 [21:13:53]SAM_PROTO_ClearQueue [21:13:53]wFMCommunicate request_size=4 [21:13:53]MH_SAM_APDU [21:13:53]CAPDU: 80 09 00 00 [21:13:53]Write to MH i2c: E2 08 00 F4 32 80 09 00 00 00 00 00 00 98 [21:13:53]Write i2c OK [21:13:53]MH_I2C_Read... [21:13:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:53]Read from MH i2c: E2 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: E2 03 00 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: E2 03 00 F4 32 00 90 00 9A [21:13:53]RAPDU: 90 00 [21:13:53]wFMCommunicate OK [21:13:53]SAM_PROTO_ClearQueue done [21:13:53]KKMCreateOFDPacket [21:13:53]OFDProtocolAddRootSTLVToBuf [21:13:53]FM_MakeSignedData [21:13:53]FM_MakeSignedData [21:13:53]SAM_PROTO_SignData [21:13:53]wFMCommunicate request_size=4 [21:13:53]MH_SAM_APDU [21:13:53]CAPDU: 80 0D 01 02 [21:13:53]Write to MH i2c: E2 08 00 F5 32 80 0D 01 02 00 00 00 00 A0 [21:13:53]Write i2c OK [21:13:53]MH_I2C_Read... [21:13:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:53]Read from MH i2c: E2 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: E2 03 00 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: E2 03 00 F5 32 00 90 00 9B [21:13:53]RAPDU: 90 00 [21:13:53]wFMCommunicate OK [21:13:53]wFMCommunicate request_size=255 [21:13:53]MH_SAM_APDU [21:13:53]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 95 12 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [21:13:53]Write to MH i2c: E2 02 01 F6 32 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 95 12 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 5D [21:13:53]Write i2c OK [21:13:53]MH_I2C_Read... [21:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:53]Read from MH i2c: E2 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: E2 03 00 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: E2 03 00 F6 32 00 90 00 9C [21:13:53]RAPDU: 90 00 [21:13:53]wFMCommunicate OK [21:13:53]wFMCommunicate request_size=34 [21:13:53]MH_SAM_APDU [21:13:53]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C2 00 00 35 04 06 00 F5 13 FA 5F 2E 2F [21:13:53]Write to MH i2c: E2 25 00 F7 32 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C2 00 00 35 04 06 00 F5 13 FA 5F 2E 2F 00 00 03 [21:13:53]Write i2c OK [21:13:53]MH_I2C_Read... [21:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:53]Read from MH i2c: E2 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: E2 03 00 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: E2 03 00 F7 32 00 90 00 9D [21:13:53]RAPDU: 90 00 [21:13:53]wFMCommunicate OK [21:13:53]wFMCommunicate request_size=4 [21:13:53]MH_SAM_APDU [21:13:53]CAPDU: 80 0D 03 02 [21:13:53]Write to MH i2c: E2 08 00 F8 32 80 0D 03 02 00 00 00 00 A5 [21:13:53]Write i2c OK [21:13:53]MH_I2C_Read... [21:13:53]OFD Sender: No OFD packet to send [21:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:53]Read from MH i2c: E2 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: E2 0B 00 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: E2 0B 00 F8 32 00 57 26 10 B9 E0 34 2B 1C 90 00 47 [21:13:53]RAPDU: 57 26 10 B9 E0 34 2B 1C 90 00 [21:13:53]wFMCommunicate OK [21:13:53]SAM_PROTO_SignData done [21:13:53]FM_MakeSignedData done [21:13:53]CreateOFDProtocolMessage [21:13:53]wFMCommunicate request_size=4 [21:13:53]MH_SAM_APDU [21:13:53]CAPDU: 80 11 00 00 [21:13:53]Write to MH i2c: E2 08 00 F9 32 80 11 00 00 00 00 00 00 A5 [21:13:53]Write i2c OK [21:13:53]MH_I2C_Read... [21:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:53]Read from MH i2c: E2 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: E2 17 00 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: E2 17 00 F9 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F0 [21:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:13:53]wFMCommunicate OK [21:13:53]CreateOFDProtocolMessage done [21:13:53]OFDSenderStorePacket 49703 [21:13:53]StoreOFDPacket docnum=49703 [21:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 8E 42 1F 01 FD C2 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 95 12 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C2 00 00 35 04 06 00 F5 13 FA 5F 2E 2F 57 26 10 B9 E0 34 2B 1C [21:13:53]CheckFolder [21:13:53]dirname=/storage/ofd_packets [21:13:53]CheckFolder done [21:13:53]ProducePacketName [21:13:53]name=ofd_packets/00049703 [21:13:53]NVStorageSaveData ofd_packets/00049703 [21:13:53]File name is /storage/ofd_packets/00049703 [21:13:53]Write 325 bytes [21:13:53]NVStorageSaveData done [21:13:53]OFDSenderStorePacket done [21:13:53]KKMCreateOFDPacket done [21:13:53]NVStorageSaveData kkm_last_timestamp [21:13:53]File name is /storage/kkm_last_timestamp [21:13:53]Write 4 bytes [21:13:53]NVStorageSaveData done [21:13:53]ExternCall_PrintAddStr [21:13:53]wPrintStart [21:13:53]Write to MH i2c: 01 00 00 FA 32 2C [21:13:53]Write i2c OK [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: 01 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: 01 07 00 [21:13:53]MH_I2C_Read... [21:13:53]Read from MH i2c: 01 07 00 FA 32 00 00 00 00 00 FF 0F 41 [21:13:53]RasterBufferAndPrint [21:13:53]line Счет N : (3)189885 [21:13:53]line ИНН: 02508201610067 [21:13:53]line Контрольно-Кассовый Чек [21:13:53]line ПРОДАЖА [21:13:53]line Товар: 48743587 [21:13:53]line Сигареты Winston XStyle Silver [21:13:53]line 1.000 * 140.00 [21:13:53]line = 140.00 [21:13:53]line НДС 12% НСП 1% [21:13:53]line > о реализуемом товаре [21:13:53]line ИТОГО: 140.00 [21:13:53]line НСП 1% : 1.24 [21:13:53]line НДС 12% : 14.87 [21:13:53]line Наличными: 140.00 [21:13:53]line Безнал.: 0.00 [21:13:53]line Место: АЗС № 95 "Партнер Нефть" [21:13:53]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:13:53]line СНО: Общий режим [21:13:53]line Чек 140 17.08.2024 21:13 [21:13:53]line Смена: 465 ФФД: 1.0 [21:13:53]line ЗНМ: 0300000078 [21:13:53]line РНМ: 0000000000092546 [21:13:53]line Версия ККМ: 001 [21:13:53]line ФМ: 0000000000871800 [21:13:53]line ФД: 49703 [21:13:53]line ФПД: 269466153725487 [21:13:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T211357&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49703&fm=269466153725487&tin=02508201610067®Number=0000000000092546&sum=14000 [21:13:54]line 0 [21:13:54]OFD Sender: Processing packet 49703 [packets to send 21, broken 20] [21:13:54]ProducePacketName [21:13:54]name=ofd_packets/00049703 [21:13:54]OFD Sender: To server: pG, [21:13:54]CommunicateWithHost lk.salyk.kg:30040 [21:13:54]ConnectInit lk.salyk.kg [21:13:54]written 0, free lines is 4095 [21:13:54]Connected sock=9 [21:13:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 8E 42 1F 01 FD C2 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 95 12 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C2 00 00 35 04 06 00 F5 13 FA 5F 2E 2F 57 26 10 B9 E0 34 2B 1C [21:13:54]Write to MH i2c: 01 00 00 23 33 56 [21:13:54]Write i2c OK [21:13:54]MH_I2C_Read... [21:13:54]Read from MH i2c: 01 [21:13:54]MH_I2C_Read... [21:13:54]Read from MH i2c: 01 07 00 [21:13:54]MH_I2C_Read... [21:13:54]Read from MH i2c: 01 07 00 23 33 00 00 00 00 00 D2 0C 3B [21:13:54]RasterBufferAndPrint [21:13:54]line [21:13:54]line [21:13:54]line [21:13:54]line [21:13:54]line [21:13:54]written 0, free lines is 3287 [21:13:54]MH_Cut [21:13:54]Write to MH i2c: D1 01 00 2A 33 01 2F [21:13:54]Write i2c OK [21:13:54]MH_I2C_Read... [21:13:54]Read from MH i2c: D1 [21:13:54]MH_I2C_Read... [21:13:54]Read from MH i2c: D1 01 00 [21:13:54]MH_I2C_Read... [21:13:54]Read from MH i2c: D1 01 00 2A 33 00 2E [21:13:54]Write to MH i2c: 01 00 00 2B 33 5E [21:13:54]Write i2c OK [21:13:54]MH_I2C_Read... [21:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 95 22 47 00 2B CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C2 00 00 F4 03 04 00 D0 BD C0 66 B6 04 01 00 00 79 DE CE D2 7B B3 DA 50 [21:13:54]CommunicateWithHost err = 0 [21:13:54]CheckOFDResponse [21:13:54]1017 (14) - 77093643461234 [21:13:54]1041 (16) - 0000000000871800 [21:13:54]1040 (4) - 49703 [21:13:54]1012 (4) - 17.08.2024 15:12 [21:13:54]1206 (1) - 0 [21:13:54]OFD Sender: Remove packet 49703 [21:13:54]ProducePacketName [21:13:54]name=ofd_packets/00049703 [21:13:54]NVStorageDeleteData [21:13:55]OFD Sender: No OFD packet to send [21:13:55]*** Cut start [21:13:55]*** Purtial cut [21:13:55]*** Stage 1: CUTSNS_PIN = 1 [21:13:55]Read from MH i2c: 01 [21:13:55]MH_I2C_Read... [21:13:55]*** Stop cut motor [21:13:55]*** Cut end [21:13:55]Read from MH i2c: 01 07 00 [21:13:55]MH_I2C_Read... [21:13:55]Read from MH i2c: 01 07 00 2B 33 00 00 00 00 00 FF 0F 73 [21:13:55]process_action close_receipt done [21:13:55]requested_data is exist [21:13:55]produce_requested_data [21:13:55]requested_item fm.sn is exist - process it [21:13:55]wFMCommunicate request_size=4 [21:13:55]MH_SAM_APDU [21:13:55]CAPDU: 80 11 00 00 [21:13:55]Write to MH i2c: E2 08 00 2C 33 80 11 00 00 00 00 00 00 D9 [21:13:55]Write i2c OK [21:13:55]MH_I2C_Read... [21:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:55]Read from MH i2c: E2 [21:13:55]MH_I2C_Read... [21:13:55]Read from MH i2c: E2 17 00 [21:13:55]MH_I2C_Read... [21:13:55]Read from MH i2c: E2 17 00 2C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 24 [21:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:13:55]wFMCommunicate OK [21:13:55]requested_item fd.num is exist - process it [21:13:55]SAM_PROTO_GetFieldsCounters [21:13:55]wFMCommunicate request_size=4 [21:13:55]MH_SAM_APDU [21:13:55]CAPDU: 80 13 00 00 [21:13:55]Write to MH i2c: E2 08 00 2D 33 80 13 00 00 00 00 00 00 DC [21:13:55]Write i2c OK [21:13:55]MH_I2C_Read... [21:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:55]Read from MH i2c: E2 [21:13:55]MH_I2C_Read... [21:13:55]Read from MH i2c: E2 62 00 [21:13:55]MH_I2C_Read... [21:13:55]Read from MH i2c: E2 62 00 2D 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 27 C2 00 00 0E 04 04 00 D1 01 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 55 [21:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 27 C2 00 00 0E 04 04 00 D1 01 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 [21:13:55]wFMCommunicate OK [21:13:55]SAM_PROTO_GetFieldsCounters done [21:13:55]requested_item shift.num is exist - process it [21:13:55]requested_item shift.opened is exist - process it [21:13:55]req_shift_opened [21:13:55]FM_GetShiftState [21:13:55]SAM_PROTO_GetShiftState [21:13:55]wFMCommunicate request_size=4 [21:13:55]MH_SAM_APDU [21:13:55]CAPDU: 80 13 01 00 [21:13:55]Write to MH i2c: E2 08 00 2E 33 80 13 01 00 00 00 00 00 DE [21:13:55]Write i2c OK [21:13:55]MH_I2C_Read... [21:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:55]Read from MH i2c: E2 [21:13:55]MH_I2C_Read... [21:13:55]Read from MH i2c: E2 0E 00 [21:13:55]MH_I2C_Read... [21:13:55]Read from MH i2c: E2 0E 00 2E 33 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 23 [21:13:55]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:13:55]wFMCommunicate OK [21:13:55]SAM_PROTO_GetShiftState done [21:13:55]FM_GetShiftState done [21:13:55]req_shift_opened done [21:13:55]requested_item shift.open_date is exist - process it [21:13:55]req_shift_open_date [21:13:55]req_shift_open_date done [21:13:55]produce_requested_data done [21:13:55]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49703,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [21:13:55]process_action_free close_receipt [21:13:55]json_value_free [21:13:55]json_value_free done [21:13:55]process_json_proto returns [21:13:55]Send response to host [21:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49703,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [21:13:55]free response buf [21:13:55]execute_script done [21:13:55]execute_script returns [21:13:55]free content buf [21:13:55]Sock 10.Close socket [21:13:55]Sock 10.Thread stoped [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:37]int [21:18:37]Write to MH i2c: 01 00 00 2F 33 62 [21:18:37]*** FLAG_PRN_KEY set [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: 01 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: 01 07 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: 01 07 00 2F 33 00 08 00 00 00 FF 0F 7F [21:18:37]state=0 [21:18:37]Key pressed [21:18:37]Feed [21:18:37]Write to MH i2c: D8 00 00 30 33 3A [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: D8 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: D8 01 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: D8 01 00 30 33 00 3B [21:18:37]int [21:18:37]Write to MH i2c: 01 00 00 31 33 64 [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: 01 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: 01 07 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: 01 07 00 31 33 00 48 00 00 00 3C 00 EF [21:18:37]state=2 [21:18:37]Key pressed [21:18:37]int [21:18:37]Write to MH i2c: 01 00 00 32 33 65 [21:18:37]*** FLAG_PRN_KEY reset [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: 01 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: 01 07 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: 01 07 00 32 33 00 00 00 00 00 F8 0F 73 [21:18:37]state=2 [21:18:37]Stop feed [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:19]accept exits with 7 [21:20:19]New connection [21:20:19]New thread 3066944868 created [21:20:19]Thread 3066801508 joined [21:20:19]Waiting for new connection... [21:20:19] Sock 7.Parse request [21:20:19]Sock 7.Check first char [21:20:19]Sock 7.First char is OK [21:20:19]request: POST /json_proto HTTP/1.0 [21:20:19]Method: POST [21:20:19]URL: /json_proto [21:20:19]Method is POST - this is cgi request [21:20:19]url: /json_proto [21:20:19]query_string will be loaded in cgi processing [21:20:19]execute_cgi json_proto POST (null) [21:20:19]execute_cgi path=json_proto method=POST [21:20:19]POST find Content-Length [21:20:19]Host: 172.17.46.196:8080 [21:20:19]Content-Length: 812 [21:20:19]Content-Type: application/json [21:20:19] [21:20:19]POST finish read [21:20:19]Found Content-Length = 812 [21:20:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189886", "tax_sys" : 0, "items" : [ { "code": "4870227272612", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 0,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:19]execute_script... [21:20:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189886", "tax_sys" : 0, "items" : [ { "code": "4870227272612", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 0,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:19]POST & json_proto [21:20:19]process_json_proto [21:20:19]json parsed OK: [21:20:19]protocol is kg_v1.0 [21:20:19]action value=close_receipt [21:20:19]process_action close_receipt [21:20:19]cmd_close_receipt [21:20:19]MH_GetDate [21:20:19]Write to MH i2c: F0 00 00 33 33 55 [21:20:19]Write i2c OK [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: F0 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: F0 09 00 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: F0 09 00 33 33 00 18 14 C1 66 07 E8 5D 66 63 [21:20:19]GetLastDocTimeStamp 1723929237 [21:20:19]current date 1723929624 [21:20:19]FM_GetShiftState [21:20:19]SAM_PROTO_GetShiftState [21:20:19]wFMCommunicate request_size=4 [21:20:19]MH_SAM_APDU [21:20:19]CAPDU: 80 13 01 00 [21:20:19]Write to MH i2c: E2 08 00 34 33 80 13 01 00 00 00 00 00 E4 [21:20:19]Write i2c OK [21:20:19]MH_I2C_Read... [21:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:19]Read from MH i2c: E2 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 0E 00 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 0E 00 34 33 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 29 [21:20:19]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:20:19]wFMCommunicate OK [21:20:19]SAM_PROTO_GetShiftState done [21:20:19]FM_GetShiftState done [21:20:19]opened in 1723853354 [21:20:19]opened+sec_in_day 1723939754 [21:20:19]quantity*price = 5500 [21:20:19]sum+1 = 5501 [21:20:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 0.00 Безнал.: 55.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 141 17.08.2024 21:20 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49704 ФПД: 69648970181453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T212024&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49704&fm=69648970181453&tin=02508201610067®Number=0000000000092546&sum=5500 0 [21:20:20]StoreToDocumentArchive [21:20:20]shift 465 fd 49704 [21:20:20]save to /storage/0465/doc_00049704 [21:20:20]save last doc name /storage/0465/doc_00049704 to /storage/kkm_last_doc_name [21:20:20]save OK [21:20:20]Clear old archive folders... [21:20:20]ProcessDocumentItem done err = 0, tmpTLVsize=282 [21:20:20]tlvbuf is 01898970 [21:20:20]SAM_PROTO_ClearQueue [21:20:20]wFMCommunicate request_size=4 [21:20:20]MH_SAM_APDU [21:20:20]CAPDU: 80 09 00 00 [21:20:20]Write to MH i2c: E2 08 00 41 33 80 09 00 00 00 00 00 00 E6 [21:20:20]Write i2c OK [21:20:20]MH_I2C_Read... [21:20:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:20]Read from MH i2c: E2 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 03 00 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 03 00 41 33 00 90 00 E8 [21:20:20]RAPDU: 90 00 [21:20:20]wFMCommunicate OK [21:20:20]SAM_PROTO_ClearQueue done [21:20:20]KKMCreateOFDPacket [21:20:20]OFDProtocolAddRootSTLVToBuf [21:20:20]FM_MakeSignedData [21:20:20]FM_MakeSignedData [21:20:20]SAM_PROTO_SignData [21:20:20]wFMCommunicate request_size=4 [21:20:20]MH_SAM_APDU [21:20:20]CAPDU: 80 0D 01 02 [21:20:20]Write to MH i2c: E2 08 00 42 33 80 0D 01 02 00 00 00 00 EE [21:20:20]Write i2c OK [21:20:20]MH_I2C_Read... [21:20:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:20]OFD Sender: No OFD packet to send [21:20:20]Read from MH i2c: E2 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 03 00 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 03 00 42 33 00 90 00 E9 [21:20:20]RAPDU: 90 00 [21:20:20]wFMCommunicate OK [21:20:20]wFMCommunicate request_size=255 [21:20:20]MH_SAM_APDU [21:20:20]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 31 32 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 18 14 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [21:20:20]Write to MH i2c: E2 02 01 43 33 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 31 32 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 18 14 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 5D [21:20:20]Write i2c OK [21:20:20]MH_I2C_Read... [21:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:20]Read from MH i2c: E2 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 03 00 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 03 00 43 33 00 90 00 EA [21:20:20]RAPDU: 90 00 [21:20:20]wFMCommunicate OK [21:20:20]wFMCommunicate request_size=41 [21:20:20]MH_SAM_APDU [21:20:20]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 28 C2 00 00 35 04 06 00 3F 58 6A 20 6B 4D [21:20:20]Write to MH i2c: E2 2C 00 44 33 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 28 C2 00 00 35 04 06 00 3F 58 6A 20 6B 4D 00 00 7B [21:20:20]Write i2c OK [21:20:20]MH_I2C_Read... [21:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:20]Read from MH i2c: E2 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 03 00 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 03 00 44 33 00 90 00 EB [21:20:20]RAPDU: 90 00 [21:20:20]wFMCommunicate OK [21:20:20]wFMCommunicate request_size=4 [21:20:20]MH_SAM_APDU [21:20:20]CAPDU: 80 0D 03 02 [21:20:20]Write to MH i2c: E2 08 00 45 33 80 0D 03 02 00 00 00 00 F3 [21:20:20]Write i2c OK [21:20:20]MH_I2C_Read... [21:20:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:20]Read from MH i2c: E2 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 0B 00 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 0B 00 45 33 00 BB B5 8A 7E B7 6D 80 14 90 00 24 [21:20:20]RAPDU: BB B5 8A 7E B7 6D 80 14 90 00 [21:20:20]wFMCommunicate OK [21:20:20]SAM_PROTO_SignData done [21:20:20]FM_MakeSignedData done [21:20:20]CreateOFDProtocolMessage [21:20:20]wFMCommunicate request_size=4 [21:20:20]MH_SAM_APDU [21:20:20]CAPDU: 80 11 00 00 [21:20:20]Write to MH i2c: E2 08 00 46 33 80 11 00 00 00 00 00 00 F3 [21:20:20]Write i2c OK [21:20:20]MH_I2C_Read... [21:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:20]Read from MH i2c: E2 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 17 00 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 17 00 46 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3E [21:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:20:20]wFMCommunicate OK [21:20:20]CreateOFDProtocolMessage done [21:20:20]OFDSenderStorePacket 49704 [21:20:20]StoreOFDPacket docnum=49704 [21:20:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 82 33 26 01 96 30 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 31 32 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 18 14 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 28 C2 00 00 35 04 06 00 3F 58 6A 20 6B 4D BB B5 8A 7E B7 6D 80 14 [21:20:20]CheckFolder [21:20:20]dirname=/storage/ofd_packets [21:20:20]CheckFolder done [21:20:20]ProducePacketName [21:20:20]name=ofd_packets/00049704 [21:20:20]NVStorageSaveData ofd_packets/00049704 [21:20:20]File name is /storage/ofd_packets/00049704 [21:20:20]Write 332 bytes [21:20:20]NVStorageSaveData done [21:20:20]OFDSenderStorePacket done [21:20:20]KKMCreateOFDPacket done [21:20:20]NVStorageSaveData kkm_last_timestamp [21:20:20]File name is /storage/kkm_last_timestamp [21:20:20]Write 4 bytes [21:20:20]NVStorageSaveData done [21:20:20]ExternCall_PrintAddStr [21:20:20]wPrintStart [21:20:20]Write to MH i2c: 01 00 00 47 33 7A [21:20:20]Write i2c OK [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: 01 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: 01 07 00 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: 01 07 00 47 33 00 00 00 00 00 FF 0F 8F [21:20:20]RasterBufferAndPrint [21:20:20]line Счет N : (3)189886 [21:20:20]line ИНН: 02508201610067 [21:20:20]line Контрольно-Кассовый Чек [21:20:20]line ПРОДАЖА [21:20:20]line Товар: 4870227272612 [21:20:20]line Лимонад Sunbel Тархун 0,5л [21:20:20]line 1.000 * 55.00 [21:20:20]line = 55.00 [21:20:20]line НДС 12% НСП 1% [21:20:20]line > о реализуемом товаре [21:20:20]line ИТОГО: 55.00 [21:20:20]line НСП 1% : 0.49 [21:20:20]line НДС 12% : 5.84 [21:20:20]line Наличными: 0.00 [21:20:20]line Безнал.: 55.00 [21:20:20]line Место: АЗС № 95 "Партнер Нефть" [21:20:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:20:20]line СНО: Общий режим [21:20:20]line Чек 141 17.08.2024 21:20 [21:20:20]line Смена: 465 ФФД: 1.0 [21:20:20]line ЗНМ: 0300000078 [21:20:20]line РНМ: 0000000000092546 [21:20:20]line Версия ККМ: 001 [21:20:20]line Платежная система: O! деньги [21:20:20]line ФМ: 0000000000871800 [21:20:20]line ФД: 49704 [21:20:20]line ФПД: 69648970181453 [21:20:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T212024&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49704&fm=69648970181453&tin=02508201610067®Number=0000000000092546&sum=5500 [21:20:21]line 0 [21:20:21]OFD Sender: Processing packet 49704 [packets to send 21, broken 20] [21:20:21]ProducePacketName [21:20:21]name=ofd_packets/00049704 [21:20:21]OFD Sender: To server: pG, [21:20:21]CommunicateWithHost lk.salyk.kg:30040 [21:20:21]ConnectInit lk.salyk.kg [21:20:21]written 0, free lines is 4095 [21:20:21]Connected sock=10 [21:20:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 82 33 26 01 96 30 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 31 32 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 18 14 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 28 C2 00 00 35 04 06 00 3F 58 6A 20 6B 4D BB B5 8A 7E B7 6D 80 14 [21:20:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 DE 1E 47 00 D1 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 31 38 30 30 10 04 04 00 28 C2 00 00 F4 03 04 00 53 BF C0 66 B6 04 01 00 00 B4 E9 D9 5B C2 D6 4B 50 [21:20:21]CommunicateWithHost err = 0 [21:20:21]CheckOFDResponse [21:20:21]1017 (14) - 77093643461234 [21:20:21]1041 (16) - 0000000000871800 [21:20:21]1040 (4) - 49704 [21:20:21]1012 (4) - 17.08.2024 15:18 [21:20:21]1206 (1) - 0 [21:20:21]OFD Sender: Remove packet 49704 [21:20:21]ProducePacketName [21:20:21]name=ofd_packets/00049704 [21:20:21]NVStorageDeleteData [21:20:21]Write to MH i2c: 01 00 00 71 33 A4 [21:20:21]Write i2c OK [21:20:21]MH_I2C_Read... [21:20:21]Read from MH i2c: 01 [21:20:21]MH_I2C_Read... [21:20:21]Read from MH i2c: 01 07 00 [21:20:21]MH_I2C_Read... [21:20:21]Read from MH i2c: 01 07 00 71 33 00 00 00 00 00 EA 0C A1 [21:20:21]RasterBufferAndPrint [21:20:21]line [21:20:21]line [21:20:21]line [21:20:21]line [21:20:21]line [21:20:21]written 0, free lines is 3312 [21:20:21]MH_Cut [21:20:21]Write to MH i2c: D1 01 00 78 33 01 7D [21:20:21]Write i2c OK [21:20:21]MH_I2C_Read... [21:20:21]Read from MH i2c: D1 [21:20:21]MH_I2C_Read... [21:20:21]Read from MH i2c: D1 01 00 [21:20:21]MH_I2C_Read... [21:20:21]Read from MH i2c: D1 01 00 78 33 00 7C [21:20:21]Write to MH i2c: 01 00 00 79 33 AC [21:20:21]Write i2c OK [21:20:21]MH_I2C_Read... [21:20:22]OFD Sender: No OFD packet to send [21:20:22]*** Cut start [21:20:22]*** Purtial cut [21:20:22]*** CUTSNS_PIN = 0 [21:20:22]*** Stage 1: CUTSNS_PIN = 1 [21:20:24]Read from MH i2c: 01 [21:20:24]MH_I2C_Read... [21:20:24]*** Stop cut motor [21:20:24]*** Cut end [21:20:24]Read from MH i2c: 01 07 00 [21:20:24]MH_I2C_Read... [21:20:24]Read from MH i2c: 01 07 00 79 33 00 00 00 00 00 FF 0F C1 [21:20:24]process_action close_receipt done [21:20:24]requested_data is exist [21:20:24]produce_requested_data [21:20:24]requested_item fm.sn is exist - process it [21:20:24]wFMCommunicate request_size=4 [21:20:24]MH_SAM_APDU [21:20:24]CAPDU: 80 11 00 00 [21:20:24]Write to MH i2c: E2 08 00 7A 33 80 11 00 00 00 00 00 00 27 [21:20:24]Write i2c OK [21:20:24]MH_I2C_Read... [21:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:24]Read from MH i2c: E2 [21:20:24]MH_I2C_Read... [21:20:24]Read from MH i2c: E2 17 00 [21:20:24]MH_I2C_Read... [21:20:24]Read from MH i2c: E2 17 00 7A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 72 [21:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:20:24]wFMCommunicate OK [21:20:24]requested_item fd.num is exist - process it [21:20:24]SAM_PROTO_GetFieldsCounters [21:20:24]wFMCommunicate request_size=4 [21:20:24]MH_SAM_APDU [21:20:24]CAPDU: 80 13 00 00 [21:20:24]Write to MH i2c: E2 08 00 7B 33 80 13 00 00 00 00 00 00 2A [21:20:24]Write i2c OK [21:20:24]MH_I2C_Read... [21:20:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:24]Read from MH i2c: E2 [21:20:24]MH_I2C_Read... [21:20:24]Read from MH i2c: E2 62 00 [21:20:24]MH_I2C_Read... [21:20:24]Read from MH i2c: E2 62 00 7B 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 28 C2 00 00 0E 04 04 00 D1 01 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 A7 [21:20:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 28 C2 00 00 0E 04 04 00 D1 01 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 [21:20:24]wFMCommunicate OK [21:20:24]SAM_PROTO_GetFieldsCounters done [21:20:24]requested_item shift.num is exist - process it [21:20:24]requested_item shift.opened is exist - process it [21:20:24]req_shift_opened [21:20:24]FM_GetShiftState [21:20:24]SAM_PROTO_GetShiftState [21:20:24]wFMCommunicate request_size=4 [21:20:24]MH_SAM_APDU [21:20:24]CAPDU: 80 13 01 00 [21:20:24]Write to MH i2c: E2 08 00 7C 33 80 13 01 00 00 00 00 00 2C [21:20:24]Write i2c OK [21:20:24]MH_I2C_Read... [21:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:24]Read from MH i2c: E2 [21:20:24]MH_I2C_Read... [21:20:24]Read from MH i2c: E2 0E 00 [21:20:24]MH_I2C_Read... [21:20:24]Read from MH i2c: E2 0E 00 7C 33 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 71 [21:20:24]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:20:24]wFMCommunicate OK [21:20:24]SAM_PROTO_GetShiftState done [21:20:24]FM_GetShiftState done [21:20:24]req_shift_opened done [21:20:24]requested_item shift.open_date is exist - process it [21:20:24]req_shift_open_date [21:20:24]req_shift_open_date done [21:20:24]produce_requested_data done [21:20:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49704,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [21:20:24]process_action_free close_receipt [21:20:24]json_value_free [21:20:24]json_value_free done [21:20:24]process_json_proto returns [21:20:24]Send response to host [21:20:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49704,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [21:20:24]free response buf [21:20:24]execute_script done [21:20:24]execute_script returns [21:20:24]free content buf [21:20:24]Sock 7.Close socket [21:20:24]Sock 7.Thread stoped [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:32]OFD Sender: No OFD packet to send [21:26:37]OFD Sender: No OFD packet to send [21:26:42]OFD Sender: No OFD packet to send [21:26:47]OFD Sender: No OFD packet to send [21:26:52]OFD Sender: No OFD packet to send [21:26:57]OFD Sender: No OFD packet to send [21:27:02]OFD Sender: No OFD packet to send [21:27:07]OFD Sender: No OFD packet to send [21:27:12]OFD Sender: No OFD packet to send [21:27:17]OFD Sender: No OFD packet to send [21:27:22]OFD Sender: No OFD packet to send [21:27:27]OFD Sender: No OFD packet to send [21:27:32]OFD Sender: No OFD packet to send [21:27:37]OFD Sender: No OFD packet to send [21:27:42]OFD Sender: No OFD packet to send [21:27:47]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:23]accept exits with 9 [21:30:23]New connection [21:30:23]New thread 3066801508 created [21:30:23]Thread 3066944868 joined [21:30:23]Waiting for new connection... [21:30:23] Sock 9.Parse request [21:30:23]Sock 9.Check first char [21:30:23]Sock 9.First char is OK [21:30:23]request: POST /json_proto HTTP/1.0 [21:30:23]Method: POST [21:30:23]URL: /json_proto [21:30:23]Method is POST - this is cgi request [21:30:23]url: /json_proto [21:30:23]query_string will be loaded in cgi processing [21:30:23]execute_cgi json_proto POST (null) [21:30:23]execute_cgi path=json_proto method=POST [21:30:23]POST find Content-Length [21:30:23]Host: 172.17.46.196:8080 [21:30:23]Content-Length: 632 [21:30:23]Content-Type: application/json [21:30:23] [21:30:23]POST finish read [21:30:23]Found Content-Length = 632 [21:30:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189887", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:23]execute_script... [21:30:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189887", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:23]POST & json_proto [21:30:23]process_json_proto [21:30:23]json parsed OK: [21:30:23]protocol is kg_v1.0 [21:30:23]action value=close_receipt [21:30:23]process_action close_receipt [21:30:23]cmd_close_receipt [21:30:23]MH_GetDate [21:30:23]Write to MH i2c: F0 00 00 7D 33 9F [21:30:23]Write i2c OK [21:30:23]MH_I2C_Read... [21:30:23]Read from MH i2c: F0 [21:30:23]MH_I2C_Read... [21:30:23]Read from MH i2c: F0 09 00 [21:30:23]MH_I2C_Read... [21:30:23]Read from MH i2c: F0 09 00 7D 33 00 75 16 C1 66 07 E8 5D 66 0C [21:30:23]GetLastDocTimeStamp 1723929624 [21:30:23]current date 1723930229 [21:30:23]FM_GetShiftState [21:30:23]SAM_PROTO_GetShiftState [21:30:23]wFMCommunicate request_size=4 [21:30:23]MH_SAM_APDU [21:30:23]CAPDU: 80 13 01 00 [21:30:23]Write to MH i2c: E2 08 00 7E 33 80 13 01 00 00 00 00 00 2E [21:30:23]Write i2c OK [21:30:23]MH_I2C_Read... [21:30:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:23]Read from MH i2c: E2 [21:30:23]MH_I2C_Read... [21:30:23]Read from MH i2c: E2 0E 00 [21:30:23]MH_I2C_Read... [21:30:23]Read from MH i2c: E2 0E 00 7E 33 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 73 [21:30:23]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:30:23]wFMCommunicate OK [21:30:23]SAM_PROTO_GetShiftState done [21:30:23]FM_GetShiftState done [21:30:23]opened in 1723853354 [21:30:23]opened+sec_in_day 1723939754 [21:30:23]quantity*price = 10000 [21:30:23]sum+1 = 10001 [21:30:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 142 17.08.2024 21:30 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49705 ФПД: 273269593358324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T213029&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49705&fm=273269593358324&tin=02508201610067®Number=0000000000092546&sum=10000 0 [21:30:25]StoreToDocumentArchive [21:30:25]shift 465 fd 49705 [21:30:25]save to /storage/0465/doc_00049705 [21:30:25]save last doc name /storage/0465/doc_00049705 to /storage/kkm_last_doc_name [21:30:25]save OK [21:30:25]Clear old archive folders... [21:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=269 [21:30:25]tlvbuf is 018298A0 [21:30:25]SAM_PROTO_ClearQueue [21:30:25]wFMCommunicate request_size=4 [21:30:25]MH_SAM_APDU [21:30:25]CAPDU: 80 09 00 00 [21:30:25]Write to MH i2c: E2 08 00 8B 33 80 09 00 00 00 00 00 00 30 [21:30:25]Write i2c OK [21:30:25]MH_I2C_Read... [21:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:25]Read from MH i2c: E2 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: E2 03 00 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: E2 03 00 8B 33 00 90 00 32 [21:30:25]RAPDU: 90 00 [21:30:25]wFMCommunicate OK [21:30:25]SAM_PROTO_ClearQueue done [21:30:25]KKMCreateOFDPacket [21:30:25]OFDProtocolAddRootSTLVToBuf [21:30:25]FM_MakeSignedData [21:30:25]FM_MakeSignedData [21:30:25]SAM_PROTO_SignData [21:30:25]wFMCommunicate request_size=4 [21:30:25]MH_SAM_APDU [21:30:25]CAPDU: 80 0D 01 02 [21:30:25]Write to MH i2c: E2 08 00 8C 33 80 0D 01 02 00 00 00 00 38 [21:30:25]Write i2c OK [21:30:25]MH_I2C_Read... [21:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:25]Read from MH i2c: E2 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: E2 03 00 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: E2 03 00 8C 33 00 90 00 33 [21:30:25]RAPDU: 90 00 [21:30:25]wFMCommunicate OK [21:30:25]wFMCommunicate request_size=255 [21:30:25]MH_SAM_APDU [21:30:25]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 75 16 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [21:30:25]Write to MH i2c: E2 02 01 8D 33 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 75 16 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 63 [21:30:25]Write i2c OK [21:30:25]MH_I2C_Read... [21:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:25]Read from MH i2c: E2 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: E2 03 00 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: E2 03 00 8D 33 00 90 00 34 [21:30:25]RAPDU: 90 00 [21:30:25]wFMCommunicate OK [21:30:25]wFMCommunicate request_size=28 [21:30:25]MH_SAM_APDU [21:30:25]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 29 C2 00 00 35 04 06 00 F8 89 89 0A 3F F4 [21:30:25]Write to MH i2c: E2 1F 00 8E 33 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 29 C2 00 00 35 04 06 00 F8 89 89 0A 3F F4 00 00 F2 [21:30:25]Write i2c OK [21:30:25]MH_I2C_Read... [21:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:25]Read from MH i2c: E2 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: E2 03 00 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: E2 03 00 8E 33 00 90 00 35 [21:30:25]RAPDU: 90 00 [21:30:25]wFMCommunicate OK [21:30:25]wFMCommunicate request_size=4 [21:30:25]MH_SAM_APDU [21:30:25]CAPDU: 80 0D 03 02 [21:30:25]Write to MH i2c: E2 08 00 8F 33 80 0D 03 02 00 00 00 00 3D [21:30:25]Write i2c OK [21:30:25]MH_I2C_Read... [21:30:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:25]Read from MH i2c: E2 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: E2 0B 00 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: E2 0B 00 8F 33 00 1C 30 D1 29 F6 AA 1A AF 90 00 ED [21:30:25]RAPDU: 1C 30 D1 29 F6 AA 1A AF 90 00 [21:30:25]wFMCommunicate OK [21:30:25]SAM_PROTO_SignData done [21:30:25]FM_MakeSignedData done [21:30:25]CreateOFDProtocolMessage [21:30:25]wFMCommunicate request_size=4 [21:30:25]MH_SAM_APDU [21:30:25]CAPDU: 80 11 00 00 [21:30:25]Write to MH i2c: E2 08 00 90 33 80 11 00 00 00 00 00 00 3D [21:30:25]Write i2c OK [21:30:25]MH_I2C_Read... [21:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:25]Read from MH i2c: E2 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: E2 17 00 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: E2 17 00 90 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 88 [21:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:30:25]wFMCommunicate OK [21:30:25]CreateOFDProtocolMessage done [21:30:25]OFDSenderStorePacket 49705 [21:30:25]StoreOFDPacket docnum=49705 [21:30:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 33 06 19 01 65 CB 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 75 16 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C2 00 00 35 04 06 00 F8 89 89 0A 3F F4 1C 30 D1 29 F6 AA 1A AF [21:30:25]CheckFolder [21:30:25]dirname=/storage/ofd_packets [21:30:25]CheckFolder done [21:30:25]ProducePacketName [21:30:25]name=ofd_packets/00049705 [21:30:25]NVStorageSaveData ofd_packets/00049705 [21:30:25]File name is /storage/ofd_packets/00049705 [21:30:25]Write 319 bytes [21:30:25]NVStorageSaveData done [21:30:25]OFDSenderStorePacket done [21:30:25]KKMCreateOFDPacket done [21:30:25]NVStorageSaveData kkm_last_timestamp [21:30:25]File name is /storage/kkm_last_timestamp [21:30:25]Write 4 bytes [21:30:25]NVStorageSaveData done [21:30:25]ExternCall_PrintAddStr [21:30:25]wPrintStart [21:30:25]Write to MH i2c: 01 00 00 91 33 C4 [21:30:25]Write i2c OK [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: 01 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: 01 07 00 [21:30:25]MH_I2C_Read... [21:30:25]Read from MH i2c: 01 07 00 91 33 00 00 00 00 00 FF 0F D9 [21:30:25]RasterBufferAndPrint [21:30:25]line Счет N : (3)189887 [21:30:25]line ИНН: 02508201610067 [21:30:25]line Контрольно-Кассовый Чек [21:30:25]line ПРОДАЖА [21:30:25]line Товар: 4700000160358 [21:30:25]line Вода Легенда 1л [21:30:25]line 2.000 * 50.00 [21:30:25]line = 100.00 [21:30:25]line НДС 12% НСП 1% [21:30:25]line > о реализуемом товаре [21:30:25]line ИТОГО: 100.00 [21:30:25]line НСП 1% : 0.88 [21:30:25]line НДС 12% : 10.62 [21:30:25]line Наличными: 100.00 [21:30:25]line Безнал.: 0.00 [21:30:25]line Место: АЗС № 95 "Партнер Нефть" [21:30:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:30:25]line СНО: Общий режим [21:30:25]line Чек 142 17.08.2024 21:30 [21:30:25]line Смена: 465 ФФД: 1.0 [21:30:25]line ЗНМ: 0300000078 [21:30:25]line РНМ: 0000000000092546 [21:30:25]line Версия ККМ: 001 [21:30:25]line ФМ: 0000000000871800 [21:30:25]line ФД: 49705 [21:30:25]line ФПД: 273269593358324 [21:30:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T213029&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49705&fm=273269593358324&tin=02508201610067®Number=0000000000092546&sum=10000 [21:30:25]line 0 [21:30:25]OFD Sender: Processing packet 49705 [packets to send 21, broken 20] [21:30:25]ProducePacketName [21:30:25]name=ofd_packets/00049705 [21:30:25]OFD Sender: To server: pG, [21:30:25]CommunicateWithHost lk.salyk.kg:30040 [21:30:25]ConnectInit lk.salyk.kg [21:30:25]written 0, free lines is 4095 [21:30:26]Connected sock=10 [21:30:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 33 06 19 01 65 CB 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 75 16 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C2 00 00 35 04 06 00 F8 89 89 0A 3F F4 1C 30 D1 29 F6 AA 1A AF [21:30:26]Write to MH i2c: 01 00 00 B9 33 EC [21:30:26]Write i2c OK [21:30:26]MH_I2C_Read... [21:30:26]Read from MH i2c: 01 [21:30:26]MH_I2C_Read... [21:30:26]Read from MH i2c: 01 07 00 [21:30:26]MH_I2C_Read... [21:30:26]Read from MH i2c: 01 07 00 B9 33 00 00 00 00 00 FE 0C FD [21:30:26]RasterBufferAndPrint [21:30:26]line [21:30:26]line [21:30:26]line [21:30:26]line [21:30:26]line [21:30:26]written 0, free lines is 3332 [21:30:26]MH_Cut [21:30:26]Write to MH i2c: D1 01 00 C0 33 01 C5 [21:30:26]Write i2c OK [21:30:26]MH_I2C_Read... [21:30:26]Read from MH i2c: D1 [21:30:26]MH_I2C_Read... [21:30:26]Read from MH i2c: D1 01 00 [21:30:26]MH_I2C_Read... [21:30:26]Read from MH i2c: D1 01 00 C0 33 00 C4 [21:30:26]Write to MH i2c: 01 00 00 C1 33 F4 [21:30:26]Write i2c OK [21:30:26]MH_I2C_Read... [21:30:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0B C4 47 00 90 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C2 00 00 F4 03 04 00 B0 C1 C0 66 B6 04 01 00 00 1D 11 8D E4 41 08 44 4C [21:30:26]CommunicateWithHost err = 0 [21:30:26]CheckOFDResponse [21:30:26]1017 (14) - 77093643461234 [21:30:26]1041 (16) - 0000000000871800 [21:30:26]1040 (4) - 49705 [21:30:26]1012 (4) - 17.08.2024 15:28 [21:30:26]1206 (1) - 0 [21:30:26]OFD Sender: Remove packet 49705 [21:30:26]ProducePacketName [21:30:26]name=ofd_packets/00049705 [21:30:26]NVStorageDeleteData [21:30:26]OFD Sender: No OFD packet to send [21:30:27]*** Cut start [21:30:27]*** Purtial cut [21:30:27]*** Stage 1: CUTSNS_PIN = 1 [21:30:27]Read from MH i2c: 01 [21:30:27]MH_I2C_Read... [21:30:27]*** Stop cut motor [21:30:27]*** Cut end [21:30:27]Read from MH i2c: 01 07 00 [21:30:27]MH_I2C_Read... [21:30:27]Read from MH i2c: 01 07 00 C1 33 00 00 00 00 00 FF 0F 09 [21:30:27]process_action close_receipt done [21:30:27]requested_data is exist [21:30:27]produce_requested_data [21:30:27]requested_item fm.sn is exist - process it [21:30:27]wFMCommunicate request_size=4 [21:30:27]MH_SAM_APDU [21:30:27]CAPDU: 80 11 00 00 [21:30:27]Write to MH i2c: E2 08 00 C2 33 80 11 00 00 00 00 00 00 6F [21:30:27]Write i2c OK [21:30:27]MH_I2C_Read... [21:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:27]Read from MH i2c: E2 [21:30:27]MH_I2C_Read... [21:30:27]Read from MH i2c: E2 17 00 [21:30:27]MH_I2C_Read... [21:30:27]Read from MH i2c: E2 17 00 C2 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BA [21:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:30:27]wFMCommunicate OK [21:30:27]requested_item fd.num is exist - process it [21:30:27]SAM_PROTO_GetFieldsCounters [21:30:27]wFMCommunicate request_size=4 [21:30:27]MH_SAM_APDU [21:30:27]CAPDU: 80 13 00 00 [21:30:27]Write to MH i2c: E2 08 00 C3 33 80 13 00 00 00 00 00 00 72 [21:30:27]Write i2c OK [21:30:27]MH_I2C_Read... [21:30:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:27]Read from MH i2c: E2 [21:30:27]MH_I2C_Read... [21:30:27]Read from MH i2c: E2 62 00 [21:30:27]MH_I2C_Read... [21:30:27]Read from MH i2c: E2 62 00 C3 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 29 C2 00 00 0E 04 04 00 D1 01 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 F3 [21:30: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 29 C2 00 00 0E 04 04 00 D1 01 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 [21:30:27]wFMCommunicate OK [21:30:27]SAM_PROTO_GetFieldsCounters done [21:30:27]requested_item shift.num is exist - process it [21:30:27]requested_item shift.opened is exist - process it [21:30:27]req_shift_opened [21:30:27]FM_GetShiftState [21:30:27]SAM_PROTO_GetShiftState [21:30:27]wFMCommunicate request_size=4 [21:30:27]MH_SAM_APDU [21:30:27]CAPDU: 80 13 01 00 [21:30:27]Write to MH i2c: E2 08 00 C4 33 80 13 01 00 00 00 00 00 74 [21:30:27]Write i2c OK [21:30:27]MH_I2C_Read... [21:30:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:27]Read from MH i2c: E2 [21:30:27]MH_I2C_Read... [21:30:27]Read from MH i2c: E2 0E 00 [21:30:27]MH_I2C_Read... [21:30:27]Read from MH i2c: E2 0E 00 C4 33 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 B9 [21:30:27]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:30:27]wFMCommunicate OK [21:30:27]SAM_PROTO_GetShiftState done [21:30:27]FM_GetShiftState done [21:30:27]req_shift_opened done [21:30:27]requested_item shift.open_date is exist - process it [21:30:27]req_shift_open_date [21:30:27]req_shift_open_date done [21:30:27]produce_requested_data done [21:30:27]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49705,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [21:30:27]process_action_free close_receipt [21:30:27]json_value_free [21:30:27]json_value_free done [21:30:27]process_json_proto returns [21:30:27]Send response to host [21:30:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49705,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [21:30:27]free response buf [21:30:27]execute_script done [21:30:27]execute_script returns [21:30:27]free content buf [21:30:27]Sock 9.Close socket [21:30:27]Sock 9.Thread stoped [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:30:59]accept exits with 7 [21:30:59]New connection [21:30:59]New thread 3066944868 created [21:30:59]Thread 3066801508 joined [21:30:59]Waiting for new connection... [21:30:59] Sock 7.Parse request [21:30:59]Sock 7.Check first char [21:30:59]Sock 7.First char is OK [21:30:59]request: POST /json_proto HTTP/1.0 [21:30:59]Method: POST [21:30:59]URL: /json_proto [21:30:59]Method is POST - this is cgi request [21:30:59]url: /json_proto [21:30:59]query_string will be loaded in cgi processing [21:30:59]execute_cgi json_proto POST (null) [21:30:59]execute_cgi path=json_proto method=POST [21:30:59]POST find Content-Length [21:30:59]Host: 172.17.46.196:8080 [21:30:59]Content-Length: 620 [21:30:59]Content-Type: application/json [21:30:59] [21:30:59]POST finish read [21:30:59]Found Content-Length = 620 [21:30:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189888", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:59]execute_script... [21:30:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189888", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:59]POST & json_proto [21:30:59]process_json_proto [21:30:59]json parsed OK: [21:30:59]protocol is kg_v1.0 [21:30:59]action value=close_receipt [21:30:59]process_action close_receipt [21:30:59]cmd_close_receipt [21:30:59]MH_GetDate [21:30:59]Write to MH i2c: F0 00 00 C5 33 E7 [21:30:59]Write i2c OK [21:30:59]MH_I2C_Read... [21:30:59]Read from MH i2c: F0 [21:30:59]MH_I2C_Read... [21:30:59]Read from MH i2c: F0 09 00 [21:30:59]MH_I2C_Read... [21:30:59]Read from MH i2c: F0 09 00 C5 33 00 98 16 C1 66 07 E8 5D 66 77 [21:30:59]GetLastDocTimeStamp 1723930229 [21:30:59]current date 1723930264 [21:30:59]FM_GetShiftState [21:30:59]SAM_PROTO_GetShiftState [21:30:59]wFMCommunicate request_size=4 [21:30:59]MH_SAM_APDU [21:30:59]CAPDU: 80 13 01 00 [21:30:59]Write to MH i2c: E2 08 00 C6 33 80 13 01 00 00 00 00 00 76 [21:30:59]Write i2c OK [21:30:59]MH_I2C_Read... [21:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:59]Read from MH i2c: E2 [21:30:59]MH_I2C_Read... [21:30:59]Read from MH i2c: E2 0E 00 [21:30:59]MH_I2C_Read... [21:30:59]Read from MH i2c: E2 0E 00 C6 33 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 BB [21:30:59]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:30:59]wFMCommunicate OK [21:30:59]SAM_PROTO_GetShiftState done [21:30:59]FM_GetShiftState done [21:30:59]opened in 1723853354 [21:30:59]opened+sec_in_day 1723939754 [21:30:59]quantity*price = 15000 [21:30:59]sum+1 = 15001 [21:30:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 143 17.08.2024 21:31 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49706 ФПД: 244724186149980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T213104&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49706&fm=244724186149980&tin=02508201610067®Number=0000000000092546&sum=15000 0 [21:31:00]StoreToDocumentArchive [21:31:00]shift 465 fd 49706 [21:31:00]save to /storage/0465/doc_00049706 [21:31:00]save last doc name /storage/0465/doc_00049706 to /storage/kkm_last_doc_name [21:31:00]save OK [21:31:00]Clear old archive folders... [21:31:00]ProcessDocumentItem done err = 0, tmpTLVsize=272 [21:31:00]tlvbuf is 0188E590 [21:31:00]SAM_PROTO_ClearQueue [21:31:00]wFMCommunicate request_size=4 [21:31:00]MH_SAM_APDU [21:31:00]CAPDU: 80 09 00 00 [21:31:00]Write to MH i2c: E2 08 00 D3 33 80 09 00 00 00 00 00 00 78 [21:31:00]Write i2c OK [21:31:00]MH_I2C_Read... [21:31:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:00]Read from MH i2c: E2 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: E2 03 00 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: E2 03 00 D3 33 00 90 00 7A [21:31:00]RAPDU: 90 00 [21:31:00]wFMCommunicate OK [21:31:00]SAM_PROTO_ClearQueue done [21:31:00]KKMCreateOFDPacket [21:31:00]OFDProtocolAddRootSTLVToBuf [21:31:00]FM_MakeSignedData [21:31:00]FM_MakeSignedData [21:31:00]SAM_PROTO_SignData [21:31:00]wFMCommunicate request_size=4 [21:31:00]MH_SAM_APDU [21:31:00]CAPDU: 80 0D 01 02 [21:31:00]Write to MH i2c: E2 08 00 D4 33 80 0D 01 02 00 00 00 00 80 [21:31:00]Write i2c OK [21:31:00]MH_I2C_Read... [21:31:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:00]Read from MH i2c: E2 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: E2 03 00 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: E2 03 00 D4 33 00 90 00 7B [21:31:00]RAPDU: 90 00 [21:31:00]wFMCommunicate OK [21:31:00]wFMCommunicate request_size=255 [21:31:00]MH_SAM_APDU [21:31:00]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 98 16 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [21:31:00]Write to MH i2c: E2 02 01 D5 33 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 98 16 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 3F [21:31:00]Write i2c OK [21:31:00]MH_I2C_Read... [21:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:00]Read from MH i2c: E2 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: E2 03 00 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: E2 03 00 D5 33 00 90 00 7C [21:31:00]RAPDU: 90 00 [21:31:00]wFMCommunicate OK [21:31:00]wFMCommunicate request_size=31 [21:31:00]MH_SAM_APDU [21:31:00]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 2A C2 00 00 35 04 06 00 DE 93 4A 2E F4 5C [21:31:00]Write to MH i2c: E2 22 00 D6 33 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 2A C2 00 00 35 04 06 00 DE 93 4A 2E F4 5C 00 00 CB [21:31:00]Write i2c OK [21:31:00]MH_I2C_Read... [21:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:00]Read from MH i2c: E2 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: E2 03 00 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: E2 03 00 D6 33 00 90 00 7D [21:31:00]RAPDU: 90 00 [21:31:00]wFMCommunicate OK [21:31:00]wFMCommunicate request_size=4 [21:31:00]MH_SAM_APDU [21:31:00]CAPDU: 80 0D 03 02 [21:31:00]Write to MH i2c: E2 08 00 D7 33 80 0D 03 02 00 00 00 00 85 [21:31:00]Write i2c OK [21:31:00]MH_I2C_Read... [21:31:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:00]Read from MH i2c: E2 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: E2 0B 00 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: E2 0B 00 D7 33 00 5F 24 9C 3F FF 2C 79 D1 90 00 59 [21:31:00]RAPDU: 5F 24 9C 3F FF 2C 79 D1 90 00 [21:31:00]wFMCommunicate OK [21:31:00]SAM_PROTO_SignData done [21:31:00]FM_MakeSignedData done [21:31:00]CreateOFDProtocolMessage [21:31:00]wFMCommunicate request_size=4 [21:31:00]MH_SAM_APDU [21:31:00]CAPDU: 80 11 00 00 [21:31:00]Write to MH i2c: E2 08 00 D8 33 80 11 00 00 00 00 00 00 85 [21:31:00]Write i2c OK [21:31:00]MH_I2C_Read... [21:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:00]Read from MH i2c: E2 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: E2 17 00 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: E2 17 00 D8 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D0 [21:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:31:00]wFMCommunicate OK [21:31:00]CreateOFDProtocolMessage done [21:31:00]OFDSenderStorePacket 49706 [21:31:00]StoreOFDPacket docnum=49706 [21:31:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 45 BA 1C 01 C8 3C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 98 16 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2A C2 00 00 35 04 06 00 DE 93 4A 2E F4 5C 5F 24 9C 3F FF 2C 79 D1 [21:31:00]CheckFolder [21:31:00]dirname=/storage/ofd_packets [21:31:00]CheckFolder done [21:31:00]ProducePacketName [21:31:00]name=ofd_packets/00049706 [21:31:00]NVStorageSaveData ofd_packets/00049706 [21:31:00]File name is /storage/ofd_packets/00049706 [21:31:00]Write 322 bytes [21:31:00]NVStorageSaveData done [21:31:00]OFDSenderStorePacket done [21:31:00]KKMCreateOFDPacket done [21:31:00]NVStorageSaveData kkm_last_timestamp [21:31:00]File name is /storage/kkm_last_timestamp [21:31:00]Write 4 bytes [21:31:00]NVStorageSaveData done [21:31:00]ExternCall_PrintAddStr [21:31:00]wPrintStart [21:31:00]Write to MH i2c: 01 00 00 D9 33 0C [21:31:00]Write i2c OK [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: 01 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: 01 07 00 [21:31:00]MH_I2C_Read... [21:31:00]Read from MH i2c: 01 07 00 D9 33 00 00 00 00 00 FF 0F 21 [21:31:00]RasterBufferAndPrint [21:31:00]line Счет N : (3)189888 [21:31:00]line ИНН: 02508201610067 [21:31:00]line Контрольно-Кассовый Чек [21:31:00]line ПРОДАЖА [21:31:00]line Товар: 4640030091607 [21:31:00]line Сигареты ESSE Exchange [21:31:00]line 1.000 * 150.00 [21:31:00]line = 150.00 [21:31:00]line НДС 12% НСП 1% [21:31:00]line > о реализуемом товаре [21:31:00]line ИТОГО: 150.00 [21:31:00]line НСП 1% : 1.33 [21:31:00]line НДС 12% : 15.93 [21:31:00]line Наличными: 150.00 [21:31:00]line Безнал.: 0.00 [21:31:00]line Место: АЗС № 95 "Партнер Нефть" [21:31:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:31:00]line СНО: Общий режим [21:31:00]line Чек 143 17.08.2024 21:31 [21:31:00]line Смена: 465 ФФД: 1.0 [21:31:00]line ЗНМ: 0300000078 [21:31:00]line РНМ: 0000000000092546 [21:31:00]line Версия ККМ: 001 [21:31:00]line ФМ: 0000000000871800 [21:31:00]line ФД: 49706 [21:31:00]line ФПД: 244724186149980 [21:31:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T213104&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49706&fm=244724186149980&tin=02508201610067®Number=0000000000092546&sum=15000 [21:31:01]OFD Sender: Processing packet 49706 [packets to send 21, broken 20] [21:31:01]ProducePacketName [21:31:01]name=ofd_packets/00049706 [21:31:01]OFD Sender: To server: pG, [21:31:01]CommunicateWithHost lk.salyk.kg:30040 [21:31:01]ConnectInit lk.salyk.kg [21:31:01]line 0 [21:31:01]written 0, free lines is 4095 [21:31:01]Connected sock=10 [21:31:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 45 BA 1C 01 C8 3C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 98 16 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2A C2 00 00 35 04 06 00 DE 93 4A 2E F4 5C 5F 24 9C 3F FF 2C 79 D1 [21:31:01]Write to MH i2c: 01 00 00 01 34 35 [21:31:01]Write i2c OK [21:31:01]MH_I2C_Read... [21:31:01]Read from MH i2c: 01 [21:31:01]MH_I2C_Read... [21:31:01]Read from MH i2c: 01 07 00 [21:31:01]MH_I2C_Read... [21:31:01]Read from MH i2c: 01 07 00 01 34 00 00 00 00 00 FB 0C 43 [21:31:01]RasterBufferAndPrint [21:31:01]line [21:31:01]line [21:31:01]line [21:31:01]line [21:31:01]line [21:31:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 66 18 47 00 16 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 31 38 30 30 10 04 04 00 2A C2 00 00 F4 03 04 00 D3 C1 C0 66 B6 04 01 00 00 16 09 62 E2 7E 2A 51 9B [21:31:01]CommunicateWithHost err = 0 [21:31:01]CheckOFDResponse [21:31:01]1017 (14) - 77093643461234 [21:31:01]1041 (16) - 0000000000871800 [21:31:01]1040 (4) - 49706 [21:31:01]1012 (4) - 17.08.2024 15:29 [21:31:01]1206 (1) - 0 [21:31:01]OFD Sender: Remove packet 49706 [21:31:01]ProducePacketName [21:31:01]name=ofd_packets/00049706 [21:31:01]NVStorageDeleteData [21:31:01]written 0, free lines is 3338 [21:31:01]MH_Cut [21:31:01]Write to MH i2c: D1 01 00 08 34 01 0E [21:31:01]Write i2c OK [21:31:01]MH_I2C_Read... [21:31:01]Read from MH i2c: D1 [21:31:01]MH_I2C_Read... [21:31:01]Read from MH i2c: D1 01 00 [21:31:01]MH_I2C_Read... [21:31:01]Read from MH i2c: D1 01 00 08 34 00 0D [21:31:01]Write to MH i2c: 01 00 00 09 34 3D [21:31:01]Write i2c OK [21:31:01]MH_I2C_Read... [21:31:02]OFD Sender: No OFD packet to send [21:31:02]*** Cut start [21:31:02]*** Purtial cut [21:31:02]*** CUTSNS_PIN = 0 [21:31:02]*** Stage 1: CUTSNS_PIN = 1 [21:31:04]Read from MH i2c: 01 [21:31:04]MH_I2C_Read... [21:31:04]*** Stop cut motor [21:31:04]*** Cut end [21:31:04]Read from MH i2c: 01 07 00 [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: 01 07 00 09 34 00 00 00 00 00 FF 0F 52 [21:31:04]process_action close_receipt done [21:31:04]requested_data is exist [21:31:04]produce_requested_data [21:31:04]requested_item fm.sn is exist - process it [21:31:04]wFMCommunicate request_size=4 [21:31:04]MH_SAM_APDU [21:31:04]CAPDU: 80 11 00 00 [21:31:04]Write to MH i2c: E2 08 00 0A 34 80 11 00 00 00 00 00 00 B8 [21:31:04]Write i2c OK [21:31:04]MH_I2C_Read... [21:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:04]Read from MH i2c: E2 [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: E2 17 00 [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: E2 17 00 0A 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 03 [21:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:31:04]wFMCommunicate OK [21:31:04]requested_item fd.num is exist - process it [21:31:04]SAM_PROTO_GetFieldsCounters [21:31:04]wFMCommunicate request_size=4 [21:31:04]MH_SAM_APDU [21:31:04]CAPDU: 80 13 00 00 [21:31:04]Write to MH i2c: E2 08 00 0B 34 80 13 00 00 00 00 00 00 BB [21:31:04]Write i2c OK [21:31:04]MH_I2C_Read... [21:31:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:04]Read from MH i2c: E2 [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: E2 62 00 [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: E2 62 00 0B 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2A C2 00 00 0E 04 04 00 D1 01 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 40 [21:31: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2A C2 00 00 0E 04 04 00 D1 01 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 [21:31:04]wFMCommunicate OK [21:31:04]SAM_PROTO_GetFieldsCounters done [21:31:04]requested_item shift.num is exist - process it [21:31:04]requested_item shift.opened is exist - process it [21:31:04]req_shift_opened [21:31:04]FM_GetShiftState [21:31:04]SAM_PROTO_GetShiftState [21:31:04]wFMCommunicate request_size=4 [21:31:04]MH_SAM_APDU [21:31:04]CAPDU: 80 13 01 00 [21:31:04]Write to MH i2c: E2 08 00 0C 34 80 13 01 00 00 00 00 00 BD [21:31:04]Write i2c OK [21:31:04]MH_I2C_Read... [21:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:04]Read from MH i2c: E2 [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: E2 0E 00 [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: E2 0E 00 0C 34 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 02 [21:31:04]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:31:04]wFMCommunicate OK [21:31:04]SAM_PROTO_GetShiftState done [21:31:04]FM_GetShiftState done [21:31:04]req_shift_opened done [21:31:04]requested_item shift.open_date is exist - process it [21:31:04]req_shift_open_date [21:31:04]req_shift_open_date done [21:31:04]produce_requested_data done [21:31:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49706,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [21:31:04]process_action_free close_receipt [21:31:04]json_value_free [21:31:04]json_value_free done [21:31:04]process_json_proto returns [21:31:04]Send response to host [21:31:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49706,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [21:31:04]free response buf [21:31:04]execute_script done [21:31:04]execute_script returns [21:31:04]free content buf [21:31:04]Sock 7.Close socket [21:31:04]Sock 7.Thread stoped [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:47]accept exits with 9 [21:31:47]New connection [21:31:47]New thread 3066801508 created [21:31:47]Thread 3066944868 joined [21:31:47]Waiting for new connection... [21:31:47] Sock 9.Parse request [21:31:47]Sock 9.Check first char [21:31:47]Sock 9.First char is OK [21:31:47]request: POST /json_proto HTTP/1.0 [21:31:47]Method: POST [21:31:47]URL: /json_proto [21:31:47]Method is POST - this is cgi request [21:31:47]url: /json_proto [21:31:47]query_string will be loaded in cgi processing [21:31:47]execute_cgi json_proto POST (null) [21:31:47]execute_cgi path=json_proto method=POST [21:31:47]POST find Content-Length [21:31:47]Host: 172.17.46.196:8080 [21:31:47]Content-Length: 655 [21:31:47]Content-Type: application/json [21:31:47] [21:31:47]POST finish read [21:31:47]Found Content-Length = 655 [21:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189889", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:47]execute_script... [21:31:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189889", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:47]POST & json_proto [21:31:47]process_json_proto [21:31:47]json parsed OK: [21:31:47]protocol is kg_v1.0 [21:31:47]action value=close_receipt [21:31:47]process_action close_receipt [21:31:47]cmd_close_receipt [21:31:47]MH_GetDate [21:31:47]Write to MH i2c: F0 00 00 0D 34 30 [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: F0 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: F0 09 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: F0 09 00 0D 34 00 C9 16 C1 66 07 E8 5D 66 F1 [21:31:47]GetLastDocTimeStamp 1723930264 [21:31:47]current date 1723930313 [21:31:47]FM_GetShiftState [21:31:47]SAM_PROTO_GetShiftState [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 13 01 00 [21:31:47]Write to MH i2c: E2 08 00 0E 34 80 13 01 00 00 00 00 00 BF [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 0E 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 0E 00 0E 34 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 04 [21:31:47]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:31:47]wFMCommunicate OK [21:31:47]SAM_PROTO_GetShiftState done [21:31:47]FM_GetShiftState done [21:31:47]opened in 1723853354 [21:31:47]opened+sec_in_day 1723939754 [21:31:47]quantity*price = 8500 [21:31:47]sum+1 = 8501 [21:31:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 144 17.08.2024 21:31 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49707 ФПД: 161784075548943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T213153&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49707&fm=161784075548943&tin=02508201610067®Number=0000000000092546&sum=8500 0 [21:31:49]StoreToDocumentArchive [21:31:49]shift 465 fd 49707 [21:31:49]save to /storage/0465/doc_00049707 [21:31:49]save last doc name /storage/0465/doc_00049707 to /storage/kkm_last_doc_name [21:31:49]save OK [21:31:49]Clear old archive folders... [21:31:49]ProcessDocumentItem done err = 0, tmpTLVsize=294 [21:31:49]tlvbuf is B6ED8AC0 [21:31:49]SAM_PROTO_ClearQueue [21:31:49]wFMCommunicate request_size=4 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 09 00 00 [21:31:49]Write to MH i2c: E2 08 00 1B 34 80 09 00 00 00 00 00 00 C1 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 1B 34 00 90 00 C3 [21:31:49]RAPDU: 90 00 [21:31:49]wFMCommunicate OK [21:31:49]SAM_PROTO_ClearQueue done [21:31:49]KKMCreateOFDPacket [21:31:49]OFDProtocolAddRootSTLVToBuf [21:31:49]FM_MakeSignedData [21:31:49]FM_MakeSignedData [21:31:49]SAM_PROTO_SignData [21:31:49]wFMCommunicate request_size=4 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 0D 01 02 [21:31:49]Write to MH i2c: E2 08 00 1C 34 80 0D 01 02 00 00 00 00 C9 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 1C 34 00 90 00 C4 [21:31:49]RAPDU: 90 00 [21:31:49]wFMCommunicate OK [21:31:49]wFMCommunicate request_size=255 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 C9 16 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [21:31:49]Write to MH i2c: E2 02 01 1D 34 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 C9 16 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 15 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 1D 34 00 90 00 C5 [21:31:49]RAPDU: 90 00 [21:31:49]wFMCommunicate OK [21:31:49]wFMCommunicate request_size=53 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C2 00 00 35 04 06 00 93 24 4A 5A 79 0F [21:31:49]Write to MH i2c: E2 38 00 1E 34 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C2 00 00 35 04 06 00 93 24 4A 5A 79 0F 00 00 8A [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 1E 34 00 90 00 C6 [21:31:49]RAPDU: 90 00 [21:31:49]wFMCommunicate OK [21:31:49]wFMCommunicate request_size=4 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 0D 03 02 [21:31:49]Write to MH i2c: E2 08 00 1F 34 80 0D 03 02 00 00 00 00 CE [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 0B 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 0B 00 1F 34 00 F0 2C D2 D1 CF 52 F4 33 90 00 D6 [21:31:49]RAPDU: F0 2C D2 D1 CF 52 F4 33 90 00 [21:31:49]wFMCommunicate OK [21:31:49]SAM_PROTO_SignData done [21:31:49]FM_MakeSignedData done [21:31:49]CreateOFDProtocolMessage [21:31:49]wFMCommunicate request_size=4 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 11 00 00 [21:31:49]Write to MH i2c: E2 08 00 20 34 80 11 00 00 00 00 00 00 CE [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 17 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 17 00 20 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 19 [21:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:31:49]wFMCommunicate OK [21:31:49]CreateOFDProtocolMessage done [21:31:49]OFDSenderStorePacket 49707 [21:31:49]StoreOFDPacket docnum=49707 [21:31:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 5C 69 32 01 FD C1 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 C9 16 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C2 00 00 35 04 06 00 93 24 4A 5A 79 0F F0 2C D2 D1 CF 52 F4 33 [21:31:49]CheckFolder [21:31:49]dirname=/storage/ofd_packets [21:31:49]CheckFolder done [21:31:49]ProducePacketName [21:31:49]name=ofd_packets/00049707 [21:31:49]NVStorageSaveData ofd_packets/00049707 [21:31:49]File name is /storage/ofd_packets/00049707 [21:31:49]Write 344 bytes [21:31:49]NVStorageSaveData done [21:31:49]OFDSenderStorePacket done [21:31:49]KKMCreateOFDPacket done [21:31:49]NVStorageSaveData kkm_last_timestamp [21:31:49]File name is /storage/kkm_last_timestamp [21:31:49]Write 4 bytes [21:31:49]NVStorageSaveData done [21:31:49]ExternCall_PrintAddStr [21:31:49]wPrintStart [21:31:49]Write to MH i2c: 01 00 00 21 34 55 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 07 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 07 00 21 34 00 00 00 00 00 FF 0F 6A [21:31:49]RasterBufferAndPrint [21:31:49]line Счет N : (3)189889 [21:31:49]line ИНН: 02508201610067 [21:31:49]line Контрольно-Кассовый Чек [21:31:49]line ПРОДАЖА [21:31:49]line Товар: 4600682557456 [21:31:49]line Напиток FLash up energy эн ж/б 0,5/0,45л [21:31:49]line 1.000 * 85.00 [21:31:49]line = 85.00 [21:31:49]line НДС 12% НСП 1% [21:31:49]line > о реализуемом товаре [21:31:49]line ИТОГО: 85.00 [21:31:49]line НСП 1% : 0.75 [21:31:49]line НДС 12% : 9.03 [21:31:49]line Наличными: 85.00 [21:31:49]line Безнал.: 0.00 [21:31:49]line Место: АЗС № 95 "Партнер Нефть" [21:31:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:31:49]line СНО: Общий режим [21:31:49]line Чек 144 17.08.2024 21:31 [21:31:49]line Смена: 465 ФФД: 1.0 [21:31:49]line ЗНМ: 0300000078 [21:31:49]line РНМ: 0000000000092546 [21:31:49]line Версия ККМ: 001 [21:31:49]line ФМ: 0000000000871800 [21:31:49]line ФД: 49707 [21:31:49]line ФПД: 161784075548943 [21:31:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T213153&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49707&fm=161784075548943&tin=02508201610067®Number=0000000000092546&sum=8500 [21:31:49]line 0 [21:31:50]OFD Sender: Processing packet 49707 [packets to send 21, broken 20] [21:31:50]ProducePacketName [21:31:50]name=ofd_packets/00049707 [21:31:50]OFD Sender: To server: pG, [21:31:50]CommunicateWithHost lk.salyk.kg:30040 [21:31:50]ConnectInit lk.salyk.kg [21:31:50]written 0, free lines is 4095 [21:31:50]Connected sock=10 [21:31:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 5C 69 32 01 FD C1 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 C9 16 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C2 00 00 35 04 06 00 93 24 4A 5A 79 0F F0 2C D2 D1 CF 52 F4 33 [21:31:50]Write to MH i2c: 01 00 00 4A 34 7E [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 07 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 07 00 4A 34 00 00 00 00 00 DF 0C 70 [21:31:50]RasterBufferAndPrint [21:31:50]line [21:31:50]line [21:31:50]line [21:31:50]line [21:31:50]line [21:31:50]written 0, free lines is 3303 [21:31:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 77 96 47 00 58 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C2 00 00 F4 03 04 00 04 C2 C0 66 B6 04 01 00 00 7E 97 92 76 5C 00 43 68 [21:31:50]CommunicateWithHost err = 0 [21:31:50]CheckOFDResponse [21:31:50]1017 (14) - 77093643461234 [21:31:50]1041 (16) - 0000000000871800 [21:31:50]1040 (4) - 49707 [21:31:50]1012 (4) - 17.08.2024 15:30 [21:31:50]1206 (1) - 0 [21:31:50]OFD Sender: Remove packet 49707 [21:31:50]ProducePacketName [21:31:50]name=ofd_packets/00049707 [21:31:50]NVStorageDeleteData [21:31:50]MH_Cut [21:31:50]Write to MH i2c: D1 01 00 51 34 01 57 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: D1 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: D1 01 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: D1 01 00 51 34 00 56 [21:31:50]Write to MH i2c: 01 00 00 52 34 86 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]OFD Sender: No OFD packet to send [21:31:51]*** Cut start [21:31:51]*** Purtial cut [21:31:51]*** Stage 1: CUTSNS_PIN = 1 [21:31:51]Read from MH i2c: 01 [21:31:51]MH_I2C_Read... [21:31:51]*** Stop cut motor [21:31:51]*** Cut end [21:31:51]Read from MH i2c: 01 07 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: 01 07 00 52 34 00 00 00 00 00 FF 0F 9B [21:31:51]process_action close_receipt done [21:31:51]requested_data is exist [21:31:51]produce_requested_data [21:31:51]requested_item fm.sn is exist - process it [21:31:51]wFMCommunicate request_size=4 [21:31:51]MH_SAM_APDU [21:31:51]CAPDU: 80 11 00 00 [21:31:51]Write to MH i2c: E2 08 00 53 34 80 11 00 00 00 00 00 00 01 [21:31:51]Write i2c OK [21:31:51]MH_I2C_Read... [21:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:51]Read from MH i2c: E2 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 17 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 17 00 53 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4C [21:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:31:51]wFMCommunicate OK [21:31:51]requested_item fd.num is exist - process it [21:31:51]SAM_PROTO_GetFieldsCounters [21:31:51]wFMCommunicate request_size=4 [21:31:51]MH_SAM_APDU [21:31:51]CAPDU: 80 13 00 00 [21:31:51]Write to MH i2c: E2 08 00 54 34 80 13 00 00 00 00 00 00 04 [21:31:51]Write i2c OK [21:31:51]MH_I2C_Read... [21:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:51]Read from MH i2c: E2 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 62 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 62 00 54 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2B C2 00 00 0E 04 04 00 D1 01 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 8D [21:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2B C2 00 00 0E 04 04 00 D1 01 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 [21:31:51]wFMCommunicate OK [21:31:51]SAM_PROTO_GetFieldsCounters done [21:31:51]requested_item shift.num is exist - process it [21:31:51]requested_item shift.opened is exist - process it [21:31:51]req_shift_opened [21:31:51]FM_GetShiftState [21:31:51]SAM_PROTO_GetShiftState [21:31:51]wFMCommunicate request_size=4 [21:31:51]MH_SAM_APDU [21:31:51]CAPDU: 80 13 01 00 [21:31:51]Write to MH i2c: E2 08 00 55 34 80 13 01 00 00 00 00 00 06 [21:31:51]Write i2c OK [21:31:51]MH_I2C_Read... [21:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:51]Read from MH i2c: E2 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 0E 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 0E 00 55 34 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 4B [21:31:51]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:31:51]wFMCommunicate OK [21:31:51]SAM_PROTO_GetShiftState done [21:31:51]FM_GetShiftState done [21:31:51]req_shift_opened done [21:31:51]requested_item shift.open_date is exist - process it [21:31:51]req_shift_open_date [21:31:51]req_shift_open_date done [21:31:51]produce_requested_data done [21:31:51]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49707,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [21:31:51]process_action_free close_receipt [21:31:51]json_value_free [21:31:51]json_value_free done [21:31:51]process_json_proto returns [21:31:51]Send response to host [21:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49707,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [21:31:51]free response buf [21:31:51]execute_script done [21:31:51]execute_script returns [21:31:51]free content buf [21:31:51]Sock 9.Close socket [21:31:51]Sock 9.Thread stoped [21:31: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: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:29]int [21:32:29]Write to MH i2c: 01 00 00 56 34 8A [21:32:29]*** FLAG_PRN_KEY set [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: 01 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: 01 07 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: 01 07 00 56 34 00 08 00 00 00 FF 0F A7 [21:32:29]state=0 [21:32:29]Key pressed [21:32:29]Feed [21:32:29]Write to MH i2c: D8 00 00 57 34 62 [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: D8 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: D8 01 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: D8 01 00 57 34 00 63 [21:32:29]int [21:32:29]Write to MH i2c: 01 00 00 58 34 8C [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: 01 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: 01 07 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: 01 07 00 58 34 00 48 00 00 00 3C 00 17 [21:32:29]state=2 [21:32:29]Key pressed [21:32:29]int [21:32:29]Write to MH i2c: 01 00 00 59 34 8D [21:32:29]*** FLAG_PRN_KEY reset [21:32:29]Write i2c OK [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: 01 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: 01 07 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: 01 07 00 59 34 00 00 00 00 00 F6 0F 99 [21:32:29]state=2 [21:32:29]Stop feed [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:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:15]accept exits with 7 [21:33:15]New connection [21:33:15]New thread 3066944868 created [21:33:15]Thread 3066801508 joined [21:33:15]Waiting for new connection... [21:33:15] Sock 7.Parse request [21:33:15]Sock 7.Check first char [21:33:15]Sock 7.First char is OK [21:33:15]request: POST /json_proto HTTP/1.0 [21:33:15]Method: POST [21:33:15]URL: /json_proto [21:33:15]Method is POST - this is cgi request [21:33:15]url: /json_proto [21:33:15]query_string will be loaded in cgi processing [21:33:15]execute_cgi json_proto POST (null) [21:33:15]execute_cgi path=json_proto method=POST [21:33:15]POST find Content-Length [21:33:15]Host: 172.17.46.196:8080 [21:33:15]Content-Length: 630 [21:33:15]Content-Type: application/json [21:33:15] [21:33:15]POST finish read [21:33:15]Found Content-Length = 630 [21:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189890", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:15]execute_script... [21:33:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189890", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:15]POST & json_proto [21:33:15]process_json_proto [21:33:15]json parsed OK: [21:33:15]protocol is kg_v1.0 [21:33:15]action value=close_receipt [21:33:15]process_action close_receipt [21:33:15]cmd_close_receipt [21:33:15]MH_GetDate [21:33:15]Write to MH i2c: F0 00 00 5A 34 7D [21:33:15]Write i2c OK [21:33:15]MH_I2C_Read... [21:33:15]Read from MH i2c: F0 [21:33:15]MH_I2C_Read... [21:33:15]Read from MH i2c: F0 09 00 [21:33:15]MH_I2C_Read... [21:33:15]Read from MH i2c: F0 09 00 5A 34 00 20 17 C1 66 07 E8 5D 66 96 [21:33:15]GetLastDocTimeStamp 1723930313 [21:33:15]current date 1723930400 [21:33:15]FM_GetShiftState [21:33:15]SAM_PROTO_GetShiftState [21:33:15]wFMCommunicate request_size=4 [21:33:15]MH_SAM_APDU [21:33:15]CAPDU: 80 13 01 00 [21:33:15]Write to MH i2c: E2 08 00 5B 34 80 13 01 00 00 00 00 00 0C [21:33:15]Write i2c OK [21:33:15]MH_I2C_Read... [21:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:15]Read from MH i2c: E2 [21:33:15]MH_I2C_Read... [21:33:15]Read from MH i2c: E2 0E 00 [21:33:15]MH_I2C_Read... [21:33:15]Read from MH i2c: E2 0E 00 5B 34 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 51 [21:33:15]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:33:15]wFMCommunicate OK [21:33:15]SAM_PROTO_GetShiftState done [21:33:15]FM_GetShiftState done [21:33:15]opened in 1723853354 [21:33:15]opened+sec_in_day 1723939754 [21:33:15]quantity*price = 5000 [21:33:15]sum+1 = 5001 [21:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 145 17.08.2024 21:33 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49708 ФПД: 267810448988844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T213320&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49708&fm=267810448988844&tin=02508201610067®Number=0000000000092546&sum=5000 0 [21:33:16]StoreToDocumentArchive [21:33:16]shift 465 fd 49708 [21:33:16]save to /storage/0465/doc_00049708 [21:33:16]save last doc name /storage/0465/doc_00049708 to /storage/kkm_last_doc_name [21:33:16]save OK [21:33:16]Clear old archive folders... [21:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=269 [21:33:16]tlvbuf is B6ED8990 [21:33:16]SAM_PROTO_ClearQueue [21:33:16]wFMCommunicate request_size=4 [21:33:16]MH_SAM_APDU [21:33:16]CAPDU: 80 09 00 00 [21:33:16]Write to MH i2c: E2 08 00 68 34 80 09 00 00 00 00 00 00 0E [21:33:16]Write i2c OK [21:33:16]MH_I2C_Read... [21:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:16]Read from MH i2c: E2 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: E2 03 00 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: E2 03 00 68 34 00 90 00 10 [21:33:16]RAPDU: 90 00 [21:33:16]wFMCommunicate OK [21:33:16]SAM_PROTO_ClearQueue done [21:33:16]KKMCreateOFDPacket [21:33:16]OFDProtocolAddRootSTLVToBuf [21:33:16]FM_MakeSignedData [21:33:16]FM_MakeSignedData [21:33:16]SAM_PROTO_SignData [21:33:16]wFMCommunicate request_size=4 [21:33:16]MH_SAM_APDU [21:33:16]CAPDU: 80 0D 01 02 [21:33:16]Write to MH i2c: E2 08 00 69 34 80 0D 01 02 00 00 00 00 16 [21:33:16]Write i2c OK [21:33:16]MH_I2C_Read... [21:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:16]Read from MH i2c: E2 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: E2 03 00 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: E2 03 00 69 34 00 90 00 11 [21:33:16]RAPDU: 90 00 [21:33:16]wFMCommunicate OK [21:33:16]wFMCommunicate request_size=255 [21:33:16]MH_SAM_APDU [21:33:16]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 20 17 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [21:33:16]Write to MH i2c: E2 02 01 6A 34 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 20 17 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 EF [21:33:16]Write i2c OK [21:33:16]MH_I2C_Read... [21:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:16]Read from MH i2c: E2 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: E2 03 00 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: E2 03 00 6A 34 00 90 00 12 [21:33:16]RAPDU: 90 00 [21:33:16]wFMCommunicate OK [21:33:16]wFMCommunicate request_size=28 [21:33:16]MH_SAM_APDU [21:33:16]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 2C C2 00 00 35 04 06 00 F3 92 7A AD DA AC [21:33:16]Write to MH i2c: E2 1F 00 6B 34 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 2C C2 00 00 35 04 06 00 F3 92 7A AD DA AC 00 00 BE [21:33:16]Write i2c OK [21:33:16]MH_I2C_Read... [21:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:16]Read from MH i2c: E2 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: E2 03 00 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: E2 03 00 6B 34 00 90 00 13 [21:33:16]RAPDU: 90 00 [21:33:16]wFMCommunicate OK [21:33:16]wFMCommunicate request_size=4 [21:33:16]MH_SAM_APDU [21:33:16]CAPDU: 80 0D 03 02 [21:33:16]Write to MH i2c: E2 08 00 6C 34 80 0D 03 02 00 00 00 00 1B [21:33:16]Write i2c OK [21:33:16]MH_I2C_Read... [21:33:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:16]Read from MH i2c: E2 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: E2 0B 00 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: E2 0B 00 6C 34 00 66 BC BB 23 19 98 7E E2 90 00 2D [21:33:16]RAPDU: 66 BC BB 23 19 98 7E E2 90 00 [21:33:16]wFMCommunicate OK [21:33:16]SAM_PROTO_SignData done [21:33:16]FM_MakeSignedData done [21:33:16]CreateOFDProtocolMessage [21:33:16]wFMCommunicate request_size=4 [21:33:16]MH_SAM_APDU [21:33:16]CAPDU: 80 11 00 00 [21:33:16]Write to MH i2c: E2 08 00 6D 34 80 11 00 00 00 00 00 00 1B [21:33:16]Write i2c OK [21:33:16]MH_I2C_Read... [21:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:16]Read from MH i2c: E2 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: E2 17 00 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: E2 17 00 6D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 66 [21:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:33:16]wFMCommunicate OK [21:33:16]CreateOFDProtocolMessage done [21:33:16]OFDSenderStorePacket 49708 [21:33:16]StoreOFDPacket docnum=49708 [21:33:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 3B 43 19 01 2D 22 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 20 17 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2C C2 00 00 35 04 06 00 F3 92 7A AD DA AC 66 BC BB 23 19 98 7E E2 [21:33:16]CheckFolder [21:33:16]dirname=/storage/ofd_packets [21:33:16]CheckFolder done [21:33:16]ProducePacketName [21:33:16]name=ofd_packets/00049708 [21:33:16]NVStorageSaveData ofd_packets/00049708 [21:33:16]File name is /storage/ofd_packets/00049708 [21:33:16]Write 319 bytes [21:33:16]NVStorageSaveData done [21:33:16]OFDSenderStorePacket done [21:33:16]KKMCreateOFDPacket done [21:33:16]NVStorageSaveData kkm_last_timestamp [21:33:16]File name is /storage/kkm_last_timestamp [21:33:16]Write 4 bytes [21:33:16]NVStorageSaveData done [21:33:16]ExternCall_PrintAddStr [21:33:16]wPrintStart [21:33:16]Write to MH i2c: 01 00 00 6E 34 A2 [21:33:16]Write i2c OK [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: 01 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: 01 07 00 [21:33:16]MH_I2C_Read... [21:33:16]Read from MH i2c: 01 07 00 6E 34 00 00 00 00 00 FF 0F B7 [21:33:16]RasterBufferAndPrint [21:33:16]line Счет N : (3)189890 [21:33:16]line ИНН: 02508201610067 [21:33:16]line Контрольно-Кассовый Чек [21:33:16]line ПРОДАЖА [21:33:16]line Товар: 4700000160358 [21:33:16]line Вода Легенда 1л [21:33:16]line 1.000 * 50.00 [21:33:16]line = 50.00 [21:33:16]line НДС 12% НСП 1% [21:33:16]line > о реализуемом товаре [21:33:16]line ИТОГО: 50.00 [21:33:16]line НСП 1% : 0.44 [21:33:16]line НДС 12% : 5.31 [21:33:16]line Наличными: 50.00 [21:33:16]line Безнал.: 0.00 [21:33:16]line Место: АЗС № 95 "Партнер Нефть" [21:33:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:33:16]line СНО: Общий режим [21:33:16]line Чек 145 17.08.2024 21:33 [21:33:16]line Смена: 465 ФФД: 1.0 [21:33:16]line ЗНМ: 0300000078 [21:33:16]line РНМ: 0000000000092546 [21:33:16]line Версия ККМ: 001 [21:33:16]line ФМ: 0000000000871800 [21:33:16]line ФД: 49708 [21:33:16]line ФПД: 267810448988844 [21:33:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T213320&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49708&fm=267810448988844&tin=02508201610067®Number=0000000000092546&sum=5000 [21:33:16]line 0 [21:33:16]written 0, free lines is 4095 [21:33:16]OFD Sender: Processing packet 49708 [packets to send 21, broken 20] [21:33:16]ProducePacketName [21:33:16]name=ofd_packets/00049708 [21:33:16]OFD Sender: To server: pG, [21:33:17]CommunicateWithHost lk.salyk.kg:30040 [21:33:17]ConnectInit lk.salyk.kg [21:33:17]Write to MH i2c: 01 00 00 96 34 CA [21:33:17]Write i2c OK [21:33:17]MH_I2C_Read... [21:33:17]Read from MH i2c: 01 [21:33:17]MH_I2C_Read... [21:33:17]Read from MH i2c: 01 07 00 [21:33:17]MH_I2C_Read... [21:33:17]Read from MH i2c: 01 07 00 96 34 00 00 00 00 00 F7 0C D4 [21:33:17]RasterBufferAndPrint [21:33:17]line [21:33:17]line [21:33:17]line [21:33:17]line [21:33:17]line [21:33:17]written 0, free lines is 3325 [21:33:17]MH_Cut [21:33:17]Write to MH i2c: D1 01 00 9D 34 01 A3 [21:33:17]Write i2c OK [21:33:17]MH_I2C_Read... [21:33:17]Read from MH i2c: D1 [21:33:17]MH_I2C_Read... [21:33:17]Read from MH i2c: D1 01 00 [21:33:17]MH_I2C_Read... [21:33:17]Read from MH i2c: D1 01 00 9D 34 00 A2 [21:33:17]Write to MH i2c: 01 00 00 9E 34 D2 [21:33:17]Write i2c OK [21:33:17]MH_I2C_Read... [21:33:17]Connected sock=10 [21:33:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 3B 43 19 01 2D 22 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 20 17 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2C C2 00 00 35 04 06 00 F3 92 7A AD DA AC 66 BC BB 23 19 98 7E E2 [21:33:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 34 4A 47 00 44 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 31 38 30 30 10 04 04 00 2C C2 00 00 F4 03 04 00 5B C2 C0 66 B6 04 01 00 00 AF 09 72 75 C8 D3 15 67 [21:33:17]CommunicateWithHost err = 0 [21:33:17]CheckOFDResponse [21:33:17]1017 (14) - 77093643461234 [21:33:17]1041 (16) - 0000000000871800 [21:33:17]1040 (4) - 49708 [21:33:17]1012 (4) - 17.08.2024 15:31 [21:33:17]1206 (1) - 0 [21:33:17]OFD Sender: Remove packet 49708 [21:33:17]ProducePacketName [21:33:17]name=ofd_packets/00049708 [21:33:17]NVStorageDeleteData [21:33:18]*** Cut start [21:33:18]*** Purtial cut [21:33:18]*** CUTSNS_PIN = 0 [21:33:18]OFD Sender: No OFD packet to send [21:33:18]*** Stage 1: CUTSNS_PIN = 1 [21:33:20]Read from MH i2c: 01 [21:33:20]MH_I2C_Read... [21:33:20]*** Stop cut motor [21:33:20]*** Cut end [21:33:20]Read from MH i2c: 01 07 00 [21:33:20]MH_I2C_Read... [21:33:20]Read from MH i2c: 01 07 00 9E 34 00 00 00 00 00 FF 0F E7 [21:33:20]process_action close_receipt done [21:33:20]requested_data is exist [21:33:20]produce_requested_data [21:33:20]requested_item fm.sn is exist - process it [21:33:20]wFMCommunicate request_size=4 [21:33:20]MH_SAM_APDU [21:33:20]CAPDU: 80 11 00 00 [21:33:20]Write to MH i2c: E2 08 00 9F 34 80 11 00 00 00 00 00 00 4D [21:33:20]Write i2c OK [21:33:20]MH_I2C_Read... [21:33:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:20]Read from MH i2c: E2 [21:33:20]MH_I2C_Read... [21:33:20]Read from MH i2c: E2 17 00 [21:33:20]MH_I2C_Read... [21:33:20]Read from MH i2c: E2 17 00 9F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 98 [21:33:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:33:20]wFMCommunicate OK [21:33:20]requested_item fd.num is exist - process it [21:33:20]SAM_PROTO_GetFieldsCounters [21:33:20]wFMCommunicate request_size=4 [21:33:20]MH_SAM_APDU [21:33:20]CAPDU: 80 13 00 00 [21:33:20]Write to MH i2c: E2 08 00 A0 34 80 13 00 00 00 00 00 00 50 [21:33:20]Write i2c OK [21:33:20]MH_I2C_Read... [21:33:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:20]Read from MH i2c: E2 [21:33:20]MH_I2C_Read... [21:33:20]Read from MH i2c: E2 62 00 [21:33:20]MH_I2C_Read... [21:33:20]Read from MH i2c: E2 62 00 A0 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2C C2 00 00 0E 04 04 00 D1 01 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 DD [21:33: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2C C2 00 00 0E 04 04 00 D1 01 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 [21:33:20]wFMCommunicate OK [21:33:20]SAM_PROTO_GetFieldsCounters done [21:33:20]requested_item shift.num is exist - process it [21:33:20]requested_item shift.opened is exist - process it [21:33:20]req_shift_opened [21:33:20]FM_GetShiftState [21:33:20]SAM_PROTO_GetShiftState [21:33:20]wFMCommunicate request_size=4 [21:33:20]MH_SAM_APDU [21:33:20]CAPDU: 80 13 01 00 [21:33:20]Write to MH i2c: E2 08 00 A1 34 80 13 01 00 00 00 00 00 52 [21:33:20]Write i2c OK [21:33:20]MH_I2C_Read... [21:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:20]Read from MH i2c: E2 [21:33:20]MH_I2C_Read... [21:33:20]Read from MH i2c: E2 0E 00 [21:33:20]MH_I2C_Read... [21:33:20]Read from MH i2c: E2 0E 00 A1 34 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 97 [21:33:20]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:33:20]wFMCommunicate OK [21:33:20]SAM_PROTO_GetShiftState done [21:33:20]FM_GetShiftState done [21:33:20]req_shift_opened done [21:33:20]requested_item shift.open_date is exist - process it [21:33:20]req_shift_open_date [21:33:20]req_shift_open_date done [21:33:20]produce_requested_data done [21:33:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49708,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [21:33:20]process_action_free close_receipt [21:33:20]json_value_free [21:33:20]json_value_free done [21:33:20]process_json_proto returns [21:33:20]Send response to host [21:33:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49708,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [21:33:20]free response buf [21:33:20]execute_script done [21:33:20]execute_script returns [21:33:20]free content buf [21:33:20]Sock 7.Close socket [21:33:20]Sock 7.Thread stoped [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]accept exits with 9 [21:35:13]New connection [21:35:13]New thread 3066801508 created [21:35:13]Thread 3066944868 joined [21:35:13]Waiting for new connection... [21:35:13] Sock 9.Parse request [21:35:13]Sock 9.Check first char [21:35:13]Sock 9.First char is OK [21:35:13]request: POST /json_proto HTTP/1.0 [21:35:13]Method: POST [21:35:13]URL: /json_proto [21:35:13]Method is POST - this is cgi request [21:35:13]url: /json_proto [21:35:13]query_string will be loaded in cgi processing [21:35:13]execute_cgi json_proto POST (null) [21:35:13]execute_cgi path=json_proto method=POST [21:35:13]POST find Content-Length [21:35:13]Host: 172.17.46.196:8080 [21:35:13]Content-Length: 870 [21:35:13]Content-Type: application/json [21:35:13] [21:35:13]POST finish read [21:35:13]Found Content-Length = 870 [21:35:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189891", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:13]execute_script... [21:35:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189891", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:13]POST & json_proto [21:35:13]process_json_proto [21:35:13]json parsed OK: [21:35:13]protocol is kg_v1.0 [21:35:13]action value=close_receipt [21:35:13]process_action close_receipt [21:35:13]cmd_close_receipt [21:35:13]MH_GetDate [21:35:13]Write to MH i2c: F0 00 00 A2 34 C5 [21:35:13]Write i2c OK [21:35:13]MH_I2C_Read... [21:35:13]Read from MH i2c: F0 [21:35:13]MH_I2C_Read... [21:35:13]Read from MH i2c: F0 09 00 [21:35:13]MH_I2C_Read... [21:35:13]Read from MH i2c: F0 09 00 A2 34 00 96 17 C1 66 07 E8 5D 66 54 [21:35:13]GetLastDocTimeStamp 1723930400 [21:35:13]current date 1723930518 [21:35:13]FM_GetShiftState [21:35:13]SAM_PROTO_GetShiftState [21:35:13]wFMCommunicate request_size=4 [21:35:13]MH_SAM_APDU [21:35:13]CAPDU: 80 13 01 00 [21:35:13]Write to MH i2c: E2 08 00 A3 34 80 13 01 00 00 00 00 00 54 [21:35:13]Write i2c OK [21:35:13]MH_I2C_Read... [21:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:13]Read from MH i2c: E2 [21:35:13]MH_I2C_Read... [21:35:13]Read from MH i2c: E2 0E 00 [21:35:13]MH_I2C_Read... [21:35:13]Read from MH i2c: E2 0E 00 A3 34 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 99 [21:35:13]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:35:13]wFMCommunicate OK [21:35:13]SAM_PROTO_GetShiftState done [21:35:13]FM_GetShiftState done [21:35:13]opened in 1723853354 [21:35:13]opened+sec_in_day 1723939754 [21:35:13]quantity*price = 5000 [21:35:13]sum+1 = 5001 [21:35:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 146 17.08.2024 21:35 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49709 ФПД: 97778986849458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T213518&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49709&fm=97778986849458&tin=02508201610067®Number=0000000000092546&sum=19000 0 [21:35:14]StoreToDocumentArchive [21:35:14]shift 465 fd 49709 [21:35:14]save to /storage/0465/doc_00049709 [21:35:14]save last doc name /storage/0465/doc_00049709 to /storage/kkm_last_doc_name [21:35:14]save OK [21:35:14]Clear old archive folders... [21:35:14]ProcessDocumentItem done err = 0, tmpTLVsize=374 [21:35:14]tlvbuf is 018EE820 [21:35:14]SAM_PROTO_ClearQueue [21:35:14]wFMCommunicate request_size=4 [21:35:14]MH_SAM_APDU [21:35:14]CAPDU: 80 09 00 00 [21:35:14]Write to MH i2c: E2 08 00 B0 34 80 09 00 00 00 00 00 00 56 [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:14]Read from MH i2c: E2 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 03 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 03 00 B0 34 00 90 00 58 [21:35:14]RAPDU: 90 00 [21:35:14]wFMCommunicate OK [21:35:14]SAM_PROTO_ClearQueue done [21:35:14]KKMCreateOFDPacket [21:35:14]OFDProtocolAddRootSTLVToBuf [21:35:14]FM_MakeSignedData [21:35:14]FM_MakeSignedData [21:35:14]SAM_PROTO_SignData [21:35:14]wFMCommunicate request_size=4 [21:35:14]MH_SAM_APDU [21:35:14]CAPDU: 80 0D 01 02 [21:35:14]Write to MH i2c: E2 08 00 B1 34 80 0D 01 02 00 00 00 00 5E [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:14]Read from MH i2c: E2 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 03 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 03 00 B1 34 00 90 00 59 [21:35:14]RAPDU: 90 00 [21:35:14]wFMCommunicate OK [21:35:14]wFMCommunicate request_size=255 [21:35:14]MH_SAM_APDU [21:35:14]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 [21:35:14]Write to MH i2c: E2 02 01 B2 34 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 00 00 4A [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:14]Read from MH i2c: E2 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 03 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 03 00 B2 34 00 90 00 5A [21:35:14]RAPDU: 90 00 [21:35:14]wFMCommunicate OK [21:35:14]wFMCommunicate request_size=133 [21:35:14]MH_SAM_APDU [21:35:14]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 96 17 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C2 00 00 35 04 06 00 58 ED F1 C7 14 B2 [21:35:14]Write to MH i2c: E2 88 00 B3 34 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 96 17 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C2 00 00 35 04 06 00 58 ED F1 C7 14 B2 00 00 DC [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:14]Read from MH i2c: E2 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 03 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 03 00 B3 34 00 90 00 5B [21:35:14]RAPDU: 90 00 [21:35:14]wFMCommunicate OK [21:35:14]wFMCommunicate request_size=4 [21:35:14]MH_SAM_APDU [21:35:14]CAPDU: 80 0D 03 02 [21:35:14]Write to MH i2c: E2 08 00 B4 34 80 0D 03 02 00 00 00 00 63 [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:14]Read from MH i2c: E2 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 0B 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 0B 00 B4 34 00 9F E1 9C E2 F8 D7 2B 01 90 00 5D [21:35:14]RAPDU: 9F E1 9C E2 F8 D7 2B 01 90 00 [21:35:14]wFMCommunicate OK [21:35:14]SAM_PROTO_SignData done [21:35:14]FM_MakeSignedData done [21:35:14]CreateOFDProtocolMessage [21:35:14]wFMCommunicate request_size=4 [21:35:14]MH_SAM_APDU [21:35:14]CAPDU: 80 11 00 00 [21:35:14]Write to MH i2c: E2 08 00 B5 34 80 11 00 00 00 00 00 00 63 [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:14]Read from MH i2c: E2 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 17 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 17 00 B5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AE [21:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:35:14]wFMCommunicate OK [21:35:14]CreateOFDProtocolMessage done [21:35:14]OFDSenderStorePacket 49709 [21:35:14]StoreOFDPacket docnum=49709 [21:35:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8A 01 00 00 9B 9C 82 01 D8 56 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 96 17 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C2 00 00 35 04 06 00 58 ED F1 C7 14 B2 9F E1 9C E2 F8 D7 2B 01 [21:35:14]CheckFolder [21:35:14]dirname=/storage/ofd_packets [21:35:14]CheckFolder done [21:35:14]ProducePacketName [21:35:14]name=ofd_packets/00049709 [21:35:14]NVStorageSaveData ofd_packets/00049709 [21:35:14]File name is /storage/ofd_packets/00049709 [21:35:14]Write 424 bytes [21:35:14]NVStorageSaveData done [21:35:14]OFDSenderStorePacket done [21:35:14]KKMCreateOFDPacket done [21:35:14]NVStorageSaveData kkm_last_timestamp [21:35:14]File name is /storage/kkm_last_timestamp [21:35:14]Write 4 bytes [21:35:14]NVStorageSaveData done [21:35:14]ExternCall_PrintAddStr [21:35:14]wPrintStart [21:35:14]Write to MH i2c: 01 00 00 B6 34 EA [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: 01 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: 01 07 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: 01 07 00 B6 34 00 00 00 00 00 FF 0F FF [21:35:14]RasterBufferAndPrint [21:35:14]line Счет N : (3)189891 [21:35:14]line ИНН: 02508201610067 [21:35:14]line Контрольно-Кассовый Чек [21:35:14]line ПРОДАЖА [21:35:14]line Товар: 4700000160358 [21:35:14]line Вода Легенда 1л [21:35:14]line 1.000 * 50.00 [21:35:14]line = 50.00 [21:35:14]line НДС 12% НСП 1% [21:35:14]line > о реализуемом товаре [21:35:15]line Товар: 48743587 [21:35:15]line Сигареты Winston XStyle Silver [21:35:15]line 1.000 * 140.00 [21:35:15]line = 140.00 [21:35:15]line НДС 12% НСП 1% [21:35:15]line > о реализуемом товаре [21:35:15]line ИТОГО: 190.00 [21:35:15]line НСП 1% : 1.68 [21:35:15]line НДС 12% : 20.18 [21:35:15]line Наличными: 190.00 [21:35:15]line Безнал.: 0.00 [21:35:15]line Место: АЗС № 95 "Партнер Нефть" [21:35:15]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:35:15]line СНО: Общий режим [21:35:15]line Чек 146 17.08.2024 21:35 [21:35:15]line Смена: 465 ФФД: 1.0 [21:35:15]line ЗНМ: 0300000078 [21:35:15]line РНМ: 0000000000092546 [21:35:15]line Версия ККМ: 001 [21:35:15]line ФМ: 0000000000871800 [21:35:15]line ФД: 49709 [21:35:15]line ФПД: 97778986849458 [21:35:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T213518&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49709&fm=97778986849458&tin=02508201610067®Number=0000000000092546&sum=19000 [21:35:15]OFD Sender: Processing packet 49709 [packets to send 21, broken 20] [21:35:15]ProducePacketName [21:35:15]name=ofd_packets/00049709 [21:35:15]OFD Sender: To server: pG, [21:35:15]CommunicateWithHost lk.salyk.kg:30040 [21:35:15]ConnectInit lk.salyk.kg [21:35:15]line 0 [21:35:15]written 0, free lines is 4095 [21:35:15]Connected sock=10 [21:35:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8A 01 00 00 9B 9C 82 01 D8 56 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 96 17 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C2 00 00 35 04 06 00 58 ED F1 C7 14 B2 9F E1 9C E2 F8 D7 2B 01 [21:35:15]Write to MH i2c: 01 00 00 E5 34 19 [21:35:15]Write i2c OK [21:35:15]MH_I2C_Read... [21:35:15]Read from MH i2c: 01 [21:35:15]MH_I2C_Read... [21:35:15]Read from MH i2c: 01 07 00 [21:35:15]MH_I2C_Read... [21:35:15]Read from MH i2c: 01 07 00 E5 34 00 00 00 00 00 87 0C B3 [21:35:15]RasterBufferAndPrint [21:35:15]line [21:35:15]line [21:35:15]line [21:35:15]line [21:35:15]line [21:35:15]written 0, free lines is 3214 [21:35:15]MH_Cut [21:35:15]Write to MH i2c: D1 01 00 EC 34 01 F2 [21:35:15]Write i2c OK [21:35:15]MH_I2C_Read... [21:35:15]Read from MH i2c: D1 [21:35:15]MH_I2C_Read... [21:35:15]Read from MH i2c: D1 01 00 [21:35:15]MH_I2C_Read... [21:35:15]Read from MH i2c: D1 01 00 EC 34 00 F1 [21:35:15]Write to MH i2c: 01 00 00 ED 34 21 [21:35:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7C 97 47 00 D4 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 31 38 30 30 10 04 04 00 2D C2 00 00 F4 03 04 00 D1 C2 C0 66 B6 04 01 00 00 08 A7 D1 FF 37 50 38 28 [21:35:15]CommunicateWithHost err = 0 [21:35:15]CheckOFDResponse [21:35:15]1017 (14) - 77093643461234 [21:35:15]1041 (16) - 0000000000871800 [21:35:15]1040 (4) - 49709 [21:35:15]1012 (4) - 17.08.2024 15:33 [21:35:15]1206 (1) - 0 [21:35:15]OFD Sender: Remove packet 49709 [21:35:15]ProducePacketName [21:35:15]name=ofd_packets/00049709 [21:35:15]NVStorageDeleteData [21:35:15]Write i2c OK [21:35:15]MH_I2C_Read... [21:35:16]OFD Sender: No OFD packet to send [21:35:16]*** Cut start [21:35:16]*** Purtial cut [21:35:16]*** Stage 1: CUTSNS_PIN = 1 [21:35:16]Read from MH i2c: 01 [21:35:16]MH_I2C_Read... [21:35:16]*** Stop cut motor [21:35:16]*** Cut end [21:35:16]Read from MH i2c: 01 07 00 [21:35:16]MH_I2C_Read... [21:35:16]Read from MH i2c: 01 07 00 ED 34 00 00 00 00 00 FF 0F 36 [21:35:16]process_action close_receipt done [21:35:16]requested_data is exist [21:35:16]produce_requested_data [21:35:16]requested_item fm.sn is exist - process it [21:35:16]wFMCommunicate request_size=4 [21:35:16]MH_SAM_APDU [21:35:16]CAPDU: 80 11 00 00 [21:35:16]Write to MH i2c: E2 08 00 EE 34 80 11 00 00 00 00 00 00 9C [21:35:16]Write i2c OK [21:35:16]MH_I2C_Read... [21:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:16]Read from MH i2c: E2 [21:35:16]MH_I2C_Read... [21:35:16]Read from MH i2c: E2 17 00 [21:35:16]MH_I2C_Read... [21:35:16]Read from MH i2c: E2 17 00 EE 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E7 [21:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:35:16]wFMCommunicate OK [21:35:16]requested_item fd.num is exist - process it [21:35:16]SAM_PROTO_GetFieldsCounters [21:35:16]wFMCommunicate request_size=4 [21:35:16]MH_SAM_APDU [21:35:16]CAPDU: 80 13 00 00 [21:35:16]Write to MH i2c: E2 08 00 EF 34 80 13 00 00 00 00 00 00 9F [21:35:16]Write i2c OK [21:35:16]MH_I2C_Read... [21:35:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:17]Read from MH i2c: E2 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 62 00 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 62 00 EF 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2D C2 00 00 0E 04 04 00 D1 01 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 30 [21:35: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2D C2 00 00 0E 04 04 00 D1 01 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 [21:35:17]wFMCommunicate OK [21:35:17]SAM_PROTO_GetFieldsCounters done [21:35:17]requested_item shift.num is exist - process it [21:35:17]requested_item shift.opened is exist - process it [21:35:17]req_shift_opened [21:35:17]FM_GetShiftState [21:35:17]SAM_PROTO_GetShiftState [21:35:17]wFMCommunicate request_size=4 [21:35:17]MH_SAM_APDU [21:35:17]CAPDU: 80 13 01 00 [21:35:17]Write to MH i2c: E2 08 00 F0 34 80 13 01 00 00 00 00 00 A1 [21:35:17]Write i2c OK [21:35:17]MH_I2C_Read... [21:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:17]Read from MH i2c: E2 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 0E 00 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: E2 0E 00 F0 34 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 E6 [21:35:17]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:35:17]wFMCommunicate OK [21:35:17]SAM_PROTO_GetShiftState done [21:35:17]FM_GetShiftState done [21:35:17]req_shift_opened done [21:35:17]requested_item shift.open_date is exist - process it [21:35:17]req_shift_open_date [21:35:17]req_shift_open_date done [21:35:17]produce_requested_data done [21:35:17]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49709,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [21:35:17]process_action_free close_receipt [21:35:17]json_value_free [21:35:17]json_value_free done [21:35:17]process_json_proto returns [21:35:17]Send response to host [21:35:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49709,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [21:35:17]free response buf [21:35:17]execute_script done [21:35:17]execute_script returns [21:35:17]free content buf [21:35:17]Sock 9.Close socket [21:35:17]Sock 9.Thread stoped [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]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:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [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: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: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: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]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:16]accept exits with 7 [21:52:16]New connection [21:52:16]New thread 3066944868 created [21:52:16]Thread 3066801508 joined [21:52:16]Waiting for new connection... [21:52:16] Sock 7.Parse request [21:52:16]Sock 7.Check first char [21:52:16]Sock 7.First char is OK [21:52:16]request: POST /json_proto HTTP/1.0 [21:52:16]Method: POST [21:52:16]URL: /json_proto [21:52:16]Method is POST - this is cgi request [21:52:16]url: /json_proto [21:52:16]query_string will be loaded in cgi processing [21:52:16]execute_cgi json_proto POST (null) [21:52:16]execute_cgi path=json_proto method=POST [21:52:16]POST find Content-Length [21:52:16]Host: 172.17.46.196:8080 [21:52:16]Content-Length: 624 [21:52:16]Content-Type: application/json [21:52:16] [21:52:16]POST finish read [21:52:16]Found Content-Length = 624 [21:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189892", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:16]execute_script... [21:52:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189892", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:16]POST & json_proto [21:52:16]process_json_proto [21:52:16]json parsed OK: [21:52:16]protocol is kg_v1.0 [21:52:16]action value=close_receipt [21:52:16]process_action close_receipt [21:52:16]cmd_close_receipt [21:52:16]MH_GetDate [21:52:16]Write to MH i2c: F0 00 00 F1 34 14 [21:52:16]Write i2c OK [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: F0 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: F0 09 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: F0 09 00 F1 34 00 96 1B C1 66 07 E8 5D 66 A7 [21:52:16]GetLastDocTimeStamp 1723930518 [21:52:16]current date 1723931542 [21:52:16]FM_GetShiftState [21:52:16]SAM_PROTO_GetShiftState [21:52:16]wFMCommunicate request_size=4 [21:52:16]MH_SAM_APDU [21:52:16]CAPDU: 80 13 01 00 [21:52:16]Write to MH i2c: E2 08 00 F2 34 80 13 01 00 00 00 00 00 A3 [21:52:16]Write i2c OK [21:52:16]MH_I2C_Read... [21:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:16]Read from MH i2c: E2 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 0E 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 0E 00 F2 34 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 E8 [21:52:16]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:52:16]wFMCommunicate OK [21:52:16]SAM_PROTO_GetShiftState done [21:52:16]FM_GetShiftState done [21:52:16]opened in 1723853354 [21:52:16]opened+sec_in_day 1723939754 [21:52:16]quantity*price = 15100 [21:52:16]sum+1 = 15101 [21:52:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 147 17.08.2024 21:52 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49710 ФПД: 92621164747344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T215222&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49710&fm=92621164747344&tin=02508201610067®Number=0000000000092546&sum=15100 0 [21:52:18]StoreToDocumentArchive [21:52:18]shift 465 fd 49710 [21:52:18]save to /storage/0465/doc_00049710 [21:52:18]save last doc name /storage/0465/doc_00049710 to /storage/kkm_last_doc_name [21:52:18]save OK [21:52:18]Clear old archive folders... [21:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=276 [21:52:18]tlvbuf is 0181B3C0 [21:52:18]SAM_PROTO_ClearQueue [21:52:18]wFMCommunicate request_size=4 [21:52:18]MH_SAM_APDU [21:52:18]CAPDU: 80 09 00 00 [21:52:18]Write to MH i2c: E2 08 00 FF 34 80 09 00 00 00 00 00 00 A5 [21:52:18]Write i2c OK [21:52:18]MH_I2C_Read... [21:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:18]Read from MH i2c: E2 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 03 00 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 03 00 FF 34 00 90 00 A7 [21:52:18]RAPDU: 90 00 [21:52:18]wFMCommunicate OK [21:52:18]SAM_PROTO_ClearQueue done [21:52:18]KKMCreateOFDPacket [21:52:18]OFDProtocolAddRootSTLVToBuf [21:52:18]FM_MakeSignedData [21:52:18]FM_MakeSignedData [21:52:18]SAM_PROTO_SignData [21:52:18]wFMCommunicate request_size=4 [21:52:18]MH_SAM_APDU [21:52:18]CAPDU: 80 0D 01 02 [21:52:18]Write to MH i2c: E2 08 00 00 35 80 0D 01 02 00 00 00 00 AE [21:52:18]Write i2c OK [21:52:18]MH_I2C_Read... [21:52:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:18]Read from MH i2c: E2 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 03 00 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 03 00 00 35 00 90 00 A9 [21:52:18]RAPDU: 90 00 [21:52:18]wFMCommunicate OK [21:52:18]wFMCommunicate request_size=255 [21:52:18]MH_SAM_APDU [21:52:18]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 96 1B C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [21:52:18]Write to MH i2c: E2 02 01 01 35 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 96 1B C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 3E [21:52:18]Write i2c OK [21:52:18]MH_I2C_Read... [21:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:18]Read from MH i2c: E2 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 03 00 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 03 00 01 35 00 90 00 AA [21:52:18]RAPDU: 90 00 [21:52:18]wFMCommunicate OK [21:52:18]wFMCommunicate request_size=35 [21:52:18]MH_SAM_APDU [21:52:18]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C2 00 00 35 04 06 00 54 3D 0B 9F 9A 50 [21:52:18]Write to MH i2c: E2 26 00 02 35 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C2 00 00 35 04 06 00 54 3D 0B 9F 9A 50 00 00 B1 [21:52:18]Write i2c OK [21:52:18]MH_I2C_Read... [21:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:18]Read from MH i2c: E2 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 03 00 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 03 00 02 35 00 90 00 AB [21:52:18]RAPDU: 90 00 [21:52:18]wFMCommunicate OK [21:52:18]wFMCommunicate request_size=4 [21:52:18]MH_SAM_APDU [21:52:18]CAPDU: 80 0D 03 02 [21:52:18]Write to MH i2c: E2 08 00 03 35 80 0D 03 02 00 00 00 00 B3 [21:52:18]Write i2c OK [21:52:18]MH_I2C_Read... [21:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:18]Read from MH i2c: E2 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 0B 00 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 0B 00 03 35 00 11 7B 63 BF 74 E5 C3 EB 90 00 69 [21:52:18]RAPDU: 11 7B 63 BF 74 E5 C3 EB 90 00 [21:52:18]wFMCommunicate OK [21:52:18]SAM_PROTO_SignData done [21:52:18]FM_MakeSignedData done [21:52:18]CreateOFDProtocolMessage [21:52:18]wFMCommunicate request_size=4 [21:52:18]MH_SAM_APDU [21:52:18]CAPDU: 80 11 00 00 [21:52:18]Write to MH i2c: E2 08 00 04 35 80 11 00 00 00 00 00 00 B3 [21:52:18]Write i2c OK [21:52:18]MH_I2C_Read... [21:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:18]Read from MH i2c: E2 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 17 00 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 17 00 04 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FE [21:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:52:18]wFMCommunicate OK [21:52:18]CreateOFDProtocolMessage done [21:52:18]OFDSenderStorePacket 49710 [21:52:18]StoreOFDPacket docnum=49710 [21:52:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 84 63 20 01 8D F5 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 96 1B C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C2 00 00 35 04 06 00 54 3D 0B 9F 9A 50 11 7B 63 BF 74 E5 C3 EB [21:52:18]CheckFolder [21:52:18]dirname=/storage/ofd_packets [21:52:18]CheckFolder done [21:52:18]ProducePacketName [21:52:18]name=ofd_packets/00049710 [21:52:18]NVStorageSaveData ofd_packets/00049710 [21:52:18]File name is /storage/ofd_packets/00049710 [21:52:18]Write 326 bytes [21:52:18]NVStorageSaveData done [21:52:18]OFDSenderStorePacket done [21:52:18]KKMCreateOFDPacket done [21:52:18]NVStorageSaveData kkm_last_timestamp [21:52:18]File name is /storage/kkm_last_timestamp [21:52:18]Write 4 bytes [21:52:18]NVStorageSaveData done [21:52:18]ExternCall_PrintAddStr [21:52:18]wPrintStart [21:52:18]Write to MH i2c: 01 00 00 05 35 3A [21:52:18]Write i2c OK [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: 01 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: 01 07 00 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: 01 07 00 05 35 00 00 00 00 00 FF 0F 4F [21:52:18]RasterBufferAndPrint [21:52:18]line Счет N : (3)189892 [21:52:18]line ИНН: 02508201610067 [21:52:18]line Контрольно-Кассовый Чек [21:52:18]line ПРОДАЖА [21:52:18]line Товар: 48742245 [21:52:18]line Сигареты Parliament Silver Blue [21:52:18]line 1.000 * 151.00 [21:52:18]line = 151.00 [21:52:18]line НДС 12% НСП 1% [21:52:18]line > о реализуемом товаре [21:52:18]line ИТОГО: 151.00 [21:52:18]line НСП 1% : 1.34 [21:52:18]line НДС 12% : 16.03 [21:52:18]line Наличными: 151.00 [21:52:18]line Безнал.: 0.00 [21:52:18]line Место: АЗС № 95 "Партнер Нефть" [21:52:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:52:18]line СНО: Общий режим [21:52:18]line Чек 147 17.08.2024 21:52 [21:52:18]line Смена: 465 ФФД: 1.0 [21:52:18]line ЗНМ: 0300000078 [21:52:18]line РНМ: 0000000000092546 [21:52:18]line Версия ККМ: 001 [21:52:18]line ФМ: 0000000000871800 [21:52:18]line ФД: 49710 [21:52:18]line ФПД: 92621164747344 [21:52:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T215222&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49710&fm=92621164747344&tin=02508201610067®Number=0000000000092546&sum=15100 [21:52:18]OFD Sender: Processing packet 49710 [packets to send 21, broken 20] [21:52:18]ProducePacketName [21:52:18]name=ofd_packets/00049710 [21:52:18]OFD Sender: To server: pG, [21:52:18]CommunicateWithHost lk.salyk.kg:30040 [21:52:18]ConnectInit lk.salyk.kg [21:52:18]line 0 [21:52:18]written 0, free lines is 4095 [21:52:19]Connected sock=10 [21:52:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 84 63 20 01 8D F5 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 96 1B C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C2 00 00 35 04 06 00 54 3D 0B 9F 9A 50 11 7B 63 BF 74 E5 C3 EB [21:52:19]Write to MH i2c: 01 00 00 2E 35 63 [21:52:19]Write i2c OK [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: 01 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: 01 07 00 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: 01 07 00 2E 35 00 00 00 00 00 CD 0C 43 [21:52:19]RasterBufferAndPrint [21:52:19]line [21:52:19]line [21:52:19]line [21:52:19]line [21:52:19]line [21:52:19]written 0, free lines is 3281 [21:52:19]MH_Cut [21:52:19]Write to MH i2c: D1 01 00 35 35 01 3C [21:52:19]Write i2c OK [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: D1 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: D1 01 00 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: D1 01 00 35 35 00 3B [21:52:19]Write to MH i2c: 01 00 00 36 35 6B [21:52:19]Write i2c OK [21:52:19]MH_I2C_Read... [21:52:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 39 06 47 00 58 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C2 00 00 F4 03 04 00 D1 C6 C0 66 B6 04 01 00 00 0B 47 58 55 A1 C4 5D 9F [21:52:19]CommunicateWithHost err = 0 [21:52:19]CheckOFDResponse [21:52:19]1017 (14) - 77093643461234 [21:52:19]1041 (16) - 0000000000871800 [21:52:19]1040 (4) - 49710 [21:52:19]1012 (4) - 17.08.2024 15:50 [21:52:19]1206 (1) - 0 [21:52:19]OFD Sender: Remove packet 49710 [21:52:19]ProducePacketName [21:52:19]name=ofd_packets/00049710 [21:52:19]NVStorageDeleteData [21:52:19]OFD Sender: No OFD packet to send [21:52:20]*** Cut start [21:52:20]*** Purtial cut [21:52:20]*** CUTSNS_PIN = 0 [21:52:20]*** Stage 1: CUTSNS_PIN = 1 [21:52:22]Read from MH i2c: 01 [21:52:22]MH_I2C_Read... [21:52:22]*** Stop cut motor [21:52:22]*** Cut end [21:52:22]Read from MH i2c: 01 07 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 07 00 36 35 00 00 00 00 00 FF 0F 80 [21:52:22]process_action close_receipt done [21:52:22]requested_data is exist [21:52:22]produce_requested_data [21:52:22]requested_item fm.sn is exist - process it [21:52:22]wFMCommunicate request_size=4 [21:52:22]MH_SAM_APDU [21:52:22]CAPDU: 80 11 00 00 [21:52:22]Write to MH i2c: E2 08 00 37 35 80 11 00 00 00 00 00 00 E6 [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:22]Read from MH i2c: E2 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 17 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 17 00 37 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 31 [21:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:52:22]wFMCommunicate OK [21:52:22]requested_item fd.num is exist - process it [21:52:22]SAM_PROTO_GetFieldsCounters [21:52:22]wFMCommunicate request_size=4 [21:52:22]MH_SAM_APDU [21:52:22]CAPDU: 80 13 00 00 [21:52:22]Write to MH i2c: E2 08 00 38 35 80 13 00 00 00 00 00 00 E9 [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:22]Read from MH i2c: E2 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 62 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 62 00 38 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2E C2 00 00 0E 04 04 00 D1 01 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 7E [21:52: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2E C2 00 00 0E 04 04 00 D1 01 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 [21:52:22]wFMCommunicate OK [21:52:22]SAM_PROTO_GetFieldsCounters done [21:52:22]requested_item shift.num is exist - process it [21:52:22]requested_item shift.opened is exist - process it [21:52:22]req_shift_opened [21:52:22]FM_GetShiftState [21:52:22]SAM_PROTO_GetShiftState [21:52:22]wFMCommunicate request_size=4 [21:52:22]MH_SAM_APDU [21:52:22]CAPDU: 80 13 01 00 [21:52:22]Write to MH i2c: E2 08 00 39 35 80 13 01 00 00 00 00 00 EB [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:22]Read from MH i2c: E2 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 0E 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 0E 00 39 35 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 30 [21:52:22]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [21:52:22]wFMCommunicate OK [21:52:22]SAM_PROTO_GetShiftState done [21:52:22]FM_GetShiftState done [21:52:22]req_shift_opened done [21:52:22]requested_item shift.open_date is exist - process it [21:52:22]req_shift_open_date [21:52:22]req_shift_open_date done [21:52:22]produce_requested_data done [21:52:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49710,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [21:52:22]process_action_free close_receipt [21:52:22]json_value_free [21:52:22]json_value_free done [21:52:22]process_json_proto returns [21:52:22]Send response to host [21:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49710,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [21:52:22]free response buf [21:52:22]execute_script done [21:52:22]execute_script returns [21:52:22]free content buf [21:52:22]Sock 7.Close socket [21:52:22]Sock 7.Thread stoped [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:03]int [22:00:03]Write to MH i2c: 01 00 00 3A 35 6F [22:00:03]*** FLAG_PRN_KEY set [22:00:03]Write i2c OK [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: 01 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: 01 07 00 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: 01 07 00 3A 35 00 08 00 00 00 FF 0F 8C [22:00:03]state=0 [22:00:03]Key pressed [22:00:03]Feed [22:00:03]Write to MH i2c: D8 00 00 3B 35 47 [22:00:03]Write i2c OK [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: D8 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: D8 01 00 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: D8 01 00 3B 35 00 48 [22:00:03]int [22:00:03]Write to MH i2c: 01 00 00 3C 35 71 [22:00:03]Write i2c OK [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: 01 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: 01 07 00 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: 01 07 00 3C 35 00 48 00 00 00 3C 00 FC [22:00:03]state=2 [22:00:03]Key pressed [22:00:03]int [22:00:03]Write to MH i2c: 01 00 00 3D 35 72 [22:00:03]*** FLAG_PRN_KEY reset [22:00:03]Write i2c OK [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: 01 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: 01 07 00 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: 01 07 00 3D 35 00 00 00 00 00 F6 0F 7E [22:00:03]state=2 [22:00:03]Stop feed [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:36]accept exits with 9 [22:02:36]New connection [22:02:36]New thread 3066801508 created [22:02:36]Thread 3066944868 joined [22:02:36]Waiting for new connection... [22:02:36] Sock 9.Parse request [22:02:36]Sock 9.Check first char [22:02:36]Sock 9.First char is OK [22:02:36]request: POST /json_proto HTTP/1.0 [22:02:36]Method: POST [22:02:36]URL: /json_proto [22:02:36]Method is POST - this is cgi request [22:02:36]url: /json_proto [22:02:36]query_string will be loaded in cgi processing [22:02:36]execute_cgi json_proto POST (null) [22:02:36]execute_cgi path=json_proto method=POST [22:02:36]POST find Content-Length [22:02:36]Host: 172.17.46.196:8080 [22:02:36]Content-Length: 918 [22:02:36]Content-Type: application/json [22:02:36] [22:02:36]POST finish read [22:02:36]Found Content-Length = 918 [22:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189893", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:36]execute_script... [22:02:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189893", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:36]POST & json_proto [22:02:36]process_json_proto [22:02:36]json parsed OK: [22:02:36]protocol is kg_v1.0 [22:02:36]action value=close_receipt [22:02:36]process_action close_receipt [22:02:36]cmd_close_receipt [22:02:36]MH_GetDate [22:02:36]Write to MH i2c: F0 00 00 3E 35 62 [22:02:36]Write i2c OK [22:02:36]MH_I2C_Read... [22:02:36]Read from MH i2c: F0 [22:02:36]MH_I2C_Read... [22:02:36]Read from MH i2c: F0 09 00 [22:02:36]MH_I2C_Read... [22:02:36]Read from MH i2c: F0 09 00 3E 35 00 01 1E C1 66 07 E8 5D 66 63 [22:02:36]GetLastDocTimeStamp 1723931542 [22:02:36]current date 1723932161 [22:02:36]FM_GetShiftState [22:02:36]SAM_PROTO_GetShiftState [22:02:36]wFMCommunicate request_size=4 [22:02:36]MH_SAM_APDU [22:02:36]CAPDU: 80 13 01 00 [22:02:36]Write to MH i2c: E2 08 00 3F 35 80 13 01 00 00 00 00 00 F1 [22:02:36]Write i2c OK [22:02:36]MH_I2C_Read... [22:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:36]Read from MH i2c: E2 [22:02:36]MH_I2C_Read... [22:02:36]Read from MH i2c: E2 0E 00 [22:02:36]MH_I2C_Read... [22:02:36]Read from MH i2c: E2 0E 00 3F 35 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 36 [22:02:36]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:02:36]wFMCommunicate OK [22:02:36]SAM_PROTO_GetShiftState done [22:02:36]FM_GetShiftState done [22:02:36]opened in 1723853354 [22:02:36]opened+sec_in_day 1723939754 [22:02:36]quantity*price = 13000 [22:02:36]sum+1 = 13001 [22:02:36]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065000868 Шок M&M`s с шоколадом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.23 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 148 17.08.2024 22:02 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49711 ФПД: 169562099336312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T220241&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49711&fm=169562099336312&tin=02508201610067®Number=0000000000092546&sum=20000 0 [22:02:37]StoreToDocumentArchive [22:02:37]shift 465 fd 49711 [22:02:37]save to /storage/0465/doc_00049711 [22:02:37]save last doc name /storage/0465/doc_00049711 to /storage/kkm_last_doc_name [22:02:37]save OK [22:02:37]Clear old archive folders... [22:02:37]ProcessDocumentItem done err = 0, tmpTLVsize=393 [22:02:37]tlvbuf is 0180B530 [22:02:37]SAM_PROTO_ClearQueue [22:02:37]wFMCommunicate request_size=4 [22:02:37]MH_SAM_APDU [22:02:37]CAPDU: 80 09 00 00 [22:02:37]Write to MH i2c: E2 08 00 4C 35 80 09 00 00 00 00 00 00 F3 [22:02:37]Write i2c OK [22:02:37]MH_I2C_Read... [22:02:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:37]Read from MH i2c: E2 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: E2 03 00 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: E2 03 00 4C 35 00 90 00 F5 [22:02:37]RAPDU: 90 00 [22:02:37]wFMCommunicate OK [22:02:37]SAM_PROTO_ClearQueue done [22:02:37]KKMCreateOFDPacket [22:02:37]OFDProtocolAddRootSTLVToBuf [22:02:37]FM_MakeSignedData [22:02:37]FM_MakeSignedData [22:02:37]SAM_PROTO_SignData [22:02:37]wFMCommunicate request_size=4 [22:02:37]MH_SAM_APDU [22:02:37]CAPDU: 80 0D 01 02 [22:02:37]Write to MH i2c: E2 08 00 4D 35 80 0D 01 02 00 00 00 00 FB [22:02:37]Write i2c OK [22:02:37]MH_I2C_Read... [22:02:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:37]Read from MH i2c: E2 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: E2 03 00 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: E2 03 00 4D 35 00 90 00 F6 [22:02:37]RAPDU: 90 00 [22:02:37]wFMCommunicate OK [22:02:37]wFMCommunicate request_size=255 [22:02:37]MH_SAM_APDU [22:02:37]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 [22:02:37]Write to MH i2c: E2 02 01 4E 35 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 EF [22:02:37]Write i2c OK [22:02:37]MH_I2C_Read... [22:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:37]Read from MH i2c: E2 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: E2 03 00 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: E2 03 00 4E 35 00 90 00 F7 [22:02:37]RAPDU: 90 00 [22:02:37]wFMCommunicate OK [22:02:37]wFMCommunicate request_size=152 [22:02:37]MH_SAM_APDU [22:02:37]CAPDU: 80 0D 02 02 93 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 4B 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 94 00 00 00 F4 03 04 00 01 1E C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C2 00 00 35 04 06 00 9A 37 40 B2 C4 78 [22:02:37]Write to MH i2c: E2 9B 00 4F 35 80 0D 02 02 93 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 4B 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 94 00 00 00 F4 03 04 00 01 1E C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C2 00 00 35 04 06 00 9A 37 40 B2 C4 78 00 00 53 [22:02:37]Write i2c OK [22:02:37]MH_I2C_Read... [22:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:37]Read from MH i2c: E2 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: E2 03 00 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: E2 03 00 4F 35 00 90 00 F8 [22:02:37]RAPDU: 90 00 [22:02:37]wFMCommunicate OK [22:02:37]wFMCommunicate request_size=4 [22:02:37]MH_SAM_APDU [22:02:37]CAPDU: 80 0D 03 02 [22:02:37]Write to MH i2c: E2 08 00 50 35 80 0D 03 02 00 00 00 00 00 [22:02:37]Write i2c OK [22:02:37]MH_I2C_Read... [22:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:37]Read from MH i2c: E2 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: E2 0B 00 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: E2 0B 00 50 35 00 71 A8 B7 C1 A1 AB 17 27 90 00 1C [22:02:37]RAPDU: 71 A8 B7 C1 A1 AB 17 27 90 00 [22:02:37]wFMCommunicate OK [22:02:37]SAM_PROTO_SignData done [22:02:37]FM_MakeSignedData done [22:02:37]CreateOFDProtocolMessage [22:02:37]wFMCommunicate request_size=4 [22:02:37]MH_SAM_APDU [22:02:37]CAPDU: 80 11 00 00 [22:02:37]Write to MH i2c: E2 08 00 51 35 80 11 00 00 00 00 00 00 00 [22:02:37]Write i2c OK [22:02:37]MH_I2C_Read... [22:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:37]Read from MH i2c: E2 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: E2 17 00 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: E2 17 00 51 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4B [22:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:02:37]wFMCommunicate OK [22:02:37]CreateOFDProtocolMessage done [22:02:37]OFDSenderStorePacket 49711 [22:02:37]StoreOFDPacket docnum=49711 [22:02:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9D 01 00 00 6C 61 95 01 97 63 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4B 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 94 00 00 00 F4 03 04 00 01 1E C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C2 00 00 35 04 06 00 9A 37 40 B2 C4 78 71 A8 B7 C1 A1 AB 17 27 [22:02:37]CheckFolder [22:02:37]dirname=/storage/ofd_packets [22:02:37]CheckFolder done [22:02:37]ProducePacketName [22:02:37]name=ofd_packets/00049711 [22:02:37]NVStorageSaveData ofd_packets/00049711 [22:02:37]File name is /storage/ofd_packets/00049711 [22:02:37]Write 443 bytes [22:02:37]NVStorageSaveData done [22:02:37]OFDSenderStorePacket done [22:02:37]KKMCreateOFDPacket done [22:02:37]NVStorageSaveData kkm_last_timestamp [22:02:37]File name is /storage/kkm_last_timestamp [22:02:37]Write 4 bytes [22:02:37]NVStorageSaveData done [22:02:37]ExternCall_PrintAddStr [22:02:37]wPrintStart [22:02:37]Write to MH i2c: 01 00 00 52 35 87 [22:02:37]Write i2c OK [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: 01 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: 01 07 00 [22:02:37]MH_I2C_Read... [22:02:37]Read from MH i2c: 01 07 00 52 35 00 00 00 00 00 FF 0F 9C [22:02:37]RasterBufferAndPrint [22:02:37]line Счет N : (3)189893 [22:02:37]line ИНН: 02508201610067 [22:02:37]line Контрольно-Кассовый Чек [22:02:37]line ПРОДАЖА [22:02:37]line Товар: 2000036220012 [22:02:38]line Кофе Капучино XL(GABB TRADE) [22:02:38]line 1.000 * 130.00 [22:02:38]line = 130.00 [22:02:38]line НДС 12% НСП 1% [22:02:38]line > о реализуемом товаре [22:02:38]line Товар: 4607065000868 [22:02:38]line Шок M&M`s с шоколадом 45г [22:02:38]line 1.000 * 70.00 [22:02:38]line = 70.00 [22:02:38]line НДС 12% НСП 1% [22:02:38]line > о реализуемом товаре [22:02:38]line ИТОГО: 200.00 [22:02:38]line НСП 1% : 1.77 [22:02:38]line НДС 12% : 21.23 [22:02:38]line Наличными: 200.00 [22:02:38]line Безнал.: 0.00 [22:02:38]line Место: АЗС № 95 "Партнер Нефть" [22:02:38]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:02:38]line СНО: Общий режим [22:02:38]line Чек 148 17.08.2024 22:02 [22:02:38]line Смена: 465 ФФД: 1.0 [22:02:38]line ЗНМ: 0300000078 [22:02:38]line РНМ: 0000000000092546 [22:02:38]line Версия ККМ: 001 [22:02:38]line ФМ: 0000000000871800 [22:02:38]line ФД: 49711 [22:02:38]line ФПД: 169562099336312 [22:02:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T220241&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49711&fm=169562099336312&tin=02508201610067®Number=0000000000092546&sum=20000 [22:02:38]OFD Sender: Processing packet 49711 [packets to send 21, broken 20] [22:02:38]ProducePacketName [22:02:38]name=ofd_packets/00049711 [22:02:38]OFD Sender: To server: pG, [22:02:38]CommunicateWithHost lk.salyk.kg:30040 [22:02:38]ConnectInit lk.salyk.kg [22:02:38]line 0 [22:02:38]written 0, free lines is 4095 [22:02:38]Connected sock=7 [22:02:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9D 01 00 00 6C 61 95 01 97 63 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4B 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 94 00 00 00 F4 03 04 00 01 1E C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C2 00 00 35 04 06 00 9A 37 40 B2 C4 78 71 A8 B7 C1 A1 AB 17 27 [22:02:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E0 F2 47 00 19 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C2 00 00 F4 03 04 00 3C C9 C0 66 B6 04 01 00 00 1F CE 23 6B DA 0F 5E AC [22:02:38]CommunicateWithHost err = 0 [22:02:38]CheckOFDResponse [22:02:38]1017 (14) - 77093643461234 [22:02:38]1041 (16) - 0000000000871800 [22:02:38]1040 (4) - 49711 [22:02:38]1012 (4) - 17.08.2024 16:01 [22:02:38]1206 (1) - 0 [22:02:38]OFD Sender: Remove packet 49711 [22:02:38]ProducePacketName [22:02:38]name=ofd_packets/00049711 [22:02:38]NVStorageDeleteData [22:02:38]Write to MH i2c: 01 00 00 81 35 B6 [22:02:38]Write i2c OK [22:02:38]MH_I2C_Read... [22:02:38]Read from MH i2c: 01 [22:02:38]MH_I2C_Read... [22:02:38]Read from MH i2c: 01 07 00 [22:02:38]MH_I2C_Read... [22:02:38]Read from MH i2c: 01 07 00 81 35 00 00 00 00 00 8C 0C 55 [22:02:38]RasterBufferAndPrint [22:02:38]line [22:02:38]line [22:02:38]line [22:02:38]line [22:02:38]line [22:02:38]written 0, free lines is 3220 [22:02:38]MH_Cut [22:02:38]Write to MH i2c: D1 01 00 88 35 01 8F [22:02:38]Write i2c OK [22:02:38]MH_I2C_Read... [22:02:38]Read from MH i2c: D1 [22:02:38]MH_I2C_Read... [22:02:38]Read from MH i2c: D1 01 00 [22:02:38]MH_I2C_Read... [22:02:38]Read from MH i2c: D1 01 00 88 35 00 8E [22:02:38]Write to MH i2c: 01 00 00 89 35 BE [22:02:38]Write i2c OK [22:02:38]MH_I2C_Read... [22:02:39]OFD Sender: No OFD packet to send [22:02:39]*** Cut start [22:02:39]*** Purtial cut [22:02:39]*** Stage 1: CUTSNS_PIN = 1 [22:02:39]Read from MH i2c: 01 [22:02:39]MH_I2C_Read... [22:02:39]*** Stop cut motor [22:02:39]*** Cut end [22:02:39]Read from MH i2c: 01 07 00 [22:02:39]MH_I2C_Read... [22:02:39]Read from MH i2c: 01 07 00 89 35 00 00 00 00 00 FF 0F D3 [22:02:39]process_action close_receipt done [22:02:39]requested_data is exist [22:02:39]produce_requested_data [22:02:39]requested_item fm.sn is exist - process it [22:02:39]wFMCommunicate request_size=4 [22:02:39]MH_SAM_APDU [22:02:39]CAPDU: 80 11 00 00 [22:02:39]Write to MH i2c: E2 08 00 8A 35 80 11 00 00 00 00 00 00 39 [22:02:39]Write i2c OK [22:02:39]MH_I2C_Read... [22:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:40]Read from MH i2c: E2 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 17 00 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 17 00 8A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 84 [22:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:02:40]wFMCommunicate OK [22:02:40]requested_item fd.num is exist - process it [22:02:40]SAM_PROTO_GetFieldsCounters [22:02:40]wFMCommunicate request_size=4 [22:02:40]MH_SAM_APDU [22:02:40]CAPDU: 80 13 00 00 [22:02:40]Write to MH i2c: E2 08 00 8B 35 80 13 00 00 00 00 00 00 3C [22:02:40]Write i2c OK [22:02:40]MH_I2C_Read... [22:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:40]Read from MH i2c: E2 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 62 00 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 62 00 8B 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2F C2 00 00 0E 04 04 00 D1 01 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 D5 [22:02: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2F C2 00 00 0E 04 04 00 D1 01 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 [22:02:40]wFMCommunicate OK [22:02:40]SAM_PROTO_GetFieldsCounters done [22:02:40]requested_item shift.num is exist - process it [22:02:40]requested_item shift.opened is exist - process it [22:02:40]req_shift_opened [22:02:40]FM_GetShiftState [22:02:40]SAM_PROTO_GetShiftState [22:02:40]wFMCommunicate request_size=4 [22:02:40]MH_SAM_APDU [22:02:40]CAPDU: 80 13 01 00 [22:02:40]Write to MH i2c: E2 08 00 8C 35 80 13 01 00 00 00 00 00 3E [22:02:40]Write i2c OK [22:02:40]MH_I2C_Read... [22:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:40]Read from MH i2c: E2 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 0E 00 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 0E 00 8C 35 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 83 [22:02:40]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:02:40]wFMCommunicate OK [22:02:40]SAM_PROTO_GetShiftState done [22:02:40]FM_GetShiftState done [22:02:40]req_shift_opened done [22:02:40]requested_item shift.open_date is exist - process it [22:02:40]req_shift_open_date [22:02:40]req_shift_open_date done [22:02:40]produce_requested_data done [22:02:40]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49711,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:02:40]process_action_free close_receipt [22:02:40]json_value_free [22:02:40]json_value_free done [22:02:40]process_json_proto returns [22:02:40]Send response to host [22:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49711,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:02:40]free response buf [22:02:40]execute_script done [22:02:40]execute_script returns [22:02:40]free content buf [22:02:40]Sock 9.Close socket [22:02:40]Sock 9.Thread stoped [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:07]accept exits with 10 [22:05:07]New connection [22:05:07]New thread 3066944868 created [22:05:07]Thread 3066801508 joined [22:05:07]Waiting for new connection... [22:05:07] Sock 10.Parse request [22:05:07]Sock 10.Check first char [22:05:07]Sock 10.First char is OK [22:05:07]request: POST /json_proto HTTP/1.0 [22:05:07]Method: POST [22:05:07]URL: /json_proto [22:05:07]Method is POST - this is cgi request [22:05:07]url: /json_proto [22:05:07]query_string will be loaded in cgi processing [22:05:07]execute_cgi json_proto POST (null) [22:05:07]execute_cgi path=json_proto method=POST [22:05:07]POST find Content-Length [22:05:07]Host: 172.17.46.196:8080 [22:05:07]Content-Length: 1261 [22:05:07]Content-Type: application/json [22:05:07] [22:05:07]POST finish read [22:05:07]Found Content-Length = 1261 [22:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189894", "tax_sys" : 0, "items" : [ { "code": "4680021880490", "name": "\u041F\u0435\u0447.\u0441\u0434.\u0421 \u043A\u0430\u043F\u043B\u044F\u043C\u0438 200\u0433/12", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607035653513", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u043A\u0430\u0440\u0430\u043C\u0435\u043B 290", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 368.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:07]execute_script... [22:05:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189894", "tax_sys" : 0, "items" : [ { "code": "4680021880490", "name": "\u041F\u0435\u0447.\u0441\u0434.\u0421 \u043A\u0430\u043F\u043B\u044F\u043C\u0438 200\u0433/12", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607035653513", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u043A\u0430\u0440\u0430\u043C\u0435\u043B 290", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 368.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:07]POST & json_proto [22:05:07]process_json_proto [22:05:07]json parsed OK: [22:05:07]protocol is kg_v1.0 [22:05:07]action value=close_receipt [22:05:07]process_action close_receipt [22:05:07]cmd_close_receipt [22:05:07]MH_GetDate [22:05:07]Write to MH i2c: F0 00 00 8D 35 B1 [22:05:07]Write i2c OK [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: F0 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: F0 09 00 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: F0 09 00 8D 35 00 99 1E C1 66 07 E8 5D 66 4A [22:05:07]GetLastDocTimeStamp 1723932161 [22:05:07]current date 1723932313 [22:05:07]FM_GetShiftState [22:05:07]SAM_PROTO_GetShiftState [22:05:07]wFMCommunicate request_size=4 [22:05:07]MH_SAM_APDU [22:05:07]CAPDU: 80 13 01 00 [22:05:07]Write to MH i2c: E2 08 00 8E 35 80 13 01 00 00 00 00 00 40 [22:05:07]Write i2c OK [22:05:07]MH_I2C_Read... [22:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:07]Read from MH i2c: E2 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: E2 0E 00 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: E2 0E 00 8E 35 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 85 [22:05:07]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:05:07]wFMCommunicate OK [22:05:07]SAM_PROTO_GetShiftState done [22:05:07]FM_GetShiftState done [22:05:07]opened in 1723853354 [22:05:07]opened+sec_in_day 1723939754 [22:05:07]quantity*price = 9500 [22:05:07]sum+1 = 9501 [22:05:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607035653513 Вафли Голландские карамел 290 1.000 * 143.00 = 143.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040114120 Султан чай 1л. чер персик 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 368.00 НСП 1% : 3.25 НДС 12% : 39.08 Наличными: 368.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 149 17.08.2024 22:05 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49712 ФПД: 225691934562502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T220513&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49712&fm=225691934562502&tin=02508201610067®Number=0000000000092546&sum=36800 0 [22:05:08]StoreToDocumentArchive [22:05:08]shift 465 fd 49712 [22:05:08]save to /storage/0465/doc_00049712 [22:05:08]save last doc name /storage/0465/doc_00049712 to /storage/kkm_last_doc_name [22:05:08]save OK [22:05:08]Clear old archive folders... [22:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=520 [22:05:08]tlvbuf is 018A3C30 [22:05:08]SAM_PROTO_ClearQueue [22:05:08]wFMCommunicate request_size=4 [22:05:08]MH_SAM_APDU [22:05:08]CAPDU: 80 09 00 00 [22:05:08]Write to MH i2c: E2 08 00 9B 35 80 09 00 00 00 00 00 00 42 [22:05:08]Write i2c OK [22:05:08]MH_I2C_Read... [22:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:08]Read from MH i2c: E2 [22:05:08]MH_I2C_Read... [22:05:08]Read from MH i2c: E2 03 00 [22:05:08]MH_I2C_Read... [22:05:08]Read from MH i2c: E2 03 00 9B 35 00 90 00 44 [22:05:08]RAPDU: 90 00 [22:05:08]wFMCommunicate OK [22:05:08]SAM_PROTO_ClearQueue done [22:05:08]KKMCreateOFDPacket [22:05:08]OFDProtocolAddRootSTLVToBuf [22:05:08]FM_MakeSignedData [22:05:08]FM_MakeSignedData [22:05:08]SAM_PROTO_SignData [22:05:08]wFMCommunicate request_size=4 [22:05:08]MH_SAM_APDU [22:05:08]CAPDU: 80 0D 01 02 [22:05:08]Write to MH i2c: E2 08 00 9C 35 80 0D 01 02 00 00 00 00 4A [22:05:08]Write i2c OK [22:05:08]MH_I2C_Read... [22:05:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:08]Read from MH i2c: E2 [22:05:08]MH_I2C_Read... [22:05:08]Read from MH i2c: E2 03 00 [22:05:08]MH_I2C_Read... [22:05:08]Read from MH i2c: E2 03 00 9C 35 00 90 00 45 [22:05:08]RAPDU: 90 00 [22:05:08]wFMCommunicate OK [22:05:08]wFMCommunicate request_size=255 [22:05:08]MH_SAM_APDU [22:05:08]CAPDU: 80 0D 02 02 FA 03 00 08 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D [22:05:08]Write to MH i2c: E2 02 01 9D 35 80 0D 02 02 FA 00 03 00 08 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 00 21 [22:05:08]Write i2c OK [22:05:08]MH_I2C_Read... [22:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:09]Read from MH i2c: E2 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 03 00 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 03 00 9D 35 00 90 00 46 [22:05:09]RAPDU: 90 00 [22:05:09]wFMCommunicate OK [22:05:09]wFMCommunicate request_size=255 [22:05:09]MH_SAM_APDU [22:05:09]CAPDU: 80 0D 02 02 FA 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 0F 00 00 00 00 07 04 06 00 C0 8F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 99 1E C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [22:05:09]Write to MH i2c: E2 02 01 9E 35 80 0D 02 02 FA 00 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 0F 00 00 00 00 07 04 06 00 C0 8F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 99 1E C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 07 [22:05:09]Write i2c OK [22:05:09]MH_I2C_Read... [22:05:09]OFD Sender: No OFD packet to send [22:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:09]Read from MH i2c: E2 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 03 00 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 03 00 9E 35 00 90 00 47 [22:05:09]RAPDU: 90 00 [22:05:09]wFMCommunicate OK [22:05:09]wFMCommunicate request_size=29 [22:05:09]MH_SAM_APDU [22:05:09]CAPDU: 80 0D 02 02 18 38 37 31 38 30 30 10 04 04 00 30 C2 00 00 35 04 06 00 CD 43 FF 96 98 C6 [22:05:09]Write to MH i2c: E2 20 00 9F 35 80 0D 02 02 18 00 38 37 31 38 30 30 10 04 04 00 30 C2 00 00 35 04 06 00 CD 43 FF 96 98 C6 00 00 02 [22:05:09]Write i2c OK [22:05:09]MH_I2C_Read... [22:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:09]Read from MH i2c: E2 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 03 00 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 03 00 9F 35 00 90 00 48 [22:05:09]RAPDU: 90 00 [22:05:09]wFMCommunicate OK [22:05:09]wFMCommunicate request_size=4 [22:05:09]MH_SAM_APDU [22:05:09]CAPDU: 80 0D 03 02 [22:05:09]Write to MH i2c: E2 08 00 A0 35 80 0D 03 02 00 00 00 00 50 [22:05:09]Write i2c OK [22:05:09]MH_I2C_Read... [22:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:09]Read from MH i2c: E2 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 0B 00 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 0B 00 A0 35 00 F5 FA 54 EE 7A 89 08 6D 90 00 FA [22:05:09]RAPDU: F5 FA 54 EE 7A 89 08 6D 90 00 [22:05:09]wFMCommunicate OK [22:05:09]SAM_PROTO_SignData done [22:05:09]FM_MakeSignedData done [22:05:09]CreateOFDProtocolMessage [22:05:09]wFMCommunicate request_size=4 [22:05:09]MH_SAM_APDU [22:05:09]CAPDU: 80 11 00 00 [22:05:09]Write to MH i2c: E2 08 00 A1 35 80 11 00 00 00 00 00 00 50 [22:05:09]Write i2c OK [22:05:09]MH_I2C_Read... [22:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:09]Read from MH i2c: E2 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 17 00 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 17 00 A1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9B [22:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:05:09]wFMCommunicate OK [22:05:09]CreateOFDProtocolMessage done [22:05:09]OFDSenderStorePacket 49712 [22:05:09]StoreOFDPacket docnum=49712 [22:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1C 02 00 00 67 A9 14 02 6D 6C 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 0F 00 00 00 00 07 04 06 00 C0 8F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 99 1E C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 30 C2 00 00 35 04 06 00 CD 43 FF 96 98 C6 F5 FA 54 EE 7A 89 08 6D [22:05:09]CheckFolder [22:05:09]dirname=/storage/ofd_packets [22:05:09]CheckFolder done [22:05:09]ProducePacketName [22:05:09]name=ofd_packets/00049712 [22:05:09]NVStorageSaveData ofd_packets/00049712 [22:05:09]File name is /storage/ofd_packets/00049712 [22:05:09]Write 570 bytes [22:05:09]NVStorageSaveData done [22:05:09]OFDSenderStorePacket done [22:05:09]KKMCreateOFDPacket done [22:05:09]NVStorageSaveData kkm_last_timestamp [22:05:09]File name is /storage/kkm_last_timestamp [22:05:09]Write 4 bytes [22:05:09]NVStorageSaveData done [22:05:09]ExternCall_PrintAddStr [22:05:09]wPrintStart [22:05:09]Write to MH i2c: 01 00 00 A2 35 D7 [22:05:09]Write i2c OK [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: 01 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: 01 07 00 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: 01 07 00 A2 35 00 00 00 00 00 FF 0F EC [22:05:09]RasterBufferAndPrint [22:05:09]line Счет N : (3)189894 [22:05:09]line ИНН: 02508201610067 [22:05:09]line Контрольно-Кассовый Чек [22:05:09]line ПРОДАЖА [22:05:09]line Товар: 4680021880490 [22:05:09]line Печ.сд.С каплями 200г/12 [22:05:09]line 1.000 * 95.00 [22:05:09]line = 95.00 [22:05:09]line НДС 12% НСП 1% [22:05:09]line > о реализуемом товаре [22:05:09]line Товар: 4607035653513 [22:05:09]line Вафли Голландские карамел 290 [22:05:09]line 1.000 * 143.00 [22:05:09]line = 143.00 [22:05:09]line НДС 12% НСП 1% [22:05:09]line > о реализуемом товаре [22:05:09]line Товар: 4700040114120 [22:05:09]line Султан чай 1л. чер персик [22:05:09]line 2.000 * 65.00 [22:05:09]line = 130.00 [22:05:09]line НДС 12% НСП 1% [22:05:09]line > о реализуемом товаре [22:05:09]line ИТОГО: 368.00 [22:05:09]line НСП 1% : 3.25 [22:05:09]line НДС 12% : 39.08 [22:05:09]line Наличными: 368.00 [22:05:09]line Безнал.: 0.00 [22:05:09]line Место: АЗС № 95 "Партнер Нефть" [22:05:09]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:05:09]line СНО: Общий режим [22:05:09]line Чек 149 17.08.2024 22:05 [22:05:09]line Смена: 465 ФФД: 1.0 [22:05:09]line ЗНМ: 0300000078 [22:05:09]line РНМ: 0000000000092546 [22:05:09]line Версия ККМ: 001 [22:05:09]line ФМ: 0000000000871800 [22:05:09]line ФД: 49712 [22:05:09]line ФПД: 225691934562502 [22:05:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T220513&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49712&fm=225691934562502&tin=02508201610067®Number=0000000000092546&sum=36800 [22:05:10]line 0 [22:05:10]OFD Sender: Processing packet 49712 [packets to send 21, broken 20] [22:05:10]ProducePacketName [22:05:10]name=ofd_packets/00049712 [22:05:10]OFD Sender: To server: pG, [22:05:10]CommunicateWithHost lk.salyk.kg:30040 [22:05:10]ConnectInit lk.salyk.kg [22:05:10]written 0, free lines is 4095 [22:05:10]Connected sock=9 [22:05:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1C 02 00 00 67 A9 14 02 6D 6C 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 0F 00 00 00 00 07 04 06 00 C0 8F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 99 1E C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 30 C2 00 00 35 04 06 00 CD 43 FF 96 98 C6 F5 FA 54 EE 7A 89 08 6D [22:05:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 64 B3 47 00 3A 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 31 38 30 30 10 04 04 00 30 C2 00 00 F4 03 04 00 D4 C9 C0 66 B6 04 01 00 00 13 88 E9 B3 B2 54 0F 12 [22:05:10]CommunicateWithHost err = 0 [22:05:10]CheckOFDResponse [22:05:10]1017 (14) - 77093643461234 [22:05:10]1041 (16) - 0000000000871800 [22:05:10]1040 (4) - 49712 [22:05:10]1012 (4) - 17.08.2024 16:03 [22:05:10]1206 (1) - 0 [22:05:10]OFD Sender: Remove packet 49712 [22:05:10]ProducePacketName [22:05:10]name=ofd_packets/00049712 [22:05:10]NVStorageDeleteData [22:05:10]Write to MH i2c: 01 00 00 D7 35 0C [22:05:10]Write i2c OK [22:05:10]MH_I2C_Read... [22:05:10]Read from MH i2c: 01 [22:05:10]MH_I2C_Read... [22:05:10]Read from MH i2c: 01 07 00 [22:05:10]MH_I2C_Read... [22:05:10]Read from MH i2c: 01 07 00 D7 35 00 00 00 00 00 23 0C 42 [22:05:10]RasterBufferAndPrint [22:05:10]line [22:05:10]line [22:05:10]line [22:05:10]line [22:05:10]line [22:05:10]written 0, free lines is 3114 [22:05:10]MH_Cut [22:05:10]Write to MH i2c: D1 01 00 DE 35 01 E5 [22:05:10]Write i2c OK [22:05:10]MH_I2C_Read... [22:05:10]Read from MH i2c: D1 [22:05:10]MH_I2C_Read... [22:05:10]Read from MH i2c: D1 01 00 [22:05:10]MH_I2C_Read... [22:05:10]Read from MH i2c: D1 01 00 DE 35 00 E4 [22:05:10]Write to MH i2c: 01 00 00 DF 35 14 [22:05:10]Write i2c OK [22:05:10]MH_I2C_Read... [22:05:10]OFD Sender: No OFD packet to send [22:05:11]*** Cut start [22:05:11]*** Purtial cut [22:05:11]*** CUTSNS_PIN = 0 [22:05:11]*** Stage 1: CUTSNS_PIN = 1 [22:05:13]Read from MH i2c: 01 [22:05:13]MH_I2C_Read... [22:05:13]*** Stop cut motor [22:05:13]*** Cut end [22:05:13]Read from MH i2c: 01 07 00 [22:05:13]MH_I2C_Read... [22:05:13]Read from MH i2c: 01 07 00 DF 35 00 00 00 00 00 FF 0F 29 [22:05:13]process_action close_receipt done [22:05:13]requested_data is exist [22:05:13]produce_requested_data [22:05:13]requested_item fm.sn is exist - process it [22:05:13]wFMCommunicate request_size=4 [22:05:13]MH_SAM_APDU [22:05:13]CAPDU: 80 11 00 00 [22:05:13]Write to MH i2c: E2 08 00 E0 35 80 11 00 00 00 00 00 00 8F [22:05:13]Write i2c OK [22:05:13]MH_I2C_Read... [22:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:13]Read from MH i2c: E2 [22:05:13]MH_I2C_Read... [22:05:13]Read from MH i2c: E2 17 00 [22:05:13]MH_I2C_Read... [22:05:13]Read from MH i2c: E2 17 00 E0 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DA [22:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:05:13]wFMCommunicate OK [22:05:13]requested_item fd.num is exist - process it [22:05:13]SAM_PROTO_GetFieldsCounters [22:05:13]wFMCommunicate request_size=4 [22:05:13]MH_SAM_APDU [22:05:13]CAPDU: 80 13 00 00 [22:05:13]Write to MH i2c: E2 08 00 E1 35 80 13 00 00 00 00 00 00 92 [22:05:13]Write i2c OK [22:05:13]MH_I2C_Read... [22:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:13]Read from MH i2c: E2 [22:05:13]MH_I2C_Read... [22:05:13]Read from MH i2c: E2 62 00 [22:05:13]MH_I2C_Read... [22:05:13]Read from MH i2c: E2 62 00 E1 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 30 C2 00 00 0E 04 04 00 D1 01 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 2F [22:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 30 C2 00 00 0E 04 04 00 D1 01 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 [22:05:13]wFMCommunicate OK [22:05:13]SAM_PROTO_GetFieldsCounters done [22:05:13]requested_item shift.num is exist - process it [22:05:13]requested_item shift.opened is exist - process it [22:05:13]req_shift_opened [22:05:13]FM_GetShiftState [22:05:13]SAM_PROTO_GetShiftState [22:05:13]wFMCommunicate request_size=4 [22:05:13]MH_SAM_APDU [22:05:13]CAPDU: 80 13 01 00 [22:05:13]Write to MH i2c: E2 08 00 E2 35 80 13 01 00 00 00 00 00 94 [22:05:13]Write i2c OK [22:05:13]MH_I2C_Read... [22:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:13]Read from MH i2c: E2 [22:05:13]MH_I2C_Read... [22:05:13]Read from MH i2c: E2 0E 00 [22:05:13]MH_I2C_Read... [22:05:13]Read from MH i2c: E2 0E 00 E2 35 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D9 [22:05:13]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:05:13]wFMCommunicate OK [22:05:13]SAM_PROTO_GetShiftState done [22:05:13]FM_GetShiftState done [22:05:13]req_shift_opened done [22:05:13]requested_item shift.open_date is exist - process it [22:05:13]req_shift_open_date [22:05:13]req_shift_open_date done [22:05:13]produce_requested_data done [22:05:13]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49712,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:05:13]process_action_free close_receipt [22:05:13]json_value_free [22:05:13]json_value_free done [22:05:13]process_json_proto returns [22:05:13]Send response to host [22:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49712,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:05:13]free response buf [22:05:13]execute_script done [22:05:13]execute_script returns [22:05:13]free content buf [22:05:13]Sock 10.Close socket [22:05:13]Sock 10.Thread stoped [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:10]int [22:08:10]Write to MH i2c: 01 00 00 E3 35 18 [22:08:10]*** FLAG_PRN_KEY set [22:08:10]Write i2c OK [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: 01 [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: 01 07 00 [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: 01 07 00 E3 35 00 08 00 00 00 FF 0F 35 [22:08:10]state=0 [22:08:10]Key pressed [22:08:10]Feed [22:08:10]Write to MH i2c: D8 00 00 E4 35 F0 [22:08:10]Write i2c OK [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: D8 [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: D8 01 00 [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: D8 01 00 E4 35 00 F1 [22:08:10]int [22:08:10]Write to MH i2c: 01 00 00 E5 35 1A [22:08:10]Write i2c OK [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: 01 [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: 01 07 00 [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: 01 07 00 E5 35 00 48 00 00 00 3C 00 A5 [22:08:10]state=2 [22:08:10]Key pressed [22:08:10]int [22:08:10]Write to MH i2c: 01 00 00 E6 35 1B [22:08:10]*** FLAG_PRN_KEY reset [22:08:10]Write i2c OK [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: 01 [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: 01 07 00 [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: 01 07 00 E6 35 00 00 00 00 00 F5 0F 26 [22:08:10]state=2 [22:08:10]Stop feed [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:16]accept exits with 7 [22:11:16]New connection [22:11:16]New thread 3066801508 created [22:11:16]Thread 3066944868 joined [22:11:16]Waiting for new connection... [22:11:16] Sock 7.Parse request [22:11:16]Sock 7.Check first char [22:11:16]Sock 7.First char is OK [22:11:16]request: POST /json_proto HTTP/1.0 [22:11:16]Method: POST [22:11:16]URL: /json_proto [22:11:16]Method is POST - this is cgi request [22:11:16]url: /json_proto [22:11:16]query_string will be loaded in cgi processing [22:11:16]execute_cgi json_proto POST (null) [22:11:16]execute_cgi path=json_proto method=POST [22:11:16]POST find Content-Length [22:11:16]Host: 172.17.46.196:8080 [22:11:16]Content-Length: 1410 [22:11:16]Content-Type: application/json [22:11:16] [22:11:16]POST finish read [22:11:16]Found Content-Length = 1410 [22:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189895", "tax_sys" : 0, "items" : [ { "code": "4870145004975", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 5 \u043C\u044F\u0433\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 4.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480081", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 \u0411\u0410\u0417\u0410\u041B\u041A\u041E\u0413\u041E\u041B\u042C\u041D\u041E\u0415 URBAN 312 0,", "price" : 107.00, "quantity" : 2.000, "sum" : 214.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:16]execute_script... [22:11:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189895", "tax_sys" : 0, "items" : [ { "code": "4870145004975", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 5 \u043C\u044F\u0433\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 4.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480081", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 \u0411\u0410\u0417\u0410\u041B\u041A\u041E\u0413\u041E\u041B\u042C\u041D\u041E\u0415 URBAN 312 0,", "price" : 107.00, "quantity" : 2.000, "sum" : 214.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:16]POST & json_proto [22:11:16]process_json_proto [22:11:16]json parsed OK: [22:11:16]protocol is kg_v1.0 [22:11:16]action value=close_receipt [22:11:16]process_action close_receipt [22:11:16]cmd_close_receipt [22:11:16]MH_GetDate [22:11:16]Write to MH i2c: F0 00 00 E7 35 0B [22:11:16]Write i2c OK [22:11:16]MH_I2C_Read... [22:11:16]Read from MH i2c: F0 [22:11:16]MH_I2C_Read... [22:11:16]Read from MH i2c: F0 09 00 [22:11:16]MH_I2C_Read... [22:11:16]Read from MH i2c: F0 09 00 E7 35 00 0A 20 C1 66 07 E8 5D 66 17 [22:11:16]GetLastDocTimeStamp 1723932313 [22:11:16]current date 1723932682 [22:11:16]FM_GetShiftState [22:11:16]SAM_PROTO_GetShiftState [22:11:16]wFMCommunicate request_size=4 [22:11:16]MH_SAM_APDU [22:11:16]CAPDU: 80 13 01 00 [22:11:16]Write to MH i2c: E2 08 00 E8 35 80 13 01 00 00 00 00 00 9A [22:11:17]Write i2c OK [22:11:17]MH_I2C_Read... [22:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:17]Read from MH i2c: E2 [22:11:17]MH_I2C_Read... [22:11:17]Read from MH i2c: E2 0E 00 [22:11:17]MH_I2C_Read... [22:11:17]Read from MH i2c: E2 0E 00 E8 35 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 DF [22:11:17]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:11:17]wFMCommunicate OK [22:11:17]SAM_PROTO_GetShiftState done [22:11:17]FM_GetShiftState done [22:11:17]opened in 1723853354 [22:11:17]opened+sec_in_day 1723939754 [22:11:17]quantity*price = 36000 [22:11:17]sum+1 = 36001 [22:11:17]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480081 ПИВО СВЕТЛОЕ БАЗАЛКОГОЛЬНОЕ URBAN 312 0, 2.000 * 107.00 = 214.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870145004982 Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.52 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 150 17.08.2024 22:11 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49713 ФПД: 236947823390679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T221123&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49713&fm=236947823390679&tin=02508201610067®Number=0000000000092546&sum=66400 0 [22:11:18]StoreToDocumentArchive [22:11:18]shift 465 fd 49713 [22:11:18]save to /storage/0465/doc_00049713 [22:11:18]save last doc name /storage/0465/doc_00049713 to /storage/kkm_last_doc_name [22:11:18]save OK [22:11:18]Clear old archive folders... [22:11:18]ProcessDocumentItem done err = 0, tmpTLVsize=581 [22:11:18]tlvbuf is 01879E20 [22:11:18]SAM_PROTO_ClearQueue [22:11:18]wFMCommunicate request_size=4 [22:11:18]MH_SAM_APDU [22:11:18]CAPDU: 80 09 00 00 [22:11:18]Write to MH i2c: E2 08 00 F5 35 80 09 00 00 00 00 00 00 9C [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:18]Read from MH i2c: E2 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 F5 35 00 90 00 9E [22:11:18]RAPDU: 90 00 [22:11:18]wFMCommunicate OK [22:11:18]SAM_PROTO_ClearQueue done [22:11:18]KKMCreateOFDPacket [22:11:18]OFDProtocolAddRootSTLVToBuf [22:11:18]FM_MakeSignedData [22:11:18]FM_MakeSignedData [22:11:18]SAM_PROTO_SignData [22:11:18]wFMCommunicate request_size=4 [22:11:18]MH_SAM_APDU [22:11:18]CAPDU: 80 0D 01 02 [22:11:18]Write to MH i2c: E2 08 00 F6 35 80 0D 01 02 00 00 00 00 A4 [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:18]Read from MH i2c: E2 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 F6 35 00 90 00 9F [22:11:18]RAPDU: 90 00 [22:11:18]wFMCommunicate OK [22:11:18]wFMCommunicate request_size=255 [22:11:18]MH_SAM_APDU [22:11:18]CAPDU: 80 0D 02 02 FA 03 00 45 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 37 35 06 04 3E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 35 20 D0 BC D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 CC [22:11:18]Write to MH i2c: E2 02 01 F7 35 80 0D 02 02 FA 00 03 00 45 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 37 35 06 04 3E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 35 20 D0 BC D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 CC 00 00 91 [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:18]Read from MH i2c: E2 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 [22:11:18]MH_I2C_Read... [22:11:18]Read from MH i2c: E2 03 00 F7 35 00 90 00 A0 [22:11:18]RAPDU: 90 00 [22:11:18]wFMCommunicate OK [22:11:18]wFMCommunicate request_size=255 [22:11:18]MH_SAM_APDU [22:11:18]CAPDU: 80 0D 02 02 FA 29 00 00 00 00 13 04 06 00 98 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 [22:11:18]Write to MH i2c: E2 02 01 F8 35 80 0D 02 02 FA 00 29 00 00 00 00 13 04 06 00 98 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 00 00 64 [22:11:18]Write i2c OK [22:11:18]MH_I2C_Read... [22:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:19]Read from MH i2c: E2 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: E2 03 00 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: E2 03 00 F8 35 00 90 00 A1 [22:11:19]RAPDU: 90 00 [22:11:19]wFMCommunicate OK [22:11:19]wFMCommunicate request_size=90 [22:11:19]MH_SAM_APDU [22:11:19]CAPDU: 80 0D 02 02 55 04 00 96 00 00 00 F4 03 04 00 0B 20 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 31 C2 00 00 35 04 06 00 D7 80 B6 D7 EF D7 [22:11:19]Write to MH i2c: E2 5D 00 F9 35 80 0D 02 02 55 00 04 00 96 00 00 00 F4 03 04 00 0B 20 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 31 C2 00 00 35 04 06 00 D7 80 B6 D7 EF D7 00 00 4C [22:11:19]Write i2c OK [22:11:19]MH_I2C_Read... [22:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:19]Read from MH i2c: E2 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: E2 03 00 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: E2 03 00 F9 35 00 90 00 A2 [22:11:19]RAPDU: 90 00 [22:11:19]wFMCommunicate OK [22:11:19]wFMCommunicate request_size=4 [22:11:19]MH_SAM_APDU [22:11:19]CAPDU: 80 0D 03 02 [22:11:19]Write to MH i2c: E2 08 00 FA 35 80 0D 03 02 00 00 00 00 AA [22:11:19]Write i2c OK [22:11:19]MH_I2C_Read... [22:11:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:19]Read from MH i2c: E2 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: E2 0B 00 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: E2 0B 00 FA 35 00 A4 57 5E 1A C4 76 EA 61 90 00 A3 [22:11:19]RAPDU: A4 57 5E 1A C4 76 EA 61 90 00 [22:11:19]wFMCommunicate OK [22:11:19]SAM_PROTO_SignData done [22:11:19]FM_MakeSignedData done [22:11:19]CreateOFDProtocolMessage [22:11:19]wFMCommunicate request_size=4 [22:11:19]MH_SAM_APDU [22:11:19]CAPDU: 80 11 00 00 [22:11:19]Write to MH i2c: E2 08 00 FB 35 80 11 00 00 00 00 00 00 AA [22:11:19]Write i2c OK [22:11:19]MH_I2C_Read... [22:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:19]Read from MH i2c: E2 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: E2 17 00 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: E2 17 00 FB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F5 [22:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:11:19]wFMCommunicate OK [22:11:19]CreateOFDProtocolMessage done [22:11:19]OFDSenderStorePacket 49713 [22:11:19]StoreOFDPacket docnum=49713 [22:11:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 59 02 00 00 AA B8 51 02 A7 6D 5A 03 01 00 03 00 45 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 37 35 06 04 3E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 35 20 D0 BC D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 98 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 0B 20 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 31 C2 00 00 35 04 06 00 D7 80 B6 D7 EF D7 A4 57 5E 1A C4 76 EA 61 [22:11:19]CheckFolder [22:11:19]dirname=/storage/ofd_packets [22:11:19]CheckFolder done [22:11:19]ProducePacketName [22:11:19]name=ofd_packets/00049713 [22:11:19]NVStorageSaveData ofd_packets/00049713 [22:11:19]File name is /storage/ofd_packets/00049713 [22:11:19]Write 631 bytes [22:11:19]NVStorageSaveData done [22:11:19]OFDSenderStorePacket done [22:11:19]KKMCreateOFDPacket done [22:11:19]NVStorageSaveData kkm_last_timestamp [22:11:19]File name is /storage/kkm_last_timestamp [22:11:19]Write 4 bytes [22:11:19]NVStorageSaveData done [22:11:19]ExternCall_PrintAddStr [22:11:19]wPrintStart [22:11:19]Write to MH i2c: 01 00 00 FC 35 31 [22:11:19]Write i2c OK [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: 01 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: 01 07 00 [22:11:19]MH_I2C_Read... [22:11:19]Read from MH i2c: 01 07 00 FC 35 00 00 00 00 00 FF 0F 46 [22:11:19]RasterBufferAndPrint [22:11:19]line Счет N : (3)189895 [22:11:19]line ИНН: 02508201610067 [22:11:19]line Контрольно-Кассовый Чек [22:11:19]line ПРОДАЖА [22:11:19]line Товар: 4870145004975 [22:11:19]line Пиво Жатецкий Гусь 5 мягкое 0,43л ж/б [22:11:19]line 4.000 * 90.00 [22:11:19]line = 360.00 [22:11:19]line НДС 12% НСП 1% [22:11:19]line > о реализуемом товаре [22:11:19]line Товар: 4700000480081 [22:11:19]line ПИВО СВЕТЛОЕ БАЗАЛКОГОЛЬНОЕ URBAN 312 0, [22:11:19]line 2.000 * 107.00 [22:11:19]line = 214.00 [22:11:19]line НДС 12% НСП 1% [22:11:19]line > о реализуемом товаре [22:11:19]line Товар: 4870145004982 [22:11:19]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [22:11:19]line 1.000 * 90.00 [22:11:19]line = 90.00 [22:11:19]line НДС 12% НСП 1% [22:11:19]line > о реализуемом товаре [22:11:19]line ИТОГО: 664.00 [22:11:19]line НСП 1% : 5.88 [22:11:19]line НДС 12% : 70.52 [22:11:19]line Наличными: 664.00 [22:11:19]line Безнал.: 0.00 [22:11:19]line Место: АЗС № 95 "Партнер Нефть" [22:11:19]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:11:19]line СНО: Общий режим [22:11:19]line Чек 150 17.08.2024 22:11 [22:11:19]line Смена: 465 ФФД: 1.0 [22:11:19]line ЗНМ: 0300000078 [22:11:19]line РНМ: 0000000000092546 [22:11:19]line Версия ККМ: 001 [22:11:19]line ФМ: 0000000000871800 [22:11:19]line ФД: 49713 [22:11:19]line ФПД: 236947823390679 [22:11:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T221123&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49713&fm=236947823390679&tin=02508201610067®Number=0000000000092546&sum=66400 [22:11:19]line 0 [22:11:19]OFD Sender: Processing packet 49713 [packets to send 21, broken 20] [22:11:19]ProducePacketName [22:11:19]name=ofd_packets/00049713 [22:11:19]OFD Sender: To server: pG, [22:11:19]CommunicateWithHost lk.salyk.kg:30040 [22:11:19]ConnectInit lk.salyk.kg [22:11:19]written 0, free lines is 4095 [22:11:19]Connected sock=11 [22:11:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 59 02 00 00 AA B8 51 02 A7 6D 5A 03 01 00 03 00 45 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 37 35 06 04 3E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 35 20 D0 BC D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 98 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 0B 20 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 31 C2 00 00 35 04 06 00 D7 80 B6 D7 EF D7 A4 57 5E 1A C4 76 EA 61 [22:11:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 3B C2 47 00 60 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 31 38 30 30 10 04 04 00 31 C2 00 00 F4 03 04 00 46 CB C0 66 B6 04 01 00 00 D9 FC 95 45 3B 66 65 FB [22:11:20]CommunicateWithHost err = 0 [22:11:20]CheckOFDResponse [22:11:20]1017 (14) - 77093643461234 [22:11:20]1041 (16) - 0000000000871800 [22:11:20]1040 (4) - 49713 [22:11:20]1012 (4) - 17.08.2024 16:09 [22:11:20]1206 (1) - 0 [22:11:20]OFD Sender: Remove packet 49713 [22:11:20]ProducePacketName [22:11:20]name=ofd_packets/00049713 [22:11:20]NVStorageDeleteData [22:11:20]Write to MH i2c: 01 00 00 33 36 69 [22:11:20]Write i2c OK [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: 01 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: 01 07 00 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: 01 07 00 33 36 00 00 00 00 00 22 0C 9E [22:11:20]RasterBufferAndPrint [22:11:20]line [22:11:20]line [22:11:20]line [22:11:20]line [22:11:20]line [22:11:20]written 0, free lines is 3112 [22:11:20]MH_Cut [22:11:20]Write to MH i2c: D1 01 00 3A 36 01 42 [22:11:20]Write i2c OK [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: D1 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: D1 01 00 [22:11:20]MH_I2C_Read... [22:11:20]Read from MH i2c: D1 01 00 3A 36 00 41 [22:11:20]Write to MH i2c: 01 00 00 3B 36 71 [22:11:20]Write i2c OK [22:11:20]MH_I2C_Read... [22:11:20]OFD Sender: No OFD packet to send [22:11:21]*** Cut start [22:11:21]*** Purtial cut [22:11:21]*** Stage 1: CUTSNS_PIN = 1 [22:11:21]Read from MH i2c: 01 [22:11:21]MH_I2C_Read... [22:11:21]*** Stop cut motor [22:11:21]*** Cut end [22:11:21]Read from MH i2c: 01 07 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: 01 07 00 3B 36 00 00 00 00 00 FF 0F 86 [22:11:21]process_action close_receipt done [22:11:21]requested_data is exist [22:11:21]produce_requested_data [22:11:21]requested_item fm.sn is exist - process it [22:11:21]wFMCommunicate request_size=4 [22:11:21]MH_SAM_APDU [22:11:21]CAPDU: 80 11 00 00 [22:11:21]Write to MH i2c: E2 08 00 3C 36 80 11 00 00 00 00 00 00 EC [22:11:21]Write i2c OK [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 [22:11:21]MH_I2C_Read... [22:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:21]Read from MH i2c: E2 17 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 17 00 3C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 37 [22:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:11:21]wFMCommunicate OK [22:11:21]requested_item fd.num is exist - process it [22:11:21]SAM_PROTO_GetFieldsCounters [22:11:21]wFMCommunicate request_size=4 [22:11:21]MH_SAM_APDU [22:11:21]CAPDU: 80 13 00 00 [22:11:21]Write to MH i2c: E2 08 00 3D 36 80 13 00 00 00 00 00 00 EF [22:11:21]Write i2c OK [22:11:21]MH_I2C_Read... [22:11:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:21]Read from MH i2c: E2 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 62 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 62 00 3D 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 31 C2 00 00 0E 04 04 00 D1 01 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 90 [22:11: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 31 C2 00 00 0E 04 04 00 D1 01 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 [22:11:21]wFMCommunicate OK [22:11:21]SAM_PROTO_GetFieldsCounters done [22:11:21]requested_item shift.num is exist - process it [22:11:21]requested_item shift.opened is exist - process it [22:11:21]req_shift_opened [22:11:21]FM_GetShiftState [22:11:21]SAM_PROTO_GetShiftState [22:11:21]wFMCommunicate request_size=4 [22:11:21]MH_SAM_APDU [22:11:21]CAPDU: 80 13 01 00 [22:11:21]Write to MH i2c: E2 08 00 3E 36 80 13 01 00 00 00 00 00 F1 [22:11:21]Write i2c OK [22:11:21]MH_I2C_Read... [22:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:21]Read from MH i2c: E2 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 0E 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 0E 00 3E 36 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 36 [22:11:21]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:11:21]wFMCommunicate OK [22:11:21]SAM_PROTO_GetShiftState done [22:11:21]FM_GetShiftState done [22:11:21]req_shift_opened done [22:11:21]requested_item shift.open_date is exist - process it [22:11:21]req_shift_open_date [22:11:21]req_shift_open_date done [22:11:21]produce_requested_data done [22:11:21]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49713,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:11:21]process_action_free close_receipt [22:11:21]json_value_free [22:11:21]json_value_free done [22:11:21]process_json_proto returns [22:11:21]Send response to host [22:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49713,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:11:21]free response buf [22:11:21]execute_script done [22:11:21]execute_script returns [22:11:21]free content buf [22:11:21]Sock 7.Close socket [22:11:21]Sock 7.Thread stoped [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:11:57]accept exits with 9 [22:11:57]New connection [22:11:57]New thread 3066944868 created [22:11:57]Thread 3066801508 joined [22:11:57]Waiting for new connection... [22:11:57] Sock 9.Parse request [22:11:57]Sock 9.Check first char [22:11:57]Sock 9.First char is OK [22:11:57]request: POST /json_proto HTTP/1.0 [22:11:57]Method: POST [22:11:57]URL: /json_proto [22:11:57]Method is POST - this is cgi request [22:11:57]url: /json_proto [22:11:57]query_string will be loaded in cgi processing [22:11:57]execute_cgi json_proto POST (null) [22:11:57]execute_cgi path=json_proto method=POST [22:11:57]POST find Content-Length [22:11:57]Host: 172.17.46.196:8080 [22:11:57]Content-Length: 879 [22:11:57]Content-Type: application/json [22:11:57] [22:11:57]POST finish read [22:11:57]Found Content-Length = 879 [22:11:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189896", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:57]execute_script... [22:11:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189896", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:57]POST & json_proto [22:11:57]process_json_proto [22:11:57]json parsed OK: [22:11:57]protocol is kg_v1.0 [22:11:57]action value=close_receipt [22:11:57]process_action close_receipt [22:11:57]cmd_close_receipt [22:11:57]MH_GetDate [22:11:57]Write to MH i2c: F0 00 00 3F 36 64 [22:11:57]Write i2c OK [22:11:57]MH_I2C_Read... [22:11:57]Read from MH i2c: F0 [22:11:57]MH_I2C_Read... [22:11:57]Read from MH i2c: F0 09 00 [22:11:57]MH_I2C_Read... [22:11:57]Read from MH i2c: F0 09 00 3F 36 00 32 20 C1 66 07 E8 5D 66 98 [22:11:57]GetLastDocTimeStamp 1723932683 [22:11:57]current date 1723932722 [22:11:57]FM_GetShiftState [22:11:57]SAM_PROTO_GetShiftState [22:11:57]wFMCommunicate request_size=4 [22:11:57]MH_SAM_APDU [22:11:57]CAPDU: 80 13 01 00 [22:11:57]Write to MH i2c: E2 08 00 40 36 80 13 01 00 00 00 00 00 F3 [22:11:57]Write i2c OK [22:11:57]MH_I2C_Read... [22:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:57]Read from MH i2c: E2 [22:11:57]MH_I2C_Read... [22:11:57]Read from MH i2c: E2 0E 00 [22:11:57]MH_I2C_Read... [22:11:57]Read from MH i2c: E2 0E 00 40 36 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 38 [22:11:57]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:11:57]wFMCommunicate OK [22:11:57]SAM_PROTO_GetShiftState done [22:11:57]FM_GetShiftState done [22:11:57]opened in 1723853354 [22:11:57]opened+sec_in_day 1723939754 [22:11:57]quantity*price = 15500 [22:11:57]sum+1 = 15501 [22:11:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000034730018 Кофе Американо (GABB TRADE) 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 151 17.08.2024 22:12 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49714 ФПД: 275641448965884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T221202&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49714&fm=275641448965884&tin=02508201610067®Number=0000000000092546&sum=26000 0 [22:11:58]StoreToDocumentArchive [22:11:58]shift 465 fd 49714 [22:11:58]save to /storage/0465/doc_00049714 [22:11:58]save last doc name /storage/0465/doc_00049714 to /storage/kkm_last_doc_name [22:11:58]save OK [22:11:58]Clear old archive folders... [22:11:58]ProcessDocumentItem done err = 0, tmpTLVsize=377 [22:11:58]tlvbuf is 018F3F30 [22:11:58]SAM_PROTO_ClearQueue [22:11:58]wFMCommunicate request_size=4 [22:11:58]MH_SAM_APDU [22:11:58]CAPDU: 80 09 00 00 [22:11:58]Write to MH i2c: E2 08 00 4D 36 80 09 00 00 00 00 00 00 F5 [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:58]Read from MH i2c: E2 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 03 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 03 00 4D 36 00 90 00 F7 [22:11:58]RAPDU: 90 00 [22:11:58]wFMCommunicate OK [22:11:58]SAM_PROTO_ClearQueue done [22:11:58]KKMCreateOFDPacket [22:11:58]OFDProtocolAddRootSTLVToBuf [22:11:58]FM_MakeSignedData [22:11:58]FM_MakeSignedData [22:11:58]SAM_PROTO_SignData [22:11:58]wFMCommunicate request_size=4 [22:11:58]MH_SAM_APDU [22:11:58]CAPDU: 80 0D 01 02 [22:11:58]Write to MH i2c: E2 08 00 4E 36 80 0D 01 02 00 00 00 00 FD [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:58]Read from MH i2c: E2 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 03 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 03 00 4E 36 00 90 00 F8 [22:11:58]RAPDU: 90 00 [22:11:58]wFMCommunicate OK [22:11:58]wFMCommunicate request_size=255 [22:11:58]MH_SAM_APDU [22:11:58]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE [22:11:58]Write to MH i2c: E2 02 01 4F 36 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 00 00 7D [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:58]Read from MH i2c: E2 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 03 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 03 00 4F 36 00 90 00 F9 [22:11:58]RAPDU: 90 00 [22:11:58]wFMCommunicate OK [22:11:58]wFMCommunicate request_size=136 [22:11:58]MH_SAM_APDU [22:11:58]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 32 20 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C2 00 00 35 04 06 00 FA B1 C6 A6 A6 FC [22:11:58]Write to MH i2c: E2 8B 00 50 36 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 32 20 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C2 00 00 35 04 06 00 FA B1 C6 A6 A6 FC 00 00 95 [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:58]Read from MH i2c: E2 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 03 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 03 00 50 36 00 90 00 FA [22:11:58]RAPDU: 90 00 [22:11:58]wFMCommunicate OK [22:11:58]wFMCommunicate request_size=4 [22:11:58]MH_SAM_APDU [22:11:58]CAPDU: 80 0D 03 02 [22:11:58]Write to MH i2c: E2 08 00 51 36 80 0D 03 02 00 00 00 00 02 [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:58]Read from MH i2c: E2 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 0B 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 0B 00 51 36 00 18 A5 7F 19 1F EB 50 F5 90 00 A7 [22:11:58]RAPDU: 18 A5 7F 19 1F EB 50 F5 90 00 [22:11:58]wFMCommunicate OK [22:11:58]SAM_PROTO_SignData done [22:11:58]FM_MakeSignedData done [22:11:58]CreateOFDProtocolMessage [22:11:58]wFMCommunicate request_size=4 [22:11:58]MH_SAM_APDU [22:11:58]CAPDU: 80 11 00 00 [22:11:58]Write to MH i2c: E2 08 00 52 36 80 11 00 00 00 00 00 00 02 [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:58]Read from MH i2c: E2 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 17 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 17 00 52 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4D [22:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:11:58]wFMCommunicate OK [22:11:58]CreateOFDProtocolMessage done [22:11:58]OFDSenderStorePacket 49714 [22:11:58]StoreOFDPacket docnum=49714 [22:11:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8D 01 00 00 62 F7 85 01 36 3D 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 32 20 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C2 00 00 35 04 06 00 FA B1 C6 A6 A6 FC 18 A5 7F 19 1F EB 50 F5 [22:11:58]CheckFolder [22:11:58]dirname=/storage/ofd_packets [22:11:58]CheckFolder done [22:11:58]ProducePacketName [22:11:58]name=ofd_packets/00049714 [22:11:58]NVStorageSaveData ofd_packets/00049714 [22:11:58]File name is /storage/ofd_packets/00049714 [22:11:58]Write 427 bytes [22:11:58]NVStorageSaveData done [22:11:58]OFDSenderStorePacket done [22:11:58]KKMCreateOFDPacket done [22:11:58]NVStorageSaveData kkm_last_timestamp [22:11:58]File name is /storage/kkm_last_timestamp [22:11:58]Write 4 bytes [22:11:58]NVStorageSaveData done [22:11:58]ExternCall_PrintAddStr [22:11:58]wPrintStart [22:11:58]Write to MH i2c: 01 00 00 53 36 89 [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 07 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 07 00 53 36 00 00 00 00 00 FF 0F 9E [22:11:58]RasterBufferAndPrint [22:11:58]line Счет N : (3)189896 [22:11:58]line ИНН: 02508201610067 [22:11:58]line Контрольно-Кассовый Чек [22:11:58]line ПРОДАЖА [22:11:58]line Товар: 47803152 [22:11:58]line Сигареты Mevius Revo [22:11:58]line 1.000 * 155.00 [22:11:58]line = 155.00 [22:11:58]line НДС 12% НСП 1% [22:11:59]line > о реализуемом товаре [22:11:59]line Товар: 2000034730018 [22:11:59]line Кофе Американо (GABB TRADE) [22:11:59]line 1.000 * 105.00 [22:11:59]line = 105.00 [22:11:59]line НДС 12% НСП 1% [22:11:59]line > о реализуемом товаре [22:11:59]line ИТОГО: 260.00 [22:11:59]line НСП 1% : 2.30 [22:11:59]line НДС 12% : 27.61 [22:11:59]line Наличными: 260.00 [22:11:59]line Безнал.: 0.00 [22:11:59]line Место: АЗС № 95 "Партнер Нефть" [22:11:59]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:11:59]line СНО: Общий режим [22:11:59]line Чек 151 17.08.2024 22:12 [22:11:59]line Смена: 465 ФФД: 1.0 [22:11:59]line ЗНМ: 0300000078 [22:11:59]line РНМ: 0000000000092546 [22:11:59]line Версия ККМ: 001 [22:11:59]line ФМ: 0000000000871800 [22:11:59]line ФД: 49714 [22:11:59]line ФПД: 275641448965884 [22:11:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T221202&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49714&fm=275641448965884&tin=02508201610067®Number=0000000000092546&sum=26000 [22:11:59]line 0 [22:11:59]OFD Sender: Processing packet 49714 [packets to send 21, broken 20] [22:11:59]ProducePacketName [22:11:59]name=ofd_packets/00049714 [22:11:59]OFD Sender: To server: pG, [22:11:59]CommunicateWithHost lk.salyk.kg:30040 [22:11:59]ConnectInit lk.salyk.kg [22:11:59]written 0, free lines is 4095 [22:11:59]Connected sock=10 [22: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 31 38 30 30 8D 01 00 00 62 F7 85 01 36 3D 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 32 20 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C2 00 00 35 04 06 00 FA B1 C6 A6 A6 FC 18 A5 7F 19 1F EB 50 F5 [22:11:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5B 6E 47 00 E8 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C2 00 00 F4 03 04 00 6D CB C0 66 B6 04 01 00 00 AC 75 29 04 0B 24 14 81 [22:11:59]CommunicateWithHost err = 0 [22:11:59]CheckOFDResponse [22:11:59]1017 (14) - 77093643461234 [22:11:59]1041 (16) - 0000000000871800 [22:11:59]1040 (4) - 49714 [22:11:59]1012 (4) - 17.08.2024 16:10 [22:11:59]1206 (1) - 0 [22:11:59]OFD Sender: Remove packet 49714 [22:11:59]ProducePacketName [22:11:59]name=ofd_packets/00049714 [22:11:59]NVStorageDeleteData [22:11:59]Write to MH i2c: 01 00 00 82 36 B8 [22:11:59]Write i2c OK [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: 01 [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: 01 07 00 [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: 01 07 00 82 36 00 00 00 00 00 80 0C 4B [22:11:59]RasterBufferAndPrint [22:11:59]line [22:11:59]line [22:11:59]line [22:11:59]line [22:11:59]line [22:11:59]written 0, free lines is 3206 [22:11:59]MH_Cut [22:11:59]Write to MH i2c: D1 01 00 89 36 01 91 [22:11:59]Write i2c OK [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: D1 [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: D1 01 00 [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: D1 01 00 89 36 00 90 [22:11:59]Write to MH i2c: 01 00 00 8A 36 C0 [22:11:59]Write i2c OK [22:11:59]MH_I2C_Read... [22:12:00]OFD Sender: No OFD packet to send [22:12:00]*** Cut start [22:12:00]*** Purtial cut [22:12:00]*** CUTSNS_PIN = 0 [22:12:00]*** Stage 1: CUTSNS_PIN = 1 [22:12:02]Read from MH i2c: 01 [22:12:02]MH_I2C_Read... [22:12:02]*** Stop cut motor [22:12:02]*** Cut end [22:12:02]Read from MH i2c: 01 07 00 [22:12:02]MH_I2C_Read... [22:12:02]Read from MH i2c: 01 07 00 8A 36 00 00 00 00 00 FF 0F D5 [22:12:02]process_action close_receipt done [22:12:02]requested_data is exist [22:12:02]produce_requested_data [22:12:02]requested_item fm.sn is exist - process it [22:12:02]wFMCommunicate request_size=4 [22:12:02]MH_SAM_APDU [22:12:02]CAPDU: 80 11 00 00 [22:12:02]Write to MH i2c: E2 08 00 8B 36 80 11 00 00 00 00 00 00 3B [22:12:02]Write i2c OK [22:12:02]MH_I2C_Read... [22:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:02]Read from MH i2c: E2 [22:12:02]MH_I2C_Read... [22:12:02]Read from MH i2c: E2 17 00 [22:12:02]MH_I2C_Read... [22:12:02]Read from MH i2c: E2 17 00 8B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 86 [22:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:12:02]wFMCommunicate OK [22:12:02]requested_item fd.num is exist - process it [22:12:02]SAM_PROTO_GetFieldsCounters [22:12:02]wFMCommunicate request_size=4 [22:12:02]MH_SAM_APDU [22:12:02]CAPDU: 80 13 00 00 [22:12:02]Write to MH i2c: E2 08 00 8C 36 80 13 00 00 00 00 00 00 3E [22:12:02]Write i2c OK [22:12:02]MH_I2C_Read... [22:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:02]Read from MH i2c: E2 [22:12:02]MH_I2C_Read... [22:12:02]Read from MH i2c: E2 62 00 [22:12:02]MH_I2C_Read... [22:12:02]Read from MH i2c: E2 62 00 8C 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 32 C2 00 00 0E 04 04 00 D1 01 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 E3 [22:12: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 32 C2 00 00 0E 04 04 00 D1 01 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 [22:12:02]wFMCommunicate OK [22:12:02]SAM_PROTO_GetFieldsCounters done [22:12:02]requested_item shift.num is exist - process it [22:12:02]requested_item shift.opened is exist - process it [22:12:02]req_shift_opened [22:12:02]FM_GetShiftState [22:12:02]SAM_PROTO_GetShiftState [22:12:02]wFMCommunicate request_size=4 [22:12:02]MH_SAM_APDU [22:12:02]CAPDU: 80 13 01 00 [22:12:02]Write to MH i2c: E2 08 00 8D 36 80 13 01 00 00 00 00 00 40 [22:12:02]Write i2c OK [22:12:02]MH_I2C_Read... [22:12:02]Read from MH i2c: E2 [22:12:02]MH_I2C_Read... [22:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:02]Read from MH i2c: E2 0E 00 [22:12:02]MH_I2C_Read... [22:12:02]Read from MH i2c: E2 0E 00 8D 36 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 85 [22:12:02]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:12:02]wFMCommunicate OK [22:12:02]SAM_PROTO_GetShiftState done [22:12:02]FM_GetShiftState done [22:12:02]req_shift_opened done [22:12:02]requested_item shift.open_date is exist - process it [22:12:02]req_shift_open_date [22:12:02]req_shift_open_date done [22:12:02]produce_requested_data done [22:12:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49714,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:12:02]process_action_free close_receipt [22:12:02]json_value_free [22:12:02]json_value_free done [22:12:02]process_json_proto returns [22:12:02]Send response to host [22:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49714,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:12:02]free response buf [22:12:02]execute_script done [22:12:02]execute_script returns [22:12:02]free content buf [22:12:02]Sock 9.Close socket [22:12:02]Sock 9.Thread stoped [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12: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:07]accept exits with 7 [22:13:07]New connection [22:13:07]New thread 3066801508 created [22:13:07]Thread 3066944868 joined [22:13:07]Waiting for new connection... [22:13:07] Sock 7.Parse request [22:13:07]Sock 7.Check first char [22:13:07]Sock 7.First char is OK [22:13:07]request: POST /json_proto HTTP/1.0 [22:13:07]Method: POST [22:13:07]URL: /json_proto [22:13:07]Method is POST - this is cgi request [22:13:07]url: /json_proto [22:13:07]query_string will be loaded in cgi processing [22:13:07]execute_cgi json_proto POST (null) [22:13:07]execute_cgi path=json_proto method=POST [22:13:07]POST find Content-Length [22:13:07]Host: 172.17.46.196:8080 [22:13:07]Content-Length: 737 [22:13:07]Content-Type: application/json [22:13:07] [22:13:07]POST finish read [22:13:07]Found Content-Length = 737 [22:13:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189897", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:07]execute_script... [22:13:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189897", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:07]POST & json_proto [22:13:07]process_json_proto [22:13:07]json parsed OK: [22:13:07]protocol is kg_v1.0 [22:13:07]action value=close_receipt [22:13:07]process_action close_receipt [22:13:07]cmd_close_receipt [22:13:07]MH_GetDate [22:13:07]Write to MH i2c: F0 00 00 8E 36 B3 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: F0 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: F0 09 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: F0 09 00 8E 36 00 78 20 C1 66 07 E8 5D 66 2D [22:13:07]GetLastDocTimeStamp 1723932722 [22:13:07]current date 1723932792 [22:13:07]FM_GetShiftState [22:13:07]SAM_PROTO_GetShiftState [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 13 01 00 [22:13:07]Write to MH i2c: E2 08 00 8F 36 80 13 01 00 00 00 00 00 42 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 0E 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 0E 00 8F 36 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 87 [22:13:07]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:13:07]wFMCommunicate OK [22:13:07]SAM_PROTO_GetShiftState done [22:13:07]FM_GetShiftState done [22:13:07]opened in 1723853354 [22:13:07]opened+sec_in_day 1723939754 [22:13:07]quantity*price = 18000 [22:13:07]sum+1 = 18001 [22:13:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 152 17.08.2024 22:13 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49715 ФПД: 95610384354859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T221312&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49715&fm=95610384354859&tin=02508201610067®Number=0000000000092546&sum=18000 0 [22:13:08]StoreToDocumentArchive [22:13:08]shift 465 fd 49715 [22:13:08]save to /storage/0465/doc_00049715 [22:13:08]save last doc name /storage/0465/doc_00049715 to /storage/kkm_last_doc_name [22:13:08]save OK [22:13:08]Clear old archive folders... [22:13:08]ProcessDocumentItem done err = 0, tmpTLVsize=310 [22:13:08]tlvbuf is B6ED8350 [22:13:08]SAM_PROTO_ClearQueue [22:13:08]wFMCommunicate request_size=4 [22:13:08]MH_SAM_APDU [22:13:08]CAPDU: 80 09 00 00 [22:13:08]Write to MH i2c: E2 08 00 9C 36 80 09 00 00 00 00 00 00 44 [22:13:08]Write i2c OK [22:13:08]MH_I2C_Read... [22:13:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:08]Read from MH i2c: E2 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: E2 03 00 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: E2 03 00 9C 36 00 90 00 46 [22:13:08]RAPDU: 90 00 [22:13:08]wFMCommunicate OK [22:13:08]SAM_PROTO_ClearQueue done [22:13:08]KKMCreateOFDPacket [22:13:08]OFDProtocolAddRootSTLVToBuf [22:13:08]FM_MakeSignedData [22:13:08]FM_MakeSignedData [22:13:08]SAM_PROTO_SignData [22:13:08]wFMCommunicate request_size=4 [22:13:08]MH_SAM_APDU [22:13:08]CAPDU: 80 0D 01 02 [22:13:08]Write to MH i2c: E2 08 00 9D 36 80 0D 01 02 00 00 00 00 4C [22:13:08]Write i2c OK [22:13:08]MH_I2C_Read... [22:13:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:08]Read from MH i2c: E2 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: E2 03 00 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: E2 03 00 9D 36 00 90 00 47 [22:13:08]RAPDU: 90 00 [22:13:08]wFMCommunicate OK [22:13:08]wFMCommunicate request_size=255 [22:13:08]MH_SAM_APDU [22:13:08]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 78 20 C1 66 0E 04 04 00 D1 01 00 [22:13:08]Write to MH i2c: E2 02 01 9E 36 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 78 20 C1 66 0E 04 04 00 D1 01 00 00 00 85 [22:13:08]Write i2c OK [22:13:08]MH_I2C_Read... [22:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:08]Read from MH i2c: E2 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: E2 03 00 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: E2 03 00 9E 36 00 90 00 48 [22:13:08]RAPDU: 90 00 [22:13:08]wFMCommunicate OK [22:13:08]wFMCommunicate request_size=69 [22:13:08]MH_SAM_APDU [22:13:08]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C2 00 00 35 04 06 00 56 F5 06 FF 0E 2B [22:13:08]Write to MH i2c: E2 48 00 9F 36 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C2 00 00 35 04 06 00 56 F5 06 FF 0E 2B 00 00 DB [22:13:08]Write i2c OK [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: E2 [22:13:08]MH_I2C_Read... [22:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:08]Read from MH i2c: E2 03 00 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: E2 03 00 9F 36 00 90 00 49 [22:13:08]RAPDU: 90 00 [22:13:08]wFMCommunicate OK [22:13:08]wFMCommunicate request_size=4 [22:13:08]MH_SAM_APDU [22:13:08]CAPDU: 80 0D 03 02 [22:13:08]Write to MH i2c: E2 08 00 A0 36 80 0D 03 02 00 00 00 00 51 [22:13:08]Write i2c OK [22:13:08]MH_I2C_Read... [22:13:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:08]Read from MH i2c: E2 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: E2 0B 00 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: E2 0B 00 A0 36 00 90 D3 43 47 B5 9B 9D 7F 90 00 AB [22:13:08]RAPDU: 90 D3 43 47 B5 9B 9D 7F 90 00 [22:13:08]wFMCommunicate OK [22:13:08]SAM_PROTO_SignData done [22:13:08]FM_MakeSignedData done [22:13:08]CreateOFDProtocolMessage [22:13:08]wFMCommunicate request_size=4 [22:13:08]MH_SAM_APDU [22:13:08]CAPDU: 80 11 00 00 [22:13:08]Write to MH i2c: E2 08 00 A1 36 80 11 00 00 00 00 00 00 51 [22:13:08]Write i2c OK [22:13:08]MH_I2C_Read... [22:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:08]Read from MH i2c: E2 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: E2 17 00 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: E2 17 00 A1 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9C [22:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:13:08]wFMCommunicate OK [22:13:08]CreateOFDProtocolMessage done [22:13:08]OFDSenderStorePacket 49715 [22:13:08]StoreOFDPacket docnum=49715 [22:13:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4A 01 00 00 D8 6B 42 01 50 97 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 78 20 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C2 00 00 35 04 06 00 56 F5 06 FF 0E 2B 90 D3 43 47 B5 9B 9D 7F [22:13:08]CheckFolder [22:13:08]dirname=/storage/ofd_packets [22:13:08]CheckFolder done [22:13:08]ProducePacketName [22:13:08]name=ofd_packets/00049715 [22:13:08]NVStorageSaveData ofd_packets/00049715 [22:13:08]File name is /storage/ofd_packets/00049715 [22:13:08]Write 360 bytes [22:13:08]NVStorageSaveData done [22:13:08]OFDSenderStorePacket done [22:13:08]KKMCreateOFDPacket done [22:13:08]NVStorageSaveData kkm_last_timestamp [22:13:08]File name is /storage/kkm_last_timestamp [22:13:08]Write 4 bytes [22:13:08]NVStorageSaveData done [22:13:08]ExternCall_PrintAddStr [22:13:08]wPrintStart [22:13:08]Write to MH i2c: 01 00 00 A2 36 D8 [22:13:08]Write i2c OK [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: 01 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: 01 07 00 [22:13:08]MH_I2C_Read... [22:13:08]Read from MH i2c: 01 07 00 A2 36 00 00 00 00 00 FF 0F ED [22:13:08]RasterBufferAndPrint [22:13:08]line Счет N : (3)189897 [22:13:08]line ИНН: 02508201610067 [22:13:08]line Контрольно-Кассовый Чек [22:13:08]line ПРОДАЖА [22:13:08]line Товар: 4870145004982 [22:13:08]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [22:13:08]line 2.000 * 90.00 [22:13:08]line = 180.00 [22:13:08]line НДС 12% НСП 1% [22:13:08]line > о реализуемом товаре [22:13:08]line ИТОГО: 180.00 [22:13:08]line НСП 1% : 1.59 [22:13:08]line НДС 12% : 19.11 [22:13:08]line Наличными: 180.00 [22:13:08]line Безнал.: 0.00 [22:13:08]line Место: АЗС № 95 "Партнер Нефть" [22:13:08]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:13:08]line СНО: Общий режим [22:13:08]line Чек 152 17.08.2024 22:13 [22:13:08]line Смена: 465 ФФД: 1.0 [22:13:08]line ЗНМ: 0300000078 [22:13:08]line РНМ: 0000000000092546 [22:13:08]line Версия ККМ: 001 [22:13:08]line ФМ: 0000000000871800 [22:13:08]line ФД: 49715 [22:13:08]line ФПД: 95610384354859 [22:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T221312&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49715&fm=95610384354859&tin=02508201610067®Number=0000000000092546&sum=18000 [22:13:09]OFD Sender: Processing packet 49715 [packets to send 21, broken 20] [22:13:09]ProducePacketName [22:13:09]name=ofd_packets/00049715 [22:13:09]OFD Sender: To server: pG, [22:13:09]CommunicateWithHost lk.salyk.kg:30040 [22:13:09]ConnectInit lk.salyk.kg [22:13:09]line 0 [22:13:09]written 0, free lines is 4095 [22:13:09]Connected sock=11 [22:13:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4A 01 00 00 D8 6B 42 01 50 97 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 78 20 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C2 00 00 35 04 06 00 56 F5 06 FF 0E 2B 90 D3 43 47 B5 9B 9D 7F [22:13:09]Write to MH i2c: 01 00 00 CB 36 01 [22:13:09]Write i2c OK [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: 01 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: 01 07 00 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: 01 07 00 CB 36 00 00 00 00 00 E9 0C FD [22:13:09]RasterBufferAndPrint [22:13:09]line [22:13:09]line [22:13:09]line [22:13:09]line [22:13:09]line [22:13:09]written 0, free lines is 3311 [22:13:09]MH_Cut [22:13:09]Write to MH i2c: D1 01 00 D2 36 01 DA [22:13:09]Write i2c OK [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: D1 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: D1 01 00 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: D1 01 00 D2 36 00 D9 [22:13:09]Write to MH i2c: 01 00 00 D3 36 09 [22:13:09]Write i2c OK [22:13:09]MH_I2C_Read... [22:13:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F5 4B 47 00 49 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 31 38 30 30 10 04 04 00 33 C2 00 00 F4 03 04 00 B3 CB C0 66 B6 04 01 00 00 1E DC 29 31 CF 42 2A 6E [22:13:09]CommunicateWithHost err = 0 [22:13:09]CheckOFDResponse [22:13:09]1017 (14) - 77093643461234 [22:13:09]1041 (16) - 0000000000871800 [22:13:09]1040 (4) - 49715 [22:13:09]1012 (4) - 17.08.2024 16:11 [22:13:09]1206 (1) - 0 [22:13:09]OFD Sender: Remove packet 49715 [22:13:09]ProducePacketName [22:13:09]name=ofd_packets/00049715 [22:13:09]NVStorageDeleteData [22:13:10]OFD Sender: No OFD packet to send [22:13:10]*** Cut start [22:13:10]*** Purtial cut [22:13:10]*** Stage 1: CUTSNS_PIN = 1 [22:13:10]Read from MH i2c: 01 [22:13:10]MH_I2C_Read... [22:13:10]*** Stop cut motor [22:13:10]*** Cut end [22:13:10]Read from MH i2c: 01 07 00 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: 01 07 00 D3 36 00 00 00 00 00 FF 0F 1E [22:13:10]process_action close_receipt done [22:13:10]requested_data is exist [22:13:10]produce_requested_data [22:13:10]requested_item fm.sn is exist - process it [22:13:10]wFMCommunicate request_size=4 [22:13:10]MH_SAM_APDU [22:13:10]CAPDU: 80 11 00 00 [22:13:10]Write to MH i2c: E2 08 00 D4 36 80 11 00 00 00 00 00 00 84 [22:13:10]Write i2c OK [22:13:10]MH_I2C_Read... [22:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:10]Read from MH i2c: E2 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: E2 17 00 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: E2 17 00 D4 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CF [22:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:13:10]wFMCommunicate OK [22:13:10]requested_item fd.num is exist - process it [22:13:10]SAM_PROTO_GetFieldsCounters [22:13:10]wFMCommunicate request_size=4 [22:13:10]MH_SAM_APDU [22:13:10]CAPDU: 80 13 00 00 [22:13:10]Write to MH i2c: E2 08 00 D5 36 80 13 00 00 00 00 00 00 87 [22:13:10]Write i2c OK [22:13:10]MH_I2C_Read... [22:13:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:10]Read from MH i2c: E2 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: E2 62 00 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: E2 62 00 D5 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 33 C2 00 00 0E 04 04 00 D1 01 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 30 [22:13: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 33 C2 00 00 0E 04 04 00 D1 01 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 [22:13:10]wFMCommunicate OK [22:13:10]SAM_PROTO_GetFieldsCounters done [22:13:10]requested_item shift.num is exist - process it [22:13:10]requested_item shift.opened is exist - process it [22:13:10]req_shift_opened [22:13:10]FM_GetShiftState [22:13:10]SAM_PROTO_GetShiftState [22:13:10]wFMCommunicate request_size=4 [22:13:10]MH_SAM_APDU [22:13:10]CAPDU: 80 13 01 00 [22:13:10]Write to MH i2c: E2 08 00 D6 36 80 13 01 00 00 00 00 00 89 [22:13:10]Write i2c OK [22:13:10]MH_I2C_Read... [22:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:10]Read from MH i2c: E2 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: E2 0E 00 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: E2 0E 00 D6 36 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 CE [22:13:10]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:13:10]wFMCommunicate OK [22:13:10]SAM_PROTO_GetShiftState done [22:13:10]FM_GetShiftState done [22:13:10]req_shift_opened done [22:13:10]requested_item shift.open_date is exist - process it [22:13:10]req_shift_open_date [22:13:10]req_shift_open_date done [22:13:10]produce_requested_data done [22:13:10]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49715,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:13:10]process_action_free close_receipt [22:13:10]json_value_free [22:13:10]json_value_free done [22:13:10]process_json_proto returns [22:13:10]Send response to host [22:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49715,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:13:10]free response buf [22:13:10]execute_script done [22:13:10]execute_script returns [22:13:10]free content buf [22:13:10]Sock 7.Close socket [22:13:10]Sock 7.Thread stoped [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:33]int [22:13:33]Write to MH i2c: 01 00 00 D7 36 0D [22:13:33]*** FLAG_PRN_KEY set [22:13:33]Write i2c OK [22:13:33]MH_I2C_Read... [22:13:33]Read from MH i2c: 01 [22:13:33]MH_I2C_Read... [22:13:33]Read from MH i2c: 01 07 00 [22:13:33]MH_I2C_Read... [22:13:33]Read from MH i2c: 01 07 00 D7 36 00 08 00 00 00 FF 0F 2A [22:13:33]state=0 [22:13:33]Key pressed [22:13:33]Feed [22:13:33]Write to MH i2c: D8 00 00 D8 36 E5 [22:13:33]Write i2c OK [22:13:33]MH_I2C_Read... [22:13:33]Read from MH i2c: D8 [22:13:33]MH_I2C_Read... [22:13:33]Read from MH i2c: D8 01 00 [22:13:33]MH_I2C_Read... [22:13:33]Read from MH i2c: D8 01 00 D8 36 00 E6 [22:13:33]int [22:13:33]Write to MH i2c: 01 00 00 D9 36 0F [22:13:33]Write i2c OK [22:13:33]MH_I2C_Read... [22:13:33]Read from MH i2c: 01 [22:13:33]MH_I2C_Read... [22:13:33]Read from MH i2c: 01 07 00 [22:13:33]MH_I2C_Read... [22:13:33]Read from MH i2c: 01 07 00 D9 36 00 48 00 00 00 3C 00 9A [22:13:33]state=2 [22:13:33]Key pressed [22:13:33]int [22:13:33]Write to MH i2c: 01 00 00 DA 36 10 [22:13:33]*** FLAG_PRN_KEY reset [22:13:33]Write i2c OK [22:13:33]MH_I2C_Read... [22:13:33]Read from MH i2c: 01 [22:13:33]MH_I2C_Read... [22:13:33]Read from MH i2c: 01 07 00 [22:13:33]MH_I2C_Read... [22:13:33]Read from MH i2c: 01 07 00 DA 36 00 00 00 00 00 F5 0F 1B [22:13:33]state=2 [22:13:33]Stop feed [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: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:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [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: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: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]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: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:10]accept exits with 9 [22:18:10]New connection [22:18:10]New thread 3066944868 created [22:18:10]Thread 3066801508 joined [22:18:10]Waiting for new connection... [22:18:10] Sock 9.Parse request [22:18:10]Sock 9.Check first char [22:18:10]Sock 9.First char is OK [22:18:10]request: POST /json_proto HTTP/1.0 [22:18:10]Method: POST [22:18:10]URL: /json_proto [22:18:10]Method is POST - this is cgi request [22:18:10]url: /json_proto [22:18:10]query_string will be loaded in cgi processing [22:18:10]execute_cgi json_proto POST (null) [22:18:10]execute_cgi path=json_proto method=POST [22:18:10]POST find Content-Length [22:18:10]Host: 172.17.46.196:8080 [22:18:10]Content-Length: 624 [22:18:10]Content-Type: application/json [22:18:10] [22:18:10]POST finish read [22:18:10]Found Content-Length = 624 [22:18:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189898", "tax_sys" : 0, "items" : [ { "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:10]execute_script... [22:18:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189898", "tax_sys" : 0, "items" : [ { "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:10]POST & json_proto [22:18:10]process_json_proto [22:18:10]json parsed OK: [22:18:10]protocol is kg_v1.0 [22:18:10]action value=close_receipt [22:18:10]process_action close_receipt [22:18:10]cmd_close_receipt [22:18:10]MH_GetDate [22:18:10]Write to MH i2c: F0 00 00 DB 36 00 [22:18:10]Write i2c OK [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: F0 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: F0 09 00 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: F0 09 00 DB 36 00 A8 21 C1 66 07 E8 5D 66 AB [22:18:10]GetLastDocTimeStamp 1723932792 [22:18:10]current date 1723933096 [22:18:10]FM_GetShiftState [22:18:10]SAM_PROTO_GetShiftState [22:18:10]wFMCommunicate request_size=4 [22:18:10]MH_SAM_APDU [22:18:10]CAPDU: 80 13 01 00 [22:18:10]Write to MH i2c: E2 08 00 DC 36 80 13 01 00 00 00 00 00 8F [22:18:10]Write i2c OK [22:18:10]MH_I2C_Read... [22:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:10]Read from MH i2c: E2 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 0E 00 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 0E 00 DC 36 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D4 [22:18:10]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:18:10]wFMCommunicate OK [22:18:10]SAM_PROTO_GetShiftState done [22:18:10]FM_GetShiftState done [22:18:10]opened in 1723853354 [22:18:10]opened+sec_in_day 1723939754 [22:18:10]quantity*price = 5000 [22:18:10]sum+1 = 5001 [22:18:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 153 17.08.2024 22:18 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49716 ФПД: 198521934639045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T221816&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49716&fm=198521934639045&tin=02508201610067®Number=0000000000092546&sum=5000 0 [22:18:12]StoreToDocumentArchive [22:18:12]shift 465 fd 49716 [22:18:12]save to /storage/0465/doc_00049716 [22:18:12]save last doc name /storage/0465/doc_00049716 to /storage/kkm_last_doc_name [22:18:12]save OK [22:18:12]Clear old archive folders... [22:18:12]ProcessDocumentItem done err = 0, tmpTLVsize=267 [22:18:12]tlvbuf is 01829850 [22:18:12]SAM_PROTO_ClearQueue [22:18:12]wFMCommunicate request_size=4 [22:18:12]MH_SAM_APDU [22:18:12]CAPDU: 80 09 00 00 [22:18:12]Write to MH i2c: E2 08 00 E9 36 80 09 00 00 00 00 00 00 91 [22:18:12]Write i2c OK [22:18:12]MH_I2C_Read... [22:18:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:12]Read from MH i2c: E2 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 03 00 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 03 00 E9 36 00 90 00 93 [22:18:12]RAPDU: 90 00 [22:18:12]wFMCommunicate OK [22:18:12]SAM_PROTO_ClearQueue done [22:18:12]KKMCreateOFDPacket [22:18:12]OFDProtocolAddRootSTLVToBuf [22:18:12]FM_MakeSignedData [22:18:12]FM_MakeSignedData [22:18:12]SAM_PROTO_SignData [22:18:12]wFMCommunicate request_size=4 [22:18:12]MH_SAM_APDU [22:18:12]CAPDU: 80 0D 01 02 [22:18:12]Write to MH i2c: E2 08 00 EA 36 80 0D 01 02 00 00 00 00 99 [22:18:12]Write i2c OK [22:18:12]MH_I2C_Read... [22:18:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:12]Read from MH i2c: E2 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 03 00 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 03 00 EA 36 00 90 00 94 [22:18:12]RAPDU: 90 00 [22:18:12]wFMCommunicate OK [22:18:12]wFMCommunicate request_size=255 [22:18:12]MH_SAM_APDU [22:18:12]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A8 21 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 [22:18:12]Write to MH i2c: E2 02 01 EB 36 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A8 21 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 00 00 AE [22:18:12]Write i2c OK [22:18:12]MH_I2C_Read... [22:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:12]Read from MH i2c: E2 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 03 00 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 03 00 EB 36 00 90 00 95 [22:18:12]RAPDU: 90 00 [22:18:12]wFMCommunicate OK [22:18:12]wFMCommunicate request_size=26 [22:18:12]MH_SAM_APDU [22:18:12]CAPDU: 80 0D 02 02 15 38 30 30 10 04 04 00 34 C2 00 00 35 04 06 00 B4 8D FD 64 EF C5 [22:18:12]Write to MH i2c: E2 1D 00 EC 36 80 0D 02 02 15 00 38 30 30 10 04 04 00 34 C2 00 00 35 04 06 00 B4 8D FD 64 EF C5 00 00 01 [22:18:12]Write i2c OK [22:18:12]MH_I2C_Read... [22:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:12]Read from MH i2c: E2 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 03 00 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 03 00 EC 36 00 90 00 96 [22:18:12]RAPDU: 90 00 [22:18:12]wFMCommunicate OK [22:18:12]wFMCommunicate request_size=4 [22:18:12]MH_SAM_APDU [22:18:12]CAPDU: 80 0D 03 02 [22:18:12]Write to MH i2c: E2 08 00 ED 36 80 0D 03 02 00 00 00 00 9E [22:18:12]Write i2c OK [22:18:12]MH_I2C_Read... [22:18:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:12]Read from MH i2c: E2 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 0B 00 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 0B 00 ED 36 00 F3 95 B5 71 89 F3 B5 54 90 00 D2 [22:18:12]RAPDU: F3 95 B5 71 89 F3 B5 54 90 00 [22:18:12]wFMCommunicate OK [22:18:12]SAM_PROTO_SignData done [22:18:12]FM_MakeSignedData done [22:18:12]CreateOFDProtocolMessage [22:18:12]wFMCommunicate request_size=4 [22:18:12]MH_SAM_APDU [22:18:12]CAPDU: 80 11 00 00 [22:18:12]Write to MH i2c: E2 08 00 EE 36 80 11 00 00 00 00 00 00 9E [22:18:12]Write i2c OK [22:18:12]MH_I2C_Read... [22:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:12]Read from MH i2c: E2 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 17 00 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 17 00 EE 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E9 [22:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:18:12]wFMCommunicate OK [22:18:12]CreateOFDProtocolMessage done [22:18:12]OFDSenderStorePacket 49716 [22:18:12]StoreOFDPacket docnum=49716 [22:18:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1F 01 00 00 FD D1 17 01 65 7B 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A8 21 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 34 C2 00 00 35 04 06 00 B4 8D FD 64 EF C5 F3 95 B5 71 89 F3 B5 54 [22:18:12]CheckFolder [22:18:12]dirname=/storage/ofd_packets [22:18:12]CheckFolder done [22:18:12]ProducePacketName [22:18:12]name=ofd_packets/00049716 [22:18:12]NVStorageSaveData ofd_packets/00049716 [22:18:12]File name is /storage/ofd_packets/00049716 [22:18:12]Write 317 bytes [22:18:12]NVStorageSaveData done [22:18:12]OFDSenderStorePacket done [22:18:12]KKMCreateOFDPacket done [22:18:12]NVStorageSaveData kkm_last_timestamp [22:18:12]File name is /storage/kkm_last_timestamp [22:18:12]Write 4 bytes [22:18:12]NVStorageSaveData done [22:18:12]ExternCall_PrintAddStr [22:18:12]wPrintStart [22:18:12]Write to MH i2c: 01 00 00 EF 36 25 [22:18:12]Write i2c OK [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: 01 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: 01 07 00 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: 01 07 00 EF 36 00 00 00 00 00 FF 0F 3A [22:18:12]RasterBufferAndPrint [22:18:12]line Счет N : (3)189898 [22:18:12]line ИНН: 02508201610067 [22:18:12]line Контрольно-Кассовый Чек [22:18:12]line ПРОДАЖА [22:18:12]line Товар: 4700000160181 [22:18:12]line Вода Байтик 1л [22:18:12]line 1.000 * 50.00 [22:18:12]line = 50.00 [22:18:12]line НДС 12% НСП 1% [22:18:12]line > о реализуемом товаре [22:18:12]line ИТОГО: 50.00 [22:18:12]line НСП 1% : 0.44 [22:18:12]line НДС 12% : 5.31 [22:18:12]line Наличными: 50.00 [22:18:12]line Безнал.: 0.00 [22:18:12]line Место: АЗС № 95 "Партнер Нефть" [22:18:12]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:18:12]line СНО: Общий режим [22:18:12]line Чек 153 17.08.2024 22:18 [22:18:12]line Смена: 465 ФФД: 1.0 [22:18:12]line ЗНМ: 0300000078 [22:18:12]line РНМ: 0000000000092546 [22:18:12]line Версия ККМ: 001 [22:18:12]line ФМ: 0000000000871800 [22:18:12]line ФД: 49716 [22:18:12]line ФПД: 198521934639045 [22:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T221816&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49716&fm=198521934639045&tin=02508201610067®Number=0000000000092546&sum=5000 [22:18:12]line 0 [22:18:12]OFD Sender: Processing packet 49716 [packets to send 21, broken 20] [22:18:12]ProducePacketName [22:18:12]name=ofd_packets/00049716 [22:18:12]OFD Sender: To server: pG, [22:18:12]CommunicateWithHost lk.salyk.kg:30040 [22:18:12]ConnectInit lk.salyk.kg [22:18:12]written 0, free lines is 4095 [22:18:13]Connected sock=10 [22:18:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1F 01 00 00 FD D1 17 01 65 7B 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A8 21 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 34 C2 00 00 35 04 06 00 B4 8D FD 64 EF C5 F3 95 B5 71 89 F3 B5 54 [22:18:13]Write to MH i2c: 01 00 00 17 37 4E [22:18:13]Write i2c OK [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: 01 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: 01 07 00 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: 01 07 00 17 37 00 00 00 00 00 EE 0C 4F [22:18:13]RasterBufferAndPrint [22:18:13]line [22:18:13]line [22:18:13]line [22:18:13]line [22:18:13]line [22:18:13]written 0, free lines is 3316 [22:18:13]MH_Cut [22:18:13]Write to MH i2c: D1 01 00 1E 37 01 27 [22:18:13]Write i2c OK [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: D1 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: D1 01 00 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: D1 01 00 1E 37 00 26 [22:18:13]Write to MH i2c: 01 00 00 1F 37 56 [22:18:13]Write i2c OK [22:18:13]MH_I2C_Read... [22:18:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0C FF 47 00 31 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 34 C2 00 00 F4 03 04 00 E3 CC C0 66 B6 04 01 00 00 BB 4D 13 FF 25 2A B7 98 [22:18:13]CommunicateWithHost err = 0 [22:18:13]CheckOFDResponse [22:18:13]1017 (14) - 77093643461234 [22:18:13]1041 (16) - 0000000000871800 [22:18:13]1040 (4) - 49716 [22:18:13]1012 (4) - 17.08.2024 16:16 [22:18:13]1206 (1) - 0 [22:18:13]OFD Sender: Remove packet 49716 [22:18:13]ProducePacketName [22:18:13]name=ofd_packets/00049716 [22:18:13]NVStorageDeleteData [22:18:13]OFD Sender: No OFD packet to send [22:18:14]*** Cut start [22:18:14]*** Purtial cut [22:18:14]*** CUTSNS_PIN = 0 [22:18:14]*** Stage 1: CUTSNS_PIN = 1 [22:18:16]Read from MH i2c: 01 [22:18:16]MH_I2C_Read... [22:18:16]*** Stop cut motor [22:18:16]*** Cut end [22:18:16]Read from MH i2c: 01 07 00 [22:18:16]MH_I2C_Read... [22:18:16]Read from MH i2c: 01 07 00 1F 37 00 00 00 00 00 FF 0F 6B [22:18:16]process_action close_receipt done [22:18:16]requested_data is exist [22:18:16]produce_requested_data [22:18:16]requested_item fm.sn is exist - process it [22:18:16]wFMCommunicate request_size=4 [22:18:16]MH_SAM_APDU [22:18:16]CAPDU: 80 11 00 00 [22:18:16]Write to MH i2c: E2 08 00 20 37 80 11 00 00 00 00 00 00 D1 [22:18:16]Write i2c OK [22:18:16]MH_I2C_Read... [22:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:16]Read from MH i2c: E2 [22:18:16]MH_I2C_Read... [22:18:16]Read from MH i2c: E2 17 00 [22:18:16]MH_I2C_Read... [22:18:16]Read from MH i2c: E2 17 00 20 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1C [22:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:18:16]wFMCommunicate OK [22:18:16]requested_item fd.num is exist - process it [22:18:16]SAM_PROTO_GetFieldsCounters [22:18:16]wFMCommunicate request_size=4 [22:18:16]MH_SAM_APDU [22:18:16]CAPDU: 80 13 00 00 [22:18:16]Write to MH i2c: E2 08 00 21 37 80 13 00 00 00 00 00 00 D4 [22:18:16]Write i2c OK [22:18:16]MH_I2C_Read... [22:18:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:16]Read from MH i2c: E2 [22:18:16]MH_I2C_Read... [22:18:16]Read from MH i2c: E2 62 00 [22:18:16]MH_I2C_Read... [22:18:16]Read from MH i2c: E2 62 00 21 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 34 C2 00 00 0E 04 04 00 D1 01 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 81 [22:18: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 34 C2 00 00 0E 04 04 00 D1 01 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 [22:18:16]wFMCommunicate OK [22:18:16]SAM_PROTO_GetFieldsCounters done [22:18:16]requested_item shift.num is exist - process it [22:18:16]requested_item shift.opened is exist - process it [22:18:16]req_shift_opened [22:18:16]FM_GetShiftState [22:18:16]SAM_PROTO_GetShiftState [22:18:16]wFMCommunicate request_size=4 [22:18:16]MH_SAM_APDU [22:18:16]CAPDU: 80 13 01 00 [22:18:16]Write to MH i2c: E2 08 00 22 37 80 13 01 00 00 00 00 00 D6 [22:18:16]Write i2c OK [22:18:16]MH_I2C_Read... [22:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:16]Read from MH i2c: E2 [22:18:16]MH_I2C_Read... [22:18:16]Read from MH i2c: E2 0E 00 [22:18:16]MH_I2C_Read... [22:18:16]Read from MH i2c: E2 0E 00 22 37 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 1B [22:18:16]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:18:16]wFMCommunicate OK [22:18:16]SAM_PROTO_GetShiftState done [22:18:16]FM_GetShiftState done [22:18:16]req_shift_opened done [22:18:16]requested_item shift.open_date is exist - process it [22:18:16]req_shift_open_date [22:18:16]req_shift_open_date done [22:18:16]produce_requested_data done [22:18:16]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49716,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:18:16]process_action_free close_receipt [22:18:16]json_value_free [22:18:16]json_value_free done [22:18:16]process_json_proto returns [22:18:16]Send response to host [22:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49716,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:18:16]free response buf [22:18:16]execute_script done [22:18:16]execute_script returns [22:18:16]free content buf [22:18:16]Sock 9.Close socket [22:18:16]Sock 9.Thread stoped [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:50]accept exits with 7 [22:18:50]New connection [22:18:50]New thread 3066801508 created [22:18:50]Thread 3066944868 joined [22:18:50]Waiting for new connection... [22:18:50] Sock 7.Parse request [22:18:50]Sock 7.Check first char [22:18:50]Sock 7.First char is OK [22:18:50]request: POST /json_proto HTTP/1.0 [22:18:50]Method: POST [22:18:50]URL: /json_proto [22:18:50]Method is POST - this is cgi request [22:18:50]url: /json_proto [22:18:50]query_string will be loaded in cgi processing [22:18:50]execute_cgi json_proto POST (null) [22:18:50]execute_cgi path=json_proto method=POST [22:18:50]POST find Content-Length [22:18:50]Host: 172.17.46.196:8080 [22:18:50]Content-Length: 816 [22:18:50]Content-Type: application/json [22:18:50] [22:18:50]POST finish read [22:18:50]Found Content-Length = 816 [22:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189899", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:50]execute_script... [22:18:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189899", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:50]POST & json_proto [22:18:50]process_json_proto [22:18:50]json parsed OK: [22:18:50]protocol is kg_v1.0 [22:18:50]action value=close_receipt [22:18:50]process_action close_receipt [22:18:50]cmd_close_receipt [22:18:50]MH_GetDate [22:18:50]Write to MH i2c: F0 00 00 23 37 49 [22:18:50]Write i2c OK [22:18:50]MH_I2C_Read... [22:18:50]Read from MH i2c: F0 [22:18:50]MH_I2C_Read... [22:18:50]Read from MH i2c: F0 09 00 [22:18:50]MH_I2C_Read... [22:18:50]Read from MH i2c: F0 09 00 23 37 00 D0 21 C1 66 07 E8 5D 66 1C [22:18:50]GetLastDocTimeStamp 1723933096 [22:18:50]current date 1723933136 [22:18:50]FM_GetShiftState [22:18:50]SAM_PROTO_GetShiftState [22:18:50]wFMCommunicate request_size=4 [22:18:50]MH_SAM_APDU [22:18:50]CAPDU: 80 13 01 00 [22:18:50]Write to MH i2c: E2 08 00 24 37 80 13 01 00 00 00 00 00 D8 [22:18:50]Write i2c OK [22:18:50]MH_I2C_Read... [22:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:50]Read from MH i2c: E2 [22:18:50]MH_I2C_Read... [22:18:50]Read from MH i2c: E2 0E 00 [22:18:50]MH_I2C_Read... [22:18:50]Read from MH i2c: E2 0E 00 24 37 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 1D [22:18:50]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:18:50]wFMCommunicate OK [22:18:50]SAM_PROTO_GetShiftState done [22:18:50]FM_GetShiftState done [22:18:50]opened in 1723853354 [22:18:50]opened+sec_in_day 1723939754 [22:18:50]quantity*price = 8500 [22:18:50]sum+1 = 8501 [22:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 154 17.08.2024 22:18 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49717 ФПД: 9393295316489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T221856&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49717&fm=9393295316489&tin=02508201610067®Number=0000000000092546&sum=8500 0 [22:18:51]StoreToDocumentArchive [22:18:51]shift 465 fd 49717 [22:18:51]save to /storage/0465/doc_00049717 [22:18:51]save last doc name /storage/0465/doc_00049717 to /storage/kkm_last_doc_name [22:18:51]save OK [22:18:51]Clear old archive folders... [22:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=294 [22:18:51]tlvbuf is 018797E0 [22:18:51]SAM_PROTO_ClearQueue [22:18:51]wFMCommunicate request_size=4 [22:18:51]MH_SAM_APDU [22:18:51]CAPDU: 80 09 00 00 [22:18:51]Write to MH i2c: E2 08 00 31 37 80 09 00 00 00 00 00 00 DA [22:18:51]Write i2c OK [22:18:51]MH_I2C_Read... [22:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:51]Read from MH i2c: E2 [22:18:51]MH_I2C_Read... [22:18:51]Read from MH i2c: E2 03 00 [22:18:51]MH_I2C_Read... [22:18:51]Read from MH i2c: E2 03 00 31 37 00 90 00 DC [22:18:51]RAPDU: 90 00 [22:18:51]wFMCommunicate OK [22:18:51]SAM_PROTO_ClearQueue done [22:18:51]KKMCreateOFDPacket [22:18:51]OFDProtocolAddRootSTLVToBuf [22:18:51]FM_MakeSignedData [22:18:51]FM_MakeSignedData [22:18:51]SAM_PROTO_SignData [22:18:51]wFMCommunicate request_size=4 [22:18:51]MH_SAM_APDU [22:18:51]CAPDU: 80 0D 01 02 [22:18:51]Write to MH i2c: E2 08 00 32 37 80 0D 01 02 00 00 00 00 E2 [22:18:51]Write i2c OK [22:18:51]MH_I2C_Read... [22:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:51]Read from MH i2c: E2 [22:18:51]MH_I2C_Read... [22:18:51]Read from MH i2c: E2 03 00 [22:18:51]MH_I2C_Read... [22:18:51]Read from MH i2c: E2 03 00 32 37 00 90 00 DD [22:18:51]RAPDU: 90 00 [22:18:51]wFMCommunicate OK [22:18:51]wFMCommunicate request_size=255 [22:18:51]MH_SAM_APDU [22:18:51]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 D0 21 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [22:18:51]Write to MH i2c: E2 02 01 33 37 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 D0 21 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 4A [22:18:51]Write i2c OK [22:18:51]MH_I2C_Read... [22:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:51]Read from MH i2c: E2 [22:18:51]MH_I2C_Read... [22:18:51]Read from MH i2c: E2 03 00 [22:18:51]MH_I2C_Read... [22:18:51]Read from MH i2c: E2 03 00 33 37 00 90 00 DE [22:18:51]RAPDU: 90 00 [22:18:51]wFMCommunicate OK [22:18:51]wFMCommunicate request_size=53 [22:18:51]MH_SAM_APDU [22:18:51]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C2 00 00 35 04 06 00 08 8B 0C 07 D6 09 [22:18:51]Write to MH i2c: E2 38 00 34 37 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C2 00 00 35 04 06 00 08 8B 0C 07 D6 09 00 00 4F [22:18:51]Write i2c OK [22:18:51]MH_I2C_Read... [22:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:51]Read from MH i2c: E2 [22:18:51]MH_I2C_Read... [22:18:51]Read from MH i2c: E2 03 00 [22:18:51]MH_I2C_Read... [22:18:51]Read from MH i2c: E2 03 00 34 37 00 90 00 DF [22:18:51]RAPDU: 90 00 [22:18:51]wFMCommunicate OK [22:18:51]wFMCommunicate request_size=4 [22:18:51]MH_SAM_APDU [22:18:51]CAPDU: 80 0D 03 02 [22:18:51]Write to MH i2c: E2 08 00 35 37 80 0D 03 02 00 00 00 00 E7 [22:18:51]Write i2c OK [22:18:51]MH_I2C_Read... [22:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:52]Read from MH i2c: E2 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: E2 0B 00 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: E2 0B 00 35 37 00 6B 03 5F EB 90 2C EE A4 90 00 EE [22:18:52]RAPDU: 6B 03 5F EB 90 2C EE A4 90 00 [22:18:52]wFMCommunicate OK [22:18:52]SAM_PROTO_SignData done [22:18:52]FM_MakeSignedData done [22:18:52]CreateOFDProtocolMessage [22:18:52]wFMCommunicate request_size=4 [22:18:52]MH_SAM_APDU [22:18:52]CAPDU: 80 11 00 00 [22:18:52]Write to MH i2c: E2 08 00 36 37 80 11 00 00 00 00 00 00 E7 [22:18:52]Write i2c OK [22:18:52]MH_I2C_Read... [22:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:52]Read from MH i2c: E2 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: E2 17 00 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: E2 17 00 36 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 32 [22:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:18:52]wFMCommunicate OK [22:18:52]CreateOFDProtocolMessage done [22:18:52]OFDSenderStorePacket 49717 [22:18:52]StoreOFDPacket docnum=49717 [22:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 3E EA 32 01 FA 9D 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 D0 21 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C2 00 00 35 04 06 00 08 8B 0C 07 D6 09 6B 03 5F EB 90 2C EE A4 [22:18:52]CheckFolder [22:18:52]dirname=/storage/ofd_packets [22:18:52]CheckFolder done [22:18:52]ProducePacketName [22:18:52]name=ofd_packets/00049717 [22:18:52]NVStorageSaveData ofd_packets/00049717 [22:18:52]File name is /storage/ofd_packets/00049717 [22:18:52]Write 344 bytes [22:18:52]NVStorageSaveData done [22:18:52]OFDSenderStorePacket done [22:18:52]KKMCreateOFDPacket done [22:18:52]NVStorageSaveData kkm_last_timestamp [22:18:52]File name is /storage/kkm_last_timestamp [22:18:52]Write 4 bytes [22:18:52]NVStorageSaveData done [22:18:52]ExternCall_PrintAddStr [22:18:52]wPrintStart [22:18:52]Write to MH i2c: 01 00 00 37 37 6E [22:18:52]Write i2c OK [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: 01 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: 01 07 00 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: 01 07 00 37 37 00 00 00 00 00 FF 0F 83 [22:18:52]RasterBufferAndPrint [22:18:52]line Счет N : (3)189899 [22:18:52]line ИНН: 02508201610067 [22:18:52]line Контрольно-Кассовый Чек [22:18:52]line ПРОДАЖА [22:18:52]line Товар: 4600682557456 [22:18:52]line Напиток FLash up energy эн ж/б 0,5/0,45л [22:18:52]line 1.000 * 85.00 [22:18:52]line = 85.00 [22:18:52]line НДС 12% НСП 1% [22:18:52]line > о реализуемом товаре [22:18:52]line ИТОГО: 85.00 [22:18:52]line НСП 1% : 0.75 [22:18:52]line НДС 12% : 9.03 [22:18:52]line Наличными: 0.00 [22:18:52]line Безнал.: 85.00 [22:18:52]line Место: АЗС № 95 "Партнер Нефть" [22:18:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:18:52]line СНО: Общий режим [22:18:52]line Чек 154 17.08.2024 22:18 [22:18:52]line Смена: 465 ФФД: 1.0 [22:18:52]line ЗНМ: 0300000078 [22:18:52]line РНМ: 0000000000092546 [22:18:52]line Версия ККМ: 001 [22:18:52]line Платежная система: O! деньги [22:18:52]line ФМ: 0000000000871800 [22:18:52]line ФД: 49717 [22:18:52]line ФПД: 9393295316489 [22:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T221856&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49717&fm=9393295316489&tin=02508201610067®Number=0000000000092546&sum=8500 [22:18:52]OFD Sender: Processing packet 49717 [packets to send 21, broken 20] [22:18:52]ProducePacketName [22:18:52]name=ofd_packets/00049717 [22:18:52]OFD Sender: To server: pG, [22:18:52]CommunicateWithHost lk.salyk.kg:30040 [22:18:52]ConnectInit lk.salyk.kg [22:18:52]line 0 [22:18:52]written 0, free lines is 4095 [22:18:52]Connected sock=10 [22:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 3E EA 32 01 FA 9D 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 D0 21 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C2 00 00 35 04 06 00 08 8B 0C 07 D6 09 6B 03 5F EB 90 2C EE A4 [22:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 70 3B 47 00 15 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C2 00 00 F4 03 04 00 0A CD C0 66 B6 04 01 00 00 DD 2F 09 32 63 3D 72 66 [22:18:52]CommunicateWithHost err = 0 [22:18:52]CheckOFDResponse [22:18:52]1017 (14) - 77093643461234 [22:18:52]1041 (16) - 0000000000871800 [22:18:52]1040 (4) - 49717 [22:18:52]1012 (4) - 17.08.2024 16:17 [22:18:52]1206 (1) - 0 [22:18:52]OFD Sender: Remove packet 49717 [22:18:52]ProducePacketName [22:18:52]name=ofd_packets/00049717 [22:18:52]NVStorageDeleteData [22:18:52]Write to MH i2c: 01 00 00 62 37 99 [22:18:52]Write i2c OK [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: 01 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: 01 07 00 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: 01 07 00 62 37 00 00 00 00 00 BB 0C 67 [22:18:52]RasterBufferAndPrint [22:18:52]line [22:18:52]line [22:18:52]line [22:18:52]line [22:18:52]line [22:18:52]written 0, free lines is 3268 [22:18:52]MH_Cut [22:18:52]Write to MH i2c: D1 01 00 69 37 01 72 [22:18:52]Write i2c OK [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: D1 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: D1 01 00 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: D1 01 00 69 37 00 71 [22:18:52]Write to MH i2c: 01 00 00 6A 37 A1 [22:18:52]Write i2c OK [22:18:52]MH_I2C_Read... [22:18:53]OFD Sender: No OFD packet to send [22:18:53]*** Cut start [22:18:53]*** Purtial cut [22:18:53]*** Stage 1: CUTSNS_PIN = 1 [22:18:53]Read from MH i2c: 01 [22:18:53]MH_I2C_Read... [22:18:53]*** Stop cut motor [22:18:53]*** Cut end [22:18:53]Read from MH i2c: 01 07 00 [22:18:53]MH_I2C_Read... [22:18:53]Read from MH i2c: 01 07 00 6A 37 00 00 00 00 00 FF 0F B6 [22:18:53]process_action close_receipt done [22:18:53]requested_data is exist [22:18:53]produce_requested_data [22:18:53]requested_item fm.sn is exist - process it [22:18:53]wFMCommunicate request_size=4 [22:18:53]MH_SAM_APDU [22:18:53]CAPDU: 80 11 00 00 [22:18:53]Write to MH i2c: E2 08 00 6B 37 80 11 00 00 00 00 00 00 1C [22:18:53]Write i2c OK [22:18:53]MH_I2C_Read... [22:18:54]Read from MH i2c: E2 [22:18:54]MH_I2C_Read... [22:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:54]Read from MH i2c: E2 17 00 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: E2 17 00 6B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 67 [22:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:18:54]wFMCommunicate OK [22:18:54]requested_item fd.num is exist - process it [22:18:54]SAM_PROTO_GetFieldsCounters [22:18:54]wFMCommunicate request_size=4 [22:18:54]MH_SAM_APDU [22:18:54]CAPDU: 80 13 00 00 [22:18:54]Write to MH i2c: E2 08 00 6C 37 80 13 00 00 00 00 00 00 1F [22:18:54]Write i2c OK [22:18:54]MH_I2C_Read... [22:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:54]Read from MH i2c: E2 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: E2 62 00 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: E2 62 00 6C 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 35 C2 00 00 0E 04 04 00 D1 01 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 D0 [22:18: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 35 C2 00 00 0E 04 04 00 D1 01 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 [22:18:54]wFMCommunicate OK [22:18:54]SAM_PROTO_GetFieldsCounters done [22:18:54]requested_item shift.num is exist - process it [22:18:54]requested_item shift.opened is exist - process it [22:18:54]req_shift_opened [22:18:54]FM_GetShiftState [22:18:54]SAM_PROTO_GetShiftState [22:18:54]wFMCommunicate request_size=4 [22:18:54]MH_SAM_APDU [22:18:54]CAPDU: 80 13 01 00 [22:18:54]Write to MH i2c: E2 08 00 6D 37 80 13 01 00 00 00 00 00 21 [22:18:54]Write i2c OK [22:18:54]MH_I2C_Read... [22:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:54]Read from MH i2c: E2 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: E2 0E 00 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: E2 0E 00 6D 37 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 66 [22:18:54]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:18:54]wFMCommunicate OK [22:18:54]SAM_PROTO_GetShiftState done [22:18:54]FM_GetShiftState done [22:18:54]req_shift_opened done [22:18:54]requested_item shift.open_date is exist - process it [22:18:54]req_shift_open_date [22:18:54]req_shift_open_date done [22:18:54]produce_requested_data done [22:18:54]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49717,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:18:54]process_action_free close_receipt [22:18:54]json_value_free [22:18:54]json_value_free done [22:18:54]process_json_proto returns [22:18:54]Send response to host [22:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49717,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:18:54]free response buf [22:18:54]execute_script done [22:18:54]execute_script returns [22:18:54]free content buf [22:18:54]Sock 7.Close socket [22:18:54]Sock 7.Thread stoped [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:15]accept exits with 9 [22:20:15]New connection [22:20:15]New thread 3066944868 created [22:20:15]Thread 3066801508 joined [22:20:15]Waiting for new connection... [22:20:15] Sock 9.Parse request [22:20:15]Sock 9.Check first char [22:20:15]Sock 9.First char is OK [22:20:15]request: POST /json_proto HTTP/1.0 [22:20:15]Method: POST [22:20:15]URL: /json_proto [22:20:15]Method is POST - this is cgi request [22:20:15]url: /json_proto [22:20:15]query_string will be loaded in cgi processing [22:20:15]execute_cgi json_proto POST (null) [22:20:15]execute_cgi path=json_proto method=POST [22:20:15]POST find Content-Length [22:20:15]Host: 172.17.46.196:8080 [22:20:15]Content-Length: 1649 [22:20:15]Content-Type: application/json [22:20:15] [22:20:15]POST finish read [22:20:15]Found Content-Length = 1649 [22:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189900", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721018832", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u0437\u043E\u043B 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 522.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:15]execute_script... [22:20:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189900", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721018832", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u0437\u043E\u043B 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 522.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:15]POST & json_proto [22:20:15]process_json_proto [22:20:15]json parsed OK: [22:20:15]protocol is kg_v1.0 [22:20:15]action value=close_receipt [22:20:15]process_action close_receipt [22:20:15]cmd_close_receipt [22:20:15]MH_GetDate [22:20:15]Write to MH i2c: F0 00 00 6E 37 94 [22:20:15]Write i2c OK [22:20:15]MH_I2C_Read... [22:20:15]Read from MH i2c: F0 [22:20:15]MH_I2C_Read... [22:20:15]Read from MH i2c: F0 09 00 [22:20:15]MH_I2C_Read... [22:20:15]Read from MH i2c: F0 09 00 6E 37 00 25 22 C1 66 07 E8 5D 66 BD [22:20:15]GetLastDocTimeStamp 1723933136 [22:20:15]current date 1723933221 [22:20:15]FM_GetShiftState [22:20:15]SAM_PROTO_GetShiftState [22:20:15]wFMCommunicate request_size=4 [22:20:15]MH_SAM_APDU [22:20:15]CAPDU: 80 13 01 00 [22:20:15]Write to MH i2c: E2 08 00 6F 37 80 13 01 00 00 00 00 00 23 [22:20:15]Write i2c OK [22:20:15]MH_I2C_Read... [22:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:15]Read from MH i2c: E2 [22:20:15]MH_I2C_Read... [22:20:15]Read from MH i2c: E2 0E 00 [22:20:15]MH_I2C_Read... [22:20:15]Read from MH i2c: E2 0E 00 6F 37 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 68 [22:20:15]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:20:15]wFMCommunicate OK [22:20:15]SAM_PROTO_GetShiftState done [22:20:15]FM_GetShiftState done [22:20:15]opened in 1723853354 [22:20:15]opened+sec_in_day 1723939754 [22:20:15]quantity*price = 29000 [22:20:15]sum+1 = 29001 [22:20:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600721018832 Пиво Сиб.Кор зол 0,5л ст 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607120854184 Снек Орехи BEERKa Арахис 90г 1.000 * 62.00 = 62.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000027340020 Пакет бумажный витая ручка 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 522.00 НСП 1% : 4.62 НДС 12% : 55.43 Наличными: 0.00 Безнал.: 522.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 155 17.08.2024 22:20 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49718 ФПД: 130048605152180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T222021&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49718&fm=130048605152180&tin=02508201610067®Number=0000000000092546&sum=52200 0 [22:20:16]StoreToDocumentArchive [22:20:16]shift 465 fd 49718 [22:20:16]save to /storage/0465/doc_00049718 [22:20:16]save last doc name /storage/0465/doc_00049718 to /storage/kkm_last_doc_name [22:20:16]save OK [22:20:16]Clear old archive folders... [22:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=614 [22:20:16]tlvbuf is 01870980 [22:20:16]SAM_PROTO_ClearQueue [22:20:16]wFMCommunicate request_size=4 [22:20:16]MH_SAM_APDU [22:20:16]CAPDU: 80 09 00 00 [22:20:16]Write to MH i2c: E2 08 00 7C 37 80 09 00 00 00 00 00 00 25 [22:20:16]Write i2c OK [22:20:16]MH_I2C_Read... [22:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:16]Read from MH i2c: E2 [22:20:16]MH_I2C_Read... [22:20:16]Read from MH i2c: E2 03 00 [22:20:16]MH_I2C_Read... [22:20:16]Read from MH i2c: E2 03 00 7C 37 00 90 00 27 [22:20:16]RAPDU: 90 00 [22:20:16]wFMCommunicate OK [22:20:16]SAM_PROTO_ClearQueue done [22:20:16]KKMCreateOFDPacket [22:20:16]OFDProtocolAddRootSTLVToBuf [22:20:16]FM_MakeSignedData [22:20:16]FM_MakeSignedData [22:20:16]SAM_PROTO_SignData [22:20:16]wFMCommunicate request_size=4 [22:20:16]MH_SAM_APDU [22:20:16]CAPDU: 80 0D 01 02 [22:20:16]Write to MH i2c: E2 08 00 7D 37 80 0D 01 02 00 00 00 00 2D [22:20:16]Write i2c OK [22:20:16]MH_I2C_Read... [22:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:16]Read from MH i2c: E2 [22:20:16]MH_I2C_Read... [22:20:16]Read from MH i2c: E2 03 00 [22:20:16]MH_I2C_Read... [22:20:16]Read from MH i2c: E2 03 00 7D 37 00 90 00 28 [22:20:16]RAPDU: 90 00 [22:20:16]wFMCommunicate OK [22:20:16]wFMCommunicate request_size=255 [22:20:16]MH_SAM_APDU [22:20:16]CAPDU: 80 0D 02 02 FA 03 00 66 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 [22:20:16]Write to MH i2c: E2 02 01 7E 37 80 0D 02 02 FA 00 03 00 66 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 00 00 F1 [22:20:16]Write i2c OK [22:20:16]MH_I2C_Read... [22:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:16]Read from MH i2c: E2 [22:20:16]MH_I2C_Read... [22:20:16]Read from MH i2c: E2 03 00 [22:20:16]MH_I2C_Read... [22:20:16]Read from MH i2c: E2 03 00 7E 37 00 90 00 29 [22:20:16]RAPDU: 90 00 [22:20:16]wFMCommunicate OK [22:20:16]wFMCommunicate request_size=255 [22:20:16]MH_SAM_APDU [22:20:16]CAPDU: 80 0D 02 02 FA D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 [22:20:16]Write to MH i2c: E2 02 01 7F 37 80 0D 02 02 FA 00 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 00 00 01 [22:20:16]Write i2c OK [22:20:16]MH_I2C_Read... [22:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:17]Read from MH i2c: E2 [22:20:17]MH_I2C_Read... [22:20:17]Read from MH i2c: E2 03 00 [22:20:17]MH_I2C_Read... [22:20:17]Read from MH i2c: E2 03 00 7F 37 00 90 00 2A [22:20:17]RAPDU: 90 00 [22:20:17]wFMCommunicate OK [22:20:17]wFMCommunicate request_size=123 [22:20:17]MH_SAM_APDU [22:20:17]CAPDU: 80 0D 02 02 76 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 25 22 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C2 00 00 35 04 06 00 76 47 4C E9 E3 B4 [22:20:17]Write to MH i2c: E2 7E 00 80 37 80 0D 02 02 76 00 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 25 22 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C2 00 00 35 04 06 00 76 47 4C E9 E3 B4 00 00 74 [22:20:17]Write i2c OK [22:20:17]MH_I2C_Read... [22:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:17]Read from MH i2c: E2 [22:20:17]MH_I2C_Read... [22:20:17]Read from MH i2c: E2 03 00 [22:20:17]MH_I2C_Read... [22:20:17]Read from MH i2c: E2 03 00 80 37 00 90 00 2B [22:20:17]RAPDU: 90 00 [22:20:17]wFMCommunicate OK [22:20:17]wFMCommunicate request_size=4 [22:20:17]MH_SAM_APDU [22:20:17]CAPDU: 80 0D 03 02 [22:20:17]Write to MH i2c: E2 08 00 81 37 80 0D 03 02 00 00 00 00 33 [22:20:17]Write i2c OK [22:20:17]MH_I2C_Read... [22:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:17]Read from MH i2c: E2 [22:20:17]MH_I2C_Read... [22:20:17]Read from MH i2c: E2 0B 00 [22:20:17]MH_I2C_Read... [22:20:17]Read from MH i2c: E2 0B 00 81 37 00 73 EB 32 4B 85 52 3A 9B 90 00 BB [22:20:17]RAPDU: 73 EB 32 4B 85 52 3A 9B 90 00 [22:20:17]wFMCommunicate OK [22:20:17]SAM_PROTO_SignData done [22:20:17]FM_MakeSignedData done [22:20:17]CreateOFDProtocolMessage [22:20:17]wFMCommunicate request_size=4 [22:20:17]MH_SAM_APDU [22:20:17]CAPDU: 80 11 00 00 [22:20:17]Write to MH i2c: E2 08 00 82 37 80 11 00 00 00 00 00 00 33 [22:20:17]Write i2c OK [22:20:17]MH_I2C_Read... [22:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:17]Read from MH i2c: E2 [22:20:17]MH_I2C_Read... [22:20:17]Read from MH i2c: E2 17 00 [22:20:17]MH_I2C_Read... [22:20:17]Read from MH i2c: E2 17 00 82 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7E [22:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:20:17]wFMCommunicate OK [22:20:17]CreateOFDProtocolMessage done [22:20:17]OFDSenderStorePacket 49718 [22:20:17]StoreOFDPacket docnum=49718 [22:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 7A 02 00 00 09 E6 72 02 E6 E5 5A 03 01 00 03 00 66 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 25 22 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C2 00 00 35 04 06 00 76 47 4C E9 E3 B4 73 EB 32 4B 85 52 3A 9B [22:20:17]CheckFolder [22:20:17]dirname=/storage/ofd_packets [22:20:17]CheckFolder done [22:20:17]ProducePacketName [22:20:17]name=ofd_packets/00049718 [22:20:17]NVStorageSaveData ofd_packets/00049718 [22:20:17]File name is /storage/ofd_packets/00049718 [22:20:17]Write 664 bytes [22:20:17]NVStorageSaveData done [22:20:17]OFDSenderStorePacket done [22:20:17]KKMCreateOFDPacket done [22:20:17]NVStorageSaveData kkm_last_timestamp [22:20:17]File name is /storage/kkm_last_timestamp [22:20:17]Write 4 bytes [22:20:17]NVStorageSaveData done [22:20:17]ExternCall_PrintAddStr [22:20:17]wPrintStart [22:20:17]Write to MH i2c: 01 00 00 83 37 BA [22:20:17]Write i2c OK [22:20:17]MH_I2C_Read... [22:20:17]Read from MH i2c: 01 [22:20:17]MH_I2C_Read... [22:20:17]Read from MH i2c: 01 07 00 [22:20:17]MH_I2C_Read... [22:20:17]Read from MH i2c: 01 07 00 83 37 00 00 00 00 00 FF 0F CF [22:20:17]RasterBufferAndPrint [22:20:17]line Счет N : (3)189900 [22:20:17]line ИНН: 02508201610067 [22:20:17]line Контрольно-Кассовый Чек [22:20:17]line ПРОДАЖА [22:20:17]line Товар: 4700001610012 [22:20:17]line Пиво Арпа 0,5л [22:20:17]line 2.000 * 145.00 [22:20:17]line = 290.00 [22:20:17]line НДС 12% НСП 1% [22:20:17]line > о реализуемом товаре [22:20:17]line Товар: 4600721018832 [22:20:17]line Пиво Сиб.Кор зол 0,5л ст [22:20:17]line 1.000 * 145.00 [22:20:17]line = 145.00 [22:20:17]line НДС 12% НСП 1% [22:20:17]line > о реализуемом товаре [22:20:17]line Товар: 4607120854184 [22:20:17]line Снек Орехи BEERKa Арахис 90г [22:20:17]line 1.000 * 62.00 [22:20:17]line = 62.00 [22:20:17]line НДС 12% НСП 1% [22:20:17]line > о реализуемом товаре [22:20:17]line Товар: 2000027340020 [22:20:17]line Пакет бумажный витая ручка [22:20:17]line 1.000 * 25.00 [22:20:17]line = 25.00 [22:20:17]line НДС 12% НСП 1% [22:20:17]line > о реализуемом товаре [22:20:17]line ИТОГО: 522.00 [22:20:17]line НСП 1% : 4.62 [22:20:17]line НДС 12% : 55.43 [22:20:17]line Наличными: 0.00 [22:20:17]line Безнал.: 522.00 [22:20:17]line Место: АЗС № 95 "Партнер Нефть" [22:20:17]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:20:17]line СНО: Общий режим [22:20:17]line Чек 155 17.08.2024 22:20 [22:20:17]line Смена: 465 ФФД: 1.0 [22:20:17]line ЗНМ: 0300000078 [22:20:17]line РНМ: 0000000000092546 [22:20:17]line Версия ККМ: 001 [22:20:17]line Платежная система: O! деньги [22:20:17]line ФМ: 0000000000871800 [22:20:17]line ФД: 49718 [22:20:17]line ФПД: 130048605152180 [22:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T222021&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49718&fm=130048605152180&tin=02508201610067®Number=0000000000092546&sum=52200 [22:20:17]OFD Sender: Processing packet 49718 [packets to send 21, broken 20] [22:20:17]ProducePacketName [22:20:17]name=ofd_packets/00049718 [22:20:17]OFD Sender: To server: pG, [22:20:17]CommunicateWithHost lk.salyk.kg:30040 [22:20:17]ConnectInit lk.salyk.kg [22:20:17]line 0 [22:20:17]written 0, free lines is 4095 [22:20:17]Connected sock=10 [22:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 7A 02 00 00 09 E6 72 02 E6 E5 5A 03 01 00 03 00 66 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 25 22 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C2 00 00 35 04 06 00 76 47 4C E9 E3 B4 73 EB 32 4B 85 52 3A 9B [22:20:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 60 A0 47 00 23 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C2 00 00 F4 03 04 00 60 CD C0 66 B6 04 01 00 00 E8 84 CD A0 68 46 11 B6 [22:20:18]CommunicateWithHost err = 0 [22:20:18]CheckOFDResponse [22:20:18]1017 (14) - 77093643461234 [22:20:18]1041 (16) - 0000000000871800 [22:20:18]1040 (4) - 49718 [22:20:18]1012 (4) - 17.08.2024 16:18 [22:20:18]1206 (1) - 0 [22:20:18]OFD Sender: Remove packet 49718 [22:20:18]ProducePacketName [22:20:18]name=ofd_packets/00049718 [22:20:18]NVStorageDeleteData [22:20:18]Write to MH i2c: 01 00 00 C0 37 F7 [22:20:18]Write i2c OK [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: 01 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: 01 07 00 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: 01 07 00 C0 37 00 00 00 00 00 B2 0B BB [22:20:18]RasterBufferAndPrint [22:20:18]line [22:20:18]line [22:20:18]line [22:20:18]line [22:20:18]line [22:20:18]written 0, free lines is 3002 [22:20:18]MH_Cut [22:20:18]Write to MH i2c: D1 01 00 C7 37 01 D0 [22:20:18]Write i2c OK [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: D1 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: D1 01 00 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: D1 01 00 C7 37 00 CF [22:20:18]Write to MH i2c: 01 00 00 C8 37 FF [22:20:18]Write i2c OK [22:20:18]MH_I2C_Read... [22:20:18]OFD Sender: No OFD packet to send [22:20:19]*** Cut start [22:20:19]*** Purtial cut [22:20:19]*** CUTSNS_PIN = 0 [22:20:19]*** Stage 1: CUTSNS_PIN = 1 [22:20:21]Read from MH i2c: 01 [22:20:21]MH_I2C_Read... [22:20:21]*** Stop cut motor [22:20:21]*** Cut end [22:20:21]Read from MH i2c: 01 07 00 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: 01 07 00 C8 37 00 00 00 00 00 FF 0F 14 [22:20:21]process_action close_receipt done [22:20:21]requested_data is exist [22:20:21]produce_requested_data [22:20:21]requested_item fm.sn is exist - process it [22:20:21]wFMCommunicate request_size=4 [22:20:21]MH_SAM_APDU [22:20:21]CAPDU: 80 11 00 00 [22:20:21]Write to MH i2c: E2 08 00 C9 37 80 11 00 00 00 00 00 00 7A [22:20:21]Write i2c OK [22:20:21]MH_I2C_Read... [22:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:21]Read from MH i2c: E2 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 17 00 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 17 00 C9 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C5 [22:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:20:21]wFMCommunicate OK [22:20:21]requested_item fd.num is exist - process it [22:20:21]SAM_PROTO_GetFieldsCounters [22:20:21]wFMCommunicate request_size=4 [22:20:21]MH_SAM_APDU [22:20:21]CAPDU: 80 13 00 00 [22:20:21]Write to MH i2c: E2 08 00 CA 37 80 13 00 00 00 00 00 00 7D [22:20:21]Write i2c OK [22:20:21]MH_I2C_Read... [22:20:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:21]Read from MH i2c: E2 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 62 00 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 62 00 CA 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 36 C2 00 00 0E 04 04 00 D1 01 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 32 [22:20: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 36 C2 00 00 0E 04 04 00 D1 01 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 [22:20:21]wFMCommunicate OK [22:20:21]SAM_PROTO_GetFieldsCounters done [22:20:21]requested_item shift.num is exist - process it [22:20:21]requested_item shift.opened is exist - process it [22:20:21]req_shift_opened [22:20:21]FM_GetShiftState [22:20:21]SAM_PROTO_GetShiftState [22:20:21]wFMCommunicate request_size=4 [22:20:21]MH_SAM_APDU [22:20:21]CAPDU: 80 13 01 00 [22:20:21]Write to MH i2c: E2 08 00 CB 37 80 13 01 00 00 00 00 00 7F [22:20:21]Write i2c OK [22:20:21]MH_I2C_Read... [22:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:21]Read from MH i2c: E2 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 0E 00 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 0E 00 CB 37 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 C4 [22:20:21]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:20:21]wFMCommunicate OK [22:20:21]SAM_PROTO_GetShiftState done [22:20:21]FM_GetShiftState done [22:20:21]req_shift_opened done [22:20:21]requested_item shift.open_date is exist - process it [22:20:21]req_shift_open_date [22:20:21]req_shift_open_date done [22:20:21]produce_requested_data done [22:20:21]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49718,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:20:21]process_action_free close_receipt [22:20:21]json_value_free [22:20:21]json_value_free done [22:20:21]process_json_proto returns [22:20:21]Send response to host [22:20:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49718,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:20:21]free response buf [22:20:21]execute_script done [22:20:21]execute_script returns [22:20:21]free content buf [22:20:21]Sock 9.Close socket [22:20:21]Sock 9.Thread stoped [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]int [22:23:18]Write to MH i2c: 01 00 00 CC 37 03 [22:23:18]*** FLAG_PRN_KEY set [22:23:18]Write i2c OK [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: 01 [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: 01 07 00 [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: 01 07 00 CC 37 00 08 00 00 00 FF 0F 20 [22:23:18]state=0 [22:23:18]Key pressed [22:23:18]Feed [22:23:18]Write to MH i2c: D8 00 00 CD 37 DB [22:23:18]Write i2c OK [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: D8 [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: D8 01 00 [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: D8 01 00 CD 37 00 DC [22:23:18]int [22:23:18]Write to MH i2c: 01 00 00 CE 37 05 [22:23:18]Write i2c OK [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: 01 [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: 01 07 00 [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: 01 07 00 CE 37 00 48 00 00 00 3C 00 90 [22:23:18]state=2 [22:23:18]Key pressed [22:23:18]int [22:23:18]Write to MH i2c: 01 00 00 CF 37 06 [22:23:18]*** FLAG_PRN_KEY reset [22:23:18]Write i2c OK [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: 01 [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: 01 07 00 [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: 01 07 00 CF 37 00 00 00 00 00 F5 0F 11 [22:23:18]state=2 [22:23:18]Stop feed [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:38]accept exits with 7 [22:32:38]New connection [22:32:38]New thread 3066801508 created [22:32:38]Thread 3066944868 joined [22:32:38]Waiting for new connection... [22:32:38] Sock 7.Parse request [22:32:38]Sock 7.Check first char [22:32:38]Sock 7.First char is OK [22:32:38]request: POST /json_proto HTTP/1.0 [22:32:38]Method: POST [22:32:38]URL: /json_proto [22:32:38]Method is POST - this is cgi request [22:32:38]url: /json_proto [22:32:38]query_string will be loaded in cgi processing [22:32:38]execute_cgi json_proto POST (null) [22:32:38]execute_cgi path=json_proto method=POST [22:32:38]POST find Content-Length [22:32:38]Host: 172.17.46.196:8080 [22:32:38]Content-Length: 628 [22:32:38]Content-Type: application/json [22:32:38] [22:32:38]POST finish read [22:32:38]Found Content-Length = 628 [22:32:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189901", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:38]execute_script... [22:32:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189901", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:38]POST & json_proto [22:32:38]process_json_proto [22:32:38]json parsed OK: [22:32:38]protocol is kg_v1.0 [22:32:38]action value=close_receipt [22:32:38]process_action close_receipt [22:32:38]cmd_close_receipt [22:32:38]MH_GetDate [22:32:38]Write to MH i2c: F0 00 00 D0 37 F6 [22:32:38]Write i2c OK [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: F0 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: F0 09 00 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: F0 09 00 D0 37 00 0C 25 C1 66 07 E8 5D 66 09 [22:32:38]GetLastDocTimeStamp 1723933221 [22:32:38]current date 1723933964 [22:32:38]FM_GetShiftState [22:32:38]SAM_PROTO_GetShiftState [22:32:38]wFMCommunicate request_size=4 [22:32:38]MH_SAM_APDU [22:32:38]CAPDU: 80 13 01 00 [22:32:38]Write to MH i2c: E2 08 00 D1 37 80 13 01 00 00 00 00 00 85 [22:32:38]Write i2c OK [22:32:38]MH_I2C_Read... [22:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:38]Read from MH i2c: E2 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 0E 00 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 0E 00 D1 37 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 CA [22:32:38]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:32:38]wFMCommunicate OK [22:32:38]SAM_PROTO_GetShiftState done [22:32:38]FM_GetShiftState done [22:32:38]opened in 1723853354 [22:32:38]opened+sec_in_day 1723939754 [22:32:38]quantity*price = 26000 [22:32:38]sum+1 = 26001 [22:32:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 156 17.08.2024 22:32 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49719 ФПД: 30546038159823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T223244&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49719&fm=30546038159823&tin=02508201610067®Number=0000000000092546&sum=26000 0 [22:32:40]StoreToDocumentArchive [22:32:40]shift 465 fd 49719 [22:32:40]save to /storage/0465/doc_00049719 [22:32:40]save last doc name /storage/0465/doc_00049719 to /storage/kkm_last_doc_name [22:32:40]save OK [22:32:40]Clear old archive folders... [22:32:40]ProcessDocumentItem done err = 0, tmpTLVsize=276 [22:32:40]tlvbuf is 018C6E80 [22:32:40]SAM_PROTO_ClearQueue [22:32:40]wFMCommunicate request_size=4 [22:32:40]MH_SAM_APDU [22:32:40]CAPDU: 80 09 00 00 [22:32:40]Write to MH i2c: E2 08 00 DE 37 80 09 00 00 00 00 00 00 87 [22:32:40]Write i2c OK [22:32:40]MH_I2C_Read... [22:32:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:40]Read from MH i2c: E2 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: E2 03 00 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: E2 03 00 DE 37 00 90 00 89 [22:32:40]RAPDU: 90 00 [22:32:40]wFMCommunicate OK [22:32:40]SAM_PROTO_ClearQueue done [22:32:40]KKMCreateOFDPacket [22:32:40]OFDProtocolAddRootSTLVToBuf [22:32:40]FM_MakeSignedData [22:32:40]FM_MakeSignedData [22:32:40]SAM_PROTO_SignData [22:32:40]wFMCommunicate request_size=4 [22:32:40]MH_SAM_APDU [22:32:40]CAPDU: 80 0D 01 02 [22:32:40]Write to MH i2c: E2 08 00 DF 37 80 0D 01 02 00 00 00 00 8F [22:32:40]Write i2c OK [22:32:40]MH_I2C_Read... [22:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:40]Read from MH i2c: E2 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: E2 03 00 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: E2 03 00 DF 37 00 90 00 8A [22:32:40]RAPDU: 90 00 [22:32:40]wFMCommunicate OK [22:32:40]wFMCommunicate request_size=255 [22:32:40]MH_SAM_APDU [22:32:40]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 0C 25 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [22:32:40]Write to MH i2c: E2 02 01 E0 37 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 0C 25 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 2B [22:32:40]Write i2c OK [22:32:40]MH_I2C_Read... [22:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:40]Read from MH i2c: E2 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: E2 03 00 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: E2 03 00 E0 37 00 90 00 8B [22:32:40]RAPDU: 90 00 [22:32:40]wFMCommunicate OK [22:32:40]wFMCommunicate request_size=35 [22:32:40]MH_SAM_APDU [22:32:40]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 37 C2 00 00 35 04 06 00 1B C8 0D C0 F9 CF [22:32:40]Write to MH i2c: E2 26 00 E1 37 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 37 C2 00 00 35 04 06 00 1B C8 0D C0 F9 CF 00 00 EE [22:32:40]Write i2c OK [22:32:40]MH_I2C_Read... [22:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:40]Read from MH i2c: E2 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: E2 03 00 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: E2 03 00 E1 37 00 90 00 8C [22:32:40]RAPDU: 90 00 [22:32:40]wFMCommunicate OK [22:32:40]wFMCommunicate request_size=4 [22:32:40]MH_SAM_APDU [22:32:40]CAPDU: 80 0D 03 02 [22:32:40]Write to MH i2c: E2 08 00 E2 37 80 0D 03 02 00 00 00 00 94 [22:32:40]Write i2c OK [22:32:40]MH_I2C_Read... [22:32:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:40]Read from MH i2c: E2 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: E2 0B 00 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: E2 0B 00 E2 37 00 70 24 98 03 14 9A 0D B6 90 00 35 [22:32:40]RAPDU: 70 24 98 03 14 9A 0D B6 90 00 [22:32:40]wFMCommunicate OK [22:32:40]SAM_PROTO_SignData done [22:32:40]FM_MakeSignedData done [22:32:40]CreateOFDProtocolMessage [22:32:40]wFMCommunicate request_size=4 [22:32:40]MH_SAM_APDU [22:32:40]CAPDU: 80 11 00 00 [22:32:40]Write to MH i2c: E2 08 00 E3 37 80 11 00 00 00 00 00 00 94 [22:32:40]Write i2c OK [22:32:40]MH_I2C_Read... [22:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:40]Read from MH i2c: E2 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: E2 17 00 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: E2 17 00 E3 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DF [22:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:32:40]wFMCommunicate OK [22:32:40]CreateOFDProtocolMessage done [22:32:40]OFDSenderStorePacket 49719 [22:32:40]StoreOFDPacket docnum=49719 [22:32:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 E9 8A 20 01 12 A8 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 0C 25 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 37 C2 00 00 35 04 06 00 1B C8 0D C0 F9 CF 70 24 98 03 14 9A 0D B6 [22:32:40]CheckFolder [22:32:40]dirname=/storage/ofd_packets [22:32:40]CheckFolder done [22:32:40]ProducePacketName [22:32:40]name=ofd_packets/00049719 [22:32:40]NVStorageSaveData ofd_packets/00049719 [22:32:40]File name is /storage/ofd_packets/00049719 [22:32:40]Write 326 bytes [22:32:40]NVStorageSaveData done [22:32:40]OFDSenderStorePacket done [22:32:40]KKMCreateOFDPacket done [22:32:40]NVStorageSaveData kkm_last_timestamp [22:32:40]File name is /storage/kkm_last_timestamp [22:32:40]Write 4 bytes [22:32:40]NVStorageSaveData done [22:32:40]ExternCall_PrintAddStr [22:32:40]wPrintStart [22:32:40]Write to MH i2c: 01 00 00 E4 37 1B [22:32:40]Write i2c OK [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: 01 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: 01 07 00 [22:32:40]MH_I2C_Read... [22:32:40]Read from MH i2c: 01 07 00 E4 37 00 00 00 00 00 FF 0F 30 [22:32:40]RasterBufferAndPrint [22:32:40]line Счет N : (3)189901 [22:32:40]line ИНН: 02508201610067 [22:32:40]line Контрольно-Кассовый Чек [22:32:40]line ПРОДАЖА [22:32:40]line Товар: 2000036230011 [22:32:40]line Кофе Латте XL(GABB TRADE) [22:32:40]line 2.000 * 130.00 [22:32:40]line = 260.00 [22:32:40]line НДС 12% НСП 1% [22:32:40]line > о реализуемом товаре [22:32:40]line ИТОГО: 260.00 [22:32:40]line НСП 1% : 2.30 [22:32:40]line НДС 12% : 27.61 [22:32:40]line Наличными: 260.00 [22:32:40]line Безнал.: 0.00 [22:32:40]line Место: АЗС № 95 "Партнер Нефть" [22:32:40]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:32:40]line СНО: Общий режим [22:32:40]line Чек 156 17.08.2024 22:32 [22:32:40]line Смена: 465 ФФД: 1.0 [22:32:40]line ЗНМ: 0300000078 [22:32:40]line РНМ: 0000000000092546 [22:32:40]line Версия ККМ: 001 [22:32:40]line ФМ: 0000000000871800 [22:32:40]line ФД: 49719 [22:32:40]line ФПД: 30546038159823 [22:32:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T223244&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49719&fm=30546038159823&tin=02508201610067®Number=0000000000092546&sum=26000 [22:32:40]OFD Sender: Processing packet 49719 [packets to send 21, broken 20] [22:32:40]ProducePacketName [22:32:40]name=ofd_packets/00049719 [22:32:40]OFD Sender: To server: pG, [22:32:40]CommunicateWithHost lk.salyk.kg:30040 [22:32:40]ConnectInit lk.salyk.kg [22:32:40]line 0 [22:32:40]written 0, free lines is 4095 [22:32:41]Connected sock=10 [22:32:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 E9 8A 20 01 12 A8 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 0C 25 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 37 C2 00 00 35 04 06 00 1B C8 0D C0 F9 CF 70 24 98 03 14 9A 0D B6 [22:32:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C6 36 47 00 07 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 31 38 30 30 10 04 04 00 37 C2 00 00 F4 03 04 00 47 D0 C0 66 B6 04 01 00 00 48 59 77 72 17 F0 26 59 [22:32:41]CommunicateWithHost err = 0 [22:32:41]CheckOFDResponse [22:32:41]1017 (14) - 77093643461234 [22:32:41]1041 (16) - 0000000000871800 [22:32:41]1040 (4) - 49719 [22:32:41]1012 (4) - 17.08.2024 16:31 [22:32:41]1206 (1) - 0 [22:32:41]OFD Sender: Remove packet 49719 [22:32:41]ProducePacketName [22:32:41]name=ofd_packets/00049719 [22:32:41]NVStorageDeleteData [22:32:41]Write to MH i2c: 01 00 00 0C 38 44 [22:32:41]Write i2c OK [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: 01 [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: 01 07 00 [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: 01 07 00 0C 38 00 00 00 00 00 18 0D 70 [22:32:41]RasterBufferAndPrint [22:32:41]line [22:32:41]line [22:32:41]line [22:32:41]line [22:32:41]line [22:32:41]written 0, free lines is 3361 [22:32:41]MH_Cut [22:32:41]Write to MH i2c: D1 01 00 13 38 01 1D [22:32:41]Write i2c OK [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: D1 [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: D1 01 00 [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: D1 01 00 13 38 00 1C [22:32:41]Write to MH i2c: 01 00 00 14 38 4C [22:32:41]Write i2c OK [22:32:41]MH_I2C_Read... [22:32:41]OFD Sender: No OFD packet to send [22:32:42]*** Cut start [22:32:42]*** Purtial cut [22:32:42]*** Stage 1: CUTSNS_PIN = 1 [22:32:42]Read from MH i2c: 01 [22:32:42]MH_I2C_Read... [22:32:42]*** Stop cut motor [22:32:42]*** Cut end [22:32:42]Read from MH i2c: 01 07 00 [22:32:42]MH_I2C_Read... [22:32:42]Read from MH i2c: 01 07 00 14 38 00 00 00 00 00 FF 0F 61 [22:32:42]process_action close_receipt done [22:32:42]requested_data is exist [22:32:42]produce_requested_data [22:32:42]requested_item fm.sn is exist - process it [22:32:42]wFMCommunicate request_size=4 [22:32:42]MH_SAM_APDU [22:32:42]CAPDU: 80 11 00 00 [22:32:42]Write to MH i2c: E2 08 00 15 38 80 11 00 00 00 00 00 00 C7 [22:32:42]Write i2c OK [22:32:42]MH_I2C_Read... [22:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:42]Read from MH i2c: E2 [22:32:42]MH_I2C_Read... [22:32:42]Read from MH i2c: E2 17 00 [22:32:42]MH_I2C_Read... [22:32:42]Read from MH i2c: E2 17 00 15 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 12 [22:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:32:42]wFMCommunicate OK [22:32:42]requested_item fd.num is exist - process it [22:32:42]SAM_PROTO_GetFieldsCounters [22:32:42]wFMCommunicate request_size=4 [22:32:42]MH_SAM_APDU [22:32:42]CAPDU: 80 13 00 00 [22:32:42]Write to MH i2c: E2 08 00 16 38 80 13 00 00 00 00 00 00 CA [22:32:42]Write i2c OK [22:32:42]MH_I2C_Read... [22:32:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:42]Read from MH i2c: E2 [22:32:42]MH_I2C_Read... [22:32:42]Read from MH i2c: E2 62 00 [22:32:42]MH_I2C_Read... [22:32:42]Read from MH i2c: E2 62 00 16 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 37 C2 00 00 0E 04 04 00 D1 01 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 83 [22:32: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 37 C2 00 00 0E 04 04 00 D1 01 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:32:42]wFMCommunicate OK [22:32:42]SAM_PROTO_GetFieldsCounters done [22:32:42]requested_item shift.num is exist - process it [22:32:42]requested_item shift.opened is exist - process it [22:32:42]req_shift_opened [22:32:42]FM_GetShiftState [22:32:42]SAM_PROTO_GetShiftState [22:32:42]wFMCommunicate request_size=4 [22:32:42]MH_SAM_APDU [22:32:42]CAPDU: 80 13 01 00 [22:32:42]Write to MH i2c: E2 08 00 17 38 80 13 01 00 00 00 00 00 CC [22:32:42]Write i2c OK [22:32:42]MH_I2C_Read... [22:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:42]Read from MH i2c: E2 [22:32:42]MH_I2C_Read... [22:32:42]Read from MH i2c: E2 0E 00 [22:32:42]MH_I2C_Read... [22:32:42]Read from MH i2c: E2 0E 00 17 38 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 11 [22:32:42]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:32:42]wFMCommunicate OK [22:32:42]SAM_PROTO_GetShiftState done [22:32:42]FM_GetShiftState done [22:32:42]req_shift_opened done [22:32:42]requested_item shift.open_date is exist - process it [22:32:42]req_shift_open_date [22:32:42]req_shift_open_date done [22:32:42]produce_requested_data done [22:32:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49719,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:32:42]process_action_free close_receipt [22:32:42]json_value_free [22:32:42]json_value_free done [22:32:42]process_json_proto returns [22:32:42]Send response to host [22:32:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49719,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:32:42]free response buf [22:32:42]execute_script done [22:32:42]execute_script returns [22:32:42]free content buf [22:32:42]Sock 7.Close socket [22:32:42]Sock 7.Thread stoped [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:36:59]accept exits with 9 [22:36:59]New connection [22:36:59]New thread 3066944868 created [22:36:59]Thread 3066801508 joined [22:36:59]Waiting for new connection... [22:36:59] Sock 9.Parse request [22:36:59]Sock 9.Check first char [22:36:59]Sock 9.First char is OK [22:36:59]request: POST /json_proto HTTP/1.0 [22:36:59]Method: POST [22:36:59]URL: /json_proto [22:36:59]Method is POST - this is cgi request [22:36:59]url: /json_proto [22:36:59]query_string will be loaded in cgi processing [22:36:59]execute_cgi json_proto POST (null) [22:36:59]execute_cgi path=json_proto method=POST [22:36:59]POST find Content-Length [22:36:59]Host: 172.17.46.196:8080 [22:36:59]Content-Length: 1375 [22:36:59]Content-Type: application/json [22:36:59] [22:36:59]POST finish read [22:36:59]Found Content-Length = 1375 [22:36:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189902", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 660.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:59]execute_script... [22:36:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189902", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 660.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:59]POST & json_proto [22:36:59]process_json_proto [22:36:59]json parsed OK: [22:36:59]protocol is kg_v1.0 [22:36:59]action value=close_receipt [22:36:59]process_action close_receipt [22:36:59]cmd_close_receipt [22:36:59]MH_GetDate [22:36:59]Write to MH i2c: F0 00 00 18 38 3F [22:36:59]Write i2c OK [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: F0 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: F0 09 00 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: F0 09 00 18 38 00 11 26 C1 66 07 E8 5D 66 58 [22:36:59]GetLastDocTimeStamp 1723933964 [22:36:59]current date 1723934225 [22:36:59]FM_GetShiftState [22:36:59]SAM_PROTO_GetShiftState [22:36:59]wFMCommunicate request_size=4 [22:36:59]MH_SAM_APDU [22:36:59]CAPDU: 80 13 01 00 [22:36:59]Write to MH i2c: E2 08 00 19 38 80 13 01 00 00 00 00 00 CE [22:36:59]Write i2c OK [22:36:59]MH_I2C_Read... [22:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:59]Read from MH i2c: E2 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 0E 00 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 0E 00 19 38 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 13 [22:36:59]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:36:59]wFMCommunicate OK [22:36:59]SAM_PROTO_GetShiftState done [22:36:59]FM_GetShiftState done [22:36:59]opened in 1723853354 [22:36:59]opened+sec_in_day 1723939754 [22:36:59]quantity*price = 5000 [22:36:59]sum+1 = 5001 [22:36:59]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230614 Сигареты Richmond Red Edition 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745291 Сигареты Parliament SOHO NYC COMPACT BLU 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700001060169 Коньяк Бишкек 0,2л 1.000 * 330.00 = 330.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 660.00 НСП 1% : 5.84 НДС 12% : 70.08 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 157 17.08.2024 22:37 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49720 ФПД: 53906154353683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T223705&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49720&fm=53906154353683&tin=02508201610067®Number=0000000000092546&sum=66000 0 [22:37:00]StoreToDocumentArchive [22:37:00]shift 465 fd 49720 [22:37:00]save to /storage/0465/doc_00049720 [22:37:00]save last doc name /storage/0465/doc_00049720 to /storage/kkm_last_doc_name [22:37:00]save OK [22:37:00]Clear old archive folders... [22:37:00]ProcessDocumentItem done err = 0, tmpTLVsize=591 [22:37:00]tlvbuf is 018FAF90 [22:37:00]SAM_PROTO_ClearQueue [22:37:00]wFMCommunicate request_size=4 [22:37:00]MH_SAM_APDU [22:37:00]CAPDU: 80 09 00 00 [22:37:00]Write to MH i2c: E2 08 00 26 38 80 09 00 00 00 00 00 00 D0 [22:37:00]Write i2c OK [22:37:00]MH_I2C_Read... [22:37:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:01]Read from MH i2c: E2 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 03 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 03 00 26 38 00 90 00 D2 [22:37:01]RAPDU: 90 00 [22:37:01]wFMCommunicate OK [22:37:01]SAM_PROTO_ClearQueue done [22:37:01]KKMCreateOFDPacket [22:37:01]OFDProtocolAddRootSTLVToBuf [22:37:01]FM_MakeSignedData [22:37:01]FM_MakeSignedData [22:37:01]SAM_PROTO_SignData [22:37:01]wFMCommunicate request_size=4 [22:37:01]MH_SAM_APDU [22:37:01]CAPDU: 80 0D 01 02 [22:37:01]Write to MH i2c: E2 08 00 27 38 80 0D 01 02 00 00 00 00 D8 [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:01]Read from MH i2c: E2 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 03 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 03 00 27 38 00 90 00 D3 [22:37:01]RAPDU: 90 00 [22:37:01]wFMCommunicate OK [22:37:01]wFMCommunicate request_size=255 [22:37:01]MH_SAM_APDU [22:37:01]CAPDU: 80 0D 02 02 FA 03 00 4F 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 [22:37:01]Write to MH i2c: E2 02 01 28 38 80 0D 02 02 FA 00 03 00 4F 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 00 00 6B [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:01]Read from MH i2c: E2 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 03 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 03 00 28 38 00 90 00 D4 [22:37:01]RAPDU: 90 00 [22:37:01]wFMCommunicate OK [22:37:01]wFMCommunicate request_size=255 [22:37:01]MH_SAM_APDU [22:37:01]CAPDU: 80 0D 02 02 FA 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 [22:37:01]Write to MH i2c: E2 02 01 29 38 80 0D 02 02 FA 00 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 97 [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:01]Read from MH i2c: E2 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 03 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 03 00 29 38 00 90 00 D5 [22:37:01]RAPDU: 90 00 [22:37:01]wFMCommunicate OK [22:37:01]wFMCommunicate request_size=100 [22:37:01]MH_SAM_APDU [22:37:01]CAPDU: 80 0D 02 02 5F 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 11 26 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 38 C2 00 00 35 04 06 00 31 07 01 2E 74 13 [22:37:01]Write to MH i2c: E2 67 00 2A 38 80 0D 02 02 5F 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 11 26 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 38 C2 00 00 35 04 06 00 31 07 01 2E 74 13 00 00 2E [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:01]Read from MH i2c: E2 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 03 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 03 00 2A 38 00 90 00 D6 [22:37:01]RAPDU: 90 00 [22:37:01]wFMCommunicate OK [22:37:01]wFMCommunicate request_size=4 [22:37:01]MH_SAM_APDU [22:37:01]CAPDU: 80 0D 03 02 [22:37:01]Write to MH i2c: E2 08 00 2B 38 80 0D 03 02 00 00 00 00 DE [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:01]Read from MH i2c: E2 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 0B 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 0B 00 2B 38 00 64 FC D7 CB DB B7 FC 8C 90 00 FB [22:37:01]RAPDU: 64 FC D7 CB DB B7 FC 8C 90 00 [22:37:01]wFMCommunicate OK [22:37:01]SAM_PROTO_SignData done [22:37:01]FM_MakeSignedData done [22:37:01]CreateOFDProtocolMessage [22:37:01]wFMCommunicate request_size=4 [22:37:01]MH_SAM_APDU [22:37:01]CAPDU: 80 11 00 00 [22:37:01]Write to MH i2c: E2 08 00 2C 38 80 11 00 00 00 00 00 00 DE [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:01]Read from MH i2c: E2 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 17 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 17 00 2C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 29 [22:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:37:01]wFMCommunicate OK [22:37:01]CreateOFDProtocolMessage done [22:37:01]OFDSenderStorePacket 49720 [22:37:01]StoreOFDPacket docnum=49720 [22:37:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 63 02 00 00 CB 29 5B 02 87 AE 5A 03 01 00 03 00 4F 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 11 26 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 38 C2 00 00 35 04 06 00 31 07 01 2E 74 13 64 FC D7 CB DB B7 FC 8C [22:37:01]CheckFolder [22:37:01]dirname=/storage/ofd_packets [22:37:01]CheckFolder done [22:37:01]ProducePacketName [22:37:01]name=ofd_packets/00049720 [22:37:01]NVStorageSaveData ofd_packets/00049720 [22:37:01]File name is /storage/ofd_packets/00049720 [22:37:01]Write 641 bytes [22:37:01]NVStorageSaveData done [22:37:01]OFDSenderStorePacket done [22:37:01]KKMCreateOFDPacket done [22:37:01]NVStorageSaveData kkm_last_timestamp [22:37:01]File name is /storage/kkm_last_timestamp [22:37:01]Write 4 bytes [22:37:01]NVStorageSaveData done [22:37:01]ExternCall_PrintAddStr [22:37:01]wPrintStart [22:37:01]Write to MH i2c: 01 00 00 2D 38 65 [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: 01 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: 01 07 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: 01 07 00 2D 38 00 00 00 00 00 FF 0F 7A [22:37:01]RasterBufferAndPrint [22:37:01]line Счет N : (3)189902 [22:37:01]line ИНН: 02508201610067 [22:37:01]line Контрольно-Кассовый Чек [22:37:01]line ПРОДАЖА [22:37:01]line Товар: 4700000160358 [22:37:01]line Вода Легенда 1л [22:37:01]line 1.000 * 50.00 [22:37:01]line = 50.00 [22:37:01]line НДС 12% НСП 1% [22:37:01]line > о реализуемом товаре [22:37:01]line Товар: 46230614 [22:37:01]line Сигареты Richmond Red Edition [22:37:01]line 1.000 * 150.00 [22:37:01]line = 150.00 [22:37:01]line НДС 12% НСП 1% [22:37:01]line > о реализуемом товаре [22:37:01]line Товар: 48745291 [22:37:02]line Сигареты Parliament SOHO NYC COMPACT BLU [22:37:02]line 1.000 * 130.00 [22:37:02]line = 130.00 [22:37:02]line НДС 12% НСП 1% [22:37:02]line > о реализуемом товаре [22:37:02]line Товар: 4700001060169 [22:37:02]line Коньяк Бишкек 0,2л [22:37:02]line 1.000 * 330.00 [22:37:02]line = 330.00 [22:37:02]line НДС 12% НСП 1% [22:37:02]line > о реализуемом товаре [22:37:02]line ИТОГО: 660.00 [22:37:02]line НСП 1% : 5.84 [22:37:02]line НДС 12% : 70.08 [22:37:02]line Наличными: 660.00 [22:37:02]line Безнал.: 0.00 [22:37:02]line Место: АЗС № 95 "Партнер Нефть" [22:37:02]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:37:02]line СНО: Общий режим [22:37:02]line Чек 157 17.08.2024 22:37 [22:37:02]line Смена: 465 ФФД: 1.0 [22:37:02]line ЗНМ: 0300000078 [22:37:02]line РНМ: 0000000000092546 [22:37:02]line Версия ККМ: 001 [22:37:02]line ФМ: 0000000000871800 [22:37:02]line ФД: 49720 [22:37:02]line ФПД: 53906154353683 [22:37:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T223705&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49720&fm=53906154353683&tin=02508201610067®Number=0000000000092546&sum=66000 [22:37:02]OFD Sender: Processing packet 49720 [packets to send 21, broken 20] [22:37:02]ProducePacketName [22:37:02]name=ofd_packets/00049720 [22:37:02]OFD Sender: To server: pG, [22:37:02]CommunicateWithHost lk.salyk.kg:30040 [22:37:02]ConnectInit lk.salyk.kg [22:37:02]line 0 [22:37:02]written 0, free lines is 4095 [22:37:02]Connected sock=10 [22:37:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 63 02 00 00 CB 29 5B 02 87 AE 5A 03 01 00 03 00 4F 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 11 26 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 38 C2 00 00 35 04 06 00 31 07 01 2E 74 13 64 FC D7 CB DB B7 FC 8C [22:37:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C0 BD 47 00 CF 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 31 38 30 30 10 04 04 00 38 C2 00 00 F4 03 04 00 4C D1 C0 66 B6 04 01 00 00 BD 23 44 6E B4 4D 66 00 [22:37:02]CommunicateWithHost err = 0 [22:37:02]CheckOFDResponse [22:37:02]1017 (14) - 77093643461234 [22:37:02]1041 (16) - 0000000000871800 [22:37:02]1040 (4) - 49720 [22:37:02]1012 (4) - 17.08.2024 16:35 [22:37:02]1206 (1) - 0 [22:37:02]OFD Sender: Remove packet 49720 [22:37:02]ProducePacketName [22:37:02]name=ofd_packets/00049720 [22:37:02]NVStorageDeleteData [22:37:02]Write to MH i2c: 01 00 00 69 38 A1 [22:37:02]Write i2c OK [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: 01 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: 01 07 00 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: 01 07 00 69 38 00 00 00 00 00 A4 0B 57 [22:37:02]RasterBufferAndPrint [22:37:02]line [22:37:02]line [22:37:02]line [22:37:02]line [22:37:02]line [22:37:02]written 0, free lines is 2989 [22:37:02]MH_Cut [22:37:02]Write to MH i2c: D1 01 00 70 38 01 7A [22:37:02]Write i2c OK [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: D1 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: D1 01 00 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: D1 01 00 70 38 00 79 [22:37:02]Write to MH i2c: 01 00 00 71 38 A9 [22:37:02]Write i2c OK [22:37:02]MH_I2C_Read... [22:37:03]OFD Sender: No OFD packet to send [22:37:03]*** Cut start [22:37:03]*** Purtial cut [22:37:03]*** CUTSNS_PIN = 0 [22:37:04]*** Stage 1: CUTSNS_PIN = 1 [22:37:05]Read from MH i2c: 01 [22:37:05]MH_I2C_Read... [22:37:05]*** Stop cut motor [22:37:05]*** Cut end [22:37:05]Read from MH i2c: 01 07 00 [22:37:05]MH_I2C_Read... [22:37:05]Read from MH i2c: 01 07 00 71 38 00 00 00 00 00 FF 0F BE [22:37:05]process_action close_receipt done [22:37:05]requested_data is exist [22:37:05]produce_requested_data [22:37:05]requested_item fm.sn is exist - process it [22:37:05]wFMCommunicate request_size=4 [22:37:05]MH_SAM_APDU [22:37:05]CAPDU: 80 11 00 00 [22:37:05]Write to MH i2c: E2 08 00 72 38 80 11 00 00 00 00 00 00 24 [22:37:05]Write i2c OK [22:37:05]MH_I2C_Read... [22:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:05]Read from MH i2c: E2 [22:37:05]MH_I2C_Read... [22:37:05]Read from MH i2c: E2 17 00 [22:37:05]MH_I2C_Read... [22:37:05]Read from MH i2c: E2 17 00 72 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6F [22:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:37:05]wFMCommunicate OK [22:37:05]requested_item fd.num is exist - process it [22:37:05]SAM_PROTO_GetFieldsCounters [22:37:05]wFMCommunicate request_size=4 [22:37:05]MH_SAM_APDU [22:37:05]CAPDU: 80 13 00 00 [22:37:05]Write to MH i2c: E2 08 00 73 38 80 13 00 00 00 00 00 00 27 [22:37:05]Write i2c OK [22:37:05]MH_I2C_Read... [22:37:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:06]Read from MH i2c: E2 [22:37:06]MH_I2C_Read... [22:37:06]Read from MH i2c: E2 62 00 [22:37:06]MH_I2C_Read... [22:37:06]Read from MH i2c: E2 62 00 73 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 38 C2 00 00 0E 04 04 00 D1 01 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 E4 [22:37: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 38 C2 00 00 0E 04 04 00 D1 01 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:37:06]wFMCommunicate OK [22:37:06]SAM_PROTO_GetFieldsCounters done [22:37:06]requested_item shift.num is exist - process it [22:37:06]requested_item shift.opened is exist - process it [22:37:06]req_shift_opened [22:37:06]FM_GetShiftState [22:37:06]SAM_PROTO_GetShiftState [22:37:06]wFMCommunicate request_size=4 [22:37:06]MH_SAM_APDU [22:37:06]CAPDU: 80 13 01 00 [22:37:06]Write to MH i2c: E2 08 00 74 38 80 13 01 00 00 00 00 00 29 [22:37:06]Write i2c OK [22:37:06]MH_I2C_Read... [22:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:06]Read from MH i2c: E2 [22:37:06]MH_I2C_Read... [22:37:06]Read from MH i2c: E2 0E 00 [22:37:06]MH_I2C_Read... [22:37:06]Read from MH i2c: E2 0E 00 74 38 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 6E [22:37:06]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:37:06]wFMCommunicate OK [22:37:06]SAM_PROTO_GetShiftState done [22:37:06]FM_GetShiftState done [22:37:06]req_shift_opened done [22:37:06]requested_item shift.open_date is exist - process it [22:37:06]req_shift_open_date [22:37:06]req_shift_open_date done [22:37:06]produce_requested_data done [22:37:06]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49720,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:37:06]process_action_free close_receipt [22:37:06]json_value_free [22:37:06]json_value_free done [22:37:06]process_json_proto returns [22:37:06]Send response to host [22:37:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49720,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:37:06]free response buf [22:37:06]execute_script done [22:37:06]execute_script returns [22:37:06]free content buf [22:37:06]Sock 9.Close socket [22:37:06]Sock 9.Thread stoped [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:47]accept exits with 7 [22:38:47]New connection [22:38:47]New thread 3066801508 created [22:38:47]Thread 3066944868 joined [22:38:47]Waiting for new connection... [22:38:47] Sock 7.Parse request [22:38:47]Sock 7.Check first char [22:38:47]Sock 7.First char is OK [22:38:47]request: POST /json_proto HTTP/1.0 [22:38:47]Method: POST [22:38:47]URL: /json_proto [22:38:47]Method is POST - this is cgi request [22:38:47]url: /json_proto [22:38:47]query_string will be loaded in cgi processing [22:38:47]execute_cgi json_proto POST (null) [22:38:47]execute_cgi path=json_proto method=POST [22:38:47]POST find Content-Length [22:38:47]Host: 172.17.46.196:8080 [22:38:47]Content-Length: 1307 [22:38:47]Content-Type: application/json [22:38:47] [22:38:47]POST finish read [22:38:47]Found Content-Length = 1307 [22:38:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189903", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000171351", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Schweppes \u043C\u043E\u0445\u0438\u0442\u043E 0,33\u043B", "price" : 85.00, "quantity" : 4.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 531.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:47]execute_script... [22:38:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189903", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000171351", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Schweppes \u043C\u043E\u0445\u0438\u0442\u043E 0,33\u043B", "price" : 85.00, "quantity" : 4.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 531.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:47]POST & json_proto [22:38:47]process_json_proto [22:38:47]json parsed OK: [22:38:47]protocol is kg_v1.0 [22:38:47]action value=close_receipt [22:38:47]process_action close_receipt [22:38:47]cmd_close_receipt [22:38:47]MH_GetDate [22:38:47]Write to MH i2c: F0 00 00 75 38 9C [22:38:47]Write i2c OK [22:38:47]MH_I2C_Read... [22:38:47]Read from MH i2c: F0 [22:38:47]MH_I2C_Read... [22:38:47]Read from MH i2c: F0 09 00 [22:38:47]MH_I2C_Read... [22:38:47]Read from MH i2c: F0 09 00 75 38 00 7D 26 C1 66 07 E8 5D 66 21 [22:38:47]GetLastDocTimeStamp 1723934225 [22:38:47]current date 1723934333 [22:38:47]FM_GetShiftState [22:38:47]SAM_PROTO_GetShiftState [22:38:47]wFMCommunicate request_size=4 [22:38:47]MH_SAM_APDU [22:38:47]CAPDU: 80 13 01 00 [22:38:47]Write to MH i2c: E2 08 00 76 38 80 13 01 00 00 00 00 00 2B [22:38:47]Write i2c OK [22:38:47]MH_I2C_Read... [22:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:47]Read from MH i2c: E2 [22:38:47]MH_I2C_Read... [22:38:47]Read from MH i2c: E2 0E 00 [22:38:47]MH_I2C_Read... [22:38:47]Read from MH i2c: E2 0E 00 76 38 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 70 [22:38:47]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:38:47]wFMCommunicate OK [22:38:47]SAM_PROTO_GetShiftState done [22:38:47]FM_GetShiftState done [22:38:47]opened in 1723853354 [22:38:47]opened+sec_in_day 1723939754 [22:38:47]quantity*price = 4000 [22:38:47]sum+1 = 4001 [22:38:47]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000171351 Напиток Schweppes мохито 0,33л 4.000 * 85.00 = 340.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48742245 Сигареты Parliament Silver Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 531.00 НСП 1% : 4.70 НДС 12% : 56.39 Наличными: 0.00 Безнал.: 531.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 158 17.08.2024 22:38 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49721 ФПД: 137673708772879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T223853&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49721&fm=137673708772879&tin=02508201610067®Number=0000000000092546&sum=53100 0 [22:38:48]StoreToDocumentArchive [22:38:48]shift 465 fd 49721 [22:38:48]save to /storage/0465/doc_00049721 [22:38:48]save last doc name /storage/0465/doc_00049721 to /storage/kkm_last_doc_name [22:38:48]save OK [22:38:48]Clear old archive folders... [22:38:48]ProcessDocumentItem done err = 0, tmpTLVsize=493 [22:38:48]tlvbuf is 018A3A40 [22:38:48]SAM_PROTO_ClearQueue [22:38:48]wFMCommunicate request_size=4 [22:38:48]MH_SAM_APDU [22:38:48]CAPDU: 80 09 00 00 [22:38:48]Write to MH i2c: E2 08 00 83 38 80 09 00 00 00 00 00 00 2D [22:38:48]Write i2c OK [22:38:48]MH_I2C_Read... [22:38:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:48]Read from MH i2c: E2 [22:38:48]MH_I2C_Read... [22:38:48]Read from MH i2c: E2 03 00 [22:38:48]MH_I2C_Read... [22:38:48]Read from MH i2c: E2 03 00 83 38 00 90 00 2F [22:38:48]RAPDU: 90 00 [22:38:48]wFMCommunicate OK [22:38:48]SAM_PROTO_ClearQueue done [22:38:48]KKMCreateOFDPacket [22:38:48]OFDProtocolAddRootSTLVToBuf [22:38:48]FM_MakeSignedData [22:38:48]FM_MakeSignedData [22:38:48]SAM_PROTO_SignData [22:38:48]wFMCommunicate request_size=4 [22:38:48]MH_SAM_APDU [22:38:48]CAPDU: 80 0D 01 02 [22:38:48]Write to MH i2c: E2 08 00 84 38 80 0D 01 02 00 00 00 00 35 [22:38:48]Write i2c OK [22:38:48]MH_I2C_Read... [22:38:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:48]Read from MH i2c: E2 [22:38:48]MH_I2C_Read... [22:38:48]Read from MH i2c: E2 03 00 [22:38:48]MH_I2C_Read... [22:38:48]Read from MH i2c: E2 03 00 84 38 00 90 00 30 [22:38:48]RAPDU: 90 00 [22:38:48]wFMCommunicate OK [22:38:48]wFMCommunicate request_size=255 [22:38:48]MH_SAM_APDU [22:38:48]CAPDU: 80 0D 02 02 FA 03 00 ED 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 31 33 35 31 06 04 2C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 63 68 77 65 70 70 65 73 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 33 33 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 [22:38:48]Write to MH i2c: E2 02 01 85 38 80 0D 02 02 FA 00 03 00 ED 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 31 33 35 31 06 04 2C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 63 68 77 65 70 70 65 73 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 33 33 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 00 00 61 [22:38:48]Write i2c OK [22:38:48]MH_I2C_Read... [22:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:49]Read from MH i2c: E2 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 03 00 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 03 00 85 38 00 90 00 31 [22:38:49]RAPDU: 90 00 [22:38:49]wFMCommunicate OK [22:38:49]wFMCommunicate request_size=252 [22:38:49]MH_SAM_APDU [22:38:49]CAPDU: 80 0D 02 02 F7 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C CF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7D 26 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 39 C2 00 00 35 04 06 00 7D 36 A8 81 9E 0F [22:38:49]Write to MH i2c: E2 FF 00 86 38 80 0D 02 02 F7 00 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C CF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7D 26 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 39 C2 00 00 35 04 06 00 7D 36 A8 81 9E 0F 00 00 F1 [22:38:49]Write i2c OK [22:38:49]MH_I2C_Read... [22:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:49]Read from MH i2c: E2 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 03 00 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 03 00 86 38 00 90 00 32 [22:38:49]RAPDU: 90 00 [22:38:49]wFMCommunicate OK [22:38:49]wFMCommunicate request_size=4 [22:38:49]MH_SAM_APDU [22:38:49]CAPDU: 80 0D 03 02 [22:38:49]Write to MH i2c: E2 08 00 87 38 80 0D 03 02 00 00 00 00 3A [22:38:49]Write i2c OK [22:38:49]MH_I2C_Read... [22:38:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:49]Read from MH i2c: E2 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 0B 00 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 0B 00 87 38 00 CF D0 7E EA 1B CD 30 91 90 00 EB [22:38:49]RAPDU: CF D0 7E EA 1B CD 30 91 90 00 [22:38:49]wFMCommunicate OK [22:38:49]SAM_PROTO_SignData done [22:38:49]FM_MakeSignedData done [22:38:49]CreateOFDProtocolMessage [22:38:49]wFMCommunicate request_size=4 [22:38:49]MH_SAM_APDU [22:38:49]CAPDU: 80 11 00 00 [22:38:49]Write to MH i2c: E2 08 00 88 38 80 11 00 00 00 00 00 00 3A [22:38:49]Write i2c OK [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 [22:38:49]MH_I2C_Read... [22:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:49]Read from MH i2c: E2 17 00 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 17 00 88 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 85 [22:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:38:49]wFMCommunicate OK [22:38:49]CreateOFDProtocolMessage done [22:38:49]OFDSenderStorePacket 49721 [22:38:49]StoreOFDPacket docnum=49721 [22:38:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 01 02 00 00 52 21 F9 01 39 11 5A 03 01 00 03 00 ED 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 31 33 35 31 06 04 2C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 63 68 77 65 70 70 65 73 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 33 33 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C CF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7D 26 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 39 C2 00 00 35 04 06 00 7D 36 A8 81 9E 0F CF D0 7E EA 1B CD 30 91 [22:38:49]CheckFolder [22:38:49]dirname=/storage/ofd_packets [22:38:49]CheckFolder done [22:38:49]ProducePacketName [22:38:49]name=ofd_packets/00049721 [22:38:49]NVStorageSaveData ofd_packets/00049721 [22:38:49]File name is /storage/ofd_packets/00049721 [22:38:49]Write 543 bytes [22:38:49]NVStorageSaveData done [22:38:49]OFDSenderStorePacket done [22:38:49]KKMCreateOFDPacket done [22:38:49]NVStorageSaveData kkm_last_timestamp [22:38:49]File name is /storage/kkm_last_timestamp [22:38:49]Write 4 bytes [22:38:49]NVStorageSaveData done [22:38:49]ExternCall_PrintAddStr [22:38:49]wPrintStart [22:38:49]Write to MH i2c: 01 00 00 89 38 C1 [22:38:49]Write i2c OK [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: 01 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: 01 07 00 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: 01 07 00 89 38 00 00 00 00 00 FF 0F D6 [22:38:49]RasterBufferAndPrint [22:38:49]line Счет N : (3)189903 [22:38:49]line ИНН: 02508201610067 [22:38:49]line Контрольно-Кассовый Чек [22:38:49]line ПРОДАЖА [22:38:49]line Товар: 4700000160211 [22:38:49]line Вода Легенда 0,5л [22:38:49]line 1.000 * 40.00 [22:38:49]line = 40.00 [22:38:49]line НДС 12% НСП 1% [22:38:49]line > о реализуемом товаре [22:38:49]line Товар: 5449000171351 [22:38:49]line Напиток Schweppes мохито 0,33л [22:38:49]line 4.000 * 85.00 [22:38:49]line = 340.00 [22:38:49]line НДС 12% НСП 1% [22:38:49]line > о реализуемом товаре [22:38:49]line Товар: 48742245 [22:38:49]line Сигареты Parliament Silver Blue [22:38:49]line 1.000 * 151.00 [22:38:49]line = 151.00 [22:38:49]line НДС 12% НСП 1% [22:38:49]line > о реализуемом товаре [22:38:49]line ИТОГО: 531.00 [22:38:49]line НСП 1% : 4.70 [22:38:49]line НДС 12% : 56.39 [22:38:49]line Наличными: 0.00 [22:38:49]line Безнал.: 531.00 [22:38:49]line Место: АЗС № 95 "Партнер Нефть" [22:38:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:38:49]line СНО: Общий режим [22:38:49]line Чек 158 17.08.2024 22:38 [22:38:49]line Смена: 465 ФФД: 1.0 [22:38:49]line ЗНМ: 0300000078 [22:38:49]line РНМ: 0000000000092546 [22:38:49]line Версия ККМ: 001 [22:38:49]line Платежная система: O! деньги [22:38:49]line ФМ: 0000000000871800 [22:38:49]line ФД: 49721 [22:38:49]line ФПД: 137673708772879 [22:38:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T223853&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49721&fm=137673708772879&tin=02508201610067®Number=0000000000092546&sum=53100 [22:38:49]line 0 [22:38:49]written 0, free lines is 4095 [22:38:49]OFD Sender: Processing packet 49721 [packets to send 21, broken 20] [22:38:49]ProducePacketName [22:38:49]name=ofd_packets/00049721 [22:38:49]OFD Sender: To server: pG, [22:38:49]CommunicateWithHost lk.salyk.kg:30040 [22:38:49]ConnectInit lk.salyk.kg [22:38:49]Connected sock=11 [22:38:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 01 02 00 00 52 21 F9 01 39 11 5A 03 01 00 03 00 ED 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 31 33 35 31 06 04 2C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 63 68 77 65 70 70 65 73 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 33 33 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C CF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7D 26 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 39 C2 00 00 35 04 06 00 7D 36 A8 81 9E 0F CF D0 7E EA 1B CD 30 91 [22:38:50]Write to MH i2c: 01 00 00 C1 38 F9 [22:38:50]Write i2c OK [22:38:50]MH_I2C_Read... [22:38:50]Read from MH i2c: 01 [22:38:50]MH_I2C_Read... [22:38:50]Read from MH i2c: 01 07 00 [22:38:50]MH_I2C_Read... [22:38:50]Read from MH i2c: 01 07 00 C1 38 00 00 00 00 00 E4 0B EF [22:38:50]RasterBufferAndPrint [22:38:50]line [22:38:50]line [22:38:50]line [22:38:50]line [22:38:50]line [22:38:50]written 0, free lines is 3049 [22:38:50]MH_Cut [22:38:50]Write to MH i2c: D1 01 00 C8 38 01 D2 [22:38:50]Write i2c OK [22:38:50]MH_I2C_Read... [22:38:50]Read from MH i2c: D1 [22:38:50]MH_I2C_Read... [22:38:50]Read from MH i2c: D1 01 00 [22:38:50]MH_I2C_Read... [22:38:50]Read from MH i2c: D1 01 00 C8 38 00 D1 [22:38:50]Write to MH i2c: 01 00 00 C9 38 01 [22:38:50]Write i2c OK [22:38:50]MH_I2C_Read... [22:38:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CF BB 47 00 12 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 39 C2 00 00 F4 03 04 00 B8 D1 C0 66 B6 04 01 00 00 32 A5 F7 28 37 97 B5 BE [22:38:50]CommunicateWithHost err = 0 [22:38:50]CheckOFDResponse [22:38:50]1017 (14) - 77093643461234 [22:38:50]1041 (16) - 0000000000871800 [22:38:50]1040 (4) - 49721 [22:38:50]1012 (4) - 17.08.2024 16:37 [22:38:50]1206 (1) - 0 [22:38:50]OFD Sender: Remove packet 49721 [22:38:50]ProducePacketName [22:38:50]name=ofd_packets/00049721 [22:38:50]NVStorageDeleteData [22:38:50]OFD Sender: No OFD packet to send [22:38:51]*** Cut start [22:38:51]*** Purtial cut [22:38:51]*** Stage 1: CUTSNS_PIN = 1 [22:38:51]Read from MH i2c: 01 [22:38:51]MH_I2C_Read... [22:38:51]*** Stop cut motor [22:38:51]*** Cut end [22:38:51]Read from MH i2c: 01 07 00 [22:38:51]MH_I2C_Read... [22:38:51]Read from MH i2c: 01 07 00 C9 38 00 00 00 00 00 FF 0F 16 [22:38:51]process_action close_receipt done [22:38:51]requested_data is exist [22:38:51]produce_requested_data [22:38:51]requested_item fm.sn is exist - process it [22:38:51]wFMCommunicate request_size=4 [22:38:51]MH_SAM_APDU [22:38:51]CAPDU: 80 11 00 00 [22:38:51]Write to MH i2c: E2 08 00 CA 38 80 11 00 00 00 00 00 00 7C [22:38:51]Write i2c OK [22:38:51]MH_I2C_Read... [22:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:51]Read from MH i2c: E2 [22:38:51]MH_I2C_Read... [22:38:51]Read from MH i2c: E2 17 00 [22:38:51]MH_I2C_Read... [22:38:51]Read from MH i2c: E2 17 00 CA 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C7 [22:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:38:51]wFMCommunicate OK [22:38:51]requested_item fd.num is exist - process it [22:38:51]SAM_PROTO_GetFieldsCounters [22:38:51]wFMCommunicate request_size=4 [22:38:51]MH_SAM_APDU [22:38:51]CAPDU: 80 13 00 00 [22:38:51]Write to MH i2c: E2 08 00 CB 38 80 13 00 00 00 00 00 00 7F [22:38:51]Write i2c OK [22:38:51]MH_I2C_Read... [22:38:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:51]Read from MH i2c: E2 [22:38:51]MH_I2C_Read... [22:38:51]Read from MH i2c: E2 62 00 [22:38:51]MH_I2C_Read... [22:38:51]Read from MH i2c: E2 62 00 CB 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 39 C2 00 00 0E 04 04 00 D1 01 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 40 [22:38: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 39 C2 00 00 0E 04 04 00 D1 01 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 [22:38:51]wFMCommunicate OK [22:38:51]SAM_PROTO_GetFieldsCounters done [22:38:51]requested_item shift.num is exist - process it [22:38:51]requested_item shift.opened is exist - process it [22:38:51]req_shift_opened [22:38:51]FM_GetShiftState [22:38:51]SAM_PROTO_GetShiftState [22:38:51]wFMCommunicate request_size=4 [22:38:51]MH_SAM_APDU [22:38:51]CAPDU: 80 13 01 00 [22:38:51]Write to MH i2c: E2 08 00 CC 38 80 13 01 00 00 00 00 00 81 [22:38:51]Write i2c OK [22:38:51]MH_I2C_Read... [22:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:51]Read from MH i2c: E2 [22:38:51]MH_I2C_Read... [22:38:51]Read from MH i2c: E2 0E 00 [22:38:51]MH_I2C_Read... [22:38:51]Read from MH i2c: E2 0E 00 CC 38 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 C6 [22:38:51]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:38:51]wFMCommunicate OK [22:38:51]SAM_PROTO_GetShiftState done [22:38:51]FM_GetShiftState done [22:38:51]req_shift_opened done [22:38:51]requested_item shift.open_date is exist - process it [22:38:51]req_shift_open_date [22:38:51]req_shift_open_date done [22:38:51]produce_requested_data done [22:38:51]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49721,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:38:51]process_action_free close_receipt [22:38:51]json_value_free [22:38:51]json_value_free done [22:38:51]process_json_proto returns [22:38:51]Send response to host [22:38:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49721,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:38:51]free response buf [22:38:51]execute_script done [22:38:51]execute_script returns [22:38:51]free content buf [22:38:51]Sock 7.Close socket [22:38:51]Sock 7.Thread stoped [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:09]int [22:39:09]Write to MH i2c: 01 00 00 CD 38 05 [22:39:09]*** FLAG_PRN_KEY set [22:39:09]Write i2c OK [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: 01 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: 01 07 00 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: 01 07 00 CD 38 00 08 00 00 00 FF 0F 22 [22:39:09]state=0 [22:39:09]Key pressed [22:39:09]Feed [22:39:09]Write to MH i2c: D8 00 00 CE 38 DD [22:39:09]Write i2c OK [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: D8 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: D8 01 00 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: D8 01 00 CE 38 00 DE [22:39:09]int [22:39:09]Write to MH i2c: 01 00 00 CF 38 07 [22:39:09]Write i2c OK [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: 01 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: 01 07 00 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: 01 07 00 CF 38 00 48 00 00 00 3C 00 92 [22:39:09]state=2 [22:39:09]Key pressed [22:39:09]int [22:39:09]Write to MH i2c: 01 00 00 D0 38 08 [22:39:09]*** FLAG_PRN_KEY reset [22:39:09]Write i2c OK [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: 01 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: 01 07 00 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: 01 07 00 D0 38 00 00 00 00 00 F6 0F 14 [22:39:09]state=2 [22:39:09]Stop feed [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:42:58]accept exits with 9 [22:42:58]New connection [22:42:58]New thread 3066944868 created [22:42:58]Thread 3066801508 joined [22:42:58]Waiting for new connection... [22:42:58] Sock 9.Parse request [22:42:58]Sock 9.Check first char [22:42:58]Sock 9.First char is OK [22:42:58]request: POST /json_proto HTTP/1.0 [22:42:58]Method: POST [22:42:58]URL: /json_proto [22:42:58]Method is POST - this is cgi request [22:42:58]url: /json_proto [22:42:58]query_string will be loaded in cgi processing [22:42:58]execute_cgi json_proto POST (null) [22:42:58]execute_cgi path=json_proto method=POST [22:42:58]POST find Content-Length [22:42:58]Host: 172.17.46.196:8080 [22:42:58]Content-Length: 684 [22:42:58]Content-Type: application/json [22:42:58] [22:42:58]POST finish read [22:42:58]Found Content-Length = 684 [22:42:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189904", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:58]execute_script... [22: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 : (3)189904", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:58]POST & json_proto [22:42:58]process_json_proto [22:42:58]json parsed OK: [22:42:58]protocol is kg_v1.0 [22:42:58]action value=close_receipt [22:42:58]process_action close_receipt [22:42:58]cmd_close_receipt [22:42:58]MH_GetDate [22:42:58]Write to MH i2c: F0 00 00 D1 38 F8 [22:42:58]Write i2c OK [22:42:58]MH_I2C_Read... [22:42:58]Read from MH i2c: F0 [22:42:58]MH_I2C_Read... [22:42:58]Read from MH i2c: F0 09 00 [22:42:58]MH_I2C_Read... [22:42:58]Read from MH i2c: F0 09 00 D1 38 00 78 27 C1 66 07 E8 5D 66 79 [22:42:58]GetLastDocTimeStamp 1723934333 [22:42:58]current date 1723934584 [22:42:58]FM_GetShiftState [22:42:58]SAM_PROTO_GetShiftState [22:42:58]wFMCommunicate request_size=4 [22:42:58]MH_SAM_APDU [22:42:58]CAPDU: 80 13 01 00 [22:42:58]Write to MH i2c: E2 08 00 D2 38 80 13 01 00 00 00 00 00 87 [22:42:58]Write i2c OK [22:42:58]MH_I2C_Read... [22:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:58]Read from MH i2c: E2 [22:42:58]MH_I2C_Read... [22:42:58]Read from MH i2c: E2 0E 00 [22:42:58]MH_I2C_Read... [22:42:58]Read from MH i2c: E2 0E 00 D2 38 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 CC [22:42:58]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:42:58]wFMCommunicate OK [22:42:58]SAM_PROTO_GetShiftState done [22:42:58]FM_GetShiftState done [22:42:58]opened in 1723853354 [22:42:58]opened+sec_in_day 1723939754 [22:42:58]quantity*price = 6500 [22:42:58]sum+1 = 6501 [22:42:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 159 17.08.2024 22:43 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49722 ФПД: 181136817697012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T224304&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49722&fm=181136817697012&tin=02508201610067®Number=0000000000092546&sum=6500 0 [22:43:00]StoreToDocumentArchive [22:43:00]shift 465 fd 49722 [22:43:00]save to /storage/0465/doc_00049722 [22:43:00]save last doc name /storage/0465/doc_00049722 to /storage/kkm_last_doc_name [22:43:00]save OK [22:43:00]Clear old archive folders... [22:43:00]ProcessDocumentItem done err = 0, tmpTLVsize=295 [22:43:00]tlvbuf is 018D9880 [22:43:00]SAM_PROTO_ClearQueue [22:43:00]wFMCommunicate request_size=4 [22:43:00]MH_SAM_APDU [22:43:00]CAPDU: 80 09 00 00 [22:43:00]Write to MH i2c: E2 08 00 DF 38 80 09 00 00 00 00 00 00 89 [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 DF 38 00 90 00 8B [22:43:00]RAPDU: 90 00 [22:43:00]wFMCommunicate OK [22:43:00]SAM_PROTO_ClearQueue done [22:43:00]KKMCreateOFDPacket [22:43:00]OFDProtocolAddRootSTLVToBuf [22:43:00]FM_MakeSignedData [22:43:00]FM_MakeSignedData [22:43:00]SAM_PROTO_SignData [22:43:00]wFMCommunicate request_size=4 [22:43:00]MH_SAM_APDU [22:43:00]CAPDU: 80 0D 01 02 [22:43:00]Write to MH i2c: E2 08 00 E0 38 80 0D 01 02 00 00 00 00 91 [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 E0 38 00 90 00 8C [22:43:00]RAPDU: 90 00 [22:43:00]wFMCommunicate OK [22:43:00]wFMCommunicate request_size=255 [22:43:00]MH_SAM_APDU [22:43:00]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 78 27 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [22:43:00]Write to MH i2c: E2 02 01 E1 38 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 78 27 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 E9 [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 E1 38 00 90 00 8D [22:43:00]RAPDU: 90 00 [22:43:00]wFMCommunicate OK [22:43:00]wFMCommunicate request_size=54 [22:43:00]MH_SAM_APDU [22:43:00]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3A C2 00 00 35 04 06 00 A4 BE 33 AC B0 F4 [22:43:00]Write to MH i2c: E2 39 00 E2 38 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3A C2 00 00 35 04 06 00 A4 BE 33 AC B0 F4 00 00 95 [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 03 00 E2 38 00 90 00 8E [22:43:00]RAPDU: 90 00 [22:43:00]wFMCommunicate OK [22:43:00]wFMCommunicate request_size=4 [22:43:00]MH_SAM_APDU [22:43:00]CAPDU: 80 0D 03 02 [22:43:00]Write to MH i2c: E2 08 00 E3 38 80 0D 03 02 00 00 00 00 96 [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 0B 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 0B 00 E3 38 00 0C 1E 2D 04 07 9B 91 7E 90 00 A3 [22:43:00]RAPDU: 0C 1E 2D 04 07 9B 91 7E 90 00 [22:43:00]wFMCommunicate OK [22:43:00]SAM_PROTO_SignData done [22:43:00]FM_MakeSignedData done [22:43:00]CreateOFDProtocolMessage [22:43:00]wFMCommunicate request_size=4 [22:43:00]MH_SAM_APDU [22:43:00]CAPDU: 80 11 00 00 [22:43:00]Write to MH i2c: E2 08 00 E4 38 80 11 00 00 00 00 00 00 96 [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 17 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 17 00 E4 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E1 [22:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:43:00]wFMCommunicate OK [22:43:00]CreateOFDProtocolMessage done [22:43:00]OFDSenderStorePacket 49722 [22:43:00]StoreOFDPacket docnum=49722 [22:43:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3B 01 00 00 B5 D4 33 01 A3 0F 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 78 27 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3A C2 00 00 35 04 06 00 A4 BE 33 AC B0 F4 0C 1E 2D 04 07 9B 91 7E [22:43:00]CheckFolder [22:43:00]dirname=/storage/ofd_packets [22:43:00]CheckFolder done [22:43:00]ProducePacketName [22:43:00]name=ofd_packets/00049722 [22:43:00]NVStorageSaveData ofd_packets/00049722 [22:43:00]File name is /storage/ofd_packets/00049722 [22:43:00]Write 345 bytes [22:43:00]NVStorageSaveData done [22:43:00]OFDSenderStorePacket done [22:43:00]KKMCreateOFDPacket done [22:43:00]NVStorageSaveData kkm_last_timestamp [22:43:00]File name is /storage/kkm_last_timestamp [22:43:00]Write 4 bytes [22:43:00]NVStorageSaveData done [22:43:00]ExternCall_PrintAddStr [22:43:00]wPrintStart [22:43:00]Write to MH i2c: 01 00 00 E5 38 1D [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: 01 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: 01 07 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: 01 07 00 E5 38 00 00 00 00 00 FF 0F 32 [22:43:00]RasterBufferAndPrint [22:43:00]line Счет N : (3)189904 [22:43:00]line ИНН: 02508201610067 [22:43:00]line Контрольно-Кассовый Чек [22:43:00]line ПРОДАЖА [22:43:00]line Товар: 5449000027450 [22:43:00]line Напиток FuzeTea чай манго,ром 0,5л [22:43:00]line 1.000 * 65.00 [22:43:00]line = 65.00 [22:43:00]line НДС 12% НСП 1% [22:43:00]line > о реализуемом товаре [22:43:00]line ИТОГО: 65.00 [22:43:00]line НСП 1% : 0.57 [22:43:00]line НДС 12% : 6.90 [22:43:00]line Наличными: 65.00 [22:43:00]line Безнал.: 0.00 [22:43:00]line Место: АЗС № 95 "Партнер Нефть" [22:43:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:43:00]line СНО: Общий режим [22:43:00]line Чек 159 17.08.2024 22:43 [22:43:00]line Смена: 465 ФФД: 1.0 [22:43:00]line ЗНМ: 0300000078 [22:43:00]line РНМ: 0000000000092546 [22:43:00]line Версия ККМ: 001 [22:43:00]line ФМ: 0000000000871800 [22:43:00]line ФД: 49722 [22:43:00]line ФПД: 181136817697012 [22:43:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T224304&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49722&fm=181136817697012&tin=02508201610067®Number=0000000000092546&sum=6500 [22:43:00]line 0 [22:43:00]OFD Sender: Processing packet 49722 [packets to send 21, broken 20] [22:43:00]ProducePacketName [22:43:00]name=ofd_packets/00049722 [22:43:00]OFD Sender: To server: pG, [22:43:00]CommunicateWithHost lk.salyk.kg:30040 [22:43:00]ConnectInit lk.salyk.kg [22:43:00]written 0, free lines is 4095 [22:43:01]Connected sock=10 [22:43:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3B 01 00 00 B5 D4 33 01 A3 0F 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 78 27 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3A C2 00 00 35 04 06 00 A4 BE 33 AC B0 F4 0C 1E 2D 04 07 9B 91 7E [22:43:01]Write to MH i2c: 01 00 00 0E 39 47 [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: 01 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: 01 07 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: 01 07 00 0E 39 00 00 00 00 00 CB 0C 25 [22:43:01]RasterBufferAndPrint [22:43:01]line [22:43:01]line [22:43:01]line [22:43:01]line [22:43:01]line [22:43:01]written 0, free lines is 3280 [22:43:01]MH_Cut [22:43:01]Write to MH i2c: D1 01 00 15 39 01 20 [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: D1 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: D1 01 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: D1 01 00 15 39 00 1F [22:43:01]Write to MH i2c: 01 00 00 16 39 4F [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D2 7B 47 00 84 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 31 38 30 30 10 04 04 00 3A C2 00 00 F4 03 04 00 B3 D2 C0 66 B6 04 01 00 00 FD 5B ED B2 CE 01 36 C1 [22:43:01]CommunicateWithHost err = 0 [22:43:01]CheckOFDResponse [22:43:01]1017 (14) - 77093643461234 [22:43:01]1041 (16) - 0000000000871800 [22:43:01]1040 (4) - 49722 [22:43:01]1012 (4) - 17.08.2024 16:41 [22:43:01]1206 (1) - 0 [22:43:01]OFD Sender: Remove packet 49722 [22:43:01]ProducePacketName [22:43:01]name=ofd_packets/00049722 [22:43:01]NVStorageDeleteData [22:43:01]OFD Sender: No OFD packet to send [22:43:02]*** Cut start [22:43:02]*** Purtial cut [22:43:02]*** CUTSNS_PIN = 0 [22:43:02]*** Stage 1: CUTSNS_PIN = 1 [22:43:04]Read from MH i2c: 01 [22:43:04]MH_I2C_Read... [22:43:04]*** Stop cut motor [22:43:04]*** Cut end [22:43:04]Read from MH i2c: 01 07 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: 01 07 00 16 39 00 00 00 00 00 FF 0F 64 [22:43:04]process_action close_receipt done [22:43:04]requested_data is exist [22:43:04]produce_requested_data [22:43:04]requested_item fm.sn is exist - process it [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 11 00 00 [22:43:04]Write to MH i2c: E2 08 00 17 39 80 11 00 00 00 00 00 00 CA [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 17 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 17 00 17 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 15 [22:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:43:04]wFMCommunicate OK [22:43:04]requested_item fd.num is exist - process it [22:43:04]SAM_PROTO_GetFieldsCounters [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 13 00 00 [22:43:04]Write to MH i2c: E2 08 00 18 39 80 13 00 00 00 00 00 00 CD [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 62 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 62 00 18 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3A C2 00 00 0E 04 04 00 D1 01 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 92 [22:43: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3A C2 00 00 0E 04 04 00 D1 01 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 [22:43:04]wFMCommunicate OK [22:43:04]SAM_PROTO_GetFieldsCounters done [22:43:04]requested_item shift.num is exist - process it [22:43:04]requested_item shift.opened is exist - process it [22:43:04]req_shift_opened [22:43:04]FM_GetShiftState [22:43:04]SAM_PROTO_GetShiftState [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 13 01 00 [22:43:04]Write to MH i2c: E2 08 00 19 39 80 13 01 00 00 00 00 00 CF [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 0E 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 0E 00 19 39 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 14 [22:43:04]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:43:04]wFMCommunicate OK [22:43:04]SAM_PROTO_GetShiftState done [22:43:04]FM_GetShiftState done [22:43:04]req_shift_opened done [22:43:04]requested_item shift.open_date is exist - process it [22:43:04]req_shift_open_date [22:43:04]req_shift_open_date done [22:43:04]produce_requested_data done [22:43:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49722,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:43:04]process_action_free close_receipt [22:43:04]json_value_free [22:43:04]json_value_free done [22:43:04]process_json_proto returns [22:43:04]Send response to host [22:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49722,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:43:04]free response buf [22:43:04]execute_script done [22:43:04]execute_script returns [22:43:04]free content buf [22:43:04]Sock 9.Close socket [22:43:04]Sock 9.Thread stoped [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:10]accept exits with 7 [22:44:10]New connection [22:44:10]New thread 3066801508 created [22:44:10]Thread 3066944868 joined [22:44:10]Waiting for new connection... [22:44:10] Sock 7.Parse request [22:44:10]Sock 7.Check first char [22:44:10]Sock 7.First char is OK [22:44:10]request: POST /json_proto HTTP/1.0 [22:44:10]Method: POST [22:44:10]URL: /json_proto [22:44:10]Method is POST - this is cgi request [22:44:10]url: /json_proto [22:44:10]query_string will be loaded in cgi processing [22:44:10]execute_cgi json_proto POST (null) [22:44:10]execute_cgi path=json_proto method=POST [22:44:10]POST find Content-Length [22:44:10]Host: 172.17.46.196:8080 [22:44:10]Content-Length: 709 [22:44:10]Content-Type: application/json [22:44:10] [22:44:10]POST finish read [22:44:10]Found Content-Length = 709 [22:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189905", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:10]execute_script... [22: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 : (3)189905", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:10]POST & json_proto [22:44:10]process_json_proto [22:44:10]json parsed OK: [22:44:10]protocol is kg_v1.0 [22:44:10]action value=close_receipt [22:44:10]process_action close_receipt [22:44:10]cmd_close_receipt [22:44:10]MH_GetDate [22:44:10]Write to MH i2c: F0 00 00 1A 39 42 [22:44:10]Write i2c OK [22:44:10]MH_I2C_Read... [22:44:10]Read from MH i2c: F0 [22:44:10]MH_I2C_Read... [22:44:10]Read from MH i2c: F0 09 00 [22:44:10]MH_I2C_Read... [22:44:10]Read from MH i2c: F0 09 00 1A 39 00 C0 27 C1 66 07 E8 5D 66 0B [22:44:10]GetLastDocTimeStamp 1723934584 [22:44:10]current date 1723934656 [22:44:10]FM_GetShiftState [22:44:10]SAM_PROTO_GetShiftState [22:44:10]wFMCommunicate request_size=4 [22:44:10]MH_SAM_APDU [22:44:10]CAPDU: 80 13 01 00 [22:44:10]Write to MH i2c: E2 08 00 1B 39 80 13 01 00 00 00 00 00 D1 [22:44:10]Write i2c OK [22:44:10]MH_I2C_Read... [22:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:10]Read from MH i2c: E2 [22:44:10]MH_I2C_Read... [22:44:10]Read from MH i2c: E2 0E 00 [22:44:10]MH_I2C_Read... [22:44:10]Read from MH i2c: E2 0E 00 1B 39 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 16 [22:44:10]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:44:10]wFMCommunicate OK [22:44:10]SAM_PROTO_GetShiftState done [22:44:10]FM_GetShiftState done [22:44:10]opened in 1723853354 [22:44:10]opened+sec_in_day 1723939754 [22:44:10]quantity*price = 8200 [22:44:10]sum+1 = 8201 [22:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 82.00 НСП 1% : 0.73 НДС 12% : 8.71 Наличными: 82.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 160 17.08.2024 22:44 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49723 ФПД: 77491062984468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T224416&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49723&fm=77491062984468&tin=02508201610067®Number=0000000000092546&sum=8200 0 [22:44:12]StoreToDocumentArchive [22:44:12]shift 465 fd 49723 [22:44:12]save to /storage/0465/doc_00049723 [22:44:12]save last doc name /storage/0465/doc_00049723 to /storage/kkm_last_doc_name [22:44:12]save OK [22:44:12]Clear old archive folders... [22:44:12]ProcessDocumentItem done err = 0, tmpTLVsize=304 [22:44:12]tlvbuf is 018E3F60 [22:44:12]SAM_PROTO_ClearQueue [22:44:12]wFMCommunicate request_size=4 [22:44:12]MH_SAM_APDU [22:44:12]CAPDU: 80 09 00 00 [22:44:12]Write to MH i2c: E2 08 00 28 39 80 09 00 00 00 00 00 00 D3 [22:44:12]Write i2c OK [22:44:12]MH_I2C_Read... [22:44:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:12]Read from MH i2c: E2 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 03 00 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 03 00 28 39 00 90 00 D5 [22:44:12]RAPDU: 90 00 [22:44:12]wFMCommunicate OK [22:44:12]SAM_PROTO_ClearQueue done [22:44:12]KKMCreateOFDPacket [22:44:12]OFDProtocolAddRootSTLVToBuf [22:44:12]FM_MakeSignedData [22:44:12]FM_MakeSignedData [22:44:12]SAM_PROTO_SignData [22:44:12]wFMCommunicate request_size=4 [22:44:12]MH_SAM_APDU [22:44:12]CAPDU: 80 0D 01 02 [22:44:12]Write to MH i2c: E2 08 00 29 39 80 0D 01 02 00 00 00 00 DB [22:44:12]Write i2c OK [22:44:12]MH_I2C_Read... [22:44:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:12]Read from MH i2c: E2 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 03 00 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 03 00 29 39 00 90 00 D6 [22:44:12]RAPDU: 90 00 [22:44:12]wFMCommunicate OK [22:44:12]wFMCommunicate request_size=255 [22:44:12]MH_SAM_APDU [22:44:12]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 C0 27 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 [22:44:12]Write to MH i2c: E2 02 01 2A 39 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 C0 27 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 00 00 A8 [22:44:12]Write i2c OK [22:44:12]MH_I2C_Read... [22:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:12]Read from MH i2c: E2 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 03 00 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 03 00 2A 39 00 90 00 D7 [22:44:12]RAPDU: 90 00 [22:44:12]wFMCommunicate OK [22:44:12]wFMCommunicate request_size=63 [22:44:12]MH_SAM_APDU [22:44:12]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C2 00 00 35 04 06 00 46 7A 4B 48 4F 14 [22:44:12]Write to MH i2c: E2 42 00 2B 39 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C2 00 00 35 04 06 00 46 7A 4B 48 4F 14 00 00 D4 [22:44:12]Write i2c OK [22:44:12]MH_I2C_Read... [22:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:12]Read from MH i2c: E2 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 03 00 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 03 00 2B 39 00 90 00 D8 [22:44:12]RAPDU: 90 00 [22:44:12]wFMCommunicate OK [22:44:12]wFMCommunicate request_size=4 [22:44:12]MH_SAM_APDU [22:44:12]CAPDU: 80 0D 03 02 [22:44:12]Write to MH i2c: E2 08 00 2C 39 80 0D 03 02 00 00 00 00 E0 [22:44:12]Write i2c OK [22:44:12]MH_I2C_Read... [22:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:12]Read from MH i2c: E2 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 0B 00 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 0B 00 2C 39 00 28 6E 50 8B 97 2B B4 D2 90 00 9A [22:44:12]RAPDU: 28 6E 50 8B 97 2B B4 D2 90 00 [22:44:12]wFMCommunicate OK [22:44:12]SAM_PROTO_SignData done [22:44:12]FM_MakeSignedData done [22:44:12]CreateOFDProtocolMessage [22:44:12]wFMCommunicate request_size=4 [22:44:12]MH_SAM_APDU [22:44:12]CAPDU: 80 11 00 00 [22:44:12]Write to MH i2c: E2 08 00 2D 39 80 11 00 00 00 00 00 00 E0 [22:44:12]Write i2c OK [22:44:12]MH_I2C_Read... [22:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:12]Read from MH i2c: E2 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 17 00 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 17 00 2D 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2B [22:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:44:12]wFMCommunicate OK [22:44:12]CreateOFDProtocolMessage done [22:44:12]OFDSenderStorePacket 49723 [22:44:12]StoreOFDPacket docnum=49723 [22:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 AF 95 3C 01 1F 9F 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 C0 27 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C2 00 00 35 04 06 00 46 7A 4B 48 4F 14 28 6E 50 8B 97 2B B4 D2 [22:44:12]CheckFolder [22:44:12]dirname=/storage/ofd_packets [22:44:12]CheckFolder done [22:44:12]ProducePacketName [22:44:12]name=ofd_packets/00049723 [22:44:12]NVStorageSaveData ofd_packets/00049723 [22:44:12]File name is /storage/ofd_packets/00049723 [22:44:12]Write 354 bytes [22:44:12]NVStorageSaveData done [22:44:12]OFDSenderStorePacket done [22:44:12]KKMCreateOFDPacket done [22:44:12]NVStorageSaveData kkm_last_timestamp [22:44:12]File name is /storage/kkm_last_timestamp [22:44:12]Write 4 bytes [22:44:12]NVStorageSaveData done [22:44:12]ExternCall_PrintAddStr [22:44:12]wPrintStart [22:44:12]Write to MH i2c: 01 00 00 2E 39 67 [22:44:12]Write i2c OK [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: 01 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: 01 07 00 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: 01 07 00 2E 39 00 00 00 00 00 FF 0F 7C [22:44:12]RasterBufferAndPrint [22:44:12]line Счет N : (3)189905 [22:44:12]line ИНН: 02508201610067 [22:44:12]line Контрольно-Кассовый Чек [22:44:12]line ПРОДАЖА [22:44:12]line Товар: 4700000480302 [22:44:12]line Напиток энерг Nitro манго-клуб 0.45 ж/б [22:44:12]line 1.000 * 82.00 [22:44:12]line = 82.00 [22:44:12]line НДС 12% НСП 1% [22:44:12]line > о реализуемом товаре [22:44:12]line ИТОГО: 82.00 [22:44:12]line НСП 1% : 0.73 [22:44:12]line НДС 12% : 8.71 [22:44:12]line Наличными: 82.00 [22:44:12]line Безнал.: 0.00 [22:44:12]line Место: АЗС № 95 "Партнер Нефть" [22:44:12]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:44:12]line СНО: Общий режим [22:44:12]line Чек 160 17.08.2024 22:44 [22:44:12]line Смена: 465 ФФД: 1.0 [22:44:12]line ЗНМ: 0300000078 [22:44:12]line РНМ: 0000000000092546 [22:44:12]line Версия ККМ: 001 [22:44:12]line ФМ: 0000000000871800 [22:44:12]line ФД: 49723 [22:44:12]line ФПД: 77491062984468 [22:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T224416&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49723&fm=77491062984468&tin=02508201610067®Number=0000000000092546&sum=8200 [22:44:12]line 0 [22:44:12]OFD Sender: Processing packet 49723 [packets to send 21, broken 20] [22:44:12]ProducePacketName [22:44:12]name=ofd_packets/00049723 [22:44:12]OFD Sender: To server: pG, [22:44:12]CommunicateWithHost lk.salyk.kg:30040 [22:44:12]ConnectInit lk.salyk.kg [22:44:12]written 0, free lines is 4095 [22:44:13]Connected sock=9 [22: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 31 38 30 30 44 01 00 00 AF 95 3C 01 1F 9F 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 C0 27 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C2 00 00 35 04 06 00 46 7A 4B 48 4F 14 28 6E 50 8B 97 2B B4 D2 [22:44:13]Write to MH i2c: 01 00 00 57 39 90 [22:44:13]Write i2c OK [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: 01 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: 01 07 00 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: 01 07 00 57 39 00 00 00 00 00 D2 0C 75 [22:44:13]RasterBufferAndPrint [22:44:13]line [22:44:13]line [22:44:13]line [22:44:13]line [22:44:13]line [22:44:13]written 0, free lines is 3289 [22:44:13]MH_Cut [22:44:13]Write to MH i2c: D1 01 00 5E 39 01 69 [22:44:13]Write i2c OK [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: D1 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: D1 01 00 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: D1 01 00 5E 39 00 68 [22:44:13]Write to MH i2c: 01 00 00 5F 39 98 [22:44:13]Write i2c OK [22:44:13]MH_I2C_Read... [22:44:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 94 3B 47 00 2D 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 31 38 30 30 10 04 04 00 3B C2 00 00 F4 03 04 00 FB D2 C0 66 B6 04 01 00 00 0D 64 7C E9 43 4B 94 C6 [22:44:13]CommunicateWithHost err = 0 [22:44:13]CheckOFDResponse [22:44:13]1017 (14) - 77093643461234 [22:44:13]1041 (16) - 0000000000871800 [22:44:13]1040 (4) - 49723 [22:44:13]1012 (4) - 17.08.2024 16:42 [22:44:13]1206 (1) - 0 [22:44:13]OFD Sender: Remove packet 49723 [22:44:13]ProducePacketName [22:44:13]name=ofd_packets/00049723 [22:44:13]NVStorageDeleteData [22:44:14]OFD Sender: No OFD packet to send [22:44:14]*** Cut start [22:44:14]*** Purtial cut [22:44:14]*** Stage 1: CUTSNS_PIN = 1 [22:44:14]Read from MH i2c: 01 [22:44:14]MH_I2C_Read... [22:44:14]*** Stop cut motor [22:44:14]*** Cut end [22:44:14]Read from MH i2c: 01 07 00 [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: 01 07 00 5F 39 00 00 00 00 00 FF 0F AD [22:44:14]process_action close_receipt done [22:44:14]requested_data is exist [22:44:14]produce_requested_data [22:44:14]requested_item fm.sn is exist - process it [22:44:14]wFMCommunicate request_size=4 [22:44:14]MH_SAM_APDU [22:44:14]CAPDU: 80 11 00 00 [22:44:14]Write to MH i2c: E2 08 00 60 39 80 11 00 00 00 00 00 00 13 [22:44:14]Write i2c OK [22:44:14]MH_I2C_Read... [22:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:14]Read from MH i2c: E2 [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: E2 17 00 [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: E2 17 00 60 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5E [22:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:44:14]wFMCommunicate OK [22:44:14]requested_item fd.num is exist - process it [22:44:14]SAM_PROTO_GetFieldsCounters [22:44:14]wFMCommunicate request_size=4 [22:44:14]MH_SAM_APDU [22:44:14]CAPDU: 80 13 00 00 [22:44:14]Write to MH i2c: E2 08 00 61 39 80 13 00 00 00 00 00 00 16 [22:44:14]Write i2c OK [22:44:14]MH_I2C_Read... [22:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:14]Read from MH i2c: E2 [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: E2 62 00 [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: E2 62 00 61 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3B C2 00 00 0E 04 04 00 D1 01 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 DF [22: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3B C2 00 00 0E 04 04 00 D1 01 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 [22:44:14]wFMCommunicate OK [22:44:14]SAM_PROTO_GetFieldsCounters done [22:44:14]requested_item shift.num is exist - process it [22:44:14]requested_item shift.opened is exist - process it [22:44:14]req_shift_opened [22:44:14]FM_GetShiftState [22:44:14]SAM_PROTO_GetShiftState [22:44:14]wFMCommunicate request_size=4 [22:44:14]MH_SAM_APDU [22:44:14]CAPDU: 80 13 01 00 [22:44:14]Write to MH i2c: E2 08 00 62 39 80 13 01 00 00 00 00 00 18 [22:44:14]Write i2c OK [22:44:14]MH_I2C_Read... [22:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:14]Read from MH i2c: E2 [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: E2 0E 00 [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: E2 0E 00 62 39 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 5D [22:44:14]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:44:14]wFMCommunicate OK [22:44:14]SAM_PROTO_GetShiftState done [22:44:14]FM_GetShiftState done [22:44:14]req_shift_opened done [22:44:14]requested_item shift.open_date is exist - process it [22:44:14]req_shift_open_date [22:44:14]req_shift_open_date done [22:44:14]produce_requested_data done [22:44:14]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49723,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:44:14]process_action_free close_receipt [22:44:14]json_value_free [22:44:14]json_value_free done [22:44:14]process_json_proto returns [22:44:14]Send response to host [22:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49723,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:44:14]free response buf [22:44:14]execute_script done [22:44:14]execute_script returns [22:44:14]free content buf [22:44:14]Sock 7.Close socket [22:44:14]Sock 7.Thread stoped [22:44:15]accept exits with 10 [22:44:15]New connection [22:44:15]New thread 3066944868 created [22:44:15]Thread 3066801508 joined [22:44:15]Waiting for new connection... [22:44:15] Sock 10.Parse request [22:44:15]Sock 10.Check first char [22:44:15]Sock 10.First char is OK [22:44:15]request: POST /json_proto HTTP/1.0 [22:44:15]Method: POST [22:44:15]URL: /json_proto [22:44:15]Method is POST - this is cgi request [22:44:15]url: /json_proto [22:44:15]query_string will be loaded in cgi processing [22:44:15]execute_cgi json_proto POST (null) [22:44:15]execute_cgi path=json_proto method=POST [22:44:15]POST find Content-Length [22:44:15]Host: 172.17.46.196:8080 [22:44:15]Content-Length: 756 [22:44:15]Content-Type: application/json [22:44:15] [22:44:15]POST finish read [22:44:16]Found Content-Length = 756 [22:44:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 45.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30061511", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:16]execute_script... [22:44: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)11326616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 45.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30061511", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:16]POST & json_proto [22:44:16]process_json_proto [22:44:16]json parsed OK: [22:44:16]protocol is kg_v1.0 [22:44:16]action value=close_receipt [22:44:16]process_action close_receipt [22:44:16]cmd_close_receipt [22:44:16]MH_GetDate [22:44:16]Write to MH i2c: F0 00 00 63 39 8B [22:44:16]Write i2c OK [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: F0 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: F0 09 00 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: F0 09 00 63 39 00 C5 27 C1 66 07 E8 5D 66 59 [22:44:16]GetLastDocTimeStamp 1723934656 [22:44:16]current date 1723934661 [22:44:16]FM_GetShiftState [22:44:16]SAM_PROTO_GetShiftState [22:44:16]wFMCommunicate request_size=4 [22:44:16]MH_SAM_APDU [22:44:16]CAPDU: 80 13 01 00 [22:44:16]Write to MH i2c: E2 08 00 64 39 80 13 01 00 00 00 00 00 1A [22:44:16]Write i2c OK [22:44:16]MH_I2C_Read... [22:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:16]Read from MH i2c: E2 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: E2 0E 00 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: E2 0E 00 64 39 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 5F [22:44:16]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:44:16]wFMCommunicate OK [22:44:16]SAM_PROTO_GetShiftState done [22:44:16]FM_GetShiftState done [22:44:16]opened in 1723853354 [22:44:16]opened+sec_in_day 1723939754 [22:44:16]quantity*price = 0 [22:44:16]sum+1 = 1 [22:44:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 161 17.08.2024 22:44 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30061511 ФМ: 0000000000871800 ФД: 49724 ФПД: 229280287541209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T224421&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49724&fm=229280287541209&tin=02508201610067®Number=0000000000092546&sum=0 [22:44:17]StoreToDocumentArchive [22:44:17]shift 465 fd 49724 [22:44:17]save to /storage/0465/doc_00049724 [22:44:17]save last doc name /storage/0465/doc_00049724 to /storage/kkm_last_doc_name [22:44:17]save OK [22:44:17]Clear old archive folders... [22:44:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:17]tlvbuf is 018E3E50 [22:44:17]SAM_PROTO_ClearQueue [22:44:17]wFMCommunicate request_size=4 [22:44:17]MH_SAM_APDU [22:44:17]CAPDU: 80 09 00 00 [22:44:17]Write to MH i2c: E2 08 00 71 39 80 09 00 00 00 00 00 00 1C [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:17]Read from MH i2c: E2 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 03 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 03 00 71 39 00 90 00 1E [22:44:17]RAPDU: 90 00 [22:44:17]wFMCommunicate OK [22:44:17]SAM_PROTO_ClearQueue done [22:44:17]KKMCreateOFDPacket [22:44:17]OFDProtocolAddRootSTLVToBuf [22:44:17]FM_MakeSignedData [22:44:17]FM_MakeSignedData [22:44:17]SAM_PROTO_SignData [22:44:17]wFMCommunicate request_size=4 [22:44:17]MH_SAM_APDU [22:44:17]CAPDU: 80 0D 01 02 [22:44:17]Write to MH i2c: E2 08 00 72 39 80 0D 01 02 00 00 00 00 24 [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:17]Read from MH i2c: E2 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 03 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 03 00 72 39 00 90 00 1F [22:44:17]RAPDU: 90 00 [22:44:17]wFMCommunicate OK [22:44:17]wFMCommunicate request_size=255 [22:44:17]MH_SAM_APDU [22:44:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C5 27 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C2 00 00 35 04 06 00 D0 [22:44:17]Write to MH i2c: E2 02 01 73 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C5 27 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C2 00 00 35 04 06 00 D0 00 00 F1 [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 [22:44:17]MH_I2C_Read... [22:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:17]Read from MH i2c: E2 03 00 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: E2 03 00 73 39 00 90 00 20 [22:44:18]RAPDU: 90 00 [22:44:18]wFMCommunicate OK [22:44:18]wFMCommunicate request_size=10 [22:44:18]MH_SAM_APDU [22:44:18]CAPDU: 80 0D 02 02 05 87 7A 17 C7 D9 [22:44:18]Write to MH i2c: E2 0D 00 74 39 80 0D 02 02 05 00 87 7A 17 C7 D9 00 00 E9 [22:44:18]Write i2c OK [22:44:18]MH_I2C_Read... [22:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:18]Read from MH i2c: E2 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: E2 03 00 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: E2 03 00 74 39 00 90 00 21 [22:44:18]RAPDU: 90 00 [22:44:18]wFMCommunicate OK [22:44:18]wFMCommunicate request_size=4 [22:44:18]MH_SAM_APDU [22:44:18]CAPDU: 80 0D 03 02 [22:44:18]Write to MH i2c: E2 08 00 75 39 80 0D 03 02 00 00 00 00 29 [22:44:18]Write i2c OK [22:44:18]MH_I2C_Read... [22:44:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:18]Read from MH i2c: E2 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: E2 0B 00 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: E2 0B 00 75 39 00 86 FC A8 CC 32 C7 E8 4D 90 00 4E [22:44:18]RAPDU: 86 FC A8 CC 32 C7 E8 4D 90 00 [22:44:18]wFMCommunicate OK [22:44:18]SAM_PROTO_SignData done [22:44:18]FM_MakeSignedData done [22:44:18]CreateOFDProtocolMessage [22:44:18]wFMCommunicate request_size=4 [22:44:18]MH_SAM_APDU [22:44:18]CAPDU: 80 11 00 00 [22:44:18]Write to MH i2c: E2 08 00 76 39 80 11 00 00 00 00 00 00 29 [22:44:18]Write i2c OK [22:44:18]MH_I2C_Read... [22:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:18]Read from MH i2c: E2 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: E2 17 00 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: E2 17 00 76 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 74 [22:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:44:18]wFMCommunicate OK [22:44:18]CreateOFDProtocolMessage done [22:44:18]OFDSenderStorePacket 49724 [22:44:18]StoreOFDPacket docnum=49724 [22:44:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 A0 18 07 01 0F 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 34 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C5 27 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C2 00 00 35 04 06 00 D0 87 7A 17 C7 D9 86 FC A8 CC 32 C7 E8 4D [22:44:18]CheckFolder [22:44:18]dirname=/storage/ofd_packets [22:44:18]CheckFolder done [22:44:18]ProducePacketName [22:44:18]name=ofd_packets/00049724 [22:44:18]NVStorageSaveData ofd_packets/00049724 [22:44:18]File name is /storage/ofd_packets/00049724 [22:44:18]Write 301 bytes [22:44:18]NVStorageSaveData done [22:44:18]OFDSenderStorePacket done [22:44:18]KKMCreateOFDPacket done [22:44:18]NVStorageSaveData kkm_last_timestamp [22:44:18]File name is /storage/kkm_last_timestamp [22:44:18]Write 4 bytes [22:44:18]NVStorageSaveData done [22:44:18]ExternCall_PrintAddStr [22:44:18]wPrintStart [22:44:18]Write to MH i2c: 01 00 00 77 39 B0 [22:44:18]Write i2c OK [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: 01 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: 01 07 00 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: 01 07 00 77 39 00 00 00 00 00 FF 0F C5 [22:44:18]RasterBufferAndPrint [22:44:18]line Счет N : (1)11326616 [22:44:18]line ИНН: 02508201610067 [22:44:18]line Контрольно-Кассовый Чек [22:44:18]line ПРОДАЖА [22:44:18]line ТРК (МРК, ГНК) : 22 [22:44:18]line Товар: 2710124130 [22:44:18]line Аи-92-К-4 [22:44:18]line 45.000 * 0.00 [22:44:18]line = 0.00 [22:44:18]line НДС 12% НСП 1% [22:44:18]line > о реализуемом товаре [22:44:18]line ИТОГО: 0.00 [22:44:18]line НСП 1% : 0.00 [22:44:18]line НДС 12% : 0.00 [22:44:18]line Наличными: 0.00 [22:44:18]line Безнал.: 0.00 [22:44:18]line Место: АЗС № 95 "Партнер Нефть" [22:44:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:44:18]line СНО: Общий режим [22:44:18]line Чек 161 17.08.2024 22:44 [22:44:18]line Смена: 465 ФФД: 1.0 [22:44:18]line ЗНМ: 0300000078 [22:44:18]line РНМ: 0000000000092546 [22:44:18]line Версия ККМ: 001 [22:44:18]line Талоны: ТК ГПНА Online [22:44:18]line 30061511 [22:44:18]line ФМ: 0000000000871800 [22:44:18]line ФД: 49724 [22:44:18]line ФПД: 229280287541209 [22:44:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T224421&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49724&fm=229280287541209&tin=02508201610067®Number=0000000000092546&sum=0 [22:44:18]written 0, free lines is 4095 [22:44:18]OFD Sender: Processing packet 49724 [packets to send 21, broken 20] [22:44:18]ProducePacketName [22:44:18]name=ofd_packets/00049724 [22:44:18]OFD Sender: To server: pG, [22:44:18]CommunicateWithHost lk.salyk.kg:30040 [22:44:18]ConnectInit lk.salyk.kg [22:44:18]Connected sock=9 [22:44:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 A0 18 07 01 0F 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 34 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C5 27 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C2 00 00 35 04 06 00 D0 87 7A 17 C7 D9 86 FC A8 CC 32 C7 E8 4D [22:44:18]Write to MH i2c: 01 00 00 A1 39 DA [22:44:18]Write i2c OK [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: 01 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: 01 07 00 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: 01 07 00 A1 39 00 00 00 00 00 DF 0C CC [22:44:18]RasterBufferAndPrint [22:44:18]line [22:44:18]line [22:44:18]line [22:44:18]line [22:44:18]line [22:44:18]written 0, free lines is 3310 [22:44:18]MH_Cut [22:44:18]Write to MH i2c: D1 01 00 A8 39 01 B3 [22:44:18]Write i2c OK [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: D1 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: D1 01 00 [22:44:18]MH_I2C_Read... [22:44:18]Read from MH i2c: D1 01 00 A8 39 00 B2 [22:44:18]Write to MH i2c: 01 00 00 A9 39 E2 [22:44:18]Write i2c OK [22:44:18]MH_I2C_Read... [22:44:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 90 2B 47 00 E3 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C2 00 00 F4 03 04 00 00 D3 C0 66 B6 04 01 00 00 D3 31 30 48 50 96 D8 4D [22:44:18]CommunicateWithHost err = 0 [22:44:18]CheckOFDResponse [22:44:18]1017 (14) - 77093643461234 [22:44:18]1041 (16) - 0000000000871800 [22:44:18]1040 (4) - 49724 [22:44:18]1012 (4) - 17.08.2024 16:42 [22:44:18]1206 (1) - 0 [22:44:18]OFD Sender: Remove packet 49724 [22:44:18]ProducePacketName [22:44:18]name=ofd_packets/00049724 [22:44:18]NVStorageDeleteData [22:44:19]OFD Sender: No OFD packet to send [22:44:19]*** Cut start [22:44:19]*** Purtial cut [22:44:19]*** CUTSNS_PIN = 0 [22:44:19]*** Stage 1: CUTSNS_PIN = 1 [22:44:21]Read from MH i2c: 01 [22:44:21]MH_I2C_Read... [22:44:21]*** Stop cut motor [22:44:21]*** Cut end [22:44:21]Read from MH i2c: 01 07 00 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: 01 07 00 A9 39 00 00 00 00 00 FF 0F F7 [22:44:21]process_action close_receipt done [22:44:21]requested_data is exist [22:44:21]produce_requested_data [22:44:21]requested_item fm.sn is exist - process it [22:44:21]wFMCommunicate request_size=4 [22:44:21]MH_SAM_APDU [22:44:21]CAPDU: 80 11 00 00 [22:44:21]Write to MH i2c: E2 08 00 AA 39 80 11 00 00 00 00 00 00 5D [22:44:21]Write i2c OK [22:44:21]MH_I2C_Read... [22:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:21]Read from MH i2c: E2 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 17 00 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 17 00 AA 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A8 [22:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:44:21]wFMCommunicate OK [22:44:21]requested_item fd.num is exist - process it [22:44:21]SAM_PROTO_GetFieldsCounters [22:44:21]wFMCommunicate request_size=4 [22:44:21]MH_SAM_APDU [22:44:21]CAPDU: 80 13 00 00 [22:44:21]Write to MH i2c: E2 08 00 AB 39 80 13 00 00 00 00 00 00 60 [22:44:21]Write i2c OK [22:44:21]MH_I2C_Read... [22:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:21]Read from MH i2c: E2 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 62 00 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 62 00 AB 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3C C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [22:44: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3C C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:21]wFMCommunicate OK [22:44:21]SAM_PROTO_GetFieldsCounters done [22:44:21]requested_item shift.num is exist - process it [22:44:21]requested_item shift.opened is exist - process it [22:44:21]req_shift_opened [22:44:21]FM_GetShiftState [22:44:21]SAM_PROTO_GetShiftState [22:44:21]wFMCommunicate request_size=4 [22:44:21]MH_SAM_APDU [22:44:21]CAPDU: 80 13 01 00 [22:44:21]Write to MH i2c: E2 08 00 AC 39 80 13 01 00 00 00 00 00 62 [22:44:21]Write i2c OK [22:44:21]MH_I2C_Read... [22:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:21]Read from MH i2c: E2 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 0E 00 [22:44:21]MH_I2C_Read... [22:44:21]Read from MH i2c: E2 0E 00 AC 39 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 A7 [22:44:21]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:44:21]wFMCommunicate OK [22:44:21]SAM_PROTO_GetShiftState done [22:44:21]FM_GetShiftState done [22:44:21]req_shift_opened done [22:44:21]requested_item shift.open_date is exist - process it [22:44:21]req_shift_open_date [22:44:21]req_shift_open_date done [22:44:21]produce_requested_data done [22:44:21]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49724,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:44:21]process_action_free close_receipt [22:44:21]json_value_free [22:44:21]json_value_free done [22:44:21]process_json_proto returns [22:44:21]Send response to host [22:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49724,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:44:21]free response buf [22:44:21]execute_script done [22:44:21]execute_script returns [22:44:21]free content buf [22:44:21]Sock 10.Close socket [22:44:21]Sock 10.Thread stoped [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:33]int [22:46:33]Write to MH i2c: 01 00 00 AD 39 E6 [22:46:33]*** FLAG_PRN_KEY set [22:46:33]Write i2c OK [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 07 00 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 07 00 AD 39 00 08 00 00 00 FF 0F 03 [22:46:33]state=0 [22:46:33]Key pressed [22:46:33]Feed [22:46:33]Write to MH i2c: D8 00 00 AE 39 BE [22:46:33]Write i2c OK [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: D8 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: D8 01 00 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: D8 01 00 AE 39 00 BF [22:46:33]int [22:46:33]Write to MH i2c: 01 00 00 AF 39 E8 [22:46:33]Write i2c OK [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 07 00 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 07 00 AF 39 00 48 00 00 00 3C 00 73 [22:46:33]state=2 [22:46:33]Key pressed [22:46:33]int [22:46:33]Write to MH i2c: 01 00 00 B0 39 E9 [22:46:33]*** FLAG_PRN_KEY reset [22:46:33]Write i2c OK [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 07 00 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 07 00 B0 39 00 00 00 00 00 F5 0F F4 [22:46:33]state=2 [22:46:33]Stop feed [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:26]accept exits with 7 [22:47:26]New connection [22:47:26]New thread 3066801508 created [22:47:26]Thread 3066944868 joined [22:47:26]Waiting for new connection... [22:47:26] Sock 7.Parse request [22:47:26]Sock 7.Check first char [22:47:26]Sock 7.First char is OK [22:47:26]request: POST /json_proto HTTP/1.0 [22:47:26]Method: POST [22:47:26]URL: /json_proto [22:47:26]Method is POST - this is cgi request [22:47:26]url: /json_proto [22:47:26]query_string will be loaded in cgi processing [22:47:26]execute_cgi json_proto POST (null) [22:47:26]execute_cgi path=json_proto method=POST [22:47:26]POST find Content-Length [22:47:26]Host: 172.17.46.196:8080 [22:47:26]Content-Length: 1110 [22:47:26]Content-Type: application/json [22:47:26] [22:47:26]POST finish read [22:47:26]Found Content-Length = 1110 [22:47:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189906", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:26]execute_script... [22:47:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189906", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:26]POST & json_proto [22:47:26]process_json_proto [22:47:26]json parsed OK: [22:47:26]protocol is kg_v1.0 [22:47:26]action value=close_receipt [22:47:26]process_action close_receipt [22:47:26]cmd_close_receipt [22:47:26]MH_GetDate [22:47:26]Write to MH i2c: F0 00 00 B1 39 D9 [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: F0 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: F0 09 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: F0 09 00 B1 39 00 83 28 C1 66 07 E8 5D 66 66 [22:47:26]GetLastDocTimeStamp 1723934661 [22:47:26]current date 1723934851 [22:47:26]FM_GetShiftState [22:47:26]SAM_PROTO_GetShiftState [22:47:26]wFMCommunicate request_size=4 [22:47:26]MH_SAM_APDU [22:47:26]CAPDU: 80 13 01 00 [22:47:26]Write to MH i2c: E2 08 00 B2 39 80 13 01 00 00 00 00 00 68 [22:47:26]Write i2c OK [22:47:26]MH_I2C_Read... [22:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:26]Read from MH i2c: E2 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 0E 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 0E 00 B2 39 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 AD [22:47:26]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:47:26]wFMCommunicate OK [22:47:26]SAM_PROTO_GetShiftState done [22:47:26]FM_GetShiftState done [22:47:26]opened in 1723853354 [22:47:26]opened+sec_in_day 1723939754 [22:47:26]quantity*price = 7000 [22:47:26]sum+1 = 7001 [22:47:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521254 Чай холодный MAXI черный со вкусом клубн 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.70 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 162 17.08.2024 22:47 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49725 ФПД: 21740281659984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T224731&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49725&fm=21740281659984&tin=02508201610067®Number=0000000000092546&sum=19500 0 [22:47:27]StoreToDocumentArchive [22:47:27]shift 465 fd 49725 [22:47:27]save to /storage/0465/doc_00049725 [22:47:27]save last doc name /storage/0465/doc_00049725 to /storage/kkm_last_doc_name [22:47:27]save OK [22:47:27]Clear old archive folders... [22:47:27]ProcessDocumentItem done err = 0, tmpTLVsize=454 [22:47:27]tlvbuf is 0185C460 [22:47:27]SAM_PROTO_ClearQueue [22:47:27]wFMCommunicate request_size=4 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 09 00 00 [22:47:27]Write to MH i2c: E2 08 00 BF 39 80 09 00 00 00 00 00 00 6A [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 BF 39 00 90 00 6C [22:47:27]RAPDU: 90 00 [22:47:27]wFMCommunicate OK [22:47:27]SAM_PROTO_ClearQueue done [22:47:27]KKMCreateOFDPacket [22:47:27]OFDProtocolAddRootSTLVToBuf [22:47:27]FM_MakeSignedData [22:47:27]FM_MakeSignedData [22:47:27]SAM_PROTO_SignData [22:47:27]wFMCommunicate request_size=4 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 0D 01 02 [22:47:27]Write to MH i2c: E2 08 00 C0 39 80 0D 01 02 00 00 00 00 72 [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 C0 39 00 90 00 6D [22:47:27]RAPDU: 90 00 [22:47:27]wFMCommunicate OK [22:47:27]wFMCommunicate request_size=255 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 0D 02 02 FA 03 00 C6 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 [22:47:27]Write to MH i2c: E2 02 01 C1 39 80 0D 02 02 FA 00 03 00 C6 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 00 00 0B [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 C1 39 00 90 00 6E [22:47:27]RAPDU: 90 00 [22:47:27]wFMCommunicate OK [22:47:27]wFMCommunicate request_size=213 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 0D 02 02 D0 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 83 28 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C2 00 00 35 04 06 00 13 C5 CD C4 02 50 [22:47:27]Write to MH i2c: E2 D8 00 C2 39 80 0D 02 02 D0 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 83 28 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C2 00 00 35 04 06 00 13 C5 CD C4 02 50 00 00 13 [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 C2 39 00 90 00 6F [22:47:27]RAPDU: 90 00 [22:47:27]wFMCommunicate OK [22:47:27]wFMCommunicate request_size=4 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 0D 03 02 [22:47:27]Write to MH i2c: E2 08 00 C3 39 80 0D 03 02 00 00 00 00 77 [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 0B 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 0B 00 C3 39 00 C0 8E 0E B6 9D 7E BC 3D 90 00 9E [22:47:27]RAPDU: C0 8E 0E B6 9D 7E BC 3D 90 00 [22:47:27]wFMCommunicate OK [22:47:27]SAM_PROTO_SignData done [22:47:27]FM_MakeSignedData done [22:47:27]CreateOFDProtocolMessage [22:47:27]wFMCommunicate request_size=4 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 11 00 00 [22:47:27]Write to MH i2c: E2 08 00 C4 39 80 11 00 00 00 00 00 00 77 [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 17 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 17 00 C4 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C2 [22:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:47:27]wFMCommunicate OK [22:47:27]CreateOFDProtocolMessage done [22:47:27]OFDSenderStorePacket 49725 [22:47:27]StoreOFDPacket docnum=49725 [22:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 DA 01 00 00 53 89 D2 01 20 F3 5A 03 01 00 03 00 C6 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 83 28 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C2 00 00 35 04 06 00 13 C5 CD C4 02 50 C0 8E 0E B6 9D 7E BC 3D [22:47:27]CheckFolder [22:47:27]dirname=/storage/ofd_packets [22:47:27]CheckFolder done [22:47:27]ProducePacketName [22:47:27]name=ofd_packets/00049725 [22:47:27]NVStorageSaveData ofd_packets/00049725 [22:47:28]File name is /storage/ofd_packets/00049725 [22:47:28]Write 504 bytes [22:47:28]NVStorageSaveData done [22:47:28]OFDSenderStorePacket done [22:47:28]KKMCreateOFDPacket done [22:47:28]NVStorageSaveData kkm_last_timestamp [22:47:28]File name is /storage/kkm_last_timestamp [22:47:28]Write 4 bytes [22:47:28]NVStorageSaveData done [22:47:28]ExternCall_PrintAddStr [22:47:28]wPrintStart [22:47:28]Write to MH i2c: 01 00 00 C5 39 FE [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 C5 39 00 00 00 00 00 FF 0F 13 [22:47:28]RasterBufferAndPrint [22:47:28]line Счет N : (3)189906 [22:47:28]line ИНН: 02508201610067 [22:47:28]line Контрольно-Кассовый Чек [22:47:28]line ПРОДАЖА [22:47:28]line Товар: 4870202521186 [22:47:28]line Чай холодный MAXI черный со вкусом клубн [22:47:28]line 1.000 * 70.00 [22:47:28]line = 70.00 [22:47:28]line НДС 12% НСП 1% [22:47:28]line > о реализуемом товаре [22:47:28]line Товар: 4870202521254 [22:47:28]line Чай холодный MAXI черный со вкусом клубн [22:47:28]line 1.000 * 125.00 [22:47:28]line = 125.00 [22:47:28]line НДС 12% НСП 1% [22:47:28]line > о реализуемом товаре [22:47:28]line ИТОГО: 195.00 [22:47:28]line НСП 1% : 1.73 [22:47:28]line НДС 12% : 20.70 [22:47:28]line Наличными: 195.00 [22:47:28]line Безнал.: 0.00 [22:47:28]line Место: АЗС № 95 "Партнер Нефть" [22:47:28]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:47:28]line СНО: Общий режим [22:47:28]line Чек 162 17.08.2024 22:47 [22:47:28]line Смена: 465 ФФД: 1.0 [22:47:28]line ЗНМ: 0300000078 [22:47:28]line РНМ: 0000000000092546 [22:47:28]line Версия ККМ: 001 [22:47:28]line ФМ: 0000000000871800 [22:47:28]line ФД: 49725 [22:47:28]line ФПД: 21740281659984 [22:47:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T224731&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49725&fm=21740281659984&tin=02508201610067®Number=0000000000092546&sum=19500 [22:47:28]line 0 [22:47:28]written 0, free lines is 4095 [22:47:28]OFD Sender: Processing packet 49725 [packets to send 21, broken 20] [22:47:28]ProducePacketName [22:47:28]name=ofd_packets/00049725 [22:47:28]OFD Sender: To server: pG, [22:47:28]CommunicateWithHost lk.salyk.kg:30040 [22:47:28]ConnectInit lk.salyk.kg [22:47:28]Connected sock=10 [22:47:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 DA 01 00 00 53 89 D2 01 20 F3 5A 03 01 00 03 00 C6 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 83 28 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C2 00 00 35 04 06 00 13 C5 CD C4 02 50 C0 8E 0E B6 9D 7E BC 3D [22:47:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 34 02 47 00 80 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 31 38 30 30 10 04 04 00 3D C2 00 00 F4 03 04 00 BE D3 C0 66 B6 04 01 00 00 CD E8 B8 A9 C8 E8 31 68 [22:47:28]CommunicateWithHost err = 0 [22:47:28]CheckOFDResponse [22:47:28]1017 (14) - 77093643461234 [22:47:28]1041 (16) - 0000000000871800 [22:47:28]1040 (4) - 49725 [22:47:28]1012 (4) - 17.08.2024 16:45 [22:47:28]1206 (1) - 0 [22:47:28]OFD Sender: Remove packet 49725 [22:47:28]ProducePacketName [22:47:28]name=ofd_packets/00049725 [22:47:28]NVStorageDeleteData [22:47:28]Write to MH i2c: 01 00 00 F5 39 2E [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 F5 39 00 00 00 00 00 94 0C D5 [22:47:28]RasterBufferAndPrint [22:47:28]line [22:47:28]line [22:47:28]line [22:47:28]line [22:47:28]line [22:47:28]written 0, free lines is 3226 [22:47:28]MH_Cut [22:47:28]Write to MH i2c: D1 01 00 FC 39 01 07 [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: D1 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: D1 01 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: D1 01 00 FC 39 00 06 [22:47:28]Write to MH i2c: 01 00 00 FD 39 36 [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:29]OFD Sender: No OFD packet to send [22:47:29]*** Cut start [22:47:29]*** Purtial cut [22:47:29]*** Stage 1: CUTSNS_PIN = 1 [22:47:29]Read from MH i2c: 01 [22:47:29]MH_I2C_Read... [22:47:29]*** Stop cut motor [22:47:29]*** Cut end [22:47:29]Read from MH i2c: 01 07 00 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: 01 07 00 FD 39 00 00 00 00 00 FF 0F 4B [22:47:29]process_action close_receipt done [22:47:29]requested_data is exist [22:47:29]produce_requested_data [22:47:29]requested_item fm.sn is exist - process it [22:47:29]wFMCommunicate request_size=4 [22:47:29]MH_SAM_APDU [22:47:29]CAPDU: 80 11 00 00 [22:47:29]Write to MH i2c: E2 08 00 FE 39 80 11 00 00 00 00 00 00 B1 [22:47:29]Write i2c OK [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 [22:47:29]MH_I2C_Read... [22:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:29]Read from MH i2c: E2 17 00 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 17 00 FE 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FC [22:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:47:29]wFMCommunicate OK [22:47:29]requested_item fd.num is exist - process it [22:47:29]SAM_PROTO_GetFieldsCounters [22:47:29]wFMCommunicate request_size=4 [22:47:29]MH_SAM_APDU [22:47:29]CAPDU: 80 13 00 00 [22:47:29]Write to MH i2c: E2 08 00 FF 39 80 13 00 00 00 00 00 00 B4 [22:47:29]Write i2c OK [22:47:29]MH_I2C_Read... [22:47:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:30]Read from MH i2c: E2 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: E2 62 00 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: E2 62 00 FF 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3D C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [22:47: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3D C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:30]wFMCommunicate OK [22:47:30]SAM_PROTO_GetFieldsCounters done [22:47:30]requested_item shift.num is exist - process it [22:47:30]requested_item shift.opened is exist - process it [22:47:30]req_shift_opened [22:47:30]FM_GetShiftState [22:47:30]SAM_PROTO_GetShiftState [22:47:30]wFMCommunicate request_size=4 [22:47:30]MH_SAM_APDU [22:47:30]CAPDU: 80 13 01 00 [22:47:30]Write to MH i2c: E2 08 00 00 3A 80 13 01 00 00 00 00 00 B7 [22:47:30]Write i2c OK [22:47:30]MH_I2C_Read... [22:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:30]Read from MH i2c: E2 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: E2 0E 00 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: E2 0E 00 00 3A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 FC [22:47:30]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:47:30]wFMCommunicate OK [22:47:30]SAM_PROTO_GetShiftState done [22:47:30]FM_GetShiftState done [22:47:30]req_shift_opened done [22:47:30]requested_item shift.open_date is exist - process it [22:47:30]req_shift_open_date [22:47:30]req_shift_open_date done [22:47:30]produce_requested_data done [22:47:30]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49725,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:47:30]process_action_free close_receipt [22:47:30]json_value_free [22:47:30]json_value_free done [22:47:30]process_json_proto returns [22:47:30]Send response to host [22:47:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49725,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:47:30]free response buf [22:47:30]execute_script done [22:47:30]execute_script returns [22:47:30]free content buf [22:47:30]Sock 7.Close socket [22:47:30]Sock 7.Thread stoped [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]accept exits with 9 [22:48:29]New connection [22:48:29]New thread 3066944868 created [22:48:29]Thread 3066801508 joined [22:48:29]Waiting for new connection... [22:48:29] Sock 9.Parse request [22:48:29]Sock 9.Check first char [22:48:29]Sock 9.First char is OK [22:48:29]request: POST /json_proto HTTP/1.0 [22:48:29]Method: POST [22:48:29]URL: /json_proto [22:48:29]Method is POST - this is cgi request [22:48:29]url: /json_proto [22:48:29]query_string will be loaded in cgi processing [22:48:29]execute_cgi json_proto POST (null) [22:48:29]execute_cgi path=json_proto method=POST [22:48:29]POST find Content-Length [22:48:29]Host: 172.17.46.196:8080 [22:48:29]Content-Length: 888 [22:48:29]Content-Type: application/json [22:48:29] [22:48:29]POST finish read [22:48:29]Found Content-Length = 888 [22:48:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189907", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:29]execute_script... [22:48:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189907", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:29]POST & json_proto [22:48:29]process_json_proto [22:48:29]json parsed OK: [22:48:29]protocol is kg_v1.0 [22:48:29]action value=close_receipt [22:48:29]process_action close_receipt [22:48:29]cmd_close_receipt [22:48:29]MH_GetDate [22:48:29]Write to MH i2c: F0 00 00 01 3A 2A [22:48:29]Write i2c OK [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: F0 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: F0 09 00 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: F0 09 00 01 3A 00 C2 28 C1 66 07 E8 5D 66 F6 [22:48:29]GetLastDocTimeStamp 1723934851 [22:48:29]current date 1723934914 [22:48:29]FM_GetShiftState [22:48:29]SAM_PROTO_GetShiftState [22:48:29]wFMCommunicate request_size=4 [22:48:29]MH_SAM_APDU [22:48:29]CAPDU: 80 13 01 00 [22:48:29]Write to MH i2c: E2 08 00 02 3A 80 13 01 00 00 00 00 00 B9 [22:48:29]Write i2c OK [22:48:29]MH_I2C_Read... [22:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:29]Read from MH i2c: E2 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 0E 00 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 0E 00 02 3A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 FE [22:48:29]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:48:29]wFMCommunicate OK [22:48:29]SAM_PROTO_GetShiftState done [22:48:29]FM_GetShiftState done [22:48:29]opened in 1723853354 [22:48:29]opened+sec_in_day 1723939754 [22:48:29]quantity*price = 11500 [22:48:29]sum+1 = 11501 [22:48:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 163 17.08.2024 22:48 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49726 ФПД: 125002215453893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T224834&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49726&fm=125002215453893&tin=02508201610067®Number=0000000000092546&sum=24500 0 [22:48:30]StoreToDocumentArchive [22:48:30]shift 465 fd 49726 [22:48:30]save to /storage/0465/doc_00049726 [22:48:30]save last doc name /storage/0465/doc_00049726 to /storage/kkm_last_doc_name [22:48:30]save OK [22:48:30]Clear old archive folders... [22:48:30]ProcessDocumentItem done err = 0, tmpTLVsize=386 [22:48:30]tlvbuf is 018E3920 [22:48:30]SAM_PROTO_ClearQueue [22:48:30]wFMCommunicate request_size=4 [22:48:30]MH_SAM_APDU [22:48:30]CAPDU: 80 09 00 00 [22:48:30]Write to MH i2c: E2 08 00 0F 3A 80 09 00 00 00 00 00 00 BB [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:30]Read from MH i2c: E2 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 0F 3A 00 90 00 BD [22:48:30]RAPDU: 90 00 [22:48:30]wFMCommunicate OK [22:48:30]SAM_PROTO_ClearQueue done [22:48:30]KKMCreateOFDPacket [22:48:30]OFDProtocolAddRootSTLVToBuf [22:48:30]FM_MakeSignedData [22:48:30]FM_MakeSignedData [22:48:30]SAM_PROTO_SignData [22:48:30]wFMCommunicate request_size=4 [22:48:30]MH_SAM_APDU [22:48:30]CAPDU: 80 0D 01 02 [22:48:30]Write to MH i2c: E2 08 00 10 3A 80 0D 01 02 00 00 00 00 C3 [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:30]Read from MH i2c: E2 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 10 3A 00 90 00 BE [22:48:30]RAPDU: 90 00 [22:48:30]wFMCommunicate OK [22:48:30]wFMCommunicate request_size=255 [22:48:30]MH_SAM_APDU [22:48:30]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [22:48:30]Write to MH i2c: E2 02 01 11 3A 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 F2 [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:30]Read from MH i2c: E2 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 11 3A 00 90 00 BF [22:48:30]RAPDU: 90 00 [22:48:30]wFMCommunicate OK [22:48:30]wFMCommunicate request_size=145 [22:48:30]MH_SAM_APDU [22:48:30]CAPDU: 80 0D 02 02 8C 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 C2 28 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C2 00 00 35 04 06 00 71 B0 58 A5 F4 C5 [22:48:30]Write to MH i2c: E2 94 00 12 3A 80 0D 02 02 8C 00 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 C2 28 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C2 00 00 35 04 06 00 71 B0 58 A5 F4 C5 00 00 86 [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:30]Read from MH i2c: E2 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 03 00 12 3A 00 90 00 C0 [22:48:30]RAPDU: 90 00 [22:48:30]wFMCommunicate OK [22:48:30]wFMCommunicate request_size=4 [22:48:30]MH_SAM_APDU [22:48:30]CAPDU: 80 0D 03 02 [22:48:30]Write to MH i2c: E2 08 00 13 3A 80 0D 03 02 00 00 00 00 C8 [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:30]Read from MH i2c: E2 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 0B 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 0B 00 13 3A 00 0D 23 AF A9 50 E7 69 59 90 00 4A [22:48:30]RAPDU: 0D 23 AF A9 50 E7 69 59 90 00 [22:48:30]wFMCommunicate OK [22:48:30]SAM_PROTO_SignData done [22:48:30]FM_MakeSignedData done [22:48:30]CreateOFDProtocolMessage [22:48:30]wFMCommunicate request_size=4 [22:48:30]MH_SAM_APDU [22:48:30]CAPDU: 80 11 00 00 [22:48:30]Write to MH i2c: E2 08 00 14 3A 80 11 00 00 00 00 00 00 C8 [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:30]Read from MH i2c: E2 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 17 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: E2 17 00 14 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 13 [22:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:48:30]wFMCommunicate OK [22:48:30]CreateOFDProtocolMessage done [22:48:30]OFDSenderStorePacket 49726 [22:48:30]StoreOFDPacket docnum=49726 [22:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 96 01 00 00 6A EE 8E 01 31 3F 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 C2 28 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C2 00 00 35 04 06 00 71 B0 58 A5 F4 C5 0D 23 AF A9 50 E7 69 59 [22:48:30]CheckFolder [22:48:30]dirname=/storage/ofd_packets [22:48:30]CheckFolder done [22:48:30]ProducePacketName [22:48:30]name=ofd_packets/00049726 [22:48:30]NVStorageSaveData ofd_packets/00049726 [22:48:30]File name is /storage/ofd_packets/00049726 [22:48:30]Write 436 bytes [22:48:30]NVStorageSaveData done [22:48:30]OFDSenderStorePacket done [22:48:30]KKMCreateOFDPacket done [22:48:30]NVStorageSaveData kkm_last_timestamp [22:48:30]File name is /storage/kkm_last_timestamp [22:48:30]Write 4 bytes [22:48:30]NVStorageSaveData done [22:48:30]ExternCall_PrintAddStr [22:48:30]wPrintStart [22:48:30]Write to MH i2c: 01 00 00 15 3A 4F [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: 01 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: 01 07 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: 01 07 00 15 3A 00 00 00 00 00 FF 0F 64 [22:48:30]RasterBufferAndPrint [22:48:30]line Счет N : (3)189907 [22:48:30]line ИНН: 02508201610067 [22:48:30]line Контрольно-Кассовый Чек [22:48:30]line ПРОДАЖА [22:48:30]line Товар: 2000036210013 [22:48:30]line Кофе Капучино (GABB TRADE) [22:48:30]line 1.000 * 115.00 [22:48:30]line = 115.00 [22:48:30]line НДС 12% НСП 1% [22:48:30]line > о реализуемом товаре [22:48:30]line Товар: 2000036230011 [22:48:30]line Кофе Латте XL(GABB TRADE) [22:48:30]line 1.000 * 130.00 [22:48:30]line = 130.00 [22:48:30]line НДС 12% НСП 1% [22:48:30]line > о реализуемом товаре [22:48:30]line ИТОГО: 245.00 [22:48:30]line НСП 1% : 2.17 [22:48:30]line НДС 12% : 26.01 [22:48:30]line Наличными: 245.00 [22:48:30]line Безнал.: 0.00 [22:48:30]line Место: АЗС № 95 "Партнер Нефть" [22:48:30]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:48:30]line СНО: Общий режим [22:48:30]line Чек 163 17.08.2024 22:48 [22:48:30]line Смена: 465 ФФД: 1.0 [22:48:30]line ЗНМ: 0300000078 [22:48:30]line РНМ: 0000000000092546 [22:48:30]line Версия ККМ: 001 [22:48:30]line ФМ: 0000000000871800 [22:48:30]line ФД: 49726 [22:48:30]line ФПД: 125002215453893 [22:48:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T224834&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49726&fm=125002215453893&tin=02508201610067®Number=0000000000092546&sum=24500 [22:48:30]line 0 [22:48:30]written 0, free lines is 4095 [22:48:30]OFD Sender: Processing packet 49726 [packets to send 21, broken 20] [22:48:30]ProducePacketName [22:48:30]name=ofd_packets/00049726 [22:48:30]OFD Sender: To server: pG, [22:48:30]CommunicateWithHost lk.salyk.kg:30040 [22:48:30]ConnectInit lk.salyk.kg [22:48:31]Connected sock=10 [22:48:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 96 01 00 00 6A EE 8E 01 31 3F 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 C2 28 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C2 00 00 35 04 06 00 71 B0 58 A5 F4 C5 0D 23 AF A9 50 E7 69 59 [22:48:31]Write to MH i2c: 01 00 00 43 3A 7D [22:48:31]Write i2c OK [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: 01 [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: 01 07 00 [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: 01 07 00 43 3A 00 00 00 00 00 A8 0C 38 [22:48:31]RasterBufferAndPrint [22:48:31]line [22:48:31]line [22:48:31]line [22:48:31]line [22:48:31]line [22:48:31]written 0, free lines is 3246 [22:48:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 95 E8 47 00 2E 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C2 00 00 F4 03 04 00 FD D3 C0 66 B6 04 01 00 00 06 09 C4 51 01 38 7F 46 [22:48:31]CommunicateWithHost err = 0 [22:48:31]CheckOFDResponse [22:48:31]1017 (14) - 77093643461234 [22:48:31]1041 (16) - 0000000000871800 [22:48:31]1040 (4) - 49726 [22:48:31]1012 (4) - 17.08.2024 16:46 [22:48:31]1206 (1) - 0 [22:48:31]OFD Sender: Remove packet 49726 [22:48:31]ProducePacketName [22:48:31]name=ofd_packets/00049726 [22:48:31]NVStorageDeleteData [22:48:31]MH_Cut [22:48:31]Write to MH i2c: D1 01 00 4A 3A 01 56 [22:48:31]Write i2c OK [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: D1 [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: D1 01 00 [22:48:31]MH_I2C_Read... [22:48:31]Read from MH i2c: D1 01 00 4A 3A 00 55 [22:48:31]Write to MH i2c: 01 00 00 4B 3A 85 [22:48:31]Write i2c OK [22:48:31]MH_I2C_Read... [22:48:31]OFD Sender: No OFD packet to send [22:48:32]*** Cut start [22:48:32]*** Purtial cut [22:48:32]*** CUTSNS_PIN = 0 [22:48:32]*** Stage 1: CUTSNS_PIN = 1 [22:48:34]Read from MH i2c: 01 [22:48:34]MH_I2C_Read... [22:48:34]*** Stop cut motor [22:48:34]*** Cut end [22:48:34]Read from MH i2c: 01 07 00 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: 01 07 00 4B 3A 00 00 00 00 00 FF 0F 9A [22:48:34]process_action close_receipt done [22:48:34]requested_data is exist [22:48:34]produce_requested_data [22:48:34]requested_item fm.sn is exist - process it [22:48:34]wFMCommunicate request_size=4 [22:48:34]MH_SAM_APDU [22:48:34]CAPDU: 80 11 00 00 [22:48:34]Write to MH i2c: E2 08 00 4C 3A 80 11 00 00 00 00 00 00 00 [22:48:34]Write i2c OK [22:48:34]MH_I2C_Read... [22:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:34]Read from MH i2c: E2 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: E2 17 00 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: E2 17 00 4C 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4B [22:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:48:34]wFMCommunicate OK [22:48:34]requested_item fd.num is exist - process it [22:48:34]SAM_PROTO_GetFieldsCounters [22:48:34]wFMCommunicate request_size=4 [22:48:34]MH_SAM_APDU [22:48:34]CAPDU: 80 13 00 00 [22:48:34]Write to MH i2c: E2 08 00 4D 3A 80 13 00 00 00 00 00 00 03 [22:48:34]Write i2c OK [22:48:34]MH_I2C_Read... [22:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:34]Read from MH i2c: E2 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: E2 62 00 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: E2 62 00 4D 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3E C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [22:48: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3E C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:34]wFMCommunicate OK [22:48:34]SAM_PROTO_GetFieldsCounters done [22:48:34]requested_item shift.num is exist - process it [22:48:34]requested_item shift.opened is exist - process it [22:48:34]req_shift_opened [22:48:34]FM_GetShiftState [22:48:34]SAM_PROTO_GetShiftState [22:48:34]wFMCommunicate request_size=4 [22:48:34]MH_SAM_APDU [22:48:34]CAPDU: 80 13 01 00 [22:48:34]Write to MH i2c: E2 08 00 4E 3A 80 13 01 00 00 00 00 00 05 [22:48:34]Write i2c OK [22:48:34]MH_I2C_Read... [22:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:34]Read from MH i2c: E2 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: E2 0E 00 [22:48:34]MH_I2C_Read... [22:48:34]Read from MH i2c: E2 0E 00 4E 3A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 4A [22:48:34]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:48:34]wFMCommunicate OK [22:48:34]SAM_PROTO_GetShiftState done [22:48:34]FM_GetShiftState done [22:48:34]req_shift_opened done [22:48:34]requested_item shift.open_date is exist - process it [22:48:34]req_shift_open_date [22:48:34]req_shift_open_date done [22:48:34]produce_requested_data done [22:48:34]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49726,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:48:34]process_action_free close_receipt [22:48:34]json_value_free [22:48:34]json_value_free done [22:48:34]process_json_proto returns [22:48:34]Send response to host [22:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49726,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:48:34]free response buf [22:48:34]execute_script done [22:48:34]execute_script returns [22:48:34]free content buf [22:48:34]Sock 9.Close socket [22:48:34]Sock 9.Thread stoped [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:16]accept exits with 7 [22:55:16]New connection [22:55:16]New thread 3066801508 created [22:55:16]Thread 3066944868 joined [22:55:16]Waiting for new connection... [22:55:16] Sock 7.Parse request [22:55:16]Sock 7.Check first char [22:55:16]Sock 7.First char is OK [22:55:16]request: POST /json_proto HTTP/1.0 [22:55:16]Method: POST [22:55:16]URL: /json_proto [22:55:16]Method is POST - this is cgi request [22:55:16]url: /json_proto [22:55:16]query_string will be loaded in cgi processing [22:55:16]execute_cgi json_proto POST (null) [22:55:16]execute_cgi path=json_proto method=POST [22:55:16]POST find Content-Length [22:55:16]Host: 172.17.46.196:8080 [22:55:16]Content-Length: 632 [22:55:16]Content-Type: application/json [22:55:16] [22:55:16]POST finish read [22:55:16]Found Content-Length = 632 [22:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189908", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:16]execute_script... [22:55:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189908", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:16]POST & json_proto [22:55:16]process_json_proto [22:55:16]json parsed OK: [22:55:16]protocol is kg_v1.0 [22:55:16]action value=close_receipt [22:55:16]process_action close_receipt [22:55:16]cmd_close_receipt [22:55:16]MH_GetDate [22:55:16]Write to MH i2c: F0 00 00 4F 3A 78 [22:55:16]Write i2c OK [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: F0 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: F0 09 00 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: F0 09 00 4F 3A 00 5A 2A C1 66 07 E8 5D 66 DE [22:55:16]GetLastDocTimeStamp 1723934914 [22:55:16]current date 1723935322 [22:55:16]FM_GetShiftState [22:55:16]SAM_PROTO_GetShiftState [22:55:16]wFMCommunicate request_size=4 [22:55:16]MH_SAM_APDU [22:55:16]CAPDU: 80 13 01 00 [22:55:16]Write to MH i2c: E2 08 00 50 3A 80 13 01 00 00 00 00 00 07 [22:55:16]Write i2c OK [22:55:16]MH_I2C_Read... [22:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:16]Read from MH i2c: E2 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: E2 0E 00 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: E2 0E 00 50 3A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 4C [22:55:16]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:55:16]wFMCommunicate OK [22:55:16]SAM_PROTO_GetShiftState done [22:55:16]FM_GetShiftState done [22:55:16]opened in 1723853354 [22:55:16]opened+sec_in_day 1723939754 [22:55:16]quantity*price = 4000 [22:55:16]sum+1 = 4001 [22:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 164 17.08.2024 22:55 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49727 ФПД: 2357108470928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T225522&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49727&fm=2357108470928&tin=02508201610067®Number=0000000000092546&sum=4000 0 [22:55:18]StoreToDocumentArchive [22:55:18]shift 465 fd 49727 [22:55:18]save to /storage/0465/doc_00049727 [22:55:18]save last doc name /storage/0465/doc_00049727 to /storage/kkm_last_doc_name [22:55:18]save OK [22:55:18]Clear old archive folders... [22:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=271 [22:55:18]tlvbuf is 018A3C10 [22:55:18]SAM_PROTO_ClearQueue [22:55:18]wFMCommunicate request_size=4 [22:55:18]MH_SAM_APDU [22:55:18]CAPDU: 80 09 00 00 [22:55:18]Write to MH i2c: E2 08 00 5D 3A 80 09 00 00 00 00 00 00 09 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:18]Read from MH i2c: E2 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 5D 3A 00 90 00 0B [22:55:18]RAPDU: 90 00 [22:55:18]wFMCommunicate OK [22:55:18]SAM_PROTO_ClearQueue done [22:55:18]KKMCreateOFDPacket [22:55:18]OFDProtocolAddRootSTLVToBuf [22:55:18]FM_MakeSignedData [22:55:18]FM_MakeSignedData [22:55:18]SAM_PROTO_SignData [22:55:18]wFMCommunicate request_size=4 [22:55:18]MH_SAM_APDU [22:55:18]CAPDU: 80 0D 01 02 [22:55:18]Write to MH i2c: E2 08 00 5E 3A 80 0D 01 02 00 00 00 00 11 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:18]Read from MH i2c: E2 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 5E 3A 00 90 00 0C [22:55:18]RAPDU: 90 00 [22:55:18]wFMCommunicate OK [22:55:18]wFMCommunicate request_size=255 [22:55:18]MH_SAM_APDU [22:55:18]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5A 2A C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [22:55:18]Write to MH i2c: E2 02 01 5F 3A 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5A 2A C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 18 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:18]Read from MH i2c: E2 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 5F 3A 00 90 00 0D [22:55:18]RAPDU: 90 00 [22:55:18]wFMCommunicate OK [22:55:18]wFMCommunicate request_size=30 [22:55:18]MH_SAM_APDU [22:55:18]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 3F C2 00 00 35 04 06 00 02 24 CE 9C F4 90 [22:55:18]Write to MH i2c: E2 21 00 60 3A 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 3F C2 00 00 35 04 06 00 02 24 CE 9C F4 90 00 00 1A [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:18]Read from MH i2c: E2 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 60 3A 00 90 00 0E [22:55:18]RAPDU: 90 00 [22:55:18]wFMCommunicate OK [22:55:18]wFMCommunicate request_size=4 [22:55:18]MH_SAM_APDU [22:55:18]CAPDU: 80 0D 03 02 [22:55:18]Write to MH i2c: E2 08 00 61 3A 80 0D 03 02 00 00 00 00 16 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:18]Read from MH i2c: E2 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 0B 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 0B 00 61 3A 00 8B C6 48 15 CC 9E 30 C9 90 00 28 [22:55:18]RAPDU: 8B C6 48 15 CC 9E 30 C9 90 00 [22:55:18]wFMCommunicate OK [22:55:18]SAM_PROTO_SignData done [22:55:18]FM_MakeSignedData done [22:55:18]CreateOFDProtocolMessage [22:55:18]wFMCommunicate request_size=4 [22:55:18]MH_SAM_APDU [22:55:18]CAPDU: 80 11 00 00 [22:55:18]Write to MH i2c: E2 08 00 62 3A 80 11 00 00 00 00 00 00 16 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:18]Read from MH i2c: E2 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 17 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 17 00 62 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 61 [22:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:55:18]wFMCommunicate OK [22:55:18]CreateOFDProtocolMessage done [22:55:18]OFDSenderStorePacket 49727 [22:55:18]StoreOFDPacket docnum=49727 [22:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 C0 3B 1B 01 AC 9A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5A 2A C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3F C2 00 00 35 04 06 00 02 24 CE 9C F4 90 8B C6 48 15 CC 9E 30 C9 [22:55:18]CheckFolder [22:55:18]dirname=/storage/ofd_packets [22:55:18]CheckFolder done [22:55:18]ProducePacketName [22:55:18]name=ofd_packets/00049727 [22:55:18]NVStorageSaveData ofd_packets/00049727 [22:55:18]File name is /storage/ofd_packets/00049727 [22:55:18]Write 321 bytes [22:55:18]NVStorageSaveData done [22:55:18]OFDSenderStorePacket done [22:55:18]KKMCreateOFDPacket done [22:55:18]NVStorageSaveData kkm_last_timestamp [22:55:18]File name is /storage/kkm_last_timestamp [22:55:18]Write 4 bytes [22:55:18]NVStorageSaveData done [22:55:18]ExternCall_PrintAddStr [22:55:18]wPrintStart [22:55:18]Write to MH i2c: 01 00 00 63 3A 9D [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: 01 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: 01 07 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: 01 07 00 63 3A 00 00 00 00 00 FF 0F B2 [22:55:18]RasterBufferAndPrint [22:55:18]line Счет N : (3)189908 [22:55:18]line ИНН: 02508201610067 [22:55:18]line Контрольно-Кассовый Чек [22:55:18]line ПРОДАЖА [22:55:18]line Товар: 4700000160211 [22:55:18]line Вода Легенда 0,5л [22:55:18]line 1.000 * 40.00 [22:55:18]line = 40.00 [22:55:18]line НДС 12% НСП 1% [22:55:18]line > о реализуемом товаре [22:55:18]line ИТОГО: 40.00 [22:55:18]line НСП 1% : 0.35 [22:55:18]line НДС 12% : 4.25 [22:55:18]line Наличными: 40.00 [22:55:18]line Безнал.: 0.00 [22:55:18]line Место: АЗС № 95 "Партнер Нефть" [22:55:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:55:18]line СНО: Общий режим [22:55:18]line Чек 164 17.08.2024 22:55 [22:55:18]line Смена: 465 ФФД: 1.0 [22:55:18]line ЗНМ: 0300000078 [22:55:18]line РНМ: 0000000000092546 [22:55:18]line Версия ККМ: 001 [22:55:18]line ФМ: 0000000000871800 [22:55:18]line ФД: 49727 [22:55:18]line ФПД: 2357108470928 [22:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T225522&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49727&fm=2357108470928&tin=02508201610067®Number=0000000000092546&sum=4000 [22:55:18]OFD Sender: Processing packet 49727 [packets to send 21, broken 20] [22:55:18]ProducePacketName [22:55:18]name=ofd_packets/00049727 [22:55:18]OFD Sender: To server: pG, [22:55:18]CommunicateWithHost lk.salyk.kg:30040 [22:55:18]ConnectInit lk.salyk.kg [22:55:18]line 0 [22:55:18]written 0, free lines is 4095 [22:55:19]Write to MH i2c: 01 00 00 8B 3A C5 [22:55:19]Write i2c OK [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: 01 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: 01 07 00 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: 01 07 00 8B 3A 00 00 00 00 00 E1 0C B9 [22:55:19]RasterBufferAndPrint [22:55:19]line [22:55:19]line [22:55:19]line [22:55:19]line [22:55:19]line [22:55:19]written 0, free lines is 3303 [22:55:19]MH_Cut [22:55:19]Write to MH i2c: D1 01 00 92 3A 01 9E [22:55:19]Write i2c OK [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: D1 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: D1 01 00 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: D1 01 00 92 3A 00 9D [22:55:19]Write to MH i2c: 01 00 00 93 3A CD [22:55:19]Write i2c OK [22:55:19]MH_I2C_Read... [22:55:19]Connected sock=11 [22:55:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 C0 3B 1B 01 AC 9A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5A 2A C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3F C2 00 00 35 04 06 00 02 24 CE 9C F4 90 8B C6 48 15 CC 9E 30 C9 [22:55:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 3B 8A 47 00 A4 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 31 38 30 30 10 04 04 00 3F C2 00 00 F4 03 04 00 95 D5 C0 66 B6 04 01 00 00 C5 A2 4E 20 31 10 29 16 [22:55:19]CommunicateWithHost err = 0 [22:55:19]CheckOFDResponse [22:55:19]1017 (14) - 77093643461234 [22:55:19]1041 (16) - 0000000000871800 [22:55:19]1040 (4) - 49727 [22:55:19]1012 (4) - 17.08.2024 16:53 [22:55:19]1206 (1) - 0 [22:55:19]OFD Sender: Remove packet 49727 [22:55:19]ProducePacketName [22:55:19]name=ofd_packets/00049727 [22:55:19]NVStorageDeleteData [22:55:20]*** Cut start [22:55:20]*** Purtial cut [22:55:20]*** Stage 1: CUTSNS_PIN = 1 [22:55:20]OFD Sender: No OFD packet to send [22:55:20]Read from MH i2c: 01 [22:55:20]MH_I2C_Read... [22:55:20]*** Stop cut motor [22:55:20]*** Cut end [22:55:20]Read from MH i2c: 01 07 00 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: 01 07 00 93 3A 00 00 00 00 00 FF 0F E2 [22:55:20]process_action close_receipt done [22:55:20]requested_data is exist [22:55:20]produce_requested_data [22:55:20]requested_item fm.sn is exist - process it [22:55:20]wFMCommunicate request_size=4 [22:55:20]MH_SAM_APDU [22:55:20]CAPDU: 80 11 00 00 [22:55:20]Write to MH i2c: E2 08 00 94 3A 80 11 00 00 00 00 00 00 48 [22:55:20]Write i2c OK [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: E2 [22:55:20]MH_I2C_Read... [22:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:20]Read from MH i2c: E2 17 00 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: E2 17 00 94 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 93 [22:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:55:20]wFMCommunicate OK [22:55:20]requested_item fd.num is exist - process it [22:55:20]SAM_PROTO_GetFieldsCounters [22:55:20]wFMCommunicate request_size=4 [22:55:20]MH_SAM_APDU [22:55:20]CAPDU: 80 13 00 00 [22:55:20]Write to MH i2c: E2 08 00 95 3A 80 13 00 00 00 00 00 00 4B [22:55:20]Write i2c OK [22:55:20]MH_I2C_Read... [22:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:20]Read from MH i2c: E2 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: E2 62 00 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: E2 62 00 95 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3F C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [22:55: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3F C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:20]wFMCommunicate OK [22:55:20]SAM_PROTO_GetFieldsCounters done [22:55:20]requested_item shift.num is exist - process it [22:55:20]requested_item shift.opened is exist - process it [22:55:20]req_shift_opened [22:55:20]FM_GetShiftState [22:55:20]SAM_PROTO_GetShiftState [22:55:20]wFMCommunicate request_size=4 [22:55:20]MH_SAM_APDU [22:55:20]CAPDU: 80 13 01 00 [22:55:20]Write to MH i2c: E2 08 00 96 3A 80 13 01 00 00 00 00 00 4D [22:55:20]Write i2c OK [22:55:20]MH_I2C_Read... [22:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:20]Read from MH i2c: E2 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: E2 0E 00 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: E2 0E 00 96 3A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 92 [22:55:20]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [22:55:20]wFMCommunicate OK [22:55:20]SAM_PROTO_GetShiftState done [22:55:20]FM_GetShiftState done [22:55:20]req_shift_opened done [22:55:20]requested_item shift.open_date is exist - process it [22:55:20]req_shift_open_date [22:55:20]req_shift_open_date done [22:55:20]produce_requested_data done [22:55:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49727,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [22:55:20]process_action_free close_receipt [22:55:20]json_value_free [22:55:20]json_value_free done [22:55:20]process_json_proto returns [22:55:20]Send response to host [22:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49727,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [22:55:20]free response buf [22:55:20]execute_script done [22:55:20]execute_script returns [22:55:20]free content buf [22:55:20]Sock 7.Close socket [22:55:20]Sock 7.Thread stoped [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:50]accept exits with 9 [23:04:50]New connection [23:04:50]New thread 3066944868 created [23:04:50]Thread 3066801508 joined [23:04:50]Waiting for new connection... [23:04:50] Sock 9.Parse request [23:04:50]Sock 9.Check first char [23:04:50]Sock 9.First char is OK [23:04:50]request: POST /json_proto HTTP/1.0 [23:04:50]Method: POST [23:04:50]URL: /json_proto [23:04:50]Method is POST - this is cgi request [23:04:50]url: /json_proto [23:04:50]query_string will be loaded in cgi processing [23:04:50]execute_cgi json_proto POST (null) [23:04:50]execute_cgi path=json_proto method=POST [23:04:50]POST find Content-Length [23:04:50]Host: 172.17.46.196:8080 [23:04:50]Content-Length: 621 [23:04:50]Content-Type: application/json [23:04:50] [23:04:50]POST finish read [23:04:50]Found Content-Length = 621 [23:04:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189909", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:50]execute_script... [23:04:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189909", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:50]POST & json_proto [23:04:50]process_json_proto [23:04:50]json parsed OK: [23:04:50]protocol is kg_v1.0 [23:04:50]action value=close_receipt [23:04:50]process_action close_receipt [23:04:50]cmd_close_receipt [23:04:50]MH_GetDate [23:04:50]Write to MH i2c: F0 00 00 97 3A C0 [23:04:50]Write i2c OK [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: F0 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: F0 09 00 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: F0 09 00 97 3A 00 98 2C C1 66 07 E8 5D 66 66 [23:04:50]GetLastDocTimeStamp 1723935322 [23:04:50]current date 1723935896 [23:04:50]FM_GetShiftState [23:04:50]SAM_PROTO_GetShiftState [23:04:50]wFMCommunicate request_size=4 [23:04:50]MH_SAM_APDU [23:04:50]CAPDU: 80 13 01 00 [23:04:50]Write to MH i2c: E2 08 00 98 3A 80 13 01 00 00 00 00 00 4F [23:04:50]Write i2c OK [23:04:50]MH_I2C_Read... [23:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:50]Read from MH i2c: E2 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: E2 0E 00 [23:04:50]MH_I2C_Read... [23:04:50]Read from MH i2c: E2 0E 00 98 3A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 94 [23:04:50]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:04:50]wFMCommunicate OK [23:04:50]SAM_PROTO_GetShiftState done [23:04:50]FM_GetShiftState done [23:04:50]opened in 1723853354 [23:04:50]opened+sec_in_day 1723939754 [23:04:50]quantity*price = 14000 [23:04:50]sum+1 = 14001 [23:04:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 165 17.08.2024 23:04 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49728 ФПД: 154011613459974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T230456&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49728&fm=154011613459974&tin=02508201610067®Number=0000000000092546&sum=14000 0 [23:04:51]StoreToDocumentArchive [23:04:51]shift 465 fd 49728 [23:04:51]save to /storage/0465/doc_00049728 [23:04:51]save last doc name /storage/0465/doc_00049728 to /storage/kkm_last_doc_name [23:04:51]save OK [23:04:51]Clear old archive folders... [23:04:51]ProcessDocumentItem done err = 0, tmpTLVsize=273 [23:04:51]tlvbuf is B6DA6780 [23:04:51]SAM_PROTO_ClearQueue [23:04:51]wFMCommunicate request_size=4 [23:04:51]MH_SAM_APDU [23:04:51]CAPDU: 80 09 00 00 [23:04:51]Write to MH i2c: E2 08 00 A5 3A 80 09 00 00 00 00 00 00 51 [23:04:51]Write i2c OK [23:04:51]MH_I2C_Read... [23:04:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 A5 3A 00 90 00 53 [23:04:52]RAPDU: 90 00 [23:04:52]wFMCommunicate OK [23:04:52]SAM_PROTO_ClearQueue done [23:04:52]KKMCreateOFDPacket [23:04:52]OFDProtocolAddRootSTLVToBuf [23:04:52]FM_MakeSignedData [23:04:52]FM_MakeSignedData [23:04:52]SAM_PROTO_SignData [23:04:52]wFMCommunicate request_size=4 [23:04:52]MH_SAM_APDU [23:04:52]CAPDU: 80 0D 01 02 [23:04:52]Write to MH i2c: E2 08 00 A6 3A 80 0D 01 02 00 00 00 00 59 [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 A6 3A 00 90 00 54 [23:04:52]RAPDU: 90 00 [23:04:52]wFMCommunicate OK [23:04:52]wFMCommunicate request_size=255 [23:04:52]MH_SAM_APDU [23:04:52]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 98 2C C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [23:04:52]Write to MH i2c: E2 02 01 A7 3A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 98 2C C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 B1 [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 A7 3A 00 90 00 55 [23:04:52]RAPDU: 90 00 [23:04:52]wFMCommunicate OK [23:04:52]wFMCommunicate request_size=32 [23:04:52]MH_SAM_APDU [23:04:52]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 40 C2 00 00 35 04 06 00 8C 12 9F 82 F6 06 [23:04:52]Write to MH i2c: E2 23 00 A8 3A 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 40 C2 00 00 35 04 06 00 8C 12 9F 82 F6 06 00 00 6E [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 A8 3A 00 90 00 56 [23:04:52]RAPDU: 90 00 [23:04:52]wFMCommunicate OK [23:04:52]wFMCommunicate request_size=4 [23:04:52]MH_SAM_APDU [23:04:52]CAPDU: 80 0D 03 02 [23:04:52]Write to MH i2c: E2 08 00 A9 3A 80 0D 03 02 00 00 00 00 5E [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 0B 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 0B 00 A9 3A 00 89 BA A6 F4 06 5D 5F D8 90 00 D6 [23:04:52]RAPDU: 89 BA A6 F4 06 5D 5F D8 90 00 [23:04:52]wFMCommunicate OK [23:04:52]SAM_PROTO_SignData done [23:04:52]FM_MakeSignedData done [23:04:52]CreateOFDProtocolMessage [23:04:52]wFMCommunicate request_size=4 [23:04:52]MH_SAM_APDU [23:04:52]CAPDU: 80 11 00 00 [23:04:52]Write to MH i2c: E2 08 00 AA 3A 80 11 00 00 00 00 00 00 5E [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 17 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 17 00 AA 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A9 [23:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:04:52]wFMCommunicate OK [23:04:52]CreateOFDProtocolMessage done [23:04:52]OFDSenderStorePacket 49728 [23:04:52]StoreOFDPacket docnum=49728 [23:04:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 84 9D 1D 01 26 F7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 98 2C C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 40 C2 00 00 35 04 06 00 8C 12 9F 82 F6 06 89 BA A6 F4 06 5D 5F D8 [23:04:52]CheckFolder [23:04:52]dirname=/storage/ofd_packets [23:04:52]CheckFolder done [23:04:52]ProducePacketName [23:04:52]name=ofd_packets/00049728 [23:04:52]NVStorageSaveData ofd_packets/00049728 [23:04:52]File name is /storage/ofd_packets/00049728 [23:04:52]Write 323 bytes [23:04:52]NVStorageSaveData done [23:04:52]OFDSenderStorePacket done [23:04:52]KKMCreateOFDPacket done [23:04:52]NVStorageSaveData kkm_last_timestamp [23:04:52]File name is /storage/kkm_last_timestamp [23:04:52]Write 4 bytes [23:04:52]NVStorageSaveData done [23:04:52]ExternCall_PrintAddStr [23:04:52]wPrintStart [23:04:52]Write to MH i2c: 01 00 00 AB 3A E5 [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: 01 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: 01 07 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: 01 07 00 AB 3A 00 00 00 00 00 FF 0F FA [23:04:52]RasterBufferAndPrint [23:04:52]line Счет N : (3)189909 [23:04:52]line ИНН: 02508201610067 [23:04:52]line Контрольно-Кассовый Чек [23:04:52]line ПРОДАЖА [23:04:52]line Товар: 48743570 [23:04:52]line Сигареты Winston XStyle Blue [23:04:52]line 1.000 * 140.00 [23:04:52]line = 140.00 [23:04:52]line НДС 12% НСП 1% [23:04:52]line > о реализуемом товаре [23:04:52]line ИТОГО: 140.00 [23:04:52]line НСП 1% : 1.24 [23:04:52]line НДС 12% : 14.87 [23:04:52]line Наличными: 140.00 [23:04:52]line Безнал.: 0.00 [23:04:52]line Место: АЗС № 95 "Партнер Нефть" [23:04:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [23:04:52]line СНО: Общий режим [23:04:52]line Чек 165 17.08.2024 23:04 [23:04:52]line Смена: 465 ФФД: 1.0 [23:04:52]line ЗНМ: 0300000078 [23:04:52]line РНМ: 0000000000092546 [23:04:52]line Версия ККМ: 001 [23:04:52]line ФМ: 0000000000871800 [23:04:52]line ФД: 49728 [23:04:52]line ФПД: 154011613459974 [23:04:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T230456&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49728&fm=154011613459974&tin=02508201610067®Number=0000000000092546&sum=14000 [23:04:52]OFD Sender: Processing packet 49728 [packets to send 21, broken 20] [23:04:52]ProducePacketName [23:04:52]name=ofd_packets/00049728 [23:04:52]OFD Sender: To server: pG, [23:04:52]CommunicateWithHost lk.salyk.kg:30040 [23:04:52]ConnectInit lk.salyk.kg [23:04:52]line 0 [23:04:52]written 0, free lines is 4095 [23:04:53]Connected sock=7 [23:04:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 84 9D 1D 01 26 F7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 98 2C C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 40 C2 00 00 35 04 06 00 8C 12 9F 82 F6 06 89 BA A6 F4 06 5D 5F D8 [23:04:53]Write to MH i2c: 01 00 00 D3 3A 0D [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: 01 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: 01 07 00 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: 01 07 00 D3 3A 00 00 00 00 00 E4 0C 04 [23:04:53]RasterBufferAndPrint [23:04:53]line [23:04:53]line [23:04:53]line [23:04:53]line [23:04:53]line [23:04:53]written 0, free lines is 3306 [23:04:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E3 13 47 00 35 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 31 38 30 30 10 04 04 00 40 C2 00 00 F4 03 04 00 D3 D7 C0 66 B6 04 01 00 00 70 E9 F0 C0 EA DE 5F A8 [23:04:53]CommunicateWithHost err = 0 [23:04:53]CheckOFDResponse [23:04:53]1017 (14) - 77093643461234 [23:04:53]1041 (16) - 0000000000871800 [23:04:53]1040 (4) - 49728 [23:04:53]1012 (4) - 17.08.2024 17:03 [23:04:53]1206 (1) - 0 [23:04:53]OFD Sender: Remove packet 49728 [23:04:53]ProducePacketName [23:04:53]name=ofd_packets/00049728 [23:04:53]NVStorageDeleteData [23:04:53]MH_Cut [23:04:53]Write to MH i2c: D1 01 00 DA 3A 01 E6 [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: D1 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: D1 01 00 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: D1 01 00 DA 3A 00 E5 [23:04:53]Write to MH i2c: 01 00 00 DB 3A 15 [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:53]OFD Sender: No OFD packet to send [23:04:54]*** Cut start [23:04:54]*** Purtial cut [23:04:54]*** CUTSNS_PIN = 0 [23:04:54]*** Stage 1: CUTSNS_PIN = 1 [23:04:56]Read from MH i2c: 01 [23:04:56]MH_I2C_Read... [23:04:56]*** Stop cut motor [23:04:56]*** Cut end [23:04:56]Read from MH i2c: 01 07 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: 01 07 00 DB 3A 00 00 00 00 00 FF 0F 2A [23:04:56]process_action close_receipt done [23:04:56]requested_data is exist [23:04:56]produce_requested_data [23:04:56]requested_item fm.sn is exist - process it [23:04:56]wFMCommunicate request_size=4 [23:04:56]MH_SAM_APDU [23:04:56]CAPDU: 80 11 00 00 [23:04:56]Write to MH i2c: E2 08 00 DC 3A 80 11 00 00 00 00 00 00 90 [23:04:56]Write i2c OK [23:04:56]MH_I2C_Read... [23:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:56]Read from MH i2c: E2 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 17 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 17 00 DC 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DB [23:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:04:56]wFMCommunicate OK [23:04:56]requested_item fd.num is exist - process it [23:04:56]SAM_PROTO_GetFieldsCounters [23:04:56]wFMCommunicate request_size=4 [23:04:56]MH_SAM_APDU [23:04:56]CAPDU: 80 13 00 00 [23:04:56]Write to MH i2c: E2 08 00 DD 3A 80 13 00 00 00 00 00 00 93 [23:04:56]Write i2c OK [23:04:56]MH_I2C_Read... [23:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:56]Read from MH i2c: E2 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 62 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 62 00 DD 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 40 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [23:04: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 40 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:56]wFMCommunicate OK [23:04:56]SAM_PROTO_GetFieldsCounters done [23:04:56]requested_item shift.num is exist - process it [23:04:56]requested_item shift.opened is exist - process it [23:04:56]req_shift_opened [23:04:56]FM_GetShiftState [23:04:56]SAM_PROTO_GetShiftState [23:04:56]wFMCommunicate request_size=4 [23:04:56]MH_SAM_APDU [23:04:56]CAPDU: 80 13 01 00 [23:04:56]Write to MH i2c: E2 08 00 DE 3A 80 13 01 00 00 00 00 00 95 [23:04:56]Write i2c OK [23:04:56]MH_I2C_Read... [23:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:56]Read from MH i2c: E2 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 0E 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 0E 00 DE 3A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 DA [23:04:56]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:04:56]wFMCommunicate OK [23:04:56]SAM_PROTO_GetShiftState done [23:04:56]FM_GetShiftState done [23:04:56]req_shift_opened done [23:04:56]requested_item shift.open_date is exist - process it [23:04:56]req_shift_open_date [23:04:56]req_shift_open_date done [23:04:56]produce_requested_data done [23:04:56]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49728,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [23:04:56]process_action_free close_receipt [23:04:56]json_value_free [23:04:56]json_value_free done [23:04:56]process_json_proto returns [23:04:56]Send response to host [23:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49728,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [23:04:56]free response buf [23:04:56]execute_script done [23:04:56]execute_script returns [23:04:56]free content buf [23:04:56]Sock 9.Close socket [23:04:56]Sock 9.Thread stoped [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:12]int [23:19:12]Write to MH i2c: 01 00 00 DF 3A 19 [23:19:12]*** FLAG_PRN_KEY set [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: 01 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: 01 07 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: 01 07 00 DF 3A 00 08 00 00 00 FF 0F 36 [23:19:12]state=0 [23:19:12]Key pressed [23:19:12]Feed [23:19:12]Write to MH i2c: D8 00 00 E0 3A F1 [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: D8 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: D8 01 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: D8 01 00 E0 3A 00 F2 [23:19:12]int [23:19:12]Write to MH i2c: 01 00 00 E1 3A 1B [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: 01 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: 01 07 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: 01 07 00 E1 3A 00 48 00 00 00 3C 00 A6 [23:19:12]state=2 [23:19:12]Key pressed [23:19:12]int [23:19:12]Write to MH i2c: 01 00 00 E2 3A 1C [23:19:12]*** FLAG_PRN_KEY reset [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: 01 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: 01 07 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: 01 07 00 E2 3A 00 00 00 00 00 F5 0F 27 [23:19:12]state=2 [23:19:12]Stop feed [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:38]accept exits with 10 [23:26:38]New connection [23:26:38]New thread 3066801508 created [23:26:38]Thread 3066944868 joined [23:26:38]Waiting for new connection... [23:26:38] Sock 10.Parse request [23:26:38]Sock 10.Check first char [23:26:38]Sock 10.First char is OK [23:26:38]request: POST /json_proto HTTP/1.0 [23:26:38]Method: POST [23:26:38]URL: /json_proto [23:26:38]Method is POST - this is cgi request [23:26:38]url: /json_proto [23:26:38]query_string will be loaded in cgi processing [23:26:38]execute_cgi json_proto POST (null) [23:26:38]execute_cgi path=json_proto method=POST [23:26:38]POST find Content-Length [23:26:38]Host: 172.17.46.196:8080 [23:26:38]Content-Length: 1139 [23:26:38]Content-Type: application/json [23:26:38] [23:26:38]POST finish read [23:26:38]Found Content-Length = 1139 [23:26:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189910", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:38]execute_script... [23:26:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189910", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:38]POST & json_proto [23:26:38]process_json_proto [23:26:38]json parsed OK: [23:26:38]protocol is kg_v1.0 [23:26:38]action value=close_receipt [23:26:38]process_action close_receipt [23:26:38]cmd_close_receipt [23:26:38]MH_GetDate [23:26:38]Write to MH i2c: F0 00 00 E3 3A 0C [23:26:38]Write i2c OK [23:26:38]MH_I2C_Read... [23:26:38]Read from MH i2c: F0 [23:26:38]MH_I2C_Read... [23:26:38]Read from MH i2c: F0 09 00 [23:26:38]MH_I2C_Read... [23:26:38]Read from MH i2c: F0 09 00 E3 3A 00 B4 31 C1 66 07 E8 5D 66 D3 [23:26:38]GetLastDocTimeStamp 1723935896 [23:26:38]current date 1723937204 [23:26:38]FM_GetShiftState [23:26:38]SAM_PROTO_GetShiftState [23:26:38]wFMCommunicate request_size=4 [23:26:38]MH_SAM_APDU [23:26:38]CAPDU: 80 13 01 00 [23:26:38]Write to MH i2c: E2 08 00 E4 3A 80 13 01 00 00 00 00 00 9B [23:26:38]Write i2c OK [23:26:38]MH_I2C_Read... [23:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:38]Read from MH i2c: E2 [23:26:38]MH_I2C_Read... [23:26:38]Read from MH i2c: E2 0E 00 [23:26:38]MH_I2C_Read... [23:26:38]Read from MH i2c: E2 0E 00 E4 3A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 E0 [23:26:38]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:26:38]wFMCommunicate OK [23:26:38]SAM_PROTO_GetShiftState done [23:26:38]FM_GetShiftState done [23:26:38]opened in 1723853354 [23:26:38]opened+sec_in_day 1723939754 [23:26:38]quantity*price = 10000 [23:26:38]sum+1 = 10001 [23:26:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 235.00 НСП 1% : 2.07 НДС 12% : 24.96 Наличными: 0.00 Безнал.: 235.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 166 17.08.2024 23:26 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49729 ФПД: 94160168015874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T232644&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49729&fm=94160168015874&tin=02508201610067®Number=0000000000092546&sum=23500 0 [23:26:39]StoreToDocumentArchive [23:26:39]shift 465 fd 49729 [23:26:39]save to /storage/0465/doc_00049729 [23:26:39]save last doc name /storage/0465/doc_00049729 to /storage/kkm_last_doc_name [23:26:39]save OK [23:26:39]Clear old archive folders... [23:26:39]ProcessDocumentItem done err = 0, tmpTLVsize=404 [23:26:39]tlvbuf is B6DA63A0 [23:26:39]SAM_PROTO_ClearQueue [23:26:39]wFMCommunicate request_size=4 [23:26:39]MH_SAM_APDU [23:26:39]CAPDU: 80 09 00 00 [23:26:39]Write to MH i2c: E2 08 00 F1 3A 80 09 00 00 00 00 00 00 9D [23:26:39]Write i2c OK [23:26:39]MH_I2C_Read... [23:26:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:39]Read from MH i2c: E2 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: E2 03 00 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: E2 03 00 F1 3A 00 90 00 9F [23:26:39]RAPDU: 90 00 [23:26:39]wFMCommunicate OK [23:26:39]SAM_PROTO_ClearQueue done [23:26:39]KKMCreateOFDPacket [23:26:39]OFDProtocolAddRootSTLVToBuf [23:26:39]FM_MakeSignedData [23:26:39]FM_MakeSignedData [23:26:39]SAM_PROTO_SignData [23:26:39]wFMCommunicate request_size=4 [23:26:39]MH_SAM_APDU [23:26:39]CAPDU: 80 0D 01 02 [23:26:39]Write to MH i2c: E2 08 00 F2 3A 80 0D 01 02 00 00 00 00 A5 [23:26:39]Write i2c OK [23:26:39]MH_I2C_Read... [23:26:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:39]Read from MH i2c: E2 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: E2 03 00 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: E2 03 00 F2 3A 00 90 00 A0 [23:26:39]RAPDU: 90 00 [23:26:39]wFMCommunicate OK [23:26:39]wFMCommunicate request_size=255 [23:26:39]MH_SAM_APDU [23:26:39]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 [23:26:39]Write to MH i2c: E2 02 01 F3 3A 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 1C [23:26:39]Write i2c OK [23:26:39]MH_I2C_Read... [23:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:39]Read from MH i2c: E2 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: E2 03 00 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: E2 03 00 F3 3A 00 90 00 A1 [23:26:39]RAPDU: 90 00 [23:26:39]wFMCommunicate OK [23:26:39]wFMCommunicate request_size=163 [23:26:39]MH_SAM_APDU [23:26:39]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 B4 31 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C2 00 00 35 04 06 00 55 A3 5F 5D D8 02 [23:26:39]Write to MH i2c: E2 A6 00 F4 3A 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 B4 31 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C2 00 00 35 04 06 00 55 A3 5F 5D D8 02 00 00 EE [23:26:39]Write i2c OK [23:26:39]MH_I2C_Read... [23:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:39]Read from MH i2c: E2 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: E2 03 00 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: E2 03 00 F4 3A 00 90 00 A2 [23:26:39]RAPDU: 90 00 [23:26:39]wFMCommunicate OK [23:26:39]wFMCommunicate request_size=4 [23:26:39]MH_SAM_APDU [23:26:39]CAPDU: 80 0D 03 02 [23:26:39]Write to MH i2c: E2 08 00 F5 3A 80 0D 03 02 00 00 00 00 AA [23:26:39]Write i2c OK [23:26:39]MH_I2C_Read... [23:26:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:39]Read from MH i2c: E2 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: E2 0B 00 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: E2 0B 00 F5 3A 00 E1 AF D8 4B 6D A0 77 E0 90 00 C2 [23:26:39]RAPDU: E1 AF D8 4B 6D A0 77 E0 90 00 [23:26:39]wFMCommunicate OK [23:26:39]SAM_PROTO_SignData done [23:26:39]FM_MakeSignedData done [23:26:39]CreateOFDProtocolMessage [23:26:39]wFMCommunicate request_size=4 [23:26:39]MH_SAM_APDU [23:26:39]CAPDU: 80 11 00 00 [23:26:39]Write to MH i2c: E2 08 00 F6 3A 80 11 00 00 00 00 00 00 AA [23:26:39]Write i2c OK [23:26:39]MH_I2C_Read... [23:26:39]OFD Sender: No OFD packet to send [23:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:39]Read from MH i2c: E2 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: E2 17 00 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: E2 17 00 F6 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F5 [23:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:26:39]wFMCommunicate OK [23:26:39]CreateOFDProtocolMessage done [23:26:39]OFDSenderStorePacket 49729 [23:26:39]StoreOFDPacket docnum=49729 [23:26:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A8 01 00 00 AA 4C A0 01 54 EC 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 B4 31 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C2 00 00 35 04 06 00 55 A3 5F 5D D8 02 E1 AF D8 4B 6D A0 77 E0 [23:26:39]CheckFolder [23:26:39]dirname=/storage/ofd_packets [23:26:39]CheckFolder done [23:26:39]ProducePacketName [23:26:39]name=ofd_packets/00049729 [23:26:39]NVStorageSaveData ofd_packets/00049729 [23:26:39]File name is /storage/ofd_packets/00049729 [23:26:39]Write 454 bytes [23:26:39]NVStorageSaveData done [23:26:39]OFDSenderStorePacket done [23:26:39]KKMCreateOFDPacket done [23:26:39]NVStorageSaveData kkm_last_timestamp [23:26:39]File name is /storage/kkm_last_timestamp [23:26:39]Write 4 bytes [23:26:39]NVStorageSaveData done [23:26:39]ExternCall_PrintAddStr [23:26:39]wPrintStart [23:26:39]Write to MH i2c: 01 00 00 F7 3A 31 [23:26:39]Write i2c OK [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: 01 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: 01 07 00 [23:26:39]MH_I2C_Read... [23:26:39]Read from MH i2c: 01 07 00 F7 3A 00 00 00 00 00 FF 0F 46 [23:26:39]RasterBufferAndPrint [23:26:39]line Счет N : (3)189910 [23:26:39]line ИНН: 02508201610067 [23:26:40]line Контрольно-Кассовый Чек [23:26:40]line ПРОДАЖА [23:26:40]line Товар: 4870001571528 [23:26:40]line Вода ASU пит н.газ персик ПЭТ 1,0 л [23:26:40]line 1.000 * 100.00 [23:26:40]line = 100.00 [23:26:40]line НДС 12% НСП 1% [23:26:40]line > о реализуемом товаре [23:26:40]line Товар: 4860019001346 [23:26:40]line Вода Боржоми 0,5л ст [23:26:40]line 1.000 * 135.00 [23:26:40]line = 135.00 [23:26:40]line НДС 12% НСП 1% [23:26:40]line > о реализуемом товаре [23:26:40]line ИТОГО: 235.00 [23:26:40]line НСП 1% : 2.07 [23:26:40]line НДС 12% : 24.96 [23:26:40]line Наличными: 0.00 [23:26:40]line Безнал.: 235.00 [23:26:40]line Место: АЗС № 95 "Партнер Нефть" [23:26:40]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [23:26:40]line СНО: Общий режим [23:26:40]line Чек 166 17.08.2024 23:26 [23:26:40]line Смена: 465 ФФД: 1.0 [23:26:40]line ЗНМ: 0300000078 [23:26:40]line РНМ: 0000000000092546 [23:26:40]line Версия ККМ: 001 [23:26:40]line Платежная система: Бакай Банк [23:26:40]line ФМ: 0000000000871800 [23:26:40]line ФД: 49729 [23:26:40]line ФПД: 94160168015874 [23:26:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T232644&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49729&fm=94160168015874&tin=02508201610067®Number=0000000000092546&sum=23500 [23:26:40]OFD Sender: Processing packet 49729 [packets to send 21, broken 20] [23:26:40]ProducePacketName [23:26:40]name=ofd_packets/00049729 [23:26:40]OFD Sender: To server: pG, [23:26:40]CommunicateWithHost lk.salyk.kg:30040 [23:26:40]ConnectInit lk.salyk.kg [23:26:40]line 0 [23:26:40]written 0, free lines is 4095 [23:26:40]Connected sock=9 [23: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 31 38 30 30 A8 01 00 00 AA 4C A0 01 54 EC 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 5B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 B4 31 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C2 00 00 35 04 06 00 55 A3 5F 5D D8 02 E1 AF D8 4B 6D A0 77 E0 [23:26:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8D 90 47 00 4C 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 31 38 30 30 10 04 04 00 41 C2 00 00 F4 03 04 00 EF DC C0 66 B6 04 01 00 00 88 68 C4 A3 15 6C 64 A9 [23:26:40]CommunicateWithHost err = 0 [23:26:40]CheckOFDResponse [23:26:40]1017 (14) - 77093643461234 [23:26:40]1041 (16) - 0000000000871800 [23:26:40]1040 (4) - 49729 [23:26:40]1012 (4) - 17.08.2024 17:25 [23:26:40]1206 (1) - 0 [23:26:40]OFD Sender: Remove packet 49729 [23:26:40]ProducePacketName [23:26:40]name=ofd_packets/00049729 [23:26:40]NVStorageDeleteData [23:26:40]Write to MH i2c: 01 00 00 28 3B 63 [23:26:40]Write i2c OK [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: 01 [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: 01 07 00 [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: 01 07 00 28 3B 00 00 00 00 00 70 0C E6 [23:26:40]RasterBufferAndPrint [23:26:40]line [23:26:40]line [23:26:40]line [23:26:40]line [23:26:40]line [23:26:40]written 0, free lines is 3191 [23:26:40]MH_Cut [23:26:40]Write to MH i2c: D1 01 00 2F 3B 01 3C [23:26:40]Write i2c OK [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: D1 [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: D1 01 00 [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: D1 01 00 2F 3B 00 3B [23:26:40]Write to MH i2c: 01 00 00 30 3B 6B [23:26:40]Write i2c OK [23:26:40]MH_I2C_Read... [23:26:41]OFD Sender: No OFD packet to send [23:26:41]*** Cut start [23:26:41]*** Purtial cut [23:26:41]*** Stage 1: CUTSNS_PIN = 1 [23:26:42]Read from MH i2c: 01 [23:26:42]MH_I2C_Read... [23:26:42]*** Stop cut motor [23:26:42]*** Cut end [23:26:42]Read from MH i2c: 01 07 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 07 00 30 3B 00 00 00 00 00 FF 0F 80 [23:26:42]process_action close_receipt done [23:26:42]requested_data is exist [23:26:42]produce_requested_data [23:26:42]requested_item fm.sn is exist - process it [23:26:42]wFMCommunicate request_size=4 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 11 00 00 [23:26:42]Write to MH i2c: E2 08 00 31 3B 80 11 00 00 00 00 00 00 E6 [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 17 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 17 00 31 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 31 [23:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:26:42]wFMCommunicate OK [23:26:42]requested_item fd.num is exist - process it [23:26:42]SAM_PROTO_GetFieldsCounters [23:26:42]wFMCommunicate request_size=4 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 13 00 00 [23:26:42]Write to MH i2c: E2 08 00 32 3B 80 13 00 00 00 00 00 00 E9 [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 62 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 62 00 32 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 41 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [23:26: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 41 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:26:42]wFMCommunicate OK [23:26:42]SAM_PROTO_GetFieldsCounters done [23:26:42]requested_item shift.num is exist - process it [23:26:42]requested_item shift.opened is exist - process it [23:26:42]req_shift_opened [23:26:42]FM_GetShiftState [23:26:42]SAM_PROTO_GetShiftState [23:26:42]wFMCommunicate request_size=4 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 13 01 00 [23:26:42]Write to MH i2c: E2 08 00 33 3B 80 13 01 00 00 00 00 00 EB [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 0E 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 0E 00 33 3B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 30 [23:26:42]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:26:42]wFMCommunicate OK [23:26:42]SAM_PROTO_GetShiftState done [23:26:42]FM_GetShiftState done [23:26:42]req_shift_opened done [23:26:42]requested_item shift.open_date is exist - process it [23:26:42]req_shift_open_date [23:26:42]req_shift_open_date done [23:26:42]produce_requested_data done [23:26:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49729,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [23:26:42]process_action_free close_receipt [23:26:42]json_value_free [23:26:42]json_value_free done [23:26:42]process_json_proto returns [23:26:42]Send response to host [23:26:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49729,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [23:26:42]free response buf [23:26:42]execute_script done [23:26:42]execute_script returns [23:26:42]free content buf [23:26:42]Sock 10.Close socket [23:26:42]Sock 10.Thread stoped [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31: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:50]accept exits with 7 [23:31:50]New connection [23:31:50]New thread 3066944868 created [23:31:50]Thread 3066801508 joined [23:31:50]Waiting for new connection... [23:31:50] Sock 7.Parse request [23:31:50]Sock 7.Check first char [23:31:50]Sock 7.First char is OK [23:31:50]request: POST /json_proto HTTP/1.0 [23:31:50]Method: POST [23:31:50]URL: /json_proto [23:31:50]Method is POST - this is cgi request [23:31:50]url: /json_proto [23:31:50]query_string will be loaded in cgi processing [23:31:50]execute_cgi json_proto POST (null) [23:31:50]execute_cgi path=json_proto method=POST [23:31:50]POST find Content-Length [23:31:50]Host: 172.17.46.196:8080 [23:31:50]Content-Length: 826 [23:31:50]Content-Type: application/json [23:31:50] [23:31:50]POST finish read [23:31:50]Found Content-Length = 826 [23:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189911", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:50]execute_script... [23:31:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189911", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:50]POST & json_proto [23:31:50]process_json_proto [23:31:50]json parsed OK: [23:31:50]protocol is kg_v1.0 [23:31:50]action value=close_receipt [23:31:50]process_action close_receipt [23:31:50]cmd_close_receipt [23:31:50]MH_GetDate [23:31:50]Write to MH i2c: F0 00 00 34 3B 5E [23:31:50]Write i2c OK [23:31:50]MH_I2C_Read... [23:31:50]Read from MH i2c: F0 [23:31:50]MH_I2C_Read... [23:31:50]Read from MH i2c: F0 09 00 [23:31:50]MH_I2C_Read... [23:31:50]Read from MH i2c: F0 09 00 34 3B 00 EC 32 C1 66 07 E8 5D 66 5E [23:31:50]GetLastDocTimeStamp 1723937204 [23:31:50]current date 1723937516 [23:31:50]FM_GetShiftState [23:31:50]SAM_PROTO_GetShiftState [23:31:50]wFMCommunicate request_size=4 [23:31:50]MH_SAM_APDU [23:31:50]CAPDU: 80 13 01 00 [23:31:50]Write to MH i2c: E2 08 00 35 3B 80 13 01 00 00 00 00 00 ED [23:31:50]Write i2c OK [23:31:50]MH_I2C_Read... [23:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:50]Read from MH i2c: E2 [23:31:50]MH_I2C_Read... [23:31:50]Read from MH i2c: E2 0E 00 [23:31:50]MH_I2C_Read... [23:31:50]Read from MH i2c: E2 0E 00 35 3B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 32 [23:31:50]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:31:50]wFMCommunicate OK [23:31:50]SAM_PROTO_GetShiftState done [23:31:50]FM_GetShiftState done [23:31:50]opened in 1723853354 [23:31:50]opened+sec_in_day 1723939754 [23:31:50]quantity*price = 8500 [23:31:50]sum+1 = 8501 [23:31:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 167 17.08.2024 23:31 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49730 ФПД: 233018903369658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T233156&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49730&fm=233018903369658&tin=02508201610067®Number=0000000000092546&sum=8500 0 [23:31:51]StoreToDocumentArchive [23:31:51]shift 465 fd 49730 [23:31:51]save to /storage/0465/doc_00049730 [23:31:51]save last doc name /storage/0465/doc_00049730 to /storage/kkm_last_doc_name [23:31:51]save OK [23:31:51]Clear old archive folders... [23:31:51]ProcessDocumentItem done err = 0, tmpTLVsize=280 [23:31:51]tlvbuf is 0196FFF0 [23:31:51]SAM_PROTO_ClearQueue [23:31:51]wFMCommunicate request_size=4 [23:31:51]MH_SAM_APDU [23:31:51]CAPDU: 80 09 00 00 [23:31:51]Write to MH i2c: E2 08 00 42 3B 80 09 00 00 00 00 00 00 EF [23:31:51]Write i2c OK [23:31:51]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 42 3B 00 90 00 F1 [23:31:52]RAPDU: 90 00 [23:31:52]wFMCommunicate OK [23:31:52]SAM_PROTO_ClearQueue done [23:31:52]KKMCreateOFDPacket [23:31:52]OFDProtocolAddRootSTLVToBuf [23:31:52]FM_MakeSignedData [23:31:52]FM_MakeSignedData [23:31:52]SAM_PROTO_SignData [23:31:52]wFMCommunicate request_size=4 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 0D 01 02 [23:31:52]Write to MH i2c: E2 08 00 43 3B 80 0D 01 02 00 00 00 00 F7 [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 43 3B 00 90 00 F2 [23:31:52]RAPDU: 90 00 [23:31:52]wFMCommunicate OK [23:31:52]wFMCommunicate request_size=255 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 EC 32 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [23:31:52]Write to MH i2c: E2 02 01 44 3B 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 EC 32 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 C9 [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 44 3B 00 90 00 F3 [23:31:52]RAPDU: 90 00 [23:31:52]wFMCommunicate OK [23:31:52]wFMCommunicate request_size=39 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C2 00 00 35 04 06 00 D3 ED F0 F6 17 BA [23:31:52]Write to MH i2c: E2 2A 00 45 3B 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C2 00 00 35 04 06 00 D3 ED F0 F6 17 BA 00 00 28 [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 45 3B 00 90 00 F4 [23:31:52]RAPDU: 90 00 [23:31:52]wFMCommunicate OK [23:31:52]wFMCommunicate request_size=4 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 0D 03 02 [23:31:52]Write to MH i2c: E2 08 00 46 3B 80 0D 03 02 00 00 00 00 FC [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 0B 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 0B 00 46 3B 00 A8 7F 4C FC FD 6E B9 8B 90 00 1B [23:31:52]RAPDU: A8 7F 4C FC FD 6E B9 8B 90 00 [23:31:52]wFMCommunicate OK [23:31:52]SAM_PROTO_SignData done [23:31:52]FM_MakeSignedData done [23:31:52]CreateOFDProtocolMessage [23:31:52]wFMCommunicate request_size=4 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 11 00 00 [23:31:52]Write to MH i2c: E2 08 00 47 3B 80 11 00 00 00 00 00 00 FC [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 17 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 17 00 47 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 47 [23:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:31:52]wFMCommunicate OK [23:31:52]CreateOFDProtocolMessage done [23:31:52]OFDSenderStorePacket 49730 [23:31:52]StoreOFDPacket docnum=49730 [23:31:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 5D 24 24 01 AC AB 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 EC 32 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C2 00 00 35 04 06 00 D3 ED F0 F6 17 BA A8 7F 4C FC FD 6E B9 8B [23:31:52]CheckFolder [23:31:52]dirname=/storage/ofd_packets [23:31:52]CheckFolder done [23:31:52]ProducePacketName [23:31:52]name=ofd_packets/00049730 [23:31:52]NVStorageSaveData ofd_packets/00049730 [23:31:52]File name is /storage/ofd_packets/00049730 [23:31:52]Write 330 bytes [23:31:52]NVStorageSaveData done [23:31:52]OFDSenderStorePacket done [23:31:52]KKMCreateOFDPacket done [23:31:52]NVStorageSaveData kkm_last_timestamp [23:31:52]File name is /storage/kkm_last_timestamp [23:31:52]Write 4 bytes [23:31:52]NVStorageSaveData done [23:31:52]ExternCall_PrintAddStr [23:31:52]wPrintStart [23:31:52]Write to MH i2c: 01 00 00 48 3B 83 [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: 01 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: 01 07 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: 01 07 00 48 3B 00 00 00 00 00 FF 0F 98 [23:31:52]RasterBufferAndPrint [23:31:52]line Счет N : (3)189911 [23:31:52]line ИНН: 02508201610067 [23:31:52]line Контрольно-Кассовый Чек [23:31:52]line ПРОДАЖА [23:31:52]line Товар: 4870227273831 [23:31:52]line Лимонад Sunbel Мохито 1л [23:31:52]line 1.000 * 85.00 [23:31:52]line = 85.00 [23:31:52]line НДС 12% НСП 1% [23:31:52]line > о реализуемом товаре [23:31:52]line ИТОГО: 85.00 [23:31:52]line НСП 1% : 0.75 [23:31:52]line НДС 12% : 9.03 [23:31:52]line Наличными: 0.00 [23:31:52]line Безнал.: 85.00 [23:31:52]line Место: АЗС № 95 "Партнер Нефть" [23:31:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [23:31:52]line СНО: Общий режим [23:31:52]line Чек 167 17.08.2024 23:31 [23:31:52]line Смена: 465 ФФД: 1.0 [23:31:52]line ЗНМ: 0300000078 [23:31:52]line РНМ: 0000000000092546 [23:31:52]line Версия ККМ: 001 [23:31:52]line Платежная система: Бакай Банк [23:31:52]line ФМ: 0000000000871800 [23:31:52]line ФД: 49730 [23:31:52]line ФПД: 233018903369658 [23:31:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T233156&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49730&fm=233018903369658&tin=02508201610067®Number=0000000000092546&sum=8500 [23:31:52]OFD Sender: Processing packet 49730 [packets to send 21, broken 20] [23:31:52]ProducePacketName [23:31:52]name=ofd_packets/00049730 [23:31:52]OFD Sender: To server: pG, [23:31:52]CommunicateWithHost lk.salyk.kg:30040 [23:31:52]ConnectInit lk.salyk.kg [23:31:52]line 0 [23:31:52]written 0, free lines is 4095 [23:31:53]Connected sock=10 [23:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 5D 24 24 01 AC AB 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 EC 32 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C2 00 00 35 04 06 00 D3 ED F0 F6 17 BA A8 7F 4C FC FD 6E B9 8B [23:31:53]Write to MH i2c: 01 00 00 72 3B AD [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 07 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 07 00 72 3B 00 00 00 00 00 EB 0C AB [23:31:53]RasterBufferAndPrint [23:31:53]line [23:31:53]line [23:31:53]line [23:31:53]line [23:31:53]line [23:31:53]written 0, free lines is 3314 [23:31:53]MH_Cut [23:31:53]Write to MH i2c: D1 01 00 79 3B 01 86 [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: D1 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: D1 01 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: D1 01 00 79 3B 00 85 [23:31:53]Write to MH i2c: 01 00 00 7A 3B B5 [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 22 65 47 00 1A A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C2 00 00 F4 03 04 00 27 DE C0 66 B6 04 01 00 00 A2 8C 15 9E BE C2 4F C9 [23:31:53]CommunicateWithHost err = 0 [23:31:53]CheckOFDResponse [23:31:53]1017 (14) - 77093643461234 [23:31:53]1041 (16) - 0000000000871800 [23:31:53]1040 (4) - 49730 [23:31:53]1012 (4) - 17.08.2024 17:30 [23:31:53]1206 (1) - 0 [23:31:53]OFD Sender: Remove packet 49730 [23:31:53]ProducePacketName [23:31:53]name=ofd_packets/00049730 [23:31:53]NVStorageDeleteData [23:31:53]OFD Sender: No OFD packet to send [23:31:54]*** Cut start [23:31:54]*** Purtial cut [23:31:54]*** CUTSNS_PIN = 0 [23:31:54]*** Stage 1: CUTSNS_PIN = 1 [23:31:56]Read from MH i2c: 01 [23:31:56]MH_I2C_Read... [23:31:56]*** Stop cut motor [23:31:56]*** Cut end [23:31:56]Read from MH i2c: 01 07 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: 01 07 00 7A 3B 00 00 00 00 00 FF 0F CA [23:31:56]process_action close_receipt done [23:31:56]requested_data is exist [23:31:56]produce_requested_data [23:31:56]requested_item fm.sn is exist - process it [23:31:56]wFMCommunicate request_size=4 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 80 11 00 00 [23:31:56]Write to MH i2c: E2 08 00 7B 3B 80 11 00 00 00 00 00 00 30 [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:56]Read from MH i2c: E2 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 17 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 17 00 7B 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7B [23:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:31:56]wFMCommunicate OK [23:31:56]requested_item fd.num is exist - process it [23:31:56]SAM_PROTO_GetFieldsCounters [23:31:56]wFMCommunicate request_size=4 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 80 13 00 00 [23:31:56]Write to MH i2c: E2 08 00 7C 3B 80 13 00 00 00 00 00 00 33 [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:56]Read from MH i2c: E2 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 62 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 62 00 7C 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 42 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [23:31: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 42 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:56]wFMCommunicate OK [23:31:56]SAM_PROTO_GetFieldsCounters done [23:31:56]requested_item shift.num is exist - process it [23:31:56]requested_item shift.opened is exist - process it [23:31:56]req_shift_opened [23:31:56]FM_GetShiftState [23:31:56]SAM_PROTO_GetShiftState [23:31:56]wFMCommunicate request_size=4 [23:31:56]MH_SAM_APDU [23:31:56]CAPDU: 80 13 01 00 [23:31:56]Write to MH i2c: E2 08 00 7D 3B 80 13 01 00 00 00 00 00 35 [23:31:56]Write i2c OK [23:31:56]MH_I2C_Read... [23:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:56]Read from MH i2c: E2 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 0E 00 [23:31:56]MH_I2C_Read... [23:31:56]Read from MH i2c: E2 0E 00 7D 3B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 7A [23:31:56]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:31:56]wFMCommunicate OK [23:31:56]SAM_PROTO_GetShiftState done [23:31:56]FM_GetShiftState done [23:31:56]req_shift_opened done [23:31:56]requested_item shift.open_date is exist - process it [23:31:56]req_shift_open_date [23:31:56]req_shift_open_date done [23:31:56]produce_requested_data done [23:31:56]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49730,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [23:31:56]process_action_free close_receipt [23:31:56]json_value_free [23:31:56]json_value_free done [23:31:56]process_json_proto returns [23:31:56]Send response to host [23:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49730,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [23:31:56]free response buf [23:31:56]execute_script done [23:31:56]execute_script returns [23:31:56]free content buf [23:31:56]Sock 7.Close socket [23:31:56]Sock 7.Thread stoped [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:21]int [23:33:21]Write to MH i2c: 01 00 00 7E 3B B9 [23:33:21]*** FLAG_PRN_KEY set [23:33:21]Write i2c OK [23:33:21]MH_I2C_Read... [23:33:21]Read from MH i2c: 01 [23:33:21]MH_I2C_Read... [23:33:21]Read from MH i2c: 01 07 00 [23:33:21]MH_I2C_Read... [23:33:21]Read from MH i2c: 01 07 00 7E 3B 00 08 00 00 00 FF 0F D6 [23:33:21]state=0 [23:33:21]Key pressed [23:33:21]Feed [23:33:21]Write to MH i2c: D8 00 00 7F 3B 91 [23:33:21]Write i2c OK [23:33:21]MH_I2C_Read... [23:33:21]Read from MH i2c: D8 [23:33:21]MH_I2C_Read... [23:33:21]Read from MH i2c: D8 01 00 [23:33:21]MH_I2C_Read... [23:33:21]Read from MH i2c: D8 01 00 7F 3B 00 92 [23:33:21]int [23:33:21]Write to MH i2c: 01 00 00 80 3B BB [23:33:21]Write i2c OK [23:33:21]MH_I2C_Read... [23:33:21]Read from MH i2c: 01 [23:33:21]MH_I2C_Read... [23:33:21]Read from MH i2c: 01 07 00 [23:33:21]MH_I2C_Read... [23:33:21]Read from MH i2c: 01 07 00 80 3B 00 48 00 00 00 3C 00 46 [23:33:21]state=2 [23:33:21]Key pressed [23:33:21]int [23:33:21]Write to MH i2c: 01 00 00 81 3B BC [23:33:21]*** FLAG_PRN_KEY reset [23:33:21]Write i2c OK [23:33:21]MH_I2C_Read... [23:33:21]Read from MH i2c: 01 [23:33:21]MH_I2C_Read... [23:33:21]Read from MH i2c: 01 07 00 [23:33:21]MH_I2C_Read... [23:33:21]Read from MH i2c: 01 07 00 81 3B 00 00 00 00 00 F5 0F C7 [23:33:21]state=2 [23:33:21]Stop feed [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:28]accept exits with 9 [23:48:28]New connection [23:48:28]New thread 3066801508 created [23:48:28]Thread 3066944868 joined [23:48:28]Waiting for new connection... [23:48:28] Sock 9.Parse request [23:48:28]Sock 9.Check first char [23:48:28]Sock 9.First char is OK [23:48:28]request: POST /json_proto HTTP/1.0 [23:48:28]Method: POST [23:48:28]URL: /json_proto [23:48:28]Method is POST - this is cgi request [23:48:28]url: /json_proto [23:48:28]query_string will be loaded in cgi processing [23:48:28]execute_cgi json_proto POST (null) [23:48:28]execute_cgi path=json_proto method=POST [23:48:28]POST find Content-Length [23:48:28]Host: 172.17.46.196:8080 [23:48:28]Content-Length: 1313 [23:48:28]Content-Type: application/json [23:48:28] [23:48:28]POST finish read [23:48:28]Found Content-Length = 1313 [23:48:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189912", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:28]execute_script... [23: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 : (3)189912", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:28]POST & json_proto [23:48:28]process_json_proto [23:48:28]json parsed OK: [23:48:28]protocol is kg_v1.0 [23:48:28]action value=close_receipt [23:48:28]process_action close_receipt [23:48:28]cmd_close_receipt [23:48:28]MH_GetDate [23:48:28]Write to MH i2c: F0 00 00 82 3B AC [23:48:28]Write i2c OK [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: F0 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: F0 09 00 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: F0 09 00 82 3B 00 D2 36 C1 66 07 E8 5D 66 96 [23:48:28]GetLastDocTimeStamp 1723937516 [23:48:28]current date 1723938514 [23:48:28]FM_GetShiftState [23:48:28]SAM_PROTO_GetShiftState [23:48:28]wFMCommunicate request_size=4 [23:48:28]MH_SAM_APDU [23:48:28]CAPDU: 80 13 01 00 [23:48:28]Write to MH i2c: E2 08 00 83 3B 80 13 01 00 00 00 00 00 3B [23:48:28]Write i2c OK [23:48:28]MH_I2C_Read... [23:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:28]Read from MH i2c: E2 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 0E 00 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 0E 00 83 3B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 80 [23:48:28]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:48:28]wFMCommunicate OK [23:48:28]SAM_PROTO_GetShiftState done [23:48:28]FM_GetShiftState done [23:48:28]opened in 1723853354 [23:48:28]opened+sec_in_day 1723939754 [23:48:28]quantity*price = 3500 [23:48:28]sum+1 = 3501 [23:48:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.51 НДС 12% : 18.06 Наличными: 0.00 Безнал.: 170.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 168 17.08.2024 23:48 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49731 ФПД: 210719267666924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T234834&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49731&fm=210719267666924&tin=02508201610067®Number=0000000000092546&sum=17000 0 [23:48:29]StoreToDocumentArchive [23:48:29]shift 465 fd 49731 [23:48:29]save to /storage/0465/doc_00049731 [23:48:29]save last doc name /storage/0465/doc_00049731 to /storage/kkm_last_doc_name [23:48:29]save OK [23:48:29]Clear old archive folders... [23:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=494 [23:48:29]tlvbuf is 018984E0 [23:48:29]SAM_PROTO_ClearQueue [23:48:29]wFMCommunicate request_size=4 [23:48:29]MH_SAM_APDU [23:48:29]CAPDU: 80 09 00 00 [23:48:29]Write to MH i2c: E2 08 00 90 3B 80 09 00 00 00 00 00 00 3D [23:48:29]Write i2c OK [23:48:29]MH_I2C_Read... [23:48:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:29]Read from MH i2c: E2 [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: E2 03 00 [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: E2 03 00 90 3B 00 90 00 3F [23:48:29]RAPDU: 90 00 [23:48:29]wFMCommunicate OK [23:48:29]SAM_PROTO_ClearQueue done [23:48:29]KKMCreateOFDPacket [23:48:29]OFDProtocolAddRootSTLVToBuf [23:48:29]FM_MakeSignedData [23:48:29]FM_MakeSignedData [23:48:29]SAM_PROTO_SignData [23:48:29]wFMCommunicate request_size=4 [23:48:29]MH_SAM_APDU [23:48:29]CAPDU: 80 0D 01 02 [23:48:29]Write to MH i2c: E2 08 00 91 3B 80 0D 01 02 00 00 00 00 45 [23:48:29]Write i2c OK [23:48:29]MH_I2C_Read... [23:48:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:29]Read from MH i2c: E2 [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: E2 03 00 [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: E2 03 00 91 3B 00 90 00 40 [23:48:29]RAPDU: 90 00 [23:48:29]wFMCommunicate OK [23:48:29]wFMCommunicate request_size=255 [23:48:29]MH_SAM_APDU [23:48:29]CAPDU: 80 0D 02 02 FA 03 00 EE 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 [23:48:29]Write to MH i2c: E2 02 01 92 3B 80 0D 02 02 FA 00 03 00 EE 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 00 00 77 [23:48:29]OFD Sender: No OFD packet to send [23:48:29]Write i2c OK [23:48:29]MH_I2C_Read... [23:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:30]Read from MH i2c: E2 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 03 00 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 03 00 92 3B 00 90 00 41 [23:48:30]RAPDU: 90 00 [23:48:30]wFMCommunicate OK [23:48:30]wFMCommunicate request_size=253 [23:48:30]MH_SAM_APDU [23:48:30]CAPDU: 80 0D 02 02 F8 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 D2 36 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C2 00 00 35 04 06 00 BF A5 E7 18 BB EC [23:48:30]Write to MH i2c: E2 00 01 93 3B 80 0D 02 02 F8 00 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 D2 36 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C2 00 00 35 04 06 00 BF A5 E7 18 BB EC 00 00 C4 [23:48:30]Write i2c OK [23:48:30]MH_I2C_Read... [23:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:30]Read from MH i2c: E2 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 03 00 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 03 00 93 3B 00 90 00 42 [23:48:30]RAPDU: 90 00 [23:48:30]wFMCommunicate OK [23:48:30]wFMCommunicate request_size=4 [23:48:30]MH_SAM_APDU [23:48:30]CAPDU: 80 0D 03 02 [23:48:30]Write to MH i2c: E2 08 00 94 3B 80 0D 03 02 00 00 00 00 4A [23:48:30]Write i2c OK [23:48:30]MH_I2C_Read... [23:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:30]Read from MH i2c: E2 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 0B 00 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 0B 00 94 3B 00 B9 F5 D4 C1 66 F9 98 56 90 00 DB [23:48:30]RAPDU: B9 F5 D4 C1 66 F9 98 56 90 00 [23:48:30]wFMCommunicate OK [23:48:30]SAM_PROTO_SignData done [23:48:30]FM_MakeSignedData done [23:48:30]CreateOFDProtocolMessage [23:48:30]wFMCommunicate request_size=4 [23:48:30]MH_SAM_APDU [23:48:30]CAPDU: 80 11 00 00 [23:48:30]Write to MH i2c: E2 08 00 95 3B 80 11 00 00 00 00 00 00 4A [23:48:30]Write i2c OK [23:48:30]MH_I2C_Read... [23:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:30]Read from MH i2c: E2 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 17 00 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 17 00 95 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 95 [23:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:48:30]wFMCommunicate OK [23:48:30]CreateOFDProtocolMessage done [23:48:30]OFDSenderStorePacket 49731 [23:48:30]StoreOFDPacket docnum=49731 [23:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 02 02 00 00 45 12 FA 01 2F C1 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 D2 36 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C2 00 00 35 04 06 00 BF A5 E7 18 BB EC B9 F5 D4 C1 66 F9 98 56 [23:48:30]CheckFolder [23:48:30]dirname=/storage/ofd_packets [23:48:30]CheckFolder done [23:48:30]ProducePacketName [23:48:30]name=ofd_packets/00049731 [23:48:30]NVStorageSaveData ofd_packets/00049731 [23:48:30]File name is /storage/ofd_packets/00049731 [23:48:30]Write 544 bytes [23:48:30]NVStorageSaveData done [23:48:30]OFDSenderStorePacket done [23:48:30]KKMCreateOFDPacket done [23:48:30]NVStorageSaveData kkm_last_timestamp [23:48:30]File name is /storage/kkm_last_timestamp [23:48:30]Write 4 bytes [23:48:30]NVStorageSaveData done [23:48:30]ExternCall_PrintAddStr [23:48:30]wPrintStart [23:48:30]Write to MH i2c: 01 00 00 96 3B D1 [23:48:30]Write i2c OK [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: 01 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: 01 07 00 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: 01 07 00 96 3B 00 00 00 00 00 FF 0F E6 [23:48:30]RasterBufferAndPrint [23:48:30]line Счет N : (3)189912 [23:48:30]line ИНН: 02508201610067 [23:48:30]line Контрольно-Кассовый Чек [23:48:30]line ПРОДАЖА [23:48:30]line Товар: 4700000310326 [23:48:30]line Вода Адыгене 1л б/г [23:48:30]line 1.000 * 35.00 [23:48:30]line = 35.00 [23:48:30]line НДС 12% НСП 1% [23:48:30]line > о реализуемом товаре [23:48:30]line Товар: 4870022003305 [23:48:30]line Напиток Gorilla эн нат ж/б 0,5/0,45л [23:48:30]line 1.000 * 90.00 [23:48:30]line = 90.00 [23:48:30]line НДС 12% НСП 1% [23:48:30]line > о реализуемом товаре [23:48:30]line Товар: 42069942 [23:48:30]line Жев Orbit White Fresh Mint [23:48:30]line 1.000 * 45.00 [23:48:30]line = 45.00 [23:48:30]line НДС 12% НСП 1% [23:48:30]line > о реализуемом товаре [23:48:30]line ИТОГО: 170.00 [23:48:30]line НСП 1% : 1.51 [23:48:30]line НДС 12% : 18.06 [23:48:30]line Наличными: 0.00 [23:48:30]line Безнал.: 170.00 [23:48:30]line Место: АЗС № 95 "Партнер Нефть" [23:48:30]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [23:48:30]line СНО: Общий режим [23:48:30]line Чек 168 17.08.2024 23:48 [23:48:30]line Смена: 465 ФФД: 1.0 [23:48:30]line ЗНМ: 0300000078 [23:48:30]line РНМ: 0000000000092546 [23:48:30]line Версия ККМ: 001 [23:48:30]line Платежная система: Бакай Банк [23:48:30]line ФМ: 0000000000871800 [23:48:30]line ФД: 49731 [23:48:30]line ФПД: 210719267666924 [23:48:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T234834&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49731&fm=210719267666924&tin=02508201610067®Number=0000000000092546&sum=17000 [23:48:30]line 0 [23:48:30]written 0, free lines is 4095 [23:48:30]OFD Sender: Processing packet 49731 [packets to send 21, broken 20] [23:48:30]ProducePacketName [23:48:30]name=ofd_packets/00049731 [23:48:30]OFD Sender: To server: pG, [23:48:30]CommunicateWithHost lk.salyk.kg:30040 [23:48:30]ConnectInit lk.salyk.kg [23:48:31]Write to MH i2c: 01 00 00 CD 3B 08 [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: 01 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: 01 07 00 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: 01 07 00 CD 3B 00 00 00 00 00 04 0C 1F [23:48:31]RasterBufferAndPrint [23:48:31]line [23:48:31]line [23:48:31]line [23:48:31]line [23:48:31]line [23:48:31]written 0, free lines is 3081 [23:48:31]MH_Cut [23:48:31]Write to MH i2c: D1 01 00 D4 3B 01 E1 [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: D1 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: D1 01 00 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: D1 01 00 D4 3B 00 E0 [23:48:31]Write to MH i2c: 01 00 00 D5 3B 10 [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:32]*** Cut start [23:48:32]*** Purtial cut [23:48:32]*** Stage 1: CUTSNS_PIN = 1 [23:48:32]Read from MH i2c: 01 [23:48:32]MH_I2C_Read... [23:48:32]*** Stop cut motor [23:48:32]*** Cut end [23:48:32]Read from MH i2c: 01 07 00 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: 01 07 00 D5 3B 00 00 00 00 00 FF 0F 25 [23:48:32]process_action close_receipt done [23:48:32]requested_data is exist [23:48:32]produce_requested_data [23:48:32]requested_item fm.sn is exist - process it [23:48:32]wFMCommunicate request_size=4 [23:48:32]MH_SAM_APDU [23:48:32]CAPDU: 80 11 00 00 [23:48:32]Write to MH i2c: E2 08 00 D6 3B 80 11 00 00 00 00 00 00 8B [23:48:32]Write i2c OK [23:48:32]MH_I2C_Read... [23:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:32]Read from MH i2c: E2 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 17 00 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 17 00 D6 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D6 [23:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:48:32]wFMCommunicate OK [23:48:32]requested_item fd.num is exist - process it [23:48:32]SAM_PROTO_GetFieldsCounters [23:48:32]wFMCommunicate request_size=4 [23:48:32]MH_SAM_APDU [23:48:32]CAPDU: 80 13 00 00 [23:48:32]Write to MH i2c: E2 08 00 D7 3B 80 13 00 00 00 00 00 00 8E [23:48:32]Write i2c OK [23:48:32]MH_I2C_Read... [23:48:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:32]Read from MH i2c: E2 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 62 00 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 62 00 D7 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 43 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [23:48: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 43 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:32]wFMCommunicate OK [23:48:32]SAM_PROTO_GetFieldsCounters done [23:48:32]requested_item shift.num is exist - process it [23:48:32]requested_item shift.opened is exist - process it [23:48:32]req_shift_opened [23:48:32]FM_GetShiftState [23:48:32]SAM_PROTO_GetShiftState [23:48:32]wFMCommunicate request_size=4 [23:48:32]MH_SAM_APDU [23:48:32]CAPDU: 80 13 01 00 [23:48:32]Write to MH i2c: E2 08 00 D8 3B 80 13 01 00 00 00 00 00 90 [23:48:32]Write i2c OK [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 [23:48:32]MH_I2C_Read... [23:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:32]Read from MH i2c: E2 0E 00 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 0E 00 D8 3B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D5 [23:48:32]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:48:32]wFMCommunicate OK [23:48:32]SAM_PROTO_GetShiftState done [23:48:32]FM_GetShiftState done [23:48:32]req_shift_opened done [23:48:32]requested_item shift.open_date is exist - process it [23:48:32]req_shift_open_date [23:48:32]req_shift_open_date done [23:48:32]produce_requested_data done [23:48:32]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49731,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [23:48:32]process_action_free close_receipt [23:48:32]json_value_free [23:48:32]json_value_free done [23:48:32]process_json_proto returns [23:48:32]Send response to host [23:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49731,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [23:48:32]free response buf [23:48:32]execute_script done [23:48:32]execute_script returns [23:48:32]free content buf [23:48:32]Sock 9.Close socket [23:48:32]Sock 9.Thread stoped [23:48:52]accept exits with 7 [23:48:52]New connection [23:48:52]New thread 3066944868 created [23:48:52]Thread 3066801508 joined [23:48:52]Waiting for new connection... [23:48:52] Sock 7.Parse request [23:48:52]Sock 7.Check first char [23:48:52]Sock 7.First char is OK [23:48:52]request: POST /json_proto HTTP/1.0 [23:48:52]Method: POST [23:48:52]URL: /json_proto [23:48:52]Method is POST - this is cgi request [23:48:52]url: /json_proto [23:48:52]query_string will be loaded in cgi processing [23:48:52]execute_cgi json_proto POST (null) [23:48:52]execute_cgi path=json_proto method=POST [23:48:52]POST find Content-Length [23:48:52]Host: 172.17.46.196:8080 [23:48:52]Content-Length: 851 [23:48:52]Content-Type: application/json [23:48:52] [23:48:52]POST finish read [23:48:52]Found Content-Length = 851 [23:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189913", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 490.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:52]execute_script... [23:48:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189913", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 490.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:52]POST & json_proto [23:48:52]process_json_proto [23:48:52]json parsed OK: [23:48:52]protocol is kg_v1.0 [23:48:52]action value=close_receipt [23:48:52]process_action close_receipt [23:48:52]cmd_close_receipt [23:48:52]MH_GetDate [23:48:52]Write to MH i2c: F0 00 00 D9 3B 03 [23:48:52]Write i2c OK [23:48:52]MH_I2C_Read... [23:48:52]Read from MH i2c: F0 [23:48:52]MH_I2C_Read... [23:48:52]Read from MH i2c: F0 09 00 [23:48:52]MH_I2C_Read... [23:48:52]Read from MH i2c: F0 09 00 D9 3B 00 EA 36 C1 66 07 E8 5D 66 05 [23:48:52]GetLastDocTimeStamp 1723938514 [23:48:52]current date 1723938538 [23:48:52]FM_GetShiftState [23:48:52]SAM_PROTO_GetShiftState [23:48:52]wFMCommunicate request_size=4 [23:48:52]MH_SAM_APDU [23:48:52]CAPDU: 80 13 01 00 [23:48:52]Write to MH i2c: E2 08 00 DA 3B 80 13 01 00 00 00 00 00 92 [23:48:52]Write i2c OK [23:48:52]MH_I2C_Read... [23:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:52]Read from MH i2c: E2 [23:48:52]MH_I2C_Read... [23:48:52]Read from MH i2c: E2 0E 00 [23:48:52]MH_I2C_Read... [23:48:52]Read from MH i2c: E2 0E 00 DA 3B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 D7 [23:48:52]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:48:52]wFMCommunicate OK [23:48:52]SAM_PROTO_GetShiftState done [23:48:52]FM_GetShiftState done [23:48:52]opened in 1723853354 [23:48:52]opened+sec_in_day 1723939754 [23:48:52]quantity*price = 21000 [23:48:52]sum+1 = 21001 [23:48:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 2.000 * 140.00 = 280.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 490.00 НСП 1% : 4.34 НДС 12% : 52.03 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 169 17.08.2024 23:48 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49732 ФПД: 148880136384029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T234858&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49732&fm=148880136384029&tin=02508201610067®Number=0000000000092546&sum=49000 0 [23:48:53]StoreToDocumentArchive [23:48:53]shift 465 fd 49732 [23:48:53]save to /storage/0465/doc_00049732 [23:48:53]save last doc name /storage/0465/doc_00049732 to /storage/kkm_last_doc_name [23:48:53]save OK [23:48:53]Clear old archive folders... [23:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=369 [23:48:53]tlvbuf is 0183E560 [23:48:53]SAM_PROTO_ClearQueue [23:48:53]wFMCommunicate request_size=4 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 09 00 00 [23:48:53]Write to MH i2c: E2 08 00 E7 3B 80 09 00 00 00 00 00 00 94 [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:53]Read from MH i2c: E2 03 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 03 00 E7 3B 00 90 00 96 [23:48:53]RAPDU: 90 00 [23:48:53]wFMCommunicate OK [23:48:53]SAM_PROTO_ClearQueue done [23:48:53]KKMCreateOFDPacket [23:48:53]OFDProtocolAddRootSTLVToBuf [23:48:53]FM_MakeSignedData [23:48:53]FM_MakeSignedData [23:48:53]SAM_PROTO_SignData [23:48:53]wFMCommunicate request_size=4 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 0D 01 02 [23:48:53]Write to MH i2c: E2 08 00 E8 3B 80 0D 01 02 00 00 00 00 9C [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 03 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 03 00 E8 3B 00 90 00 97 [23:48:53]RAPDU: 90 00 [23:48:53]wFMCommunicate OK [23:48:53]wFMCommunicate request_size=255 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 0D 02 02 FA 03 00 71 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 [23:48:53]Write to MH i2c: E2 02 01 E9 3B 80 0D 02 02 FA 00 03 00 71 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 00 00 7C [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 03 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 03 00 E9 3B 00 90 00 98 [23:48:53]RAPDU: 90 00 [23:48:53]wFMCommunicate OK [23:48:53]wFMCommunicate request_size=128 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 0D 02 02 7B F3 03 06 00 53 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 EA 36 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C2 00 00 35 04 06 00 87 67 DB A4 AE 1D [23:48:53]Write to MH i2c: E2 83 00 EA 3B 80 0D 02 02 7B 00 F3 03 06 00 53 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 EA 36 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C2 00 00 35 04 06 00 87 67 DB A4 AE 1D 00 00 52 [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 03 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 03 00 EA 3B 00 90 00 99 [23:48:53]RAPDU: 90 00 [23:48:53]wFMCommunicate OK [23:48:53]wFMCommunicate request_size=4 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 0D 03 02 [23:48:53]Write to MH i2c: E2 08 00 EB 3B 80 0D 03 02 00 00 00 00 A1 [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 0B 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 0B 00 EB 3B 00 B3 BC 14 DD A2 FB 97 8C 90 00 C2 [23:48:53]RAPDU: B3 BC 14 DD A2 FB 97 8C 90 00 [23:48:53]wFMCommunicate OK [23:48:53]SAM_PROTO_SignData done [23:48:53]FM_MakeSignedData done [23:48:53]CreateOFDProtocolMessage [23:48:53]wFMCommunicate request_size=4 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 11 00 00 [23:48:53]Write to MH i2c: E2 08 00 EC 3B 80 11 00 00 00 00 00 00 A1 [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 17 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 17 00 EC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EC [23:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:48:53]wFMCommunicate OK [23:48:53]CreateOFDProtocolMessage done [23:48:53]OFDSenderStorePacket 49732 [23:48:53]StoreOFDPacket docnum=49732 [23:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 85 01 00 00 AB 95 7D 01 D2 6E 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 EA 36 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C2 00 00 35 04 06 00 87 67 DB A4 AE 1D B3 BC 14 DD A2 FB 97 8C [23:48:53]CheckFolder [23:48:53]dirname=/storage/ofd_packets [23:48:53]CheckFolder done [23:48:53]ProducePacketName [23:48:53]name=ofd_packets/00049732 [23:48:53]NVStorageSaveData ofd_packets/00049732 [23:48:53]File name is /storage/ofd_packets/00049732 [23:48:53]Write 419 bytes [23:48:53]NVStorageSaveData done [23:48:53]OFDSenderStorePacket done [23:48:53]KKMCreateOFDPacket done [23:48:53]NVStorageSaveData kkm_last_timestamp [23:48:53]File name is /storage/kkm_last_timestamp [23:48:53]Write 4 bytes [23:48:53]NVStorageSaveData done [23:48:53]ExternCall_PrintAddStr [23:48:53]wPrintStart [23:48:53]Write to MH i2c: 01 00 00 ED 3B 28 [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: 01 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: 01 07 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: 01 07 00 ED 3B 00 00 00 00 00 FF 0F 3D [23:48:53]RasterBufferAndPrint [23:48:53]line Счет N : (3)189913 [23:48:53]line ИНН: 02508201610067 [23:48:53]line Контрольно-Кассовый Чек [23:48:53]line ПРОДАЖА [23:48:53]line Товар: 4870001570095 [23:48:53]line Напиток Pepsi 2л [23:48:53]line 1.000 * 210.00 [23:48:53]line = 210.00 [23:48:53]line НДС 12% НСП 1% [23:48:53]line > о реализуемом товаре [23:48:53]line Товар: 48743570 [23:48:53]line Сигареты Winston XStyle Blue [23:48:53]line 2.000 * 140.00 [23:48:54]line = 280.00 [23:48:54]line НДС 12% НСП 1% [23:48:54]line > о реализуемом товаре [23:48:54]line ИТОГО: 490.00 [23:48:54]line НСП 1% : 4.34 [23:48:54]line НДС 12% : 52.03 [23:48:54]line Наличными: 490.00 [23:48:54]line Безнал.: 0.00 [23:48:54]line Место: АЗС № 95 "Партнер Нефть" [23:48:54]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [23:48:54]line СНО: Общий режим [23:48:54]line Чек 169 17.08.2024 23:48 [23:48:54]line Смена: 465 ФФД: 1.0 [23:48:54]line ЗНМ: 0300000078 [23:48:54]line РНМ: 0000000000092546 [23:48:54]line Версия ККМ: 001 [23:48:54]line ФМ: 0000000000871800 [23:48:54]line ФД: 49732 [23:48:54]line ФПД: 148880136384029 [23:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T234858&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49732&fm=148880136384029&tin=02508201610067®Number=0000000000092546&sum=49000 [23:48:54]line 0 [23:48:54]written 0, free lines is 4095 [23:48:54]Write to MH i2c: 01 00 00 1B 3C 57 [23:48:54]Write i2c OK [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: 01 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: 01 07 00 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: 01 07 00 1B 3C 00 00 00 00 00 90 0C FA [23:48:54]RasterBufferAndPrint [23:48:54]line [23:48:54]line [23:48:54]line [23:48:54]line [23:48:54]line [23:48:54]written 0, free lines is 3221 [23:48:54]MH_Cut [23:48:54]Write to MH i2c: D1 01 00 22 3C 01 30 [23:48:54]Write i2c OK [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: D1 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: D1 01 00 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: D1 01 00 22 3C 00 2F [23:48:54]Write to MH i2c: 01 00 00 23 3C 5F [23:48:54]Write i2c OK [23:48:54]MH_I2C_Read... [23:48:55]*** Cut start [23:48:55]*** Purtial cut [23:48:55]*** CUTSNS_PIN = 0 [23:48:55]*** Stage 1: CUTSNS_PIN = 1 [23:48:57]Read from MH i2c: 01 [23:48:57]MH_I2C_Read... [23:48:57]*** Stop cut motor [23:48:57]*** Cut end [23:48:57]Read from MH i2c: 01 07 00 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: 01 07 00 23 3C 00 00 00 00 00 FF 0F 74 [23:48:57]process_action close_receipt done [23:48:57]requested_data is exist [23:48:57]produce_requested_data [23:48:57]requested_item fm.sn is exist - process it [23:48:57]wFMCommunicate request_size=4 [23:48:57]MH_SAM_APDU [23:48:57]CAPDU: 80 11 00 00 [23:48:57]Write to MH i2c: E2 08 00 24 3C 80 11 00 00 00 00 00 00 DA [23:48:57]Write i2c OK [23:48:57]MH_I2C_Read... [23:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:57]Read from MH i2c: E2 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 17 00 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 17 00 24 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 25 [23:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:48:57]wFMCommunicate OK [23:48:57]requested_item fd.num is exist - process it [23:48:57]SAM_PROTO_GetFieldsCounters [23:48:57]wFMCommunicate request_size=4 [23:48:57]MH_SAM_APDU [23:48:57]CAPDU: 80 13 00 00 [23:48:57]Write to MH i2c: E2 08 00 25 3C 80 13 00 00 00 00 00 00 DD [23:48:57]Write i2c OK [23:48:57]MH_I2C_Read... [23:48:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:57]Read from MH i2c: E2 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 62 00 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 62 00 25 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [23:48: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:57]wFMCommunicate OK [23:48:57]SAM_PROTO_GetFieldsCounters done [23:48:57]requested_item shift.num is exist - process it [23:48:57]requested_item shift.opened is exist - process it [23:48:57]req_shift_opened [23:48:57]FM_GetShiftState [23:48:57]SAM_PROTO_GetShiftState [23:48:57]wFMCommunicate request_size=4 [23:48:57]MH_SAM_APDU [23:48:57]CAPDU: 80 13 01 00 [23:48:57]Write to MH i2c: E2 08 00 26 3C 80 13 01 00 00 00 00 00 DF [23:48:57]Write i2c OK [23:48:57]MH_I2C_Read... [23:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:57]Read from MH i2c: E2 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 0E 00 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 0E 00 26 3C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 24 [23:48:57]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:48:57]wFMCommunicate OK [23:48:57]SAM_PROTO_GetShiftState done [23:48:57]FM_GetShiftState done [23:48:57]req_shift_opened done [23:48:57]requested_item shift.open_date is exist - process it [23:48:57]req_shift_open_date [23:48:57]req_shift_open_date done [23:48:57]produce_requested_data done [23:48:57]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49732,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [23:48:57]process_action_free close_receipt [23:48:57]json_value_free [23:48:57]json_value_free done [23:48:57]process_json_proto returns [23:48:57]Send response to host [23:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49732,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [23:48:57]free response buf [23:48:57]execute_script done [23:48:57]execute_script returns [23:48:57]free content buf [23:48:57]Sock 7.Close socket [23:48:57]Sock 7.Thread stoped [23:49:02]int [23:49:02]Write to MH i2c: 01 00 00 27 3C 63 [23:49:02]*** FLAG_PRN_KEY set [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 27 3C 00 08 00 00 00 FF 0F 80 [23:49:02]state=0 [23:49:02]Key pressed [23:49:02]Feed [23:49:02]Write to MH i2c: D8 00 00 28 3C 3B [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: D8 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: D8 01 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: D8 01 00 28 3C 00 3C [23:49:02]int [23:49:02]Write to MH i2c: 01 00 00 29 3C 65 [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 29 3C 00 48 00 00 00 3C 00 F0 [23:49:02]state=2 [23:49:02]Key pressed [23:49:02]int [23:49:02]Write to MH i2c: 01 00 00 2A 3C 66 [23:49:02]*** FLAG_PRN_KEY reset [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 2A 3C 00 00 00 00 00 F6 0F 72 [23:49:02]state=2 [23:49:02]Stop feed [23:50:42]ConnectInit Can't connect to host [23:50:42]CommunicateWithHost connect error [23:50:42]CommunicateWithHost err = -1 [23:50:42]OFD Sender: Server communicate error [23:50:42]OFD Sender: Processing packet 49731 [packets to send 22, broken 20] [23:50:42]ProducePacketName [23:50:42]name=ofd_packets/00049731 [23:50:42]OFD Sender: To server: pG, [23:50:42]CommunicateWithHost lk.salyk.kg:30040 [23:50:42]ConnectInit lk.salyk.kg [23:50:43]Connected sock=7 [23:50:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 02 02 00 00 45 12 FA 01 2F C1 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 D2 36 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C2 00 00 35 04 06 00 BF A5 E7 18 BB EC B9 F5 D4 C1 66 F9 98 56 [23:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 DC AE 47 00 3F 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 31 38 30 30 10 04 04 00 43 C2 00 00 F4 03 04 00 91 E2 C0 66 B6 04 01 00 00 0D 8C C3 BF 9C EB 9B 9A [23:50:43]CommunicateWithHost err = 0 [23:50:43]CheckOFDResponse [23:50:43]1017 (14) - 77093643461234 [23:50:43]1041 (16) - 0000000000871800 [23:50:43]1040 (4) - 49731 [23:50:43]1012 (4) - 17.08.2024 17:49 [23:50:43]1206 (1) - 0 [23:50:43]OFD Sender: Remove packet 49731 [23:50:43]ProducePacketName [23:50:43]name=ofd_packets/00049731 [23:50:43]NVStorageDeleteData [23:50:43]OFD Sender: Processing packet 49732 [packets to send 21, broken 20] [23:50:43]ProducePacketName [23:50:43]name=ofd_packets/00049732 [23:50:43]OFD Sender: To server: pG, [23:50:43]CommunicateWithHost lk.salyk.kg:30040 [23:50:43]ConnectInit lk.salyk.kg [23:50:43]Connected sock=7 [23:50:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 85 01 00 00 AB 95 7D 01 D2 6E 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 EA 36 C1 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C2 00 00 35 04 06 00 87 67 DB A4 AE 1D B3 BC 14 DD A2 FB 97 8C [23:50:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 07 B6 47 00 79 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 31 38 30 30 10 04 04 00 44 C2 00 00 F4 03 04 00 92 E2 C0 66 B6 04 01 00 00 0F 74 6C 1C 1D B2 8E 41 [23:50:44]CommunicateWithHost err = 0 [23:50:44]CheckOFDResponse [23:50:44]1017 (14) - 77093643461234 [23:50:44]1041 (16) - 0000000000871800 [23:50:44]1040 (4) - 49732 [23:50:44]1012 (4) - 17.08.2024 17:49 [23:50:44]1206 (1) - 0 [23:50:44]OFD Sender: Remove packet 49732 [23:50:44]ProducePacketName [23:50:44]name=ofd_packets/00049732 [23:50:44]NVStorageDeleteData [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:28]accept exits with 9 [23:51:28]New connection [23:51:28]New thread 3066801508 created [23:51:28]Thread 3066944868 joined [23:51:28]Waiting for new connection... [23:51:28] Sock 9.Parse request [23:51:28]Sock 9.Check first char [23:51:28]Sock 9.First char is OK [23:51:28]request: POST /json_proto HTTP/1.0 [23:51:28]Method: POST [23:51:28]URL: /json_proto [23:51:28]Method is POST - this is cgi request [23:51:28]url: /json_proto [23:51:28]query_string will be loaded in cgi processing [23:51:28]execute_cgi json_proto POST (null) [23:51:28]execute_cgi path=json_proto method=POST [23:51:28]POST find Content-Length [23:51:28]Host: 172.17.46.196:8080 [23:51:28]Content-Length: 215 [23:51:28]Content-Type: application/json [23:51:28] [23:51:28]POST finish read [23:51:28]Found Content-Length = 215 [23:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:28]execute_script... [23:51:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:28]POST & json_proto [23:51:28]process_json_proto [23:51:28]json parsed OK: [23:51:28]protocol is kg_v1.0 [23:51:28]action value=get_value [23:51:28]process_action get_value [23:51:28]cmd_get_value [23:51:28]process_action get_value done [23:51:28]requested_data is exist [23:51:28]produce_requested_data [23:51:28]requested_item kkm.sn is exist - process it [23:51:28]requested_item kkm.ver is exist - process it [23:51:28]requested_item fm.sn is exist - process it [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 11 00 00 [23:51:28]Write to MH i2c: E2 08 00 2B 3C 80 11 00 00 00 00 00 00 E1 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:28]Read from MH i2c: E2 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 17 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 17 00 2B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2C [23:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:51:28]wFMCommunicate OK [23:51:28]requested_item fd.num is exist - process it [23:51:28]SAM_PROTO_GetFieldsCounters [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 13 00 00 [23:51:28]Write to MH i2c: E2 08 00 2C 3C 80 13 00 00 00 00 00 00 E4 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:28]Read from MH i2c: E2 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 62 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 62 00 2C 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [23:51: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:28]wFMCommunicate OK [23:51:28]SAM_PROTO_GetFieldsCounters done [23:51:28]requested_item shift.num is exist - process it [23:51:28]requested_item shift.opened is exist - process it [23:51:28]req_shift_opened [23:51:28]FM_GetShiftState [23:51:28]SAM_PROTO_GetShiftState [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 13 01 00 [23:51:28]Write to MH i2c: E2 08 00 2D 3C 80 13 01 00 00 00 00 00 E6 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:28]Read from MH i2c: E2 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 0E 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 0E 00 2D 3C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 2B [23:51:28]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:51:28]wFMCommunicate OK [23:51:28]SAM_PROTO_GetShiftState done [23:51:28]FM_GetShiftState done [23:51:28]req_shift_opened done [23:51:28]requested_item shift.open_date is exist - process it [23:51:28]req_shift_open_date [23:51:28]req_shift_open_date done [23:51:28]produce_requested_data done [23:51:28]produce_requested_data return {"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49732,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [23:51:28]process_action_free get_value [23:51:28]json_value_free [23:51:28]json_value_free done [23:51:28]process_json_proto returns [23:51:28]Send response to host [23:51:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49732,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [23:51:28]free response buf [23:51:28]execute_script done [23:51:28]execute_script returns [23:51:28]free content buf [23:51:28]Sock 9.Close socket [23:51:28]Sock 9.Thread stoped [23:51:28]accept exits with 10 [23:51:28]New connection [23:51:28]New thread 3066944868 created [23:51:28]Thread 3066801508 joined [23:51:28]Waiting for new connection... [23:51:28] Sock 10.Parse request [23:51:28]Sock 10.Check first char [23:51:28]Sock 10.First char is OK [23:51:28]request: POST /json_proto HTTP/1.0 [23:51:28]Method: POST [23:51:28]URL: /json_proto [23:51:28]Method is POST - this is cgi request [23:51:28]url: /json_proto [23:51:28]query_string will be loaded in cgi processing [23:51:28]execute_cgi json_proto POST (null) [23:51:28]execute_cgi path=json_proto method=POST [23:51:28]POST find Content-Length [23:51:28]Host: 172.17.46.196:8080 [23:51:28]Content-Length: 331 [23:51:28]Content-Type: application/json [23:51:28] [23:51:28]POST finish read [23:51:28]Found Content-Length = 331 [23:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:51:28]execute_script... [23:51:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:51:28]POST & json_proto [23:51:28]process_json_proto [23:51:28]json parsed OK: [23:51:28]protocol is kg_v1.0 [23:51:28]action value=get_value [23:51:28]process_action get_value [23:51:28]cmd_get_value [23:51:28]process_action get_value done [23:51:28]requested_data is exist [23:51:28]produce_requested_data [23:51:28]requested_item fm.sale.total is exist - process it [23:51:28]SAM_PROTO_GetFMData [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 13 03 00 [23:51:28]Write to MH i2c: E2 08 00 2E 3C 80 13 03 00 00 00 00 00 E9 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:29]Read from MH i2c: E2 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 FD 00 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 FD 00 2E 3C 00 C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 B5 [23:51:29]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:51:29]wFMCommunicate OK [23:51:29]wFMCommunicate request_size=4 [23:51:29]MH_SAM_APDU [23:51:29]CAPDU: 80 17 00 00 [23:51:29]Write to MH i2c: E2 08 00 2F 3C 80 17 00 00 00 00 00 00 EB [23:51:29]Write i2c OK [23:51:29]MH_I2C_Read... [23:51:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:29]Read from MH i2c: E2 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 FD 00 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 FD 00 2F 3C 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1E [23:51:29]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:29]wFMCommunicate OK [23:51:29]wFMCommunicate request_size=4 [23:51:29]MH_SAM_APDU [23:51:29]CAPDU: 80 17 00 00 [23:51:29]Write to MH i2c: E2 08 00 30 3C 80 17 00 00 00 00 00 00 EC [23:51:29]Write i2c OK [23:51:29]MH_I2C_Read... [23:51:29]OFD Sender: No OFD packet to send [23:51:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:29]Read from MH i2c: E2 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 FD 00 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 FD 00 30 3C 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [23:51:29]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:29]wFMCommunicate OK [23:51:29]wFMCommunicate request_size=4 [23:51:29]MH_SAM_APDU [23:51:29]CAPDU: 80 17 00 00 [23:51:29]Write to MH i2c: E2 08 00 31 3C 80 17 00 00 00 00 00 00 ED [23:51:29]Write i2c OK [23:51:29]MH_I2C_Read... [23:51:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:30]Read from MH i2c: E2 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 FD 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 FD 00 31 3C 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 65 [23:51:30]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [23:51:30]wFMCommunicate OK [23:51:30]wFMCommunicate request_size=4 [23:51:30]MH_SAM_APDU [23:51:30]CAPDU: 80 17 00 00 [23:51:30]Write to MH i2c: E2 08 00 32 3C 80 17 00 00 00 00 00 00 EE [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:51:30]Read from MH i2c: E2 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 DD 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 DD 00 32 3C 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:30]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51:30]wFMCommunicate OK [23:51:30]SAM_PROTO_GetFMData done [23:51:30]requested_item fm.sale_refund.total is exist - process it [23:51:30]requested_item fm.buy.total is exist - process it [23:51:30]requested_item shift.sale.total is exist - process it [23:51:30]SAM_PROTO_GetShiftData [23:51:30]wFMCommunicate request_size=4 [23:51:30]MH_SAM_APDU [23:51:30]CAPDU: 80 13 02 00 [23:51:30]Write to MH i2c: E2 08 00 33 3C 80 13 02 00 00 00 00 00 ED [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:30]Read from MH i2c: E2 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 FD 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 FD 00 33 3C 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FD [23:51:30]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:30]wFMCommunicate OK [23:51:30]wFMCommunicate request_size=4 [23:51:30]MH_SAM_APDU [23:51:30]CAPDU: 80 17 00 00 [23:51:30]Write to MH i2c: E2 08 00 34 3C 80 17 00 00 00 00 00 00 F0 [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:31]Read from MH i2c: E2 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 34 3C 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 12 [23:51:31]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 [23:51:31]wFMCommunicate OK [23:51:31]wFMCommunicate request_size=4 [23:51:31]MH_SAM_APDU [23:51:31]CAPDU: 80 17 00 00 [23:51:31]Write to MH i2c: E2 08 00 35 3C 80 17 00 00 00 00 00 00 F1 [23:51:31]Write i2c OK [23:51:31]MH_I2C_Read... [23:51:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:31]Read from MH i2c: E2 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 35 3C 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A8 [23:51:31]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 [23:51:31]wFMCommunicate OK [23:51:31]wFMCommunicate request_size=4 [23:51:31]MH_SAM_APDU [23:51:31]CAPDU: 80 17 00 00 [23:51:31]Write to MH i2c: E2 08 00 36 3C 80 17 00 00 00 00 00 00 F2 [23:51:31]Write i2c OK [23:51:31]MH_I2C_Read... [23:51:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:31]Read from MH i2c: E2 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 36 3C 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 64 [23:51:31]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 [23:51:31]wFMCommunicate OK [23:51:31]wFMCommunicate request_size=4 [23:51:31]MH_SAM_APDU [23:51:31]CAPDU: 80 17 00 00 [23:51:31]Write to MH i2c: E2 08 00 37 3C 80 17 00 00 00 00 00 00 F3 [23:51:31]Write i2c OK [23:51:31]MH_I2C_Read... [23:51:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:51:32]Read from MH i2c: E2 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 CB 00 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 CB 00 37 3C 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 DC [23:51:32]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 [23:51:32]wFMCommunicate OK [23:51:32]SAM_PROTO_GetShiftData done [23:51:32]requested_item shift.sale.total_cash is exist - process it [23:51:32]requested_item shift.sale_refund.total is exist - process it [23:51:32]requested_item shift.sale_refund.total_cash is exist - process it [23:51:32]requested_item shift.buy.total is exist - process it [23:51:32]requested_item shift.buy.total_cash is exist - process it [23:51:32]produce_requested_data done [23:51:32]produce_requested_data return {"fm.sale.total":10259232.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":25080.00,"shift.sale.total_cash":18376.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} [23:51:32]process_action_free get_value [23:51:32]json_value_free [23:51:32]json_value_free done [23:51:32]process_json_proto returns [23:51:32]Send response to host [23:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10259232.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":25080.00,"shift.sale.total_cash":18376.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}}} [23:51:32]free response buf [23:51:32]execute_script done [23:51:32]execute_script returns [23:51:32]free content buf [23:51:32]Sock 10.Close socket [23:51:32]Sock 10.Thread stoped [23:51:32]accept exits with 7 [23:51:32]New connection [23:51:32]New thread 3066801508 created [23:51:32]Thread 3066944868 joined [23:51:32]Waiting for new connection... [23:51:32] Sock 7.Parse request [23:51:32]Sock 7.Check first char [23:51:32]Sock 7.First char is OK [23:51:32]request: POST /json_proto HTTP/1.0 [23:51:32]Method: POST [23:51:32]URL: /json_proto [23:51:32]Method is POST - this is cgi request [23:51:32]url: /json_proto [23:51:32]query_string will be loaded in cgi processing [23:51:32]execute_cgi json_proto POST (null) [23:51:32]execute_cgi path=json_proto method=POST [23:51:32]POST find Content-Length [23:51:32]Host: 172.17.46.196:8080 [23:51:32]Content-Length: 331 [23:51:32]Content-Type: application/json [23:51:32] [23:51:32]POST finish read [23:51:32]Found Content-Length = 331 [23:51: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:51:32]execute_script... [23:51: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:51:32]POST & json_proto [23:51:32]process_json_proto [23:51:32]json parsed OK: [23:51:32]protocol is kg_v1.0 [23:51:32]action value=get_value [23:51:32]process_action get_value [23:51:32]cmd_get_value [23:51:32]process_action get_value done [23:51:32]requested_data is exist [23:51:32]produce_requested_data [23:51:32]requested_item fm.sale.total is exist - process it [23:51:32]SAM_PROTO_GetFMData [23:51:32]wFMCommunicate request_size=4 [23:51:32]MH_SAM_APDU [23:51:32]CAPDU: 80 13 03 00 [23:51:32]Write to MH i2c: E2 08 00 38 3C 80 13 03 00 00 00 00 00 F3 [23:51:32]Write i2c OK [23:51:32]MH_I2C_Read... [23:51:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:32]Read from MH i2c: E2 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 FD 00 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 FD 00 38 3C 00 C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 BF [23:51:32]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:51:32]wFMCommunicate OK [23:51:32]wFMCommunicate request_size=4 [23:51:32]MH_SAM_APDU [23:51:32]CAPDU: 80 17 00 00 [23:51:32]Write to MH i2c: E2 08 00 39 3C 80 17 00 00 00 00 00 00 F5 [23:51:33]Write i2c OK [23:51:33]MH_I2C_Read... [23:51:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:33]Read from MH i2c: E2 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 FD 00 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 FD 00 39 3C 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 28 [23:51:33]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:33]wFMCommunicate OK [23:51:33]wFMCommunicate request_size=4 [23:51:33]MH_SAM_APDU [23:51:33]CAPDU: 80 17 00 00 [23:51:33]Write to MH i2c: E2 08 00 3A 3C 80 17 00 00 00 00 00 00 F6 [23:51:33]Write i2c OK [23:51:33]MH_I2C_Read... [23:51:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:33]Read from MH i2c: E2 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 FD 00 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 FD 00 3A 3C 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 99 [23:51:33]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:33]wFMCommunicate OK [23:51:33]wFMCommunicate request_size=4 [23:51:33]MH_SAM_APDU [23:51:33]CAPDU: 80 17 00 00 [23:51:33]Write to MH i2c: E2 08 00 3B 3C 80 17 00 00 00 00 00 00 F7 [23:51:33]Write i2c OK [23:51:33]MH_I2C_Read... [23:51:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:33]Read from MH i2c: E2 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 FD 00 [23:51:34]MH_I2C_Read... [23:51:34]Read from MH i2c: E2 FD 00 3B 3C 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 6F [23:51:34]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [23:51:34]wFMCommunicate OK [23:51:34]wFMCommunicate request_size=4 [23:51:34]MH_SAM_APDU [23:51:34]CAPDU: 80 17 00 00 [23:51:34]Write to MH i2c: E2 08 00 3C 3C 80 17 00 00 00 00 00 00 F8 [23:51:34]Write i2c OK [23:51:34]MH_I2C_Read... [23:51:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:51:34]Read from MH i2c: E2 [23:51:34]MH_I2C_Read... [23:51:34]Read from MH i2c: E2 DD 00 [23:51:34]MH_I2C_Read... [23:51:34]Read from MH i2c: E2 DD 00 3C 3C 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E0 [23:51:34]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51:34]wFMCommunicate OK [23:51:34]SAM_PROTO_GetFMData done [23:51:34]requested_item fm.sale_refund.total is exist - process it [23:51:34]requested_item fm.buy.total is exist - process it [23:51:34]requested_item shift.sale.total is exist - process it [23:51:34]SAM_PROTO_GetShiftData [23:51:34]wFMCommunicate request_size=4 [23:51:34]MH_SAM_APDU [23:51:34]CAPDU: 80 13 02 00 [23:51:34]Write to MH i2c: E2 08 00 3D 3C 80 13 02 00 00 00 00 00 F7 [23:51:34]Write i2c OK [23:51:34]MH_I2C_Read... [23:51:34]OFD Sender: No OFD packet to send [23:51:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:34]Read from MH i2c: E2 [23:51:34]MH_I2C_Read... [23:51:34]Read from MH i2c: E2 FD 00 [23:51:34]MH_I2C_Read... [23:51:34]Read from MH i2c: E2 FD 00 3D 3C 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [23:51:35]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:35]wFMCommunicate OK [23:51:35]wFMCommunicate request_size=4 [23:51:35]MH_SAM_APDU [23:51:35]CAPDU: 80 17 00 00 [23:51:35]Write to MH i2c: E2 08 00 3E 3C 80 17 00 00 00 00 00 00 FA [23:51:35]Write i2c OK [23:51:35]MH_I2C_Read... [23:51:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:35]Read from MH i2c: E2 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 FD 00 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 FD 00 3E 3C 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 1C [23:51:35]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 [23:51:35]wFMCommunicate OK [23:51:35]wFMCommunicate request_size=4 [23:51:35]MH_SAM_APDU [23:51:35]CAPDU: 80 17 00 00 [23:51:35]Write to MH i2c: E2 08 00 3F 3C 80 17 00 00 00 00 00 00 FB [23:51:35]Write i2c OK [23:51:35]MH_I2C_Read... [23:51:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:35]Read from MH i2c: E2 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 FD 00 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 FD 00 3F 3C 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B2 [23:51:35]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 [23:51:36]wFMCommunicate OK [23:51:36]wFMCommunicate request_size=4 [23:51:36]MH_SAM_APDU [23:51:36]CAPDU: 80 17 00 00 [23:51:36]Write to MH i2c: E2 08 00 40 3C 80 17 00 00 00 00 00 00 FC [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:36]Read from MH i2c: E2 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 FD 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 FD 00 40 3C 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 6E [23:51:36]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 [23:51:36]wFMCommunicate OK [23:51:36]wFMCommunicate request_size=4 [23:51:36]MH_SAM_APDU [23:51:36]CAPDU: 80 17 00 00 [23:51:36]Write to MH i2c: E2 08 00 41 3C 80 17 00 00 00 00 00 00 FD [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:51:36]Read from MH i2c: E2 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 CB 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 CB 00 41 3C 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 E6 [23:51:36]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 [23:51:36]wFMCommunicate OK [23:51:36]SAM_PROTO_GetShiftData done [23:51:36]requested_item shift.sale.total_cash is exist - process it [23:51:36]requested_item shift.sale_refund.total is exist - process it [23:51:36]requested_item shift.sale_refund.total_cash is exist - process it [23:51:36]requested_item shift.buy.total is exist - process it [23:51:36]requested_item shift.buy.total_cash is exist - process it [23:51:36]produce_requested_data done [23:51:36]produce_requested_data return {"fm.sale.total":10259232.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":25080.00,"shift.sale.total_cash":18376.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} [23:51:36]process_action_free get_value [23:51:36]json_value_free [23:51:36]json_value_free done [23:51:36]process_json_proto returns [23:51:36]Send response to host [23:51:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10259232.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":25080.00,"shift.sale.total_cash":18376.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}}} [23:51:36]free response buf [23:51:36]execute_script done [23:51:36]execute_script returns [23:51:36]free content buf [23:51:36]Sock 7.Close socket [23:51:36]Sock 7.Thread stoped [23:51:36]accept exits with 9 [23:51:36]New connection [23:51:36]New thread 3066944868 created [23:51:36]Thread 3066801508 joined [23:51:36]Waiting for new connection... [23:51:36] Sock 9.Parse request [23:51:36]Sock 9.Check first char [23:51:36]Sock 9.First char is OK [23:51:36]request: POST /json_proto HTTP/1.0 [23:51:36]Method: POST [23:51:36]URL: /json_proto [23:51:36]Method is POST - this is cgi request [23:51:36]url: /json_proto [23:51:36]query_string will be loaded in cgi processing [23:51:36]execute_cgi json_proto POST (null) [23:51:36]execute_cgi path=json_proto method=POST [23:51:36]POST find Content-Length [23:51:36]Host: 172.17.46.196:8080 [23:51:36]Content-Length: 269 [23:51:36]Content-Type: application/json [23:51:36] [23:51:36]POST finish read [23:51:36]Found Content-Length = 269 [23:51:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0443\u043B\u0430\u0439\u043C\u0430\u043D\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:36]execute_script... [23:51:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0443\u043B\u0430\u0439\u043C\u0430\u043D\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:36]POST & json_proto [23:51:36]process_json_proto [23:51:36]json parsed OK: [23:51:36]protocol is kg_v1.0 [23:51:36]action value=x_report [23:51:36]process_action x_report [23:51:36]cmd_x_report [23:51:36]MH_GetDate [23:51:36]Write to MH i2c: F0 00 00 42 3C 6D [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: F0 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: F0 09 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: F0 09 00 42 3C 00 8E 37 C1 66 07 E8 5D 66 14 [23:51:36]GetLastDocTimeStamp 1723938538 [23:51:36]current date 1723938702 [23:51:36]FM_GetShiftState [23:51:36]SAM_PROTO_GetShiftState [23:51:36]wFMCommunicate request_size=4 [23:51:36]MH_SAM_APDU [23:51:36]CAPDU: 80 13 01 00 [23:51:36]Write to MH i2c: E2 08 00 43 3C 80 13 01 00 00 00 00 00 FC [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:36]Read from MH i2c: E2 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 0E 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 0E 00 43 3C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 41 [23:51:37]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:51:37]wFMCommunicate OK [23:51:37]SAM_PROTO_GetShiftState done [23:51:37]FM_GetShiftState done [23:51:37]KKMCreateXReportDocument [23:51:37]Load OK [23:51:37]Malloc new data [23:51:37]MH_GetDate [23:51:37]Write to MH i2c: F0 00 00 44 3C 6F [23:51:37]Write i2c OK [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: F0 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: F0 09 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: F0 09 00 44 3C 00 8F 37 C1 66 07 E8 5D 66 17 [23:51:37]Malloc new data [23:51:37]Malloc new data [23:51:37]wFMCommunicate request_size=4 [23:51:37]MH_SAM_APDU [23:51:37]CAPDU: 80 11 00 00 [23:51:37]Write to MH i2c: E2 08 00 45 3C 80 11 00 00 00 00 00 00 FB [23:51:37]Write i2c OK [23:51:37]MH_I2C_Read... [23:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:37]Read from MH i2c: E2 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 17 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 17 00 45 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 46 [23:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:51:37]wFMCommunicate OK [23:51:37]SAM_PROTO_GetFieldsCounters [23:51:37]wFMCommunicate request_size=4 [23:51:37]MH_SAM_APDU [23:51:37]CAPDU: 80 13 00 00 [23:51:37]Write to MH i2c: E2 08 00 46 3C 80 13 00 00 00 00 00 00 FE [23:51:37]Write i2c OK [23:51:37]MH_I2C_Read... [23:51:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:37]Read from MH i2c: E2 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 62 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 62 00 46 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [23:51: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:37]wFMCommunicate OK [23:51:37]SAM_PROTO_GetFieldsCounters done [23:51:37]Malloc new data [23:51:37]Malloc new data [23:51:37]Malloc new data [23:51:37]KKMCreateXReportDocument OK [23:51:37]KKMSetXReportData OK [23:51:37]KKMPrepareXReportFMData [23:51:37]SAM_PROTO_GetShiftData [23:51:37]wFMCommunicate request_size=4 [23:51:37]MH_SAM_APDU [23:51:37]CAPDU: 80 13 02 00 [23:51:37]Write to MH i2c: E2 08 00 47 3C 80 13 02 00 00 00 00 00 01 [23:51:37]Write i2c OK [23:51:37]MH_I2C_Read... [23:51:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:37]Read from MH i2c: E2 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 47 3C 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 11 [23:51:37]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:38]wFMCommunicate OK [23:51:38]wFMCommunicate request_size=4 [23:51:38]MH_SAM_APDU [23:51:38]CAPDU: 80 17 00 00 [23:51:38]Write to MH i2c: E2 08 00 48 3C 80 17 00 00 00 00 00 00 04 [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:38]Read from MH i2c: E2 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 48 3C 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 26 [23:51:38]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 [23:51:38]wFMCommunicate OK [23:51:38]wFMCommunicate request_size=4 [23:51:38]MH_SAM_APDU [23:51:38]CAPDU: 80 17 00 00 [23:51:38]Write to MH i2c: E2 08 00 49 3C 80 17 00 00 00 00 00 00 05 [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:38]Read from MH i2c: E2 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 49 3C 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BC [23:51:38]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 [23:51:39]wFMCommunicate OK [23:51:39]wFMCommunicate request_size=4 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 17 00 00 [23:51:39]Write to MH i2c: E2 08 00 4A 3C 80 17 00 00 00 00 00 00 06 [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 4A 3C 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 78 [23:51:39]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 [23:51:39]wFMCommunicate OK [23:51:39]wFMCommunicate request_size=4 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 17 00 00 [23:51:39]Write to MH i2c: E2 08 00 4B 3C 80 17 00 00 00 00 00 00 07 [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 CB 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 CB 00 4B 3C 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 F0 [23:51:39]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 [23:51:40]wFMCommunicate OK [23:51:40]SAM_PROTO_GetShiftData done [23:51:40]1194 (1194) - счетчики итогов смены [23:51:40] 1134 (4) - 169 - количество чеков со всеми признаками расчетов [23:51:40] 1129 (155) - счетчики операций «приход» [23:51:40] 1135 (4) - 169 - количество чеков по признаку расчетов [23:51:40] 1201 (3) - 25080.00 - общая итоговая сумма в чеках [23:51:40] 1136 (3) - 18376.00 - итоговая сумма в чеках наличными [23:51:40] 1138 (3) - 6704.00 - итоговая сумма в чеках безналичными [23:51:40] 1024 (122) - суммы налогов [23:51:40] 1006 (9) - суммы НДС [23:51:40] 1010 (1) - 0% - код ставки НДС [23:51:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:40] 1006 (12) - суммы НДС [23:51:40] 1010 (1) - 12% - код ставки НДС [23:51:40] 1011 (3) - 2663.26 - сумма НДС по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 0% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (11) - суммы НСП [23:51:40] 1014 (1) - 1% - код ставки НСП [23:51:40] 1015 (2) - 221.85 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 2% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 3% - код ставки НСП [23:51:40] OFD Sender: No OFD packet to send [23:51:40]1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 5% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 0,50% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 1,50% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1130 (141) - счетчики операций «возврат прихода» [23:51:40] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:40] 1024 (117) - суммы налогов [23:51:40] 1006 (9) - суммы НДС [23:51:40] 1010 (1) - 0% - код ставки НДС [23:51:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:40] 1006 (9) - суммы НДС [23:51:40] 1010 (1) - 12% - код ставки НДС [23:51:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 0% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 1% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 2% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 3% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 5% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 0,50% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 1,50% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1131 (141) - счетчики операций «расход» [23:51:40] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:40] 1024 (117) - суммы налогов [23:51:40] 1006 (9) - суммы НДС [23:51:40] 1010 (1) - 0% - код ставки НДС [23:51:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:40] 1006 (9) - суммы НДС [23:51:40] 1010 (1) - 12% - код ставки НДС [23:51:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 0% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 1% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 2% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 3% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 5% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 0,50% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 1,50% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1132 (141) - счетчики операций «возврат расхода» [23:51:40] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:40] 1024 (117) - суммы налогов [23:51:40] 1006 (9) - суммы НДС [23:51:40] 1010 (1) - 0% - код ставки НДС [23:51:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:40] 1006 (9) - суммы НДС [23:51:40] 1010 (1) - 12% - код ставки НДС [23:51:40] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 0% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 1% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 2% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 3% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 5% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 0,50% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1007 (9) - суммы НСП [23:51:40] 1014 (1) - 1,50% - код ставки НСП [23:51:40] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:40] 1133 (588) - - счетчики коррекции - не используются [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1194 (04AA) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1134 (046E) [23:51:40]Malloc new data [23:51:40]Processing tag 1129 (0469) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1135 (046F) [23:51:40]Malloc new data [23:51:40]Processing tag 1201 (04B1) [23:51:40]Malloc new data [23:51:40]Processing tag 1136 (0470) [23:51:40]Malloc new data [23:51:40]Processing tag 1138 (0472) [23:51:40]Malloc new data [23:51:40]Processing tag 1024 (0400) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1006 (03EE) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1010 (03F2) [23:51:40]Malloc new data [23:51:40]Processing tag 1011 (03F3) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1006 (03EE) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1010 (03F2) [23:51:40]Malloc new data [23:51:40]Processing tag 1011 (03F3) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]SetTLVBufToDocument err=0 [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1130 (046A) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1135 (046F) [23:51:40]Malloc new data [23:51:40]Processing tag 1201 (04B1) [23:51:40]Malloc new data [23:51:40]Processing tag 1136 (0470) [23:51:40]Malloc new data [23:51:40]Processing tag 1138 (0472) [23:51:40]Malloc new data [23:51:40]Processing tag 1024 (0400) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1006 (03EE) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1010 (03F2) [23:51:40]Malloc new data [23:51:40]Processing tag 1011 (03F3) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1006 (03EE) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1010 (03F2) [23:51:40]Malloc new data [23:51:40]Processing tag 1011 (03F3) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]SetTLVBufToDocument err=0 [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1131 (046B) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1135 (046F) [23:51:40]Malloc new data [23:51:40]Processing tag 1201 (04B1) [23:51:40]Malloc new data [23:51:40]Processing tag 1136 (0470) [23:51:40]Malloc new data [23:51:40]Processing tag 1138 (0472) [23:51:40]Malloc new data [23:51:40]Processing tag 1024 (0400) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1006 (03EE) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1010 (03F2) [23:51:40]Malloc new data [23:51:40]Processing tag 1011 (03F3) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1006 (03EE) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1010 (03F2) [23:51:40]Malloc new data [23:51:40]Processing tag 1011 (03F3) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]SetTLVBufToDocument err=0 [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1132 (046C) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1135 (046F) [23:51:40]Malloc new data [23:51:40]Processing tag 1201 (04B1) [23:51:40]Malloc new data [23:51:40]Processing tag 1136 (0470) [23:51:40]Malloc new data [23:51:40]Processing tag 1138 (0472) [23:51:40]Malloc new data [23:51:40]Processing tag 1024 (0400) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1006 (03EE) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1010 (03F2) [23:51:40]Malloc new data [23:51:40]Processing tag 1011 (03F3) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1006 (03EE) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1010 (03F2) [23:51:40]Malloc new data [23:51:40]Processing tag 1011 (03F3) [23:51:40]Malloc new data [23:51:40]SetTLVBufToDocument err=0 [23:51:40]Processing tag 1007 (03EF) [23:51:40]Load OK [23:51:40]SetTLVBufToDocument [23:51:40]Processing tag 1014 (03F6) [23:51:40]Malloc new data [23:51:40]Processing tag 1015 (03F7) [23:51:40]Malloc new data [23:51:41]SetTLVBufToDocument err=0 [23:51:41]Processing tag 1007 (03EF) [23:51:41]Load OK [23:51:41]SetTLVBufToDocument [23:51:41]Processing tag 1014 (03F6) [23:51:41]Malloc new data [23:51:41]Processing tag 1015 (03F7) [23:51:41]Malloc new data [23:51:41]SetTLVBufToDocument err=0 [23:51:41]Processing tag 1007 (03EF) [23:51:41]Load OK [23:51:41]SetTLVBufToDocument [23:51:41]Processing tag 1014 (03F6) [23:51:41]Malloc new data [23:51:41]Processing tag 1015 (03F7) [23:51:41]Malloc new data [23:51:41]SetTLVBufToDocument err=0 [23:51:41]Processing tag 1007 (03EF) [23:51:41]Load OK [23:51:41]SetTLVBufToDocument [23:51:41]Processing tag 1014 (03F6) [23:51:41]Malloc new data [23:51:41]Processing tag 1015 (03F7) [23:51:41]Malloc new data [23:51:41]SetTLVBufToDocument err=0 [23:51:41]Processing tag 1007 (03EF) [23:51:41]Load OK [23:51:41]SetTLVBufToDocument [23:51:41]Processing tag 1014 (03F6) [23:51:41]Malloc new data [23:51:41]Processing tag 1015 (03F7) [23:51:41]Malloc new data [23:51:41]SetTLVBufToDocument err=0 [23:51:41]Processing tag 1007 (03EF) [23:51:41]Load OK [23:51:41]SetTLVBufToDocument [23:51:41]Processing tag 1014 (03F6) [23:51:41]Malloc new data [23:51:41]Processing tag 1015 (03F7) [23:51:41]Malloc new data [23:51:41]SetTLVBufToDocument err=0 [23:51:41]Processing tag 1007 (03EF) [23:51:41]Load OK [23:51:41]SetTLVBufToDocument [23:51:41]Processing tag 1014 (03F6) [23:51:41]Malloc new data [23:51:41]Processing tag 1015 (03F7) [23:51:41]Malloc new data [23:51:41]SetTLVBufToDocument err=0 [23:51:41]SetTLVBufToDocument err=0 [23:51:41]SetTLVBufToDocument err=0 [23:51:41]Processing tag 1133 (046D) [23:51:41]Malloc new data [23:51:41]SetTLVBufToDocument err=0 [23:51:41]SetTLVBufToDocument err=0 [23:51:41]Malloc new data [23:51:41]SAM_PROTO_GetFMData [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 13 03 00 [23:51:41]Write to MH i2c: E2 08 00 4C 3C 80 13 03 00 00 00 00 00 07 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 4C 3C 00 C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 D3 [23:51:41]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:51:42]wFMCommunicate OK [23:51:42]wFMCommunicate request_size=4 [23:51:42]MH_SAM_APDU [23:51:42]CAPDU: 80 17 00 00 [23:51:42]Write to MH i2c: E2 08 00 4D 3C 80 17 00 00 00 00 00 00 09 [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 4D 3C 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [23:51:42]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:42]wFMCommunicate OK [23:51:42]wFMCommunicate request_size=4 [23:51:42]MH_SAM_APDU [23:51:42]CAPDU: 80 17 00 00 [23:51:42]Write to MH i2c: E2 08 00 4E 3C 80 17 00 00 00 00 00 00 0A [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 4E 3C 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [23:51:43]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:43]wFMCommunicate OK [23:51:43]wFMCommunicate request_size=4 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 17 00 00 [23:51:43]Write to MH i2c: E2 08 00 4F 3C 80 17 00 00 00 00 00 00 0B [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:43]Read from MH i2c: E2 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 4F 3C 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 83 [23:51:43]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [23:51:43]wFMCommunicate OK [23:51:43]wFMCommunicate request_size=4 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 17 00 00 [23:51:43]Write to MH i2c: E2 08 00 50 3C 80 17 00 00 00 00 00 00 0C [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 DD 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 DD 00 50 3C 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F4 [23:51:44]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51:44]wFMCommunicate OK [23:51:44]SAM_PROTO_GetFMData done [23:51:44]FM_GetFMData:85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 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 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:45]oper:6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51:45]total:A6 58 26 3D [23:51:45]Malloc new data [23:51:45]oper:6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 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 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 OFD Sender: No OFD packet to send [23:51:45]00 EF 03 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:51:45]total:40 D1 25 [23:51:45]Malloc new data [23:51:45]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:51:45]total: [23:51:45]Malloc new data [23:51:45]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:51:45]total: [23:51:45]Malloc new data [23:51:45]KKMPrepareXReportFMData err=0 [23:51:45]Х отчет ИНН: 02508201610067 Кассир: Сулайманов Т. 17.08.2024 23:51 Смена: 266 РНМ: 0000000000092546 ЗНМ: 0300000078 СНО: Общий режим Всего чеков: 169 ИТОГИ ПРИХОД Чеков: 169 Общий итог: 25080.00 Итого наличными: 18376.00 Итого безнал.: 6704.00 НДС 0% : 0.00 НДС 12% : 2663.26 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 221.85 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 18376.00 НС Приход: 10259232.38 НС Возвр.Прихода: 24784.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871800 [23:51:45]StoreToDocumentArchive [23:51:45]MH_GetDate [23:51:45]Write to MH i2c: F0 00 00 51 3C 7C [23:51:45]Write i2c OK [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: F0 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: F0 09 00 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: F0 09 00 51 3C 00 97 37 C1 66 07 E8 5D 66 2C [23:51:45]shift 266 fd 1723938711 [23:51:45]Create dir for shift 0266 [23:51:45]save to /storage/0266/doc_1723938711 [23:51:45]save last doc name /storage/0266/doc_1723938711 to /storage/kkm_last_doc_name [23:51:45]save OK [23:51:45]Clear old archive folders... [23:51:45]NVStorageSaveData kkm_last_timestamp [23:51:45]File name is /storage/kkm_last_timestamp [23:51:45]Write 4 bytes [23:51:45]NVStorageSaveData done [23:51:45]ExternCall_PrintAddStr [23:51:45]wPrintStart [23:51:45]Write to MH i2c: 01 00 00 52 3C 8E [23:51:45]Write i2c OK [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: 01 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: 01 07 00 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: 01 07 00 52 3C 00 00 00 00 00 FF 0F A3 [23:51:45]RasterBufferAndPrint [23:51:45]line Х отчет [23:51:45]line ИНН: 02508201610067 [23:51:45]line Кассир: Сулайманов Т. [23:51:45]line 17.08.2024 23:51 [23:51:45]line Смена: 266 [23:51:45]line РНМ: 0000000000092546 [23:51:45]line ЗНМ: 0300000078 [23:51:45]line СНО: Общий режим [23:51:45]line Всего чеков: 169 [23:51:45]line ИТОГИ ПРИХОД [23:51:45]line Чеков: 169 [23:51:45]line Общий итог: 25080.00 [23:51:45]line Итого наличными: 18376.00 [23:51:45]line Итого безнал.: 6704.00 [23:51:45]line НДС 0% : 0.00 [23:51:45]line НДС 12% : 2663.26 [23:51:45]line НСП 0% : 0.00 [23:51:45]line НСП 1,50% : 0.00 [23:51:45]line НСП 0,50% : 0.00 [23:51:45]line НСП 5% : 0.00 [23:51:45]line НСП 3% : 0.00 [23:51:45]line НСП 2% : 0.00 [23:51:45]line НСП 1% : 221.85 [23:51:45]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:51:45]line Чеков: 0 [23:51:45]line Общий итог: 0.00 [23:51:45]line Итого наличными: 0.00 [23:51:45]line Итого безнал.: 0.00 [23:51:45]line НДС 0% : 0.00 [23:51:45]line НДС 12% : 0.00 [23:51:45]line НСП 0% : 0.00 [23:51:45]line НСП 1,50% : 0.00 [23:51:45]line НСП 0,50% : 0.00 [23:51:45]line НСП 5% : 0.00 [23:51:45]line НСП 3% : 0.00 [23:51:45]line НСП 2% : 0.00 [23:51:45]line НСП 1% : 0.00 [23:51:45]line ИТОГИ РАСХОД [23:51:45]line Чеков: 0 [23:51:45]line Общий итог: 0.00 [23:51:45]line Итого наличными: 0.00 [23:51:45]line Итого безнал.: 0.00 [23:51:45]line НДС 0% : 0.00 [23:51:45]line НДС 12% : 0.00 [23:51:45]line НСП 0% : 0.00 [23:51:45]line НСП 1,50% : 0.00 [23:51:45]line НСП 0,50% : 0.00 [23:51:45]line НСП 5% : 0.00 [23:51:45]line НСП 3% : 0.00 [23:51:45]line НСП 2% : 0.00 [23:51:45]line НСП 1% : 0.00 [23:51:45]line ИТОГИ ВОЗВРАТ РАСХОДА [23:51:45]line Чеков: 0 [23:51:45]line Общий итог: 0.00 [23:51:45]line Итого наличными: 0.00 [23:51:45]line Итого безнал.: 0.00 [23:51:45]line НДС 0% : 0.00 [23:51:45]line НДС 12% : 0.00 [23:51:45]line НСП 0% : 0.00 [23:51:45]line НСП 1,50% : 0.00 [23:51:45]line НСП 0,50% : 0.00 [23:51:45]line НСП 5% : 0.00 [23:51:45]line НСП 3% : 0.00 [23:51:45]line НСП 2% : 0.00 [23:51:45]line НСП 1% : 0.00 [23:51:45]line Сумма внесений: 0.00 [23:51:45]line Сумма выплат: 0.00 [23:51:45]line Нал. в кассе: 18376.00 [23:51:45]line НС Приход: 10259232.38 [23:51:45]line НС Возвр.Прихода: 24784.00 [23:51:45]line НС Расход: 0.00 [23:51:45]line НС Возвр.Расхода: 0.00 [23:51:45]line ФМ: 0000000000871800 [23:51:45]written 0, free lines is 4095 [23:51:46]Write to MH i2c: 01 00 00 9D 3C D9 [23:51:46]Write i2c OK [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: 01 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: 01 07 00 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: 01 07 00 9D 3C 00 00 00 00 00 A6 0A 90 [23:51:46]RasterBufferAndPrint [23:51:46]line [23:51:46]line [23:51:46]line [23:51:46]line [23:51:46]line [23:51:46]written 0, free lines is 2763 [23:51:46]MH_Cut [23:51:46]Write to MH i2c: D1 01 00 A4 3C 01 B2 [23:51:46]Write i2c OK [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: D1 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: D1 01 00 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: D1 01 00 A4 3C 00 B1 [23:51:46]Write to MH i2c: 01 00 00 A5 3C E1 [23:51:46]Write i2c OK [23:51:46]MH_I2C_Read... [23:51:47]*** Cut start [23:51:47]*** Purtial cut [23:51:47]*** Stage 1: CUTSNS_PIN = 1 [23:51:47]Read from MH i2c: 01 [23:51:47]MH_I2C_Read... [23:51:47]*** Stop cut motor [23:51:47]*** Cut end [23:51:47]Read from MH i2c: 01 07 00 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: 01 07 00 A5 3C 00 00 00 00 00 FF 0F F6 [23:51:47]process_action x_report done [23:51:47]requested_data is exist [23:51:47]produce_requested_data [23:51:47]requested_item fd.num is exist - process it [23:51:47]SAM_PROTO_GetFieldsCounters [23:51:47]wFMCommunicate request_size=4 [23:51:47]MH_SAM_APDU [23:51:47]CAPDU: 80 13 00 00 [23:51:47]Write to MH i2c: E2 08 00 A6 3C 80 13 00 00 00 00 00 00 5E [23:51:47]Write i2c OK [23:51:47]MH_I2C_Read... [23:51:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:47]Read from MH i2c: E2 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 62 00 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 62 00 A6 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [23:51: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:48]wFMCommunicate OK [23:51:48]SAM_PROTO_GetFieldsCounters done [23:51:48]requested_item shift.num is exist - process it [23:51:48]requested_item shift.opened is exist - process it [23:51:48]req_shift_opened [23:51:48]FM_GetShiftState [23:51:48]SAM_PROTO_GetShiftState [23:51:48]wFMCommunicate request_size=4 [23:51:48]MH_SAM_APDU [23:51:48]CAPDU: 80 13 01 00 [23:51:48]Write to MH i2c: E2 08 00 A7 3C 80 13 01 00 00 00 00 00 60 [23:51:48]Write i2c OK [23:51:48]MH_I2C_Read... [23:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:48]Read from MH i2c: E2 [23:51:48]MH_I2C_Read... [23:51:48]Read from MH i2c: E2 0E 00 [23:51:48]MH_I2C_Read... [23:51:48]Read from MH i2c: E2 0E 00 A7 3C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 A5 [23:51:48]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:51:48]wFMCommunicate OK [23:51:48]SAM_PROTO_GetShiftState done [23:51:48]FM_GetShiftState done [23:51:48]req_shift_opened done [23:51:48]requested_item shift.open_date is exist - process it [23:51:48]req_shift_open_date [23:51:48]req_shift_open_date done [23:51:48]produce_requested_data done [23:51:48]produce_requested_data return {"fd.num":49732,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [23:51:48]process_action_free x_report [23:51:48]json_value_free [23:51:48]json_value_free done [23:51:48]process_json_proto returns [23:51:48]Send response to host [23:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49732,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [23:51:48]free response buf [23:51:48]execute_script done [23:51:48]execute_script returns [23:51:48]free content buf [23:51:48]Sock 9.Close socket [23:51:48]Sock 9.Thread stoped [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:22]accept exits with 7 [23:52:22]New connection [23:52:22]New thread 3066801508 created [23:52:22]Thread 3066944868 joined [23:52:22]Waiting for new connection... [23:52:22] Sock 7.Parse request [23:52:22]Sock 7.Check first char [23:52:22]Sock 7.First char is OK [23:52:22]request: POST /json_proto HTTP/1.0 [23:52:22]Method: POST [23:52:22]URL: /json_proto [23:52:22]Method is POST - this is cgi request [23:52:22]url: /json_proto [23:52:22]query_string will be loaded in cgi processing [23:52:22]execute_cgi json_proto POST (null) [23:52:22]execute_cgi path=json_proto method=POST [23:52:22]POST find Content-Length [23:52:22]Host: 172.17.46.196:8080 [23:52:22]Content-Length: 215 [23:52:22]Content-Type: application/json [23:52:22] [23:52:22]POST finish read [23:52:22]Found Content-Length = 215 [23:52:22]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:52:22]execute_script... [23:52:22]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:52:22]POST & json_proto [23:52:22]process_json_proto [23:52:22]json parsed OK: [23:52:22]protocol is kg_v1.0 [23:52:22]action value=get_value [23:52:22]process_action get_value [23:52:22]cmd_get_value [23:52:22]process_action get_value done [23:52:22]requested_data is exist [23:52:22]produce_requested_data [23:52:22]requested_item kkm.sn is exist - process it [23:52:22]requested_item kkm.ver is exist - process it [23:52:22]requested_item fm.sn is exist - process it [23:52:22]wFMCommunicate request_size=4 [23:52:22]MH_SAM_APDU [23:52:22]CAPDU: 80 11 00 00 [23:52:22]Write to MH i2c: E2 08 00 A8 3C 80 11 00 00 00 00 00 00 5E [23:52:22]Write i2c OK [23:52:22]MH_I2C_Read... [23:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:22]Read from MH i2c: E2 [23:52:22]MH_I2C_Read... [23:52:22]Read from MH i2c: E2 17 00 [23:52:22]MH_I2C_Read... [23:52:22]Read from MH i2c: E2 17 00 A8 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A9 [23:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:52:22]wFMCommunicate OK [23:52:22]requested_item fd.num is exist - process it [23:52:22]SAM_PROTO_GetFieldsCounters [23:52:22]wFMCommunicate request_size=4 [23:52:22]MH_SAM_APDU [23:52:22]CAPDU: 80 13 00 00 [23:52:22]Write to MH i2c: E2 08 00 A9 3C 80 13 00 00 00 00 00 00 61 [23:52:22]Write i2c OK [23:52:22]MH_I2C_Read... [23:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:22]Read from MH i2c: E2 [23:52:22]MH_I2C_Read... [23:52:22]Read from MH i2c: E2 62 00 [23:52:22]MH_I2C_Read... [23:52:22]Read from MH i2c: E2 62 00 A9 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [23:52: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:22]wFMCommunicate OK [23:52:22]SAM_PROTO_GetFieldsCounters done [23:52:22]requested_item shift.num is exist - process it [23:52:22]requested_item shift.opened is exist - process it [23:52:22]req_shift_opened [23:52:22]FM_GetShiftState [23:52:22]SAM_PROTO_GetShiftState [23:52:22]wFMCommunicate request_size=4 [23:52:22]MH_SAM_APDU [23:52:22]CAPDU: 80 13 01 00 [23:52:22]Write to MH i2c: E2 08 00 AA 3C 80 13 01 00 00 00 00 00 63 [23:52:22]Write i2c OK [23:52:22]MH_I2C_Read... [23:52:22]Read from MH i2c: E2 [23:52:22]MH_I2C_Read... [23:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:22]Read from MH i2c: E2 0E 00 [23:52:22]MH_I2C_Read... [23:52:22]Read from MH i2c: E2 0E 00 AA 3C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 A8 [23:52:22]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:52:22]wFMCommunicate OK [23:52:22]SAM_PROTO_GetShiftState done [23:52:22]FM_GetShiftState done [23:52:22]req_shift_opened done [23:52:22]requested_item shift.open_date is exist - process it [23:52:22]req_shift_open_date [23:52:22]req_shift_open_date done [23:52:22]produce_requested_data done [23:52:22]produce_requested_data return {"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49732,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [23:52:22]process_action_free get_value [23:52:22]json_value_free [23:52:22]json_value_free done [23:52:22]process_json_proto returns [23:52:22]Send response to host [23:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49732,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [23:52:22]free response buf [23:52:22]execute_script done [23:52:22]execute_script returns [23:52:22]free content buf [23:52:22]Sock 7.Close socket [23:52:22]Sock 7.Thread stoped [23:52:22]accept exits with 9 [23:52:22]New connection [23:52:22]New thread 3066944868 created [23:52:22]Thread 3066801508 joined [23:52:22]Waiting for new connection... [23:52:22] Sock 9.Parse request [23:52:22]Sock 9.Check first char [23:52:22]Sock 9.First char is OK [23:52:22]request: POST /json_proto HTTP/1.0 [23:52:22]Method: POST [23:52:22]URL: /json_proto [23:52:22]Method is POST - this is cgi request [23:52:22]url: /json_proto [23:52:22]query_string will be loaded in cgi processing [23:52:22]execute_cgi json_proto POST (null) [23:52:22]execute_cgi path=json_proto method=POST [23:52:22]POST find Content-Length [23:52:22]Host: 172.17.46.196:8080 [23:52:22]Content-Length: 331 [23:52:22]Content-Type: application/json [23:52:22] [23:52:22]POST finish read [23:52:22]Found Content-Length = 331 [23:52:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:22]execute_script... [23:52:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:22]POST & json_proto [23:52:22]process_json_proto [23:52:22]json parsed OK: [23:52:22]protocol is kg_v1.0 [23:52:22]action value=get_value [23:52:22]process_action get_value [23:52:22]cmd_get_value [23:52:22]process_action get_value done [23:52:22]requested_data is exist [23:52:22]produce_requested_data [23:52:22]requested_item fm.sale.total is exist - process it [23:52:22]SAM_PROTO_GetFMData [23:52:22]wFMCommunicate request_size=4 [23:52:22]MH_SAM_APDU [23:52:22]CAPDU: 80 13 03 00 [23:52:22]Write to MH i2c: E2 08 00 AB 3C 80 13 03 00 00 00 00 00 66 [23:52:22]Write i2c OK [23:52:22]MH_I2C_Read... [23:52:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:23]Read from MH i2c: E2 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 FD 00 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 FD 00 AB 3C 00 C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 32 [23:52:23]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:52:23]wFMCommunicate OK [23:52:23]wFMCommunicate request_size=4 [23:52:23]MH_SAM_APDU [23:52:23]CAPDU: 80 17 00 00 [23:52:23]Write to MH i2c: E2 08 00 AC 3C 80 17 00 00 00 00 00 00 68 [23:52:23]Write i2c OK [23:52:23]MH_I2C_Read... [23:52:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:23]Read from MH i2c: E2 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 FD 00 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 FD 00 AC 3C 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9B [23:52:23]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:23]wFMCommunicate OK [23:52:23]wFMCommunicate request_size=4 [23:52:23]MH_SAM_APDU [23:52:23]CAPDU: 80 17 00 00 [23:52:23]Write to MH i2c: E2 08 00 AD 3C 80 17 00 00 00 00 00 00 69 [23:52:23]Write i2c OK [23:52:23]MH_I2C_Read... [23:52:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:23]Read from MH i2c: E2 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 FD 00 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 FD 00 AD 3C 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [23:52:23]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:23]wFMCommunicate OK [23:52:23]wFMCommunicate request_size=4 [23:52:23]MH_SAM_APDU [23:52:23]CAPDU: 80 17 00 00 [23:52:23]Write to MH i2c: E2 08 00 AE 3C 80 17 00 00 00 00 00 00 6A [23:52:23]Write i2c OK [23:52:23]MH_I2C_Read... [23:52:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:24]Read from MH i2c: E2 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 AE 3C 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 E2 [23:52:24]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [23:52:24]wFMCommunicate OK [23:52:24]wFMCommunicate request_size=4 [23:52:24]MH_SAM_APDU [23:52:24]CAPDU: 80 17 00 00 [23:52:24]Write to MH i2c: E2 08 00 AF 3C 80 17 00 00 00 00 00 00 6B [23:52:24]Write i2c OK [23:52:24]MH_I2C_Read... [23:52:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:52:24]Read from MH i2c: E2 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 DD 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 DD 00 AF 3C 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 53 [23:52:24]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:52:24]wFMCommunicate OK [23:52:24]SAM_PROTO_GetFMData done [23:52:24]requested_item fm.sale_refund.total is exist - process it [23:52:24]requested_item fm.buy.total is exist - process it [23:52:24]requested_item shift.sale.total is exist - process it [23:52:24]SAM_PROTO_GetShiftData [23:52:24]wFMCommunicate request_size=4 [23:52:24]MH_SAM_APDU [23:52:24]CAPDU: 80 13 02 00 [23:52:24]Write to MH i2c: E2 08 00 B0 3C 80 13 02 00 00 00 00 00 6A [23:52:24]Write i2c OK [23:52:24]MH_I2C_Read... [23:52:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 B0 3C 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7A [23:52:25]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:52:25]wFMCommunicate OK [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 17 00 00 [23:52:25]Write to MH i2c: E2 08 00 B1 3C 80 17 00 00 00 00 00 00 6D [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 B1 3C 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 8F [23:52:25]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 [23:52:25]wFMCommunicate OK [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 17 00 00 [23:52:25]Write to MH i2c: E2 08 00 B2 3C 80 17 00 00 00 00 00 00 6E [23:52:25]OFD Sender: No OFD packet to send [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 B2 3C 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 25 [23:52:25]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 [23:52:25]wFMCommunicate OK [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 17 00 00 [23:52:25]Write to MH i2c: E2 08 00 B3 3C 80 17 00 00 00 00 00 00 6F [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:26]Read from MH i2c: E2 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 FD 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 FD 00 B3 3C 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 E1 [23:52:26]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 [23:52:26]wFMCommunicate OK [23:52:26]wFMCommunicate request_size=4 [23:52:26]MH_SAM_APDU [23:52:26]CAPDU: 80 17 00 00 [23:52:26]Write to MH i2c: E2 08 00 B4 3C 80 17 00 00 00 00 00 00 70 [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:52:26]Read from MH i2c: E2 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 CB 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 CB 00 B4 3C 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 59 [23:52:26]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 [23:52:26]wFMCommunicate OK [23:52:26]SAM_PROTO_GetShiftData done [23:52:26]requested_item shift.sale.total_cash is exist - process it [23:52:26]requested_item shift.sale_refund.total is exist - process it [23:52:26]requested_item shift.sale_refund.total_cash is exist - process it [23:52:26]requested_item shift.buy.total is exist - process it [23:52:26]requested_item shift.buy.total_cash is exist - process it [23:52:26]produce_requested_data done [23:52:26]produce_requested_data return {"fm.sale.total":10259232.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":25080.00,"shift.sale.total_cash":18376.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} [23:52:26]process_action_free get_value [23:52:26]json_value_free [23:52:26]json_value_free done [23:52:26]process_json_proto returns [23:52:26]Send response to host [23:52:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10259232.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":25080.00,"shift.sale.total_cash":18376.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}}} [23:52:26]free response buf [23:52:26]execute_script done [23:52:26]execute_script returns [23:52:26]free content buf [23:52:26]Sock 9.Close socket [23:52:26]Sock 9.Thread stoped [23:52:26]accept exits with 7 [23:52:26]New connection [23:52:26]New thread 3066801508 created [23:52:26]Thread 3066944868 joined [23:52:26]Waiting for new connection... [23:52:26] Sock 7.Parse request [23:52:26]Sock 7.Check first char [23:52:26]Sock 7.First char is OK [23:52:26]request: POST /json_proto HTTP/1.0 [23:52:26]Method: POST [23:52:26]URL: /json_proto [23:52:26]Method is POST - this is cgi request [23:52:26]url: /json_proto [23:52:26]query_string will be loaded in cgi processing [23:52:26]execute_cgi json_proto POST (null) [23:52:26]execute_cgi path=json_proto method=POST [23:52:26]POST find Content-Length [23:52:26]Host: 172.17.46.196:8080 [23:52:26]Content-Length: 331 [23:52:26]Content-Type: application/json [23:52:26] [23:52:26]POST finish read [23:52:26]Found Content-Length = 331 [23:52:26]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:52:26]execute_script... [23:52:26]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:52:26]POST & json_proto [23:52:26]process_json_proto [23:52:26]json parsed OK: [23:52:26]protocol is kg_v1.0 [23:52:26]action value=get_value [23:52:26]process_action get_value [23:52:26]cmd_get_value [23:52:26]process_action get_value done [23:52:26]requested_data is exist [23:52:26]produce_requested_data [23:52:26]requested_item fm.sale.total is exist - process it [23:52:26]SAM_PROTO_GetFMData [23:52:26]wFMCommunicate request_size=4 [23:52:26]MH_SAM_APDU [23:52:26]CAPDU: 80 13 03 00 [23:52:26]Write to MH i2c: E2 08 00 B5 3C 80 13 03 00 00 00 00 00 70 [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:27]Read from MH i2c: E2 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 FD 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 FD 00 B5 3C 00 C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 3C [23:52:27]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:52:27]wFMCommunicate OK [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 17 00 00 [23:52:27]Write to MH i2c: E2 08 00 B6 3C 80 17 00 00 00 00 00 00 72 [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:27]Read from MH i2c: E2 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 FD 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 FD 00 B6 3C 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A5 [23:52:27]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:27]wFMCommunicate OK [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 17 00 00 [23:52:27]Write to MH i2c: E2 08 00 B7 3C 80 17 00 00 00 00 00 00 73 [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 B7 3C 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 16 [23:52:28]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:28]wFMCommunicate OK [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 17 00 00 [23:52:28]Write to MH i2c: E2 08 00 B8 3C 80 17 00 00 00 00 00 00 74 [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 B8 3C 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 EC [23:52:28]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [23:52:28]wFMCommunicate OK [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 17 00 00 [23:52:28]Write to MH i2c: E2 08 00 B9 3C 80 17 00 00 00 00 00 00 75 [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:52:29]Read from MH i2c: E2 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 DD 00 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 DD 00 B9 3C 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5D [23:52:29]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:52:29]wFMCommunicate OK [23:52:29]SAM_PROTO_GetFMData done [23:52:29]requested_item fm.sale_refund.total is exist - process it [23:52:29]requested_item fm.buy.total is exist - process it [23:52:29]requested_item shift.sale.total is exist - process it [23:52:29]SAM_PROTO_GetShiftData [23:52:29]wFMCommunicate request_size=4 [23:52:29]MH_SAM_APDU [23:52:29]CAPDU: 80 13 02 00 [23:52:29]Write to MH i2c: E2 08 00 BA 3C 80 13 02 00 00 00 00 00 74 [23:52:29]Write i2c OK [23:52:29]MH_I2C_Read... [23:52:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:29]Read from MH i2c: E2 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 BA 3C 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 84 [23:52:29]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:52:29]wFMCommunicate OK [23:52:29]wFMCommunicate request_size=4 [23:52:29]MH_SAM_APDU [23:52:29]CAPDU: 80 17 00 00 [23:52:29]Write to MH i2c: E2 08 00 BB 3C 80 17 00 00 00 00 00 00 77 [23:52:29]Write i2c OK [23:52:29]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 FD 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 FD 00 BB 3C 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 99 [23:52:30]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [23:52:30]wFMCommunicate OK [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 17 00 00 [23:52:30]Write to MH i2c: E2 08 00 BC 3C 80 17 00 00 00 00 00 00 78 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]OFD Sender: No OFD packet to send [23:52:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 FD 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 FD 00 BC 3C 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2F [23:52:30]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 [23:52:30]wFMCommunicate OK [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 17 00 00 [23:52:30]Write to MH i2c: E2 08 00 BD 3C 80 17 00 00 00 00 00 00 79 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:31]Read from MH i2c: E2 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 BD 3C 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 EB [23:52:31]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 [23:52:31]wFMCommunicate OK [23:52:31]wFMCommunicate request_size=4 [23:52:31]MH_SAM_APDU [23:52:31]CAPDU: 80 17 00 00 [23:52:31]Write to MH i2c: E2 08 00 BE 3C 80 17 00 00 00 00 00 00 7A [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:52:31]Read from MH i2c: E2 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 CB 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 CB 00 BE 3C 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 63 [23:52:31]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 [23:52:31]wFMCommunicate OK [23:52:31]SAM_PROTO_GetShiftData done [23:52:31]requested_item shift.sale.total_cash is exist - process it [23:52:31]requested_item shift.sale_refund.total is exist - process it [23:52:31]requested_item shift.sale_refund.total_cash is exist - process it [23:52:31]requested_item shift.buy.total is exist - process it [23:52:31]requested_item shift.buy.total_cash is exist - process it [23:52:31]produce_requested_data done [23:52:31]produce_requested_data return {"fm.sale.total":10259232.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":25080.00,"shift.sale.total_cash":18376.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} [23:52:31]process_action_free get_value [23:52:31]json_value_free [23:52:31]json_value_free done [23:52:31]process_json_proto returns [23:52:31]Send response to host [23:52:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10259232.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":25080.00,"shift.sale.total_cash":18376.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}}} [23:52:31]free response buf [23:52:31]execute_script done [23:52:31]execute_script returns [23:52:31]free content buf [23:52:31]Sock 7.Close socket [23:52:31]Sock 7.Thread stoped [23:52:31]accept exits with 9 [23:52:31]New connection [23:52:31]New thread 3066944868 created [23:52:31]Thread 3066801508 joined [23:52:31]Waiting for new connection... [23:52:31] Sock 9.Parse request [23:52:31]Sock 9.Check first char [23:52:31]Sock 9.First char is OK [23:52:31]request: POST /json_proto HTTP/1.0 [23:52:31]Method: POST [23:52:31]URL: /json_proto [23:52:31]Method is POST - this is cgi request [23:52:31]url: /json_proto [23:52:31]query_string will be loaded in cgi processing [23:52:31]execute_cgi json_proto POST (null) [23:52:31]execute_cgi path=json_proto method=POST [23:52:31]POST find Content-Length [23:52:31]Host: 172.17.46.196:8080 [23:52:31]Content-Length: 272 [23:52:31]Content-Type: application/json [23:52:31] [23:52:31]POST finish read [23:52:31]Found Content-Length = 272 [23:52:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0443\u043B\u0430\u0439\u043C\u0430\u043D\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:31]execute_script... [23:52:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0443\u043B\u0430\u0439\u043C\u0430\u043D\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:31]POST & json_proto [23:52:31]process_json_proto [23:52:31]json parsed OK: [23:52:31]protocol is kg_v1.0 [23:52:31]action value=close_shift [23:52:31]process_action close_shift [23:52:31]cmd_close_shift [23:52:31]MH_GetDate [23:52:31]Write to MH i2c: F0 00 00 BF 3C EA [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: F0 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: F0 09 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: F0 09 00 BF 3C 00 C5 37 C1 66 07 E8 5D 66 C8 [23:52:31]GetLastDocTimeStamp 1723938703 [23:52:31]current date 1723938757 [23:52:31]FM_GetShiftState [23:52:31]SAM_PROTO_GetShiftState [23:52:31]wFMCommunicate request_size=4 [23:52:31]MH_SAM_APDU [23:52:31]CAPDU: 80 13 01 00 [23:52:31]Write to MH i2c: E2 08 00 C0 3C 80 13 01 00 00 00 00 00 79 [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:31]Read from MH i2c: E2 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 0E 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 0E 00 C0 3C 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 BE [23:52:31]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [23:52:31]wFMCommunicate OK [23:52:31]SAM_PROTO_GetShiftState done [23:52:31]FM_GetShiftState done [23:52:31]KKMCreateCloseShiftDocument [23:52:31]Load OK [23:52:31]Malloc new data [23:52:31]MH_GetDate [23:52:31]Write to MH i2c: F0 00 00 C1 3C EC [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: F0 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: F0 09 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: F0 09 00 C1 3C 00 C6 37 C1 66 07 E8 5D 66 CB [23:52:31]Malloc new data [23:52:32]Malloc new data [23:52:32]Malloc new data [23:52:32]Malloc new data [23:52:32]KKMCreateCloseShiftDocument OK [23:52:32]KKMSetCloseShiftData OK [23:52:32]ProcessDocumentItem done err = 0, tmpTLVsize=75 [23:52:32]tlvbuf is 019E2E50 [23:52:32]KKMLoadAndSignCloseShiftData [23:52:32]SAM_PROTO_ProcessDocument [23:52:32]wFMCommunicate request_size=9 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 15 01 00 04 05 00 4B 00 [23:52:32]Write to MH i2c: E2 0C 00 C2 3C 80 15 01 00 04 00 05 00 4B 00 00 00 D5 [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 03 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 03 00 C2 3C 00 90 00 72 [23:52:32]RAPDU: 90 00 [23:52:32]wFMCommunicate OK [23:52:32]wFMCommunicate request_size=23 [23:52:32]MH_SAM_APDU [23:52:32]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:52:32]Write to MH i2c: E2 1A 00 C3 3C 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 74 [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 03 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 03 00 C3 3C 00 90 00 73 [23:52:32]RAPDU: 90 00 [23:52:32]wFMCommunicate OK [23:52:32]wFMCommunicate request_size=34 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 [23:52:32]Write to MH i2c: E2 25 00 C4 3C 80 15 02 00 1D 00 FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 00 00 B5 [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 03 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 03 00 C4 3C 00 90 00 74 [23:52:32]RAPDU: 90 00 [23:52:32]wFMCommunicate OK [23:52:32]wFMCommunicate request_size=13 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 15 02 00 08 F4 03 04 00 C6 37 C1 66 [23:52:32]Write to MH i2c: E2 10 00 C5 3C 80 15 02 00 08 00 F4 03 04 00 C6 37 C1 66 00 00 B0 [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 03 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 03 00 C5 3C 00 90 00 75 [23:52:32]RAPDU: 90 00 [23:52:32]wFMCommunicate OK [23:52:32]wFMCommunicate request_size=25 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [23:52:32]Write to MH i2c: E2 1C 00 C6 3C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 E5 [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 03 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 03 00 C6 3C 00 90 00 76 [23:52:32]RAPDU: 90 00 [23:52:32]wFMCommunicate OK [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 15 03 00 [23:52:32]Write to MH i2c: E2 08 00 C7 3C 80 15 03 00 00 00 00 00 84 [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 C7 3C 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 45 C2 00 00 0E 04 04 00 D1 01 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 58 [23:52:33]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 45 C2 00 00 0E 04 04 00 D1 01 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [23:52:33]wFMCommunicate OK [23:52:33]SAM_PROTO_ProcessDocument answer len = 1265 [23:52:33]SAM_PROTO_ProcessDocument remain to read = 1017 [23:52:33]wFMCommunicate request_size=4 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 17 00 00 [23:52:33]Write to MH i2c: E2 08 00 C8 3C 80 17 00 00 00 00 00 00 84 [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 C8 3C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 CD [23:52:33]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:52:33]wFMCommunicate OK [23:52:33]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:33]SAM_PROTO_ProcessDocument remain to read = 767 [23:52:33]wFMCommunicate request_size=4 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 17 00 00 [23:52:33]Write to MH i2c: E2 08 00 C9 3C 80 17 00 00 00 00 00 00 85 [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:34]Read from MH i2c: E2 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 C9 3C 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 E7 [23:52:34]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:52:34]wFMCommunicate OK [23:52:34]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:34]SAM_PROTO_ProcessDocument remain to read = 517 [23:52:34]wFMCommunicate request_size=4 [23:52:34]MH_SAM_APDU [23:52:34]CAPDU: 80 17 00 00 [23:52:34]Write to MH i2c: E2 08 00 CA 3C 80 17 00 00 00 00 00 00 86 [23:52:34]Write i2c OK [23:52:34]MH_I2C_Read... [23:52:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:34]Read from MH i2c: E2 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 CA 3C 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 10 [23:52:34]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [23:52:34]wFMCommunicate OK [23:52:34]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:34]SAM_PROTO_ProcessDocument remain to read = 267 [23:52:34]wFMCommunicate request_size=4 [23:52:34]MH_SAM_APDU [23:52:34]CAPDU: 80 17 00 00 [23:52:34]Write to MH i2c: E2 08 00 CB 3C 80 17 00 00 00 00 00 00 87 [23:52:34]Write i2c OK [23:52:34]MH_I2C_Read... [23:52:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:35]Read from MH i2c: E2 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 CB 3C 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 4F [23:52:35]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:52:35]wFMCommunicate OK [23:52:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:35]SAM_PROTO_ProcessDocument remain to read = 17 [23:52:35]wFMCommunicate request_size=4 [23:52:35]MH_SAM_APDU [23:52:35]CAPDU: 80 17 00 00 [23:52:35]Write to MH i2c: E2 08 00 CC 3C 80 17 00 00 00 00 00 00 88 [23:52:35]Write i2c OK [23:52:35]MH_I2C_Read... [23:52:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [23:52:35]Read from MH i2c: E2 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 14 00 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 14 00 CC 3C 00 01 00 06 F7 03 00 00 35 04 06 00 D1 A9 7E 42 F7 E6 90 00 E4 [23:52:35]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 D1 A9 7E 42 F7 E6 90 00 [23:52:35]wFMCommunicate OK [23:52:35]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [23:52:35]SAM_PROTO_ProcessDocument done [23:52:35]1209 (1) - 1.0 - номер версии ФФД [23:52:35]1041 (16) - 0000000000871800 - номер ФМ [23:52:35]1040 (4) - 49733 - номер ФД [23:52:35]1038 (4) - 465 - номер смены [23:52:35]1118 (4) - 169 - количество кассовых чеков за смену [23:52:35]1111 (4) - 171 - общее количество ФД за смену [23:52:35]1194 (1194) - счетчики итогов смены [23:52:35] 1134 (4) - 169 - количество чеков со всеми признаками расчетов [23:52:35] 1129 (155) - счетчики операций «приход» [23:52:35] 1135 (4) - 169 - количество чеков по признаку расчетов [23:52:35] 1201 (3) - 25080.00 - общая итоговая сумма в чеках [23:52:35] 1136 (3) - 18376.00 - итоговая сумма в чеках наличными [23:52:35] 1138 (3) - 6704.00 - итоговая сумма в чеках безналичными [23:52:35] 1024 (122) - суммы налогов [23:52:35] 1006 (9) - суммы НДС [23:52:35] 1010 (1) - 0% - код ставки НДС [23:52:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:35] 1006 (12) - суммы НДС [23:52:35] 1010 (1) - 12% - код ставки НДС [23:52:35] 1011 (3) - 2663.26 - сумма НДС по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 0% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (11) - суммы НСП [23:52:35] 1014 (1) - 1% - код ставки НСП [23:52:35] 1015 (2) - 221.85 - сумма НСП по ставке [23:52:35]OFD Sender: No OFD packet to send [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 2% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 3% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 5% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 0,50% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 1,50% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1130 (141) - счетчики операций «возврат прихода» [23:52:35] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:35] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:35] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:35] 1024 (117) - суммы налогов [23:52:35] 1006 (9) - суммы НДС [23:52:35] 1010 (1) - 0% - код ставки НДС [23:52:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:35] 1006 (9) - суммы НДС [23:52:35] 1010 (1) - 12% - код ставки НДС [23:52:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 0% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 1% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 2% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 3% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 5% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 0,50% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 1,50% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1131 (141) - счетчики операций «расход» [23:52:35] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:35] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:35] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:35] 1024 (117) - суммы налогов [23:52:35] 1006 (9) - суммы НДС [23:52:35] 1010 (1) - 0% - код ставки НДС [23:52:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:35] 1006 (9) - суммы НДС [23:52:35] 1010 (1) - 12% - код ставки НДС [23:52:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 0% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 1% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 2% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 3% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 5% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 0,50% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1007 (9) - суммы НСП [23:52:35] 1014 (1) - 1,50% - код ставки НСП [23:52:35] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:35] 1132 (141) - счетчики операций «возврат расхода» [23:52:35] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:35] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:35] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:35] 1024 (117) - суммы налогов [23:52:35] 1006 (9) - суммы НДС [23:52:35] 1010 (1) - 0% - код ставки НДС [23:52:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:35] 1006 (9) - суммы НДС [23:52:35] 1010 (1) - 12% - код ставки НДС [23:52:35] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:36] 1007 (9) - суммы НСП [23:52:36] 1014 (1) - 0% - код ставки НСП [23:52:36] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:36] 1007 (9) - суммы НСП [23:52:36] 1014 (1) - 1% - код ставки НСП [23:52:36] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:36] 1007 (9) - суммы НСП [23:52:36] 1014 (1) - 2% - код ставки НСП [23:52:36] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:36] 1007 (9) - суммы НСП [23:52:36] 1014 (1) - 3% - код ставки НСП [23:52:36] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:36] 1007 (9) - суммы НСП [23:52:36] 1014 (1) - 5% - код ставки НСП [23:52:36] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:36] 1007 (9) - суммы НСП [23:52:36] 1014 (1) - 0,50% - код ставки НСП [23:52:36] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:36] 1007 (9) - суммы НСП [23:52:36] 1014 (1) - 1,50% - код ставки НСП [23:52:36] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:36] 1133 (588) - - счетчики коррекции - не используются [23:52:36]1077 (6) - 230525897996262 - ФПД [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1209 (04B9) [23:52:36]Malloc new data [23:52:36]Processing tag 1041 (0411) [23:52:36]Processing tag 1040 (0410) [23:52:36]Malloc new data [23:52:36]Processing tag 1038 (040E) [23:52:36]Malloc new data [23:52:36]Processing tag 1118 (045E) [23:52:36]Malloc new data [23:52:36]Processing tag 1111 (0457) [23:52:36]Malloc new data [23:52:36]Processing tag 1194 (04AA) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1134 (046E) [23:52:36]Malloc new data [23:52:36]Processing tag 1129 (0469) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1135 (046F) [23:52:36]Malloc new data [23:52:36]Processing tag 1201 (04B1) [23:52:36]Malloc new data [23:52:36]Processing tag 1136 (0470) [23:52:36]Malloc new data [23:52:36]Processing tag 1138 (0472) [23:52:36]Malloc new data [23:52:36]Processing tag 1024 (0400) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1006 (03EE) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1010 (03F2) [23:52:36]Malloc new data [23:52:36]Processing tag 1011 (03F3) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1006 (03EE) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1010 (03F2) [23:52:36]Malloc new data [23:52:36]Processing tag 1011 (03F3) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]SetTLVBufToDocument err=0 [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1130 (046A) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1135 (046F) [23:52:36]Malloc new data [23:52:36]Processing tag 1201 (04B1) [23:52:36]Malloc new data [23:52:36]Processing tag 1136 (0470) [23:52:36]Malloc new data [23:52:36]Processing tag 1138 (0472) [23:52:36]Malloc new data [23:52:36]Processing tag 1024 (0400) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1006 (03EE) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1010 (03F2) [23:52:36]Malloc new data [23:52:36]Processing tag 1011 (03F3) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1006 (03EE) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1010 (03F2) [23:52:36]Malloc new data [23:52:36]Processing tag 1011 (03F3) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]SetTLVBufToDocument err=0 [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1131 (046B) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1135 (046F) [23:52:36]Malloc new data [23:52:36]Processing tag 1201 (04B1) [23:52:36]Malloc new data [23:52:36]Processing tag 1136 (0470) [23:52:36]Malloc new data [23:52:36]Processing tag 1138 (0472) [23:52:36]Malloc new data [23:52:36]Processing tag 1024 (0400) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1006 (03EE) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1010 (03F2) [23:52:36]Malloc new data [23:52:36]Processing tag 1011 (03F3) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1006 (03EE) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1010 (03F2) [23:52:36]Malloc new data [23:52:36]Processing tag 1011 (03F3) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]SetTLVBufToDocument err=0 [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1132 (046C) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1135 (046F) [23:52:36]Malloc new data [23:52:36]Processing tag 1201 (04B1) [23:52:36]Malloc new data [23:52:36]Processing tag 1136 (0470) [23:52:36]Malloc new data [23:52:36]Processing tag 1138 (0472) [23:52:36]Malloc new data [23:52:36]Processing tag 1024 (0400) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1006 (03EE) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1010 (03F2) [23:52:36]Malloc new data [23:52:36]Processing tag 1011 (03F3) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1006 (03EE) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1010 (03F2) [23:52:36]Malloc new data [23:52:36]Processing tag 1011 (03F3) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1007 (03EF) [23:52:36]Load OK [23:52:36]SetTLVBufToDocument [23:52:36]Processing tag 1014 (03F6) [23:52:36]Malloc new data [23:52:36]Processing tag 1015 (03F7) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]SetTLVBufToDocument err=0 [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1133 (046D) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Processing tag 1077 (0435) [23:52:36]Malloc new data [23:52:36]SetTLVBufToDocument err=0 [23:52:36]Malloc new data [23:52:36]SAM_PROTO_GetFMData [23:52:36]wFMCommunicate request_size=4 [23:52:36]MH_SAM_APDU [23:52:36]CAPDU: 80 13 03 00 [23:52:36]Write to MH i2c: E2 08 00 CD 3C 80 13 03 00 00 00 00 00 88 [23:52:36]Write i2c OK [23:52:36]MH_I2C_Read... [23:52:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:37]Read from MH i2c: E2 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 FD 00 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 FD 00 CD 3C 00 C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 54 [23:52:37]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:52:37]wFMCommunicate OK [23:52:37]wFMCommunicate request_size=4 [23:52:37]MH_SAM_APDU [23:52:37]CAPDU: 80 17 00 00 [23:52:37]Write to MH i2c: E2 08 00 CE 3C 80 17 00 00 00 00 00 00 8A [23:52:37]Write i2c OK [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 [23:52:37]MH_I2C_Read... [23:52:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:37]Read from MH i2c: E2 FD 00 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 FD 00 CE 3C 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BD [23:52:37]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:38]wFMCommunicate OK [23:52:38]wFMCommunicate request_size=4 [23:52:38]MH_SAM_APDU [23:52:38]CAPDU: 80 17 00 00 [23:52:38]Write to MH i2c: E2 08 00 CF 3C 80 17 00 00 00 00 00 00 8B [23:52:38]Write i2c OK [23:52:38]MH_I2C_Read... [23:52:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:38]Read from MH i2c: E2 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: E2 FD 00 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: E2 FD 00 CF 3C 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [23:52:38]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:38]wFMCommunicate OK [23:52:38]wFMCommunicate request_size=4 [23:52:38]MH_SAM_APDU [23:52:38]CAPDU: 80 17 00 00 [23:52:38]Write to MH i2c: E2 08 00 D0 3C 80 17 00 00 00 00 00 00 8C [23:52:38]Write i2c OK [23:52:38]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 FD 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 FD 00 D0 3C 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 04 [23:52:39]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [23:52:39]wFMCommunicate OK [23:52:39]wFMCommunicate request_size=4 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 17 00 00 [23:52:39]Write to MH i2c: E2 08 00 D1 3C 80 17 00 00 00 00 00 00 8D [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 DD 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 DD 00 D1 3C 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [23:52:39]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:52:40]wFMCommunicate OK [23:52:40]SAM_PROTO_GetFMData done [23:52:40]Malloc new data [23:52:40]Malloc new data [23:52:40]Malloc new data [23:52:40]Malloc new data [23:52:40]KKMLoadAndSignCloseShiftData err=0 [23:52:40]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сулайманов Т. 17.08.2024 23:52 Смена: 465 РНМ: 0000000000092546 ЗНМ: 0300000078 СНО: Общий режим Чеков за смену: 169 ФД за смену: 171 Всего чеков: 169 ИТОГИ ПРИХОД Чеков: 169 Общий итог: 25080.00 Итого наличными: 18376.00 Итого безнал.: 6704.00 НДС 0% : 0.00 НДС 12% : 2663.26 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 221.85 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 18376.00 НС Приход: 10259232.38 НС Возвр.Прихода: 24784.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 49733 ФМ: 0000000000871800 ФПД: 230525897996262 [23:52:40]StoreToDocumentArchive [23:52:40]shift 465 fd 49733 [23:52:40]save to /storage/0465/doc_00049733 [23:52:40]save last doc name /storage/0465/doc_00049733 to /storage/kkm_last_doc_name [23:52:40]save OK [23:52:40]Clear old archive folders... [23:52:40]Remove dir /storage/0266 [23:52:40]opendir ok [23:52:40]file . [23:52:40]file .. [23:52:40]file doc_1723938711 [23:52:40]remove file /storage/0266/doc_1723938711 [23:52:40]remove dir /storage/0266 [23:52:40]NVStorageSaveData kkm_registers [23:52:40]File name is /storage/kkm_registers [23:52:40]Write 24 bytes [23:52:40]NVStorageSaveData done [23:52:40]NVStorageSaveData kkm_registers [23:52:40]File name is /storage/kkm_registers [23:52:40]Write 24 bytes [23:52:40]NVStorageSaveData done [23:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=1383 [23:52:40]tlvbuf is 01A16EA0 [23:52:40]SAM_PROTO_ClearQueue [23:52:40]wFMCommunicate request_size=4 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 09 00 00 [23:52:40]Write to MH i2c: E2 08 00 D2 3C 80 09 00 00 00 00 00 00 80 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 03 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 03 00 D2 3C 00 90 00 82 [23:52:40]RAPDU: 90 00 [23:52:40]wFMCommunicate OK [23:52:40]SAM_PROTO_ClearQueue done [23:52:40]KKMCreateOFDPacket [23:52:40]OFDProtocolAddRootSTLVToBuf [23:52:40]FM_MakeSignedData [23:52:40]FM_MakeSignedData [23:52:40]SAM_PROTO_SignData [23:52:40]wFMCommunicate request_size=4 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 0D 01 02 [23:52:40]Write to MH i2c: E2 08 00 D3 3C 80 0D 01 02 00 00 00 00 88 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 03 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 03 00 D3 3C 00 90 00 83 [23:52:40]RAPDU: 90 00 [23:52:40]wFMCommunicate OK [23:52:40]wFMCommunicate request_size=255 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 0D 02 02 FA 05 00 67 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 C6 37 C1 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 D5 04 6E 04 04 00 A9 00 00 00 69 04 A2 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 56 10 04 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 [23:52:40]Write to MH i2c: E2 02 01 D4 3C 80 0D 02 02 FA 00 05 00 67 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 C6 37 C1 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 D5 04 6E 04 04 00 A9 00 00 00 69 04 A2 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 56 10 04 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 00 74 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]OFD Sender: No OFD packet to send [23:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 03 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 03 00 D4 3C 00 90 00 84 [23:52:40]RAPDU: 90 00 [23:52:40]wFMCommunicate OK [23:52:40]wFMCommunicate request_size=255 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 0D 02 02 FA 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 A9 56 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 [23:52:41]Write to MH i2c: E2 02 01 D5 3C 80 0D 02 02 FA 00 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 A9 56 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 F7 [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:41]Read from MH i2c: E2 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 03 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 03 00 D5 3C 00 90 00 85 [23:52:41]RAPDU: 90 00 [23:52:41]wFMCommunicate OK [23:52:41]wFMCommunicate request_size=255 [23:52:41]MH_SAM_APDU [23:52:41]CAPDU: 80 0D 02 02 FA 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 [23:52:41]Write to MH i2c: E2 02 01 D6 3C 80 0D 02 02 FA 00 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 00 52 [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 03 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 03 00 D6 3C 00 90 00 86 [23:52:42]RAPDU: 90 00 [23:52:42]wFMCommunicate OK [23:52:42]wFMCommunicate request_size=255 [23:52:42]MH_SAM_APDU [23:52:42]CAPDU: 80 0D 02 02 FA 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 [23:52:42]Write to MH i2c: E2 02 01 D7 3C 80 0D 02 02 FA 00 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 00 00 51 [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 03 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 03 00 D7 3C 00 90 00 87 [23:52:42]RAPDU: 90 00 [23:52:42]wFMCommunicate OK [23:52:42]wFMCommunicate request_size=255 [23:52:42]MH_SAM_APDU [23:52:42]CAPDU: 80 0D 02 02 FA 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 [23:52:43]Write to MH i2c: E2 02 01 D8 3C 80 0D 02 02 FA 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 00 00 16 [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 03 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 03 00 D8 3C 00 90 00 88 [23:52:43]RAPDU: 90 00 [23:52:43]wFMCommunicate OK [23:52:43]wFMCommunicate request_size=142 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 0D 02 02 89 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 45 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 D1 A9 7E 42 F7 E6 [23:52:43]Write to MH i2c: E2 91 00 D9 3C 80 0D 02 02 89 00 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 45 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 D1 A9 7E 42 F7 E6 00 00 EC [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 03 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 03 00 D9 3C 00 90 00 89 [23:52:43]RAPDU: 90 00 [23:52:43]wFMCommunicate OK [23:52:43]wFMCommunicate request_size=4 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 0D 03 02 [23:52:43]Write to MH i2c: E2 08 00 DA 3C 80 0D 03 02 00 00 00 00 91 [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:44]Read from MH i2c: E2 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 0B 00 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 0B 00 DA 3C 00 39 8C 39 2E 52 18 F8 E6 90 00 06 [23:52:44]RAPDU: 39 8C 39 2E 52 18 F8 E6 90 00 [23:52:44]wFMCommunicate OK [23:52:44]SAM_PROTO_SignData done [23:52:44]FM_MakeSignedData done [23:52:44]CreateOFDProtocolMessage [23:52:44]wFMCommunicate request_size=4 [23:52:44]MH_SAM_APDU [23:52:44]CAPDU: 80 11 00 00 [23:52:44]Write to MH i2c: E2 08 00 DB 3C 80 11 00 00 00 00 00 00 91 [23:52:44]Write i2c OK [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 [23:52:44]MH_I2C_Read... [23:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:44]Read from MH i2c: E2 17 00 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 17 00 DB 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DC [23:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:52:44]wFMCommunicate OK [23:52:44]CreateOFDProtocolMessage done [23:52:44]OFDSenderStorePacket 49733 [23:52:44]StoreOFDPacket docnum=49733 [23:52:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 7B 05 00 00 9D E7 73 05 03 F7 5A 05 01 00 05 00 67 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 C6 37 C1 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 D5 04 6E 04 04 00 A9 00 00 00 69 04 A2 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 56 10 04 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 A9 56 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 45 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 D1 A9 7E 42 F7 E6 39 8C 39 2E 52 18 F8 E6 [23:52:44]CheckFolder [23:52:44]dirname=/storage/ofd_packets [23:52:44]CheckFolder done [23:52:44]ProducePacketName [23:52:44]name=ofd_packets/00049733 [23:52:44]NVStorageSaveData ofd_packets/00049733 [23:52:44]File name is /storage/ofd_packets/00049733 [23:52:44]Write 1433 bytes [23:52:44]NVStorageSaveData done [23:52:44]OFDSenderStorePacket done [23:52:44]KKMCreateOFDPacket done [23:52:44]NVStorageSaveData kkm_last_timestamp [23:52:44]File name is /storage/kkm_last_timestamp [23:52:44]Write 4 bytes [23:52:44]NVStorageSaveData done [23:52:44]ExternCall_PrintAddStr [23:52:44]wPrintStart [23:52:44]Write to MH i2c: 01 00 00 DC 3C 18 [23:52:44]Write i2c OK [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: 01 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: 01 07 00 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: 01 07 00 DC 3C 00 00 00 00 00 FF 0F 2D [23:52:44]RasterBufferAndPrint [23:52:44]line Отчет о закрытии смены [23:52:44]line ФФД: 1.0 [23:52:44]line ИНН: 02508201610067 [23:52:44]line Кассир: Сулайманов Т. [23:52:44]line 17.08.2024 23:52 [23:52:44]line Смена: 465 [23:52:44]line РНМ: 0000000000092546 [23:52:44]line ЗНМ: 0300000078 [23:52:44]line СНО: Общий режим [23:52:44]line Чеков за смену: 169 [23:52:44]line ФД за смену: 171 [23:52:44]line Всего чеков: 169 [23:52:44]line ИТОГИ ПРИХОД [23:52:44]line Чеков: 169 [23:52:44]line Общий итог: 25080.00 [23:52:44]line Итого наличными: 18376.00 [23:52:44]line Итого безнал.: 6704.00 [23:52:44]line НДС 0% : 0.00 [23:52:44]line НДС 12% : 2663.26 [23:52:44]line НСП 0% : 0.00 [23:52:44]line НСП 1,50% : 0.00 [23:52:44]line НСП 0,50% : 0.00 [23:52:44]line НСП 5% : 0.00 [23:52:44]line НСП 3% : 0.00 [23:52:44]line НСП 2% : 0.00 [23:52:44]line НСП 1% : 221.85 [23:52:44]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:52:44]line Чеков: 0 [23:52:44]line Общий итог: 0.00 [23:52:44]line Итого наличными: 0.00 [23:52:44]line Итого безнал.: 0.00 [23:52:44]line НДС 0% : 0.00 [23:52:44]line НДС 12% : 0.00 [23:52:44]line НСП 0% : 0.00 [23:52:44]line НСП 1,50% : 0.00 [23:52:44]line НСП 0,50% : 0.00 [23:52:44]line НСП 5% : 0.00 [23:52:44]line НСП 3% : 0.00 [23:52:44]line НСП 2% : 0.00 [23:52:44]line НСП 1% : 0.00 [23:52:44]line ИТОГИ РАСХОД [23:52:44]line Чеков: 0 [23:52:44]line Общий итог: 0.00 [23:52:44]line Итого наличными: 0.00 [23:52:44]line Итого безнал.: 0.00 [23:52:44]line НДС 0% : 0.00 [23:52:44]line НДС 12% : 0.00 [23:52:44]line НСП 0% : 0.00 [23:52:44]line НСП 1,50% : 0.00 [23:52:44]line НСП 0,50% : 0.00 [23:52:44]line НСП 5% : 0.00 [23:52:44]line НСП 3% : 0.00 [23:52:44]line НСП 2% : 0.00 [23:52:44]line НСП 1% : 0.00 [23:52:44]line ИТОГИ ВОЗВРАТ РАСХОДА [23:52:44]line Чеков: 0 [23:52:44]line Общий итог: 0.00 [23:52:44]line Итого наличными: 0.00 [23:52:44]line Итого безнал.: 0.00 [23:52:44]line НДС 0% : 0.00 [23:52:44]line НДС 12% : 0.00 [23:52:44]line НСП 0% : 0.00 [23:52:44]line НСП 1,50% : 0.00 [23:52:44]line НСП 0,50% : 0.00 [23:52:44]line НСП 5% : 0.00 [23:52:44]line НСП 3% : 0.00 [23:52:44]OFD Sender: Processing packet 49733 [packets to send 21, broken 20] [23:52:44]line НСП 2% : 0.00 [23:52:44]ProducePacketName [23:52:44]line НСП 1% : 0.00 [23:52:44]name=ofd_packets/00049733 [23:52:44]line Сумма внесений: 0.00 [23:52:44]OFD Sender: To server: pG, [23:52:44]line Сумма выплат: 0.00 [23:52:44]CommunicateWithHost lk.salyk.kg:30040 [23:52:44]line Нал. в кассе: 18376.00 [23:52:44]ConnectInit lk.salyk.kg [23:52:44]line НС Приход: 10259232.38 [23:52:44]line НС Возвр.Прихода: 24784.00 [23:52:44]line НС Расход: 0.00 [23:52:44]line НС Возвр.Расхода: 0.00 [23:52:44]line ФД: 49733 [23:52:44]line ФМ: 0000000000871800 [23:52:44]line ФПД: 230525897996262 [23:52:44]written 0, free lines is 4095 [23:52:44]Connected sock=10 [23:52:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 7B 05 00 00 9D E7 73 05 03 F7 5A 05 01 00 05 00 67 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 C6 37 C1 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 D5 04 6E 04 04 00 A9 00 00 00 69 04 A2 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 56 10 04 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 A9 56 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 Write to MH i2c: 00 01 00 00 00 00 00 2C 3D B1 69 04 [23:52:45]01 00 00 70 04 01 00 00 72 04 Write i2c OK [23:52:45]01 MH_I2C_Read... [23:52:45]00 Read from MH i2c: 00 01 00 [23:52:45]04 MH_I2C_Read... [23:52:45]7E Read from MH i2c: 00 01 EE 07 03 00 0A [23:52:45]00 MH_I2C_Read... [23:52:45]F2 Read from MH i2c: 03 01 01 07 00 00 2C 00 3D F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 00 01 00 F3 00 03 00 01 00 B0 00 0A 00 2A EF [23:52:45]03 RasterBufferAndPrint [23:52:45]0A line [23:52:45]00 line [23:52:45]F6 line [23:52:45]03 line [23:52:45]01 line [23:52:45]00 00 F7 written 0, free lines is 2919 [23:52:45]03 01 00 00 EF 03 0A 00 F6 03 01 00 MH_Cut [23:52:45]06 Write to MH i2c: F7 D1 03 01 01 00 00 33 00 EF 3D 03 01 0A 42 00 [23:52:45]F6 03 01 00 05 Write i2c OK [23:52:45]F7 MH_I2C_Read... [23:52:45]03 Read from MH i2c: 01 D1 00 [23:52:45]00 EF MH_I2C_Read... [23:52:45]03 Read from MH i2c: 0A D1 00 01 00 F6 [23:52:45]03 MH_I2C_Read... [23:52:45]01 Read from MH i2c: 00 D1 04 01 F7 00 03 33 01 3D 00 00 00 41 EF [23:52:45]03 Write to MH i2c: 0A 01 00 00 F6 00 03 34 01 3D 00 71 03 [23:52:45]F7 03 Write i2c OK [23:52:45]01 MH_I2C_Read... [23:52:45]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 *** Cut start [23:52:46]09 *** Purtial cut [23:52:46]00 F6 *** CUTSNS_PIN = 0 [23:52:46]03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 45 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 D1 A9 7E 42 F7 E6 39 8C 39 2E 52 18 F8 E6 [23:52:46]*** Stage 1: CUTSNS_PIN = 1 [23:52:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 77 EE 47 00 B6 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 31 38 30 30 10 04 04 00 45 C2 00 00 F4 03 04 00 0D E3 C0 66 B6 04 01 00 00 CB 7A B5 05 37 3A 35 22 [23:52:47]CommunicateWithHost err = 0 [23:52:47]CheckOFDResponse [23:52:47]1017 (14) - 77093643461234 [23:52:47]1041 (16) - 0000000000871800 [23:52:47]1040 (4) - 49733 [23:52:47]1012 (4) - 17.08.2024 17:51 [23:52:47]1206 (1) - 0 [23:52:47]OFD Sender: Remove packet 49733 [23:52:47]ProducePacketName [23:52:47]name=ofd_packets/00049733 [23:52:47]NVStorageDeleteData [23:52:47]OFD Sender: No OFD packet to send [23:52:48]Read from MH i2c: 01 [23:52:48]MH_I2C_Read... [23:52:48]*** Stop cut motor [23:52:48]*** Cut end [23:52:48]Read from MH i2c: 01 07 00 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: 01 07 00 34 3D 00 00 00 00 00 FF 0F 86 [23:52:48]process_action close_shift done [23:52:48]requested_data is exist [23:52:48]produce_requested_data [23:52:48]requested_item fd.num is exist - process it [23:52:48]SAM_PROTO_GetFieldsCounters [23:52:48]wFMCommunicate request_size=4 [23:52:48]MH_SAM_APDU [23:52:48]CAPDU: 80 13 00 00 [23:52:48]Write to MH i2c: E2 08 00 35 3D 80 13 00 00 00 00 00 00 EE [23:52:48]Write i2c OK [23:52:48]MH_I2C_Read... [23:52:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:48]Read from MH i2c: E2 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 62 00 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 62 00 35 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 45 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [23:52: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 45 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:49]wFMCommunicate OK [23:52:49]SAM_PROTO_GetFieldsCounters done [23:52:49]requested_item shift.num is exist - process it [23:52:49]requested_item shift.opened is exist - process it [23:52:49]req_shift_opened [23:52:49]FM_GetShiftState [23:52:49]SAM_PROTO_GetShiftState [23:52:49]wFMCommunicate request_size=4 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 13 01 00 [23:52:49]Write to MH i2c: E2 08 00 36 3D 80 13 01 00 00 00 00 00 F0 [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:49]Read from MH i2c: E2 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 0E 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 0E 00 36 3D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FB [23:52:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:52:49]wFMCommunicate OK [23:52:49]SAM_PROTO_GetShiftState done [23:52:49]FM_GetShiftState done [23:52:49]req_shift_opened done [23:52:49]requested_item shift.open_date is exist - process it [23:52:49]req_shift_open_date [23:52:49]FM_GetShiftState [23:52:49]SAM_PROTO_GetShiftState [23:52:49]wFMCommunicate request_size=4 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 13 01 00 [23:52:49]Write to MH i2c: E2 08 00 37 3D 80 13 01 00 00 00 00 00 F1 [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:49]Read from MH i2c: E2 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 0E 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 0E 00 37 3D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FC [23:52:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:52:49]wFMCommunicate OK [23:52:49]SAM_PROTO_GetShiftState done [23:52:49]FM_GetShiftState done [23:52:49]req_shift_open_date done [23:52:49]produce_requested_data done [23:52:49]produce_requested_data return {"fd.num":49733,"shift.num":465,"shift.opened":0,"shift.open_date":0} [23:52:49]process_action_free close_shift [23:52:49]json_value_free [23:52:49]json_value_free done [23:52:49]process_json_proto returns [23:52:49]Send response to host [23:52:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49733,"shift.num":465,"shift.opened":0,"shift.open_date":0}}} [23:52:49]free response buf [23:52:49]execute_script done [23:52:49]execute_script returns [23:52:49]free content buf [23:52:49]Sock 9.Close socket [23:52:49]Sock 9.Thread stoped [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]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:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [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: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: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:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [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: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: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: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:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:53]int [23:57:53]Write to MH i2c: 01 00 00 38 3D 75 [23:57:53]*** FLAG_PRN_KEY set [23:57:53]Write i2c OK [23:57:53]MH_I2C_Read... [23:57:53]Read from MH i2c: 01 [23:57:53]MH_I2C_Read... [23:57:53]Read from MH i2c: 01 07 00 [23:57:53]MH_I2C_Read... [23:57:53]Read from MH i2c: 01 07 00 38 3D 00 08 00 00 00 FF 0F 92 [23:57:53]state=0 [23:57:53]Key pressed [23:57:53]Feed [23:57:53]Write to MH i2c: D8 00 00 39 3D 4D [23:57:53]Write i2c OK [23:57:53]MH_I2C_Read... [23:57:53]Read from MH i2c: D8 [23:57:53]MH_I2C_Read... [23:57:53]Read from MH i2c: D8 01 00 [23:57:53]MH_I2C_Read... [23:57:53]Read from MH i2c: D8 01 00 39 3D 00 4E [23:57:53]int [23:57:53]Write to MH i2c: 01 00 00 3A 3D 77 [23:57:53]Write i2c OK [23:57:53]MH_I2C_Read... [23:57:53]Read from MH i2c: 01 [23:57:53]MH_I2C_Read... [23:57:53]Read from MH i2c: 01 07 00 [23:57:53]MH_I2C_Read... [23:57:53]Read from MH i2c: 01 07 00 3A 3D 00 48 00 00 00 3C 00 02 [23:57:53]state=2 [23:57:53]Key pressed [23:57:53]int [23:57:53]Write to MH i2c: 01 00 00 3B 3D 78 [23:57:53]*** FLAG_PRN_KEY reset [23:57:53]Write i2c OK [23:57:53]MH_I2C_Read... [23:57:53]Read from MH i2c: 01 [23:57:53]MH_I2C_Read... [23:57:53]Read from MH i2c: 01 07 00 [23:57:53]MH_I2C_Read... [23:57:53]Read from MH i2c: 01 07 00 3B 3D 00 00 00 00 00 F5 0F 83 [23:57:53]state=2 [23:57:53]Stop feed [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: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:57]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]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: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: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: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: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: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:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:08]accept exits with 7 [00:09:08]New connection [00:09:08]New thread 3066801508 created [00:09:08]Thread 3066944868 joined [00:09:08]Waiting for new connection... [00:09:08] Sock 7.Parse request [00:09:08]Sock 7.Check first char [00:09:08]Sock 7.First char is OK [00:09:08]request: POST /json_proto HTTP/1.0 [00:09:08]Method: POST [00:09:08]URL: /json_proto [00:09:08]Method is POST - this is cgi request [00:09:08]url: /json_proto [00:09:08]query_string will be loaded in cgi processing [00:09:08]execute_cgi json_proto POST (null) [00:09:08]execute_cgi path=json_proto method=POST [00:09:08]POST find Content-Length [00:09:08]Host: 172.17.46.196:8080 [00:09:08]Content-Length: 215 [00:09:08]Content-Type: application/json [00:09:08] [00:09:08]POST finish read [00:09:08]Found Content-Length = 215 [00:09:08]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:09:08]execute_script... [00:09:08]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:09:08]POST & json_proto [00:09:08]process_json_proto [00:09:08]json parsed OK: [00:09:08]protocol is kg_v1.0 [00:09:08]action value=get_value [00:09:08]process_action get_value [00:09:08]cmd_get_value [00:09:08]process_action get_value done [00:09:08]requested_data is exist [00:09:08]produce_requested_data [00:09:08]requested_item kkm.sn is exist - process it [00:09:08]requested_item kkm.ver is exist - process it [00:09:08]requested_item fm.sn is exist - process it [00:09:08]wFMCommunicate request_size=4 [00:09:08]MH_SAM_APDU [00:09:08]CAPDU: 80 11 00 00 [00:09:08]Write to MH i2c: E2 08 00 3C 3D 80 11 00 00 00 00 00 00 F3 [00:09:08]Write i2c OK [00:09:08]MH_I2C_Read... [00:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:08]Read from MH i2c: E2 [00:09:08]MH_I2C_Read... [00:09:08]Read from MH i2c: E2 17 00 [00:09:08]MH_I2C_Read... [00:09:08]Read from MH i2c: E2 17 00 3C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3E [00:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:09:08]wFMCommunicate OK [00:09:08]requested_item fd.num is exist - process it [00:09:08]SAM_PROTO_GetFieldsCounters [00:09:08]wFMCommunicate request_size=4 [00:09:08]MH_SAM_APDU [00:09:08]CAPDU: 80 13 00 00 [00:09:08]Write to MH i2c: E2 08 00 3D 3D 80 13 00 00 00 00 00 00 F6 [00:09:08]Write i2c OK [00:09:08]MH_I2C_Read... [00:09:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:09]Read from MH i2c: E2 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 62 00 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 62 00 3D 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 45 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [00:09: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 45 C2 00 00 0E 04 04 00 D1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:09]wFMCommunicate OK [00:09:09]SAM_PROTO_GetFieldsCounters done [00:09:09]requested_item shift.num is exist - process it [00:09:09]requested_item shift.opened is exist - process it [00:09:09]req_shift_opened [00:09:09]FM_GetShiftState [00:09:09]SAM_PROTO_GetShiftState [00:09:09]wFMCommunicate request_size=4 [00:09:09]MH_SAM_APDU [00:09:09]CAPDU: 80 13 01 00 [00:09:09]Write to MH i2c: E2 08 00 3E 3D 80 13 01 00 00 00 00 00 F8 [00:09:09]Write i2c OK [00:09:09]MH_I2C_Read... [00:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:09]Read from MH i2c: E2 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 0E 00 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 0E 00 3E 3D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 03 [00:09:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:09]wFMCommunicate OK [00:09:09]SAM_PROTO_GetShiftState done [00:09:09]FM_GetShiftState done [00:09:09]req_shift_opened done [00:09:09]requested_item shift.open_date is exist - process it [00:09:09]req_shift_open_date [00:09:09]FM_GetShiftState [00:09:09]SAM_PROTO_GetShiftState [00:09:09]wFMCommunicate request_size=4 [00:09:09]MH_SAM_APDU [00:09:09]CAPDU: 80 13 01 00 [00:09:09]Write to MH i2c: E2 08 00 3F 3D 80 13 01 00 00 00 00 00 F9 [00:09:09]Write i2c OK [00:09:09]MH_I2C_Read... [00:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:09]Read from MH i2c: E2 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 0E 00 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 0E 00 3F 3D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 04 [00:09:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:09]wFMCommunicate OK [00:09:09]SAM_PROTO_GetShiftState done [00:09:09]FM_GetShiftState done [00:09:09]req_shift_open_date done [00:09:09]produce_requested_data done [00:09:09]produce_requested_data return {"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49733,"shift.num":465,"shift.opened":0,"shift.open_date":0} [00:09:09]process_action_free get_value [00:09:09]json_value_free [00:09:09]json_value_free done [00:09:09]process_json_proto returns [00:09:09]Send response to host [00:09:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49733,"shift.num":465,"shift.opened":0,"shift.open_date":0}}} [00:09:09]free response buf [00:09:09]execute_script done [00:09:09]execute_script returns [00:09:09]free content buf [00:09:09]Sock 7.Close socket [00:09:09]Sock 7.Thread stoped [00:09:09]accept exits with 9 [00:09:09]New connection [00:09:09]New thread 3066944868 created [00:09:09]Thread 3066801508 joined [00:09:09]Waiting for new connection... [00:09:09] Sock 9.Parse request [00:09:09]Sock 9.Check first char [00:09:09]Sock 9.First char is OK [00:09:09]request: POST /json_proto HTTP/1.0 [00:09:09]Method: POST [00:09:09]URL: /json_proto [00:09:09]Method is POST - this is cgi request [00:09:09]url: /json_proto [00:09:09]query_string will be loaded in cgi processing [00:09:09]execute_cgi json_proto POST (null) [00:09:09]execute_cgi path=json_proto method=POST [00:09:09]POST find Content-Length [00:09:09]Host: 172.17.46.196:8080 [00:09:09]Content-Length: 331 [00:09:09]Content-Type: application/json [00:09:09] [00:09:09]POST finish read [00:09:09]Found Content-Length = 331 [00:09:09]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:09:09]execute_script... [00:09:09]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:09:09]POST & json_proto [00:09:09]process_json_proto [00:09:09]json parsed OK: [00:09:09]protocol is kg_v1.0 [00:09:09]action value=get_value [00:09:09]process_action get_value [00:09:09]cmd_get_value [00:09:09]process_action get_value done [00:09:09]requested_data is exist [00:09:09]produce_requested_data [00:09:09]requested_item fm.sale.total is exist - process it [00:09:09]SAM_PROTO_GetFMData [00:09:09]wFMCommunicate request_size=4 [00:09:09]MH_SAM_APDU [00:09:09]CAPDU: 80 13 03 00 [00:09:09]Write to MH i2c: E2 08 00 40 3D 80 13 03 00 00 00 00 00 FC [00:09:09]Write i2c OK [00:09:09]MH_I2C_Read... [00:09:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:09]Read from MH i2c: E2 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 FD 00 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 FD 00 40 3D 00 C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 C8 [00:09:09]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [00:09:09]wFMCommunicate OK [00:09:09]wFMCommunicate request_size=4 [00:09:09]MH_SAM_APDU [00:09:09]CAPDU: 80 17 00 00 [00:09:09]Write to MH i2c: E2 08 00 41 3D 80 17 00 00 00 00 00 00 FE [00:09:09]Write i2c OK [00:09:09]MH_I2C_Read... [00:09:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:10]Read from MH i2c: E2 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 FD 00 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 FD 00 41 3D 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 31 [00:09:10]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:10]wFMCommunicate OK [00:09:10]wFMCommunicate request_size=4 [00:09:10]MH_SAM_APDU [00:09:10]CAPDU: 80 17 00 00 [00:09:10]Write to MH i2c: E2 08 00 42 3D 80 17 00 00 00 00 00 00 FF [00:09:10]Write i2c OK [00:09:10]MH_I2C_Read... [00:09:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:10]Read from MH i2c: E2 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 FD 00 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 FD 00 42 3D 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A2 [00:09:10]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:10]wFMCommunicate OK [00:09:10]wFMCommunicate request_size=4 [00:09:10]MH_SAM_APDU [00:09:10]CAPDU: 80 17 00 00 [00:09:10]Write to MH i2c: E2 08 00 43 3D 80 17 00 00 00 00 00 00 00 [00:09:10]Write i2c OK [00:09:10]MH_I2C_Read... [00:09:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:10]Read from MH i2c: E2 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 FD 00 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 FD 00 43 3D 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 78 [00:09:10]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [00:09:10]wFMCommunicate OK [00:09:10]wFMCommunicate request_size=4 [00:09:10]MH_SAM_APDU [00:09:10]CAPDU: 80 17 00 00 [00:09:10]Write to MH i2c: E2 08 00 44 3D 80 17 00 00 00 00 00 00 01 [00:09:10]Write i2c OK [00:09:10]MH_I2C_Read... [00:09:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:09:10]Read from MH i2c: E2 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 DD 00 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 DD 00 44 3D 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E9 [00:09:10]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:10]wFMCommunicate OK [00:09:10]SAM_PROTO_GetFMData done [00:09:10]requested_item fm.sale_refund.total is exist - process it [00:09:10]requested_item fm.buy.total is exist - process it [00:09:10]requested_item shift.sale.total is exist - process it [00:09:10]SAM_PROTO_GetShiftData [00:09:10]wFMCommunicate request_size=4 [00:09:10]MH_SAM_APDU [00:09:10]CAPDU: 80 13 02 00 [00:09:10]Write to MH i2c: E2 08 00 45 3D 80 13 02 00 00 00 00 00 00 [00:09:10]Write i2c OK [00:09:10]MH_I2C_Read... [00:09:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:09:11]Read from MH i2c: E2 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 FD 00 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 FD 00 45 3D 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:09:11]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 E0 44 26 70 04 03 00 20 0A 1C 72 04 03 00 C0 3A 0A 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 56 10 04 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 A9 56 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:09:11]wFMCommunicate OK [00:09:11]wFMCommunicate request_size=4 [00:09:11]MH_SAM_APDU [00:09:11]CAPDU: 80 17 00 00 [00:09:11]Write to MH i2c: E2 08 00 46 3D 80 17 00 00 00 00 00 00 03 [00:09:11]Write i2c OK [00:09:11]MH_I2C_Read... [00:09:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:11]Read from MH i2c: E2 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 FD 00 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 FD 00 46 3D 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 25 [00:09:11]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:09:11]wFMCommunicate OK [00:09:11]wFMCommunicate request_size=4 [00:09:11]MH_SAM_APDU [00:09:11]CAPDU: 80 17 00 00 [00:09:11]Write to MH i2c: E2 08 00 47 3D 80 17 00 00 00 00 00 00 04 [00:09:11]Write i2c OK [00:09:11]MH_I2C_Read... [00:09:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:11]Read from MH i2c: E2 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 FD 00 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 FD 00 47 3D 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BB [00:09:12]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:09:12]wFMCommunicate OK [00:09:12]wFMCommunicate request_size=4 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 17 00 00 [00:09:12]Write to MH i2c: E2 08 00 48 3D 80 17 00 00 00 00 00 00 05 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 FD 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 FD 00 48 3D 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 77 [00:09:12]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:09:12]wFMCommunicate OK [00:09:12]wFMCommunicate request_size=4 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 17 00 00 [00:09:12]Write to MH i2c: E2 08 00 49 3D 80 17 00 00 00 00 00 00 06 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 CB 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 CB 00 49 3D 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 EF [00:09:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:12]wFMCommunicate OK [00:09:12]SAM_PROTO_GetShiftData done [00:09:12]requested_item shift.sale.total_cash is exist - process it [00:09:12]requested_item shift.sale_refund.total is exist - process it [00:09:12]requested_item shift.sale_refund.total_cash is exist - process it [00:09:12]requested_item shift.buy.total is exist - process it [00:09:12]requested_item shift.buy.total_cash is exist - process it [00:09:12]produce_requested_data done [00:09:12]produce_requested_data return {"fm.sale.total":10259232.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":25080.00,"shift.sale.total_cash":18376.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:09:12]process_action_free get_value [00:09:12]json_value_free [00:09:12]json_value_free done [00:09:12]process_json_proto returns [00:09:12]Send response to host [00:09:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10259232.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":25080.00,"shift.sale.total_cash":18376.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:09:12]free response buf [00:09:12]execute_script done [00:09:12]execute_script returns [00:09:12]free content buf [00:09:12]Sock 9.Close socket [00:09:12]Sock 9.Thread stoped [00:09:12]accept exits with 7 [00:09:12]New connection [00:09:12]New thread 3066801508 created [00:09:12]Thread 3066944868 joined [00:09:12]Waiting for new connection... [00:09:12] Sock 7.Parse request [00:09:12]Sock 7.Check first char [00:09:12]Sock 7.First char is OK [00:09:12]request: POST /json_proto HTTP/1.0 [00:09:12]Method: POST [00:09:12]URL: /json_proto [00:09:12]Method is POST - this is cgi request [00:09:12]url: /json_proto [00:09:12]query_string will be loaded in cgi processing [00:09:12]execute_cgi json_proto POST (null) [00:09:12]execute_cgi path=json_proto method=POST [00:09:12]POST find Content-Length [00:09:12]Host: 172.17.46.196:8080 [00:09:12]Content-Length: 271 [00:09:12]Content-Type: application/json [00:09:12] [00:09:12]POST finish read [00:09:12]Found Content-Length = 271 [00:09:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u043B\u0430\u0439\u043C\u0430\u043D\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:12]execute_script... [00:09:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u043B\u0430\u0439\u043C\u0430\u043D\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:12]POST & json_proto [00:09:12]process_json_proto [00:09:12]json parsed OK: [00:09:12]protocol is kg_v1.0 [00:09:12]action value=open_shift [00:09:12]process_action open_shift [00:09:12]cmd_open_shift [00:09:12]MH_GetDate [00:09:12]Write to MH i2c: F0 00 00 4A 3D 76 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: F0 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: F0 09 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: F0 09 00 4A 3D 00 AF 3B C1 66 07 E8 5D 66 42 [00:09:12]GetLastDocTimeStamp 1723938758 [00:09:12]current date 1723939759 [00:09:12]FM_GetShiftState [00:09:12]SAM_PROTO_GetShiftState [00:09:12]wFMCommunicate request_size=4 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 13 01 00 [00:09:12]Write to MH i2c: E2 08 00 4B 3D 80 13 01 00 00 00 00 00 05 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 0E 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 0E 00 4B 3D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 10 [00:09:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:12]wFMCommunicate OK [00:09:12]SAM_PROTO_GetShiftState done [00:09:12]FM_GetShiftState done [00:09:12]KKMCreateOpenShiftDocument [00:09:12]Load OK [00:09:12]Malloc new data [00:09:12]MH_GetDate [00:09:12]Write to MH i2c: F0 00 00 4C 3D 78 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: F0 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: F0 09 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: F0 09 00 4C 3D 00 AF 3B C1 66 07 E8 5D 66 44 [00:09:12]Malloc new data [00:09:12]KKMCreateOpenShiftDocument OK [00:09:12]KKMSetOpenShiftData OK [00:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=193 [00:09:12]tlvbuf is 0197A540 [00:09:12]KKMLoadAndSignOpenShiftData [00:09:12]SAM_PROTO_ProcessDocument [00:09:12]wFMCommunicate request_size=9 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 15 01 00 04 02 00 C1 00 [00:09:12]Write to MH i2c: E2 0C 00 4D 3D 80 15 01 00 04 00 02 00 C1 00 00 00 D4 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 4D 3D 00 90 00 FE [00:09:13]RAPDU: 90 00 [00:09:13]wFMCommunicate OK [00:09:13]wFMCommunicate request_size=23 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:09:13]Write to MH i2c: E2 1A 00 4E 3D 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 00 [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 4E 3D 00 90 00 FF [00:09:13]RAPDU: 90 00 [00:09:13]wFMCommunicate OK [00:09:13]wFMCommunicate request_size=34 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 [00:09:13]Write to MH i2c: E2 25 00 4F 3D 80 15 02 00 1D 00 FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 00 00 41 [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 4F 3D 00 90 00 00 [00:09:13]RAPDU: 90 00 [00:09:13]wFMCommunicate OK [00:09:13]wFMCommunicate request_size=78 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 15 02 00 49 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 [00:09:13]Write to MH i2c: E2 51 00 50 3D 80 15 02 00 49 00 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 00 00 04 [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 50 3D 00 90 00 01 [00:09:13]RAPDU: 90 00 [00:09:13]wFMCommunicate OK [00:09:13]wFMCommunicate request_size=50 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 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:09:13]Write to MH i2c: E2 35 00 51 3D 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 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 8B [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 51 3D 00 90 00 02 [00:09:13]RAPDU: 90 00 [00:09:13]wFMCommunicate OK [00:09:13]wFMCommunicate request_size=13 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 15 02 00 08 F4 03 04 00 AF 3B C1 66 [00:09:13]Write to MH i2c: E2 10 00 52 3D 80 15 02 00 08 00 F4 03 04 00 AF 3B C1 66 00 00 2B [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 52 3D 00 90 00 03 [00:09:13]RAPDU: 90 00 [00:09:13]wFMCommunicate OK [00:09:13]wFMCommunicate request_size=25 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [00:09:13]Write to MH i2c: E2 1C 00 53 3D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 73 [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]OFD Sender: No OFD packet to send [00:09:13]Read from MH i2c: E2 03 00 [00:09:13]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:13]Read from MH i2c: E2 03 00 53 3D 00 90 00 04 [00:09:13]RAPDU: 90 00 [00:09:13]wFMCommunicate OK [00:09:13]wFMCommunicate request_size=4 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 15 03 00 [00:09:13]Write to MH i2c: E2 08 00 54 3D 80 15 03 00 00 00 00 00 12 [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 38 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 38 00 54 3D 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 46 C2 00 00 0E 04 04 00 D2 01 00 00 35 04 06 00 E5 CF AF 55 5B B9 90 00 7D [00:09:13]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 46 C2 00 00 0E 04 04 00 D2 01 00 00 35 04 06 00 E5 CF AF 55 5B B9 90 00 [00:09:13]wFMCommunicate OK [00:09:13]SAM_PROTO_ProcessDocument answer len = 51 [00:09:13]SAM_PROTO_ProcessDocument done [00:09:13]SetTLVBufToDocument [00:09:13]Processing tag 1209 (04B9) [00:09:13]Malloc new data [00:09:13]Processing tag 1041 (0411) [00:09:13]Processing tag 1040 (0410) [00:09:13]Malloc new data [00:09:13]Processing tag 1038 (040E) [00:09:13]Malloc new data [00:09:13]Processing tag 1077 (0435) [00:09:13]Malloc new data [00:09:13]SetTLVBufToDocument err=0 [00:09:13]KKMLoadAndSignOpenShiftData store KKM data [00:09:13]KKMLoadAndSignOpenShiftData err=0 [00:09:13]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сулайманов Т. Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 Место: АЗС № 95 "Партнер Нефть" 18.08.2024 00:09 Смена: 466 РНМ: 0000000000092546 ЗНМ: 0300000078 ФД: 49734 ФМ: 0000000000871800 ФПД: 252680162597817 [00:09:13]StoreToDocumentArchive [00:09:13]shift 466 fd 49734 [00:09:13]Create dir for shift 0466 [00:09:13]save to /storage/0466/doc_00049734 [00:09:13]save last doc name /storage/0466/doc_00049734 to /storage/kkm_last_doc_name [00:09:13]save OK [00:09:13]Clear old archive folders... [00:09:13]Remove dir /storage/0465 [00:09:13]opendir ok [00:09:13]file . [00:09:13]file .. [00:09:13]file doc_00049563 [00:09:13]remove file /storage/0465/doc_00049563 [00:09:13]file doc_00049564 [00:09:13]remove file /storage/0465/doc_00049564 [00:09:13]file doc_00049565 [00:09:13]remove file /storage/0465/doc_00049565 [00:09:13]file doc_00049566 [00:09:13]remove file /storage/0465/doc_00049566 [00:09:13]file doc_00049567 [00:09:13]remove file /storage/0465/doc_00049567 [00:09:13]file doc_00049568 [00:09:13]remove file /storage/0465/doc_00049568 [00:09:13]file doc_00049569 [00:09:13]remove file /storage/0465/doc_00049569 [00:09:13]file doc_00049570 [00:09:13]remove file /storage/0465/doc_00049570 [00:09:13]file doc_00049571 [00:09:13]remove file /storage/0465/doc_00049571 [00:09:13]file doc_00049572 [00:09:13]remove file /storage/0465/doc_00049572 [00:09:13]file doc_00049573 [00:09:13]remove file /storage/0465/doc_00049573 [00:09:13]file doc_00049574 [00:09:13]remove file /storage/0465/doc_00049574 [00:09:13]file doc_00049575 [00:09:13]remove file /storage/0465/doc_00049575 [00:09:13]file doc_00049576 [00:09:13]remove file /storage/0465/doc_00049576 [00:09:13]file doc_00049577 [00:09:13]remove file /storage/0465/doc_00049577 [00:09:13]file doc_00049578 [00:09:13]remove file /storage/0465/doc_00049578 [00:09:13]file doc_00049579 [00:09:13]remove file /storage/0465/doc_00049579 [00:09:13]file doc_00049580 [00:09:13]remove file /storage/0465/doc_00049580 [00:09:13]file doc_00049581 [00:09:13]remove file /storage/0465/doc_00049581 [00:09:13]file doc_00049582 [00:09:13]remove file /storage/0465/doc_00049582 [00:09:13]file doc_00049583 [00:09:13]remove file /storage/0465/doc_00049583 [00:09:13]file doc_00049584 [00:09:13]remove file /storage/0465/doc_00049584 [00:09:13]file doc_00049585 [00:09:13]remove file /storage/0465/doc_00049585 [00:09:13]file doc_00049586 [00:09:13]remove file /storage/0465/doc_00049586 [00:09:13]file doc_00049587 [00:09:13]remove file /storage/0465/doc_00049587 [00:09:13]file doc_00049588 [00:09:13]remove file /storage/0465/doc_00049588 [00:09:13]file doc_00049589 [00:09:13]remove file /storage/0465/doc_00049589 [00:09:13]file doc_00049590 [00:09:13]remove file /storage/0465/doc_00049590 [00:09:13]file doc_00049591 [00:09:13]remove file /storage/0465/doc_00049591 [00:09:13]file doc_00049592 [00:09:13]remove file /storage/0465/doc_00049592 [00:09:13]file doc_00049593 [00:09:13]remove file /storage/0465/doc_00049593 [00:09:13]file doc_00049594 [00:09:13]remove file /storage/0465/doc_00049594 [00:09:13]file doc_00049595 [00:09:13]remove file /storage/0465/doc_00049595 [00:09:13]file doc_00049596 [00:09:13]remove file /storage/0465/doc_00049596 [00:09:13]file doc_00049597 [00:09:13]remove file /storage/0465/doc_00049597 [00:09:13]file doc_00049598 [00:09:13]remove file /storage/0465/doc_00049598 [00:09:13]file doc_00049599 [00:09:13]remove file /storage/0465/doc_00049599 [00:09:13]file doc_00049600 [00:09:13]remove file /storage/0465/doc_00049600 [00:09:13]file doc_00049601 [00:09:13]remove file /storage/0465/doc_00049601 [00:09:13]file doc_00049602 [00:09:13]remove file /storage/0465/doc_00049602 [00:09:13]file doc_00049603 [00:09:13]remove file /storage/0465/doc_00049603 [00:09:13]file doc_00049604 [00:09:13]remove file /storage/0465/doc_00049604 [00:09:13]file doc_00049605 [00:09:13]remove file /storage/0465/doc_00049605 [00:09:13]file doc_00049606 [00:09:13]remove file /storage/0465/doc_00049606 [00:09:13]file doc_00049607 [00:09:13]remove file /storage/0465/doc_00049607 [00:09:13]file doc_00049608 [00:09:13]remove file /storage/0465/doc_00049608 [00:09:13]file doc_00049609 [00:09:13]remove file /storage/0465/doc_00049609 [00:09:13]file doc_00049610 [00:09:13]remove file /storage/0465/doc_00049610 [00:09:13]file doc_00049611 [00:09:13]remove file /storage/0465/doc_00049611 [00:09:13]file doc_00049612 [00:09:13]remove file /storage/0465/doc_00049612 [00:09:13]file doc_00049613 [00:09:13]remove file /storage/0465/doc_00049613 [00:09:13]file doc_00049614 [00:09:13]remove file /storage/0465/doc_00049614 [00:09:13]file doc_00049615 [00:09:13]remove file /storage/0465/doc_00049615 [00:09:13]file doc_00049616 [00:09:13]remove file /storage/0465/doc_00049616 [00:09:13]file doc_00049617 [00:09:13]remove file /storage/0465/doc_00049617 [00:09:13]file doc_00049618 [00:09:13]remove file /storage/0465/doc_00049618 [00:09:13]file doc_00049619 [00:09:13]remove file /storage/0465/doc_00049619 [00:09:13]file doc_00049620 [00:09:13]remove file /storage/0465/doc_00049620 [00:09:13]file doc_00049621 [00:09:13]remove file /storage/0465/doc_00049621 [00:09:13]file doc_00049622 [00:09:13]remove file /storage/0465/doc_00049622 [00:09:13]file doc_00049623 [00:09:13]remove file /storage/0465/doc_00049623 [00:09:13]file doc_00049624 [00:09:13]remove file /storage/0465/doc_00049624 [00:09:14]file doc_00049625 [00:09:14]remove file /storage/0465/doc_00049625 [00:09:14]file doc_00049626 [00:09:14]remove file /storage/0465/doc_00049626 [00:09:14]file doc_00049627 [00:09:14]remove file /storage/0465/doc_00049627 [00:09:14]file doc_00049628 [00:09:14]remove file /storage/0465/doc_00049628 [00:09:14]file doc_00049629 [00:09:14]remove file /storage/0465/doc_00049629 [00:09:14]file doc_00049630 [00:09:14]remove file /storage/0465/doc_00049630 [00:09:14]file doc_00049631 [00:09:14]remove file /storage/0465/doc_00049631 [00:09:14]file doc_00049632 [00:09:14]remove file /storage/0465/doc_00049632 [00:09:14]file doc_00049633 [00:09:14]remove file /storage/0465/doc_00049633 [00:09:14]file doc_00049634 [00:09:14]remove file /storage/0465/doc_00049634 [00:09:14]file doc_00049635 [00:09:14]remove file /storage/0465/doc_00049635 [00:09:14]file doc_00049636 [00:09:14]remove file /storage/0465/doc_00049636 [00:09:14]file doc_00049637 [00:09:14]remove file /storage/0465/doc_00049637 [00:09:14]file doc_00049638 [00:09:14]remove file /storage/0465/doc_00049638 [00:09:14]file doc_00049639 [00:09:14]remove file /storage/0465/doc_00049639 [00:09:14]file doc_00049640 [00:09:14]remove file /storage/0465/doc_00049640 [00:09:14]file doc_00049641 [00:09:14]remove file /storage/0465/doc_00049641 [00:09:14]file doc_00049642 [00:09:14]remove file /storage/0465/doc_00049642 [00:09:14]file doc_00049643 [00:09:14]remove file /storage/0465/doc_00049643 [00:09:14]file doc_00049644 [00:09:14]remove file /storage/0465/doc_00049644 [00:09:14]file doc_00049645 [00:09:14]remove file /storage/0465/doc_00049645 [00:09:14]file doc_00049646 [00:09:14]remove file /storage/0465/doc_00049646 [00:09:14]file doc_00049647 [00:09:14]remove file /storage/0465/doc_00049647 [00:09:14]file doc_00049648 [00:09:14]remove file /storage/0465/doc_00049648 [00:09:14]file doc_00049649 [00:09:14]remove file /storage/0465/doc_00049649 [00:09:14]file doc_00049650 [00:09:14]remove file /storage/0465/doc_00049650 [00:09:14]file doc_00049651 [00:09:14]remove file /storage/0465/doc_00049651 [00:09:14]file doc_00049652 [00:09:14]remove file /storage/0465/doc_00049652 [00:09:14]file doc_00049653 [00:09:14]remove file /storage/0465/doc_00049653 [00:09:14]file doc_00049654 [00:09:14]remove file /storage/0465/doc_00049654 [00:09:14]file doc_00049655 [00:09:14]remove file /storage/0465/doc_00049655 [00:09:14]file doc_00049656 [00:09:14]remove file /storage/0465/doc_00049656 [00:09:14]file doc_00049657 [00:09:14]remove file /storage/0465/doc_00049657 [00:09:14]file doc_00049658 [00:09:14]remove file /storage/0465/doc_00049658 [00:09:14]file doc_00049659 [00:09:14]remove file /storage/0465/doc_00049659 [00:09:14]file doc_00049660 [00:09:14]remove file /storage/0465/doc_00049660 [00:09:14]file doc_00049661 [00:09:14]remove file /storage/0465/doc_00049661 [00:09:14]file doc_00049662 [00:09:14]remove file /storage/0465/doc_00049662 [00:09:14]file doc_00049663 [00:09:14]remove file /storage/0465/doc_00049663 [00:09:14]file doc_00049664 [00:09:14]remove file /storage/0465/doc_00049664 [00:09:14]file doc_00049665 [00:09:14]remove file /storage/0465/doc_00049665 [00:09:14]file doc_00049666 [00:09:14]remove file /storage/0465/doc_00049666 [00:09:14]file doc_00049667 [00:09:14]remove file /storage/0465/doc_00049667 [00:09:14]file doc_00049668 [00:09:14]remove file /storage/0465/doc_00049668 [00:09:14]file doc_00049669 [00:09:14]remove file /storage/0465/doc_00049669 [00:09:14]file doc_00049670 [00:09:14]remove file /storage/0465/doc_00049670 [00:09:14]file doc_00049671 [00:09:14]remove file /storage/0465/doc_00049671 [00:09:14]file doc_00049672 [00:09:14]remove file /storage/0465/doc_00049672 [00:09:14]file doc_00049673 [00:09:14]remove file /storage/0465/doc_00049673 [00:09:14]file doc_00049674 [00:09:14]remove file /storage/0465/doc_00049674 [00:09:14]file doc_00049675 [00:09:14]remove file /storage/0465/doc_00049675 [00:09:14]file doc_00049676 [00:09:14]remove file /storage/0465/doc_00049676 [00:09:14]file doc_00049677 [00:09:14]remove file /storage/0465/doc_00049677 [00:09:14]file doc_00049678 [00:09:14]remove file /storage/0465/doc_00049678 [00:09:14]file doc_00049679 [00:09:14]remove file /storage/0465/doc_00049679 [00:09:14]file doc_00049680 [00:09:14]remove file /storage/0465/doc_00049680 [00:09:14]file doc_00049681 [00:09:14]remove file /storage/0465/doc_00049681 [00:09:14]file doc_00049682 [00:09:14]remove file /storage/0465/doc_00049682 [00:09:14]file doc_00049683 [00:09:14]remove file /storage/0465/doc_00049683 [00:09:14]file doc_00049684 [00:09:14]remove file /storage/0465/doc_00049684 [00:09:14]file doc_00049685 [00:09:14]remove file /storage/0465/doc_00049685 [00:09:14]file doc_00049686 [00:09:14]remove file /storage/0465/doc_00049686 [00:09:14]file doc_00049687 [00:09:14]remove file /storage/0465/doc_00049687 [00:09:14]file doc_00049688 [00:09:14]remove file /storage/0465/doc_00049688 [00:09:14]file doc_00049689 [00:09:14]remove file /storage/0465/doc_00049689 [00:09:14]file doc_00049690 [00:09:14]remove file /storage/0465/doc_00049690 [00:09:14]file doc_00049691 [00:09:14]remove file /storage/0465/doc_00049691 [00:09:14]file doc_00049692 [00:09:14]remove file /storage/0465/doc_00049692 [00:09:14]file doc_00049693 [00:09:14]remove file /storage/0465/doc_00049693 [00:09:14]file doc_00049694 [00:09:14]remove file /storage/0465/doc_00049694 [00:09:14]file doc_00049695 [00:09:14]remove file /storage/0465/doc_00049695 [00:09:14]file doc_00049696 [00:09:14]remove file /storage/0465/doc_00049696 [00:09:14]file doc_00049697 [00:09:14]remove file /storage/0465/doc_00049697 [00:09:14]file doc_00049698 [00:09:14]remove file /storage/0465/doc_00049698 [00:09:14]file doc_00049699 [00:09:14]remove file /storage/0465/doc_00049699 [00:09:14]file doc_00049700 [00:09:14]remove file /storage/0465/doc_00049700 [00:09:14]file doc_00049701 [00:09:14]remove file /storage/0465/doc_00049701 [00:09:14]file doc_00049702 [00:09:14]remove file /storage/0465/doc_00049702 [00:09:14]file doc_00049703 [00:09:14]remove file /storage/0465/doc_00049703 [00:09:14]file doc_00049704 [00:09:14]remove file /storage/0465/doc_00049704 [00:09:14]file doc_00049705 [00:09:14]remove file /storage/0465/doc_00049705 [00:09:14]file doc_00049706 [00:09:14]remove file /storage/0465/doc_00049706 [00:09:14]file doc_00049707 [00:09:14]remove file /storage/0465/doc_00049707 [00:09:14]file doc_00049708 [00:09:14]remove file /storage/0465/doc_00049708 [00:09:14]file doc_00049709 [00:09:14]remove file /storage/0465/doc_00049709 [00:09:14]file doc_00049710 [00:09:14]remove file /storage/0465/doc_00049710 [00:09:14]file doc_00049711 [00:09:14]remove file /storage/0465/doc_00049711 [00:09:14]file doc_00049712 [00:09:14]remove file /storage/0465/doc_00049712 [00:09:14]file doc_00049713 [00:09:14]remove file /storage/0465/doc_00049713 [00:09:14]file doc_00049714 [00:09:14]remove file /storage/0465/doc_00049714 [00:09:14]file doc_00049715 [00:09:14]remove file /storage/0465/doc_00049715 [00:09:14]file doc_00049716 [00:09:14]remove file /storage/0465/doc_00049716 [00:09:14]file doc_00049717 [00:09:14]remove file /storage/0465/doc_00049717 [00:09:14]file doc_00049718 [00:09:14]remove file /storage/0465/doc_00049718 [00:09:14]file doc_00049719 [00:09:14]remove file /storage/0465/doc_00049719 [00:09:14]file doc_00049720 [00:09:14]remove file /storage/0465/doc_00049720 [00:09:14]file doc_00049721 [00:09:14]remove file /storage/0465/doc_00049721 [00:09:14]file doc_00049722 [00:09:14]remove file /storage/0465/doc_00049722 [00:09:14]file doc_00049723 [00:09:14]remove file /storage/0465/doc_00049723 [00:09:14]file doc_00049724 [00:09:14]remove file /storage/0465/doc_00049724 [00:09:14]file doc_00049725 [00:09:14]remove file /storage/0465/doc_00049725 [00:09:14]file doc_00049726 [00:09:14]remove file /storage/0465/doc_00049726 [00:09:14]file doc_00049727 [00:09:14]remove file /storage/0465/doc_00049727 [00:09:14]file doc_00049728 [00:09:14]remove file /storage/0465/doc_00049728 [00:09:14]file doc_00049729 [00:09:14]remove file /storage/0465/doc_00049729 [00:09:14]file doc_00049730 [00:09:14]remove file /storage/0465/doc_00049730 [00:09:14]file doc_00049731 [00:09:14]remove file /storage/0465/doc_00049731 [00:09:14]file doc_00049732 [00:09:14]remove file /storage/0465/doc_00049732 [00:09:14]file doc_00049733 [00:09:14]remove file /storage/0465/doc_00049733 [00:09:14]remove dir /storage/0465 [00:09:14]ProcessDocumentItem done err = 0, tmpTLVsize=244 [00:09:14]tlvbuf is 01960B30 [00:09:14]SAM_PROTO_ClearQueue [00:09:14]wFMCommunicate request_size=4 [00:09:14]MH_SAM_APDU [00:09:14]CAPDU: 80 09 00 00 [00:09:14]Write to MH i2c: E2 08 00 55 3D 80 09 00 00 00 00 00 00 04 [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:14]Read from MH i2c: E2 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 03 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 03 00 55 3D 00 90 00 06 [00:09:14]RAPDU: 90 00 [00:09:14]wFMCommunicate OK [00:09:14]SAM_PROTO_ClearQueue done [00:09:14]KKMCreateOFDPacket [00:09:14]OFDProtocolAddRootSTLVToBuf [00:09:14]FM_MakeSignedData [00:09:14]FM_MakeSignedData [00:09:14]SAM_PROTO_SignData [00:09:14]wFMCommunicate request_size=4 [00:09:14]MH_SAM_APDU [00:09:14]CAPDU: 80 0D 01 02 [00:09:14]Write to MH i2c: E2 08 00 56 3D 80 0D 01 02 00 00 00 00 0C [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:14]Read from MH i2c: E2 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 03 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 03 00 56 3D 00 90 00 07 [00:09:14]RAPDU: 90 00 [00:09:14]wFMCommunicate OK [00:09:14]wFMCommunicate request_size=253 [00:09:14]MH_SAM_APDU [00:09:14]CAPDU: 80 0D 02 02 F8 02 00 F4 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 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 AF 3B C1 66 0E 04 04 00 D2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 46 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 E5 CF AF 55 5B B9 [00:09:15]Write to MH i2c: E2 00 01 57 3D 80 0D 02 02 F8 00 02 00 F4 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 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 AF 3B C1 66 0E 04 04 00 D2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 46 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 E5 CF AF 55 5B B9 00 00 A0 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:15]Read from MH i2c: E2 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 03 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 03 00 57 3D 00 90 00 08 [00:09:15]RAPDU: 90 00 [00:09:15]wFMCommunicate OK [00:09:15]wFMCommunicate request_size=4 [00:09:15]MH_SAM_APDU [00:09:15]CAPDU: 80 0D 03 02 [00:09:15]Write to MH i2c: E2 08 00 58 3D 80 0D 03 02 00 00 00 00 10 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:15]Read from MH i2c: E2 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 0B 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 0B 00 58 3D 00 F3 FB 82 D3 4C 2B 5E 4F 90 00 78 [00:09:15]RAPDU: F3 FB 82 D3 4C 2B 5E 4F 90 00 [00:09:15]wFMCommunicate OK [00:09:15]SAM_PROTO_SignData done [00:09:15]FM_MakeSignedData done [00:09:15]CreateOFDProtocolMessage [00:09:15]wFMCommunicate request_size=4 [00:09:15]MH_SAM_APDU [00:09:15]CAPDU: 80 11 00 00 [00:09:15]Write to MH i2c: E2 08 00 59 3D 80 11 00 00 00 00 00 00 10 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:15]Read from MH i2c: E2 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 17 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 17 00 59 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5B [00:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:09:15]wFMCommunicate OK [00:09:15]CreateOFDProtocolMessage done [00:09:15]OFDSenderStorePacket 49734 [00:09:15]StoreOFDPacket docnum=49734 [00:09:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 08 01 00 00 5D 2B 00 01 C7 7E 5A 02 01 00 02 00 F4 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 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 AF 3B C1 66 0E 04 04 00 D2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 46 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 E5 CF AF 55 5B B9 F3 FB 82 D3 4C 2B 5E 4F [00:09:15]CheckFolder [00:09:15]dirname=/storage/ofd_packets [00:09:15]CheckFolder done [00:09:15]ProducePacketName [00:09:15]name=ofd_packets/00049734 [00:09:15]NVStorageSaveData ofd_packets/00049734 [00:09:15]File name is /storage/ofd_packets/00049734 [00:09:15]Write 294 bytes [00:09:15]NVStorageSaveData done [00:09:15]OFDSenderStorePacket done [00:09:15]KKMCreateOFDPacket done [00:09:15]NVStorageSaveData kkm_last_timestamp [00:09:15]File name is /storage/kkm_last_timestamp [00:09:15]Write 4 bytes [00:09:15]NVStorageSaveData done [00:09:15]ExternCall_PrintAddStr [00:09:15]wPrintStart [00:09:15]Write to MH i2c: 01 00 00 5A 3D 97 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: 01 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: 01 07 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: 01 07 00 5A 3D 00 00 00 00 00 FF 0F AC [00:09:15]RasterBufferAndPrint [00:09:15]line Отчет об открытии смены [00:09:15]line ФФД: 1.0 [00:09:15]line ИНН: 02508201610067 [00:09:15]line Кассир: Сулайманов Т. [00:09:15]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [00:09:15]line Место: АЗС № 95 "Партнер Нефть" [00:09:15]line 18.08.2024 00:09 [00:09:15]line Смена: 466 [00:09:15]line РНМ: 0000000000092546 [00:09:15]line ЗНМ: 0300000078 [00:09:15]line ФД: 49734 [00:09:15]line ФМ: 0000000000871800 [00:09:15]line ФПД: 252680162597817 [00:09:15]written 0, free lines is 4095 [00:09:15]OFD Sender: Processing packet 49734 [packets to send 21, broken 20] [00:09:15]ProducePacketName [00:09:15]name=ofd_packets/00049734 [00:09:15]OFD Sender: To server: pG, [00:09:15]CommunicateWithHost lk.salyk.kg:30040 [00:09:15]ConnectInit lk.salyk.kg [00:09:15]Write to MH i2c: 01 00 00 6C 3D A9 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: 01 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: 01 07 00 [00:09:15]MH_I2C_Read... [00:09:15]Connected sock=11 [00:09:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 08 01 00 00 5D 2B 00 01 C7 7E 5A 02 01 00 02 00 F4 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 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 AF 3B C1 66 0E 04 04 00 D2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 46 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 E5 CF AF 55 5B B9 F3 FB 82 D3 4C 2B 5E 4F [00:09:15]Read from MH i2c: 01 07 00 6C 3D 00 00 00 00 00 55 0E 13 [00:09:15]RasterBufferAndPrint [00:09:15]line [00:09:15]line [00:09:15]line [00:09:15]line [00:09:15]line [00:09:15]written 0, free lines is 3816 [00:09:15]MH_Cut [00:09:15]Write to MH i2c: D1 01 00 73 3D 01 82 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: D1 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: D1 01 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: D1 01 00 73 3D 00 81 [00:09:15]Write to MH i2c: 01 00 00 74 3D B1 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 91 F4 47 00 BD 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 31 38 30 30 10 04 04 00 46 C2 00 00 F4 03 04 00 EA E6 C0 66 B6 04 01 00 00 D4 74 4D 89 77 37 B2 91 [00:09:16]CommunicateWithHost err = 0 [00:09:16]CheckOFDResponse [00:09:16]1017 (14) - 77093643461234 [00:09:16]1041 (16) - 0000000000871800 [00:09:16]1040 (4) - 49734 [00:09:16]1012 (4) - 17.08.2024 18:07 [00:09:16]1206 (1) - 0 [00:09:16]OFD Sender: Remove packet 49734 [00:09:16]ProducePacketName [00:09:16]name=ofd_packets/00049734 [00:09:16]NVStorageDeleteData [00:09:16]*** Cut start [00:09:16]*** Purtial cut [00:09:16]*** Stage 1: CUTSNS_PIN = 1 [00:09:16]Read from MH i2c: 01 [00:09:16]MH_I2C_Read... [00:09:16]*** Stop cut motor [00:09:16]*** Cut end [00:09:16]Read from MH i2c: 01 07 00 [00:09:16]MH_I2C_Read... [00:09:16]Read from MH i2c: 01 07 00 74 3D 00 00 00 00 00 FF 0F C6 [00:09:16]process_action open_shift done [00:09:16]requested_data is exist [00:09:16]produce_requested_data [00:09:16]requested_item fd.num is exist - process it [00:09:16]SAM_PROTO_GetFieldsCounters [00:09:16]wFMCommunicate request_size=4 [00:09:16]MH_SAM_APDU [00:09:16]CAPDU: 80 13 00 00 [00:09:16]Write to MH i2c: E2 08 00 75 3D 80 13 00 00 00 00 00 00 2E [00:09:16]Write i2c OK [00:09:16]MH_I2C_Read... [00:09:16]OFD Sender: No OFD packet to send [00:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:16]Read from MH i2c: E2 [00:09:16]MH_I2C_Read... [00:09:16]Read from MH i2c: E2 62 00 [00:09:16]MH_I2C_Read... [00:09:16]Read from MH i2c: E2 62 00 75 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 46 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [00:09: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 46 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:16]wFMCommunicate OK [00:09:16]SAM_PROTO_GetFieldsCounters done [00:09:16]requested_item shift.num is exist - process it [00:09:16]requested_item shift.opened is exist - process it [00:09:16]req_shift_opened [00:09:16]FM_GetShiftState [00:09:16]SAM_PROTO_GetShiftState [00:09:16]wFMCommunicate request_size=4 [00:09:16]MH_SAM_APDU [00:09:16]CAPDU: 80 13 01 00 [00:09:16]Write to MH i2c: E2 08 00 76 3D 80 13 01 00 00 00 00 00 30 [00:09:16]Write i2c OK [00:09:16]MH_I2C_Read... [00:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:16]Read from MH i2c: E2 [00:09:16]MH_I2C_Read... [00:09:16]Read from MH i2c: E2 0E 00 [00:09:16]MH_I2C_Read... [00:09:16]Read from MH i2c: E2 0E 00 76 3D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 4D [00:09:16]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:09:16]wFMCommunicate OK [00:09:16]SAM_PROTO_GetShiftState done [00:09:16]FM_GetShiftState done [00:09:16]req_shift_opened done [00:09:16]requested_item shift.open_date is exist - process it [00:09:16]req_shift_open_date [00:09:16]req_shift_open_date done [00:09:16]produce_requested_data done [00:09:16]produce_requested_data return {"fd.num":49734,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [00:09:16]process_action_free open_shift [00:09:16]json_value_free [00:09:16]json_value_free done [00:09:16]process_json_proto returns [00:09:16]Send response to host [00:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49734,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [00:09:16]free response buf [00:09:16]execute_script done [00:09:16]execute_script returns [00:09:16]free content buf [00:09:16]Sock 7.Close socket [00:09:16]Sock 7.Thread stoped [00:09:16]accept exits with 9 [00:09:16]New connection [00:09:16]New thread 3066944868 created [00:09:16]Thread 3066801508 joined [00:09:16]Waiting for new connection... [00:09:16] Sock 9.Parse request [00:09:16]Sock 9.Check first char [00:09:16]Sock 9.First char is OK [00:09:16]request: POST /json_proto HTTP/1.0 [00:09:16]Method: POST [00:09:16]URL: /json_proto [00:09:16]Method is POST - this is cgi request [00:09:16]url: /json_proto [00:09:16]query_string will be loaded in cgi processing [00:09:16]execute_cgi json_proto POST (null) [00:09:16]execute_cgi path=json_proto method=POST [00:09:16]POST find Content-Length [00:09:16]Host: 172.17.46.196:8080 [00:09:16]Content-Length: 331 [00:09:16]Content-Type: application/json [00:09:16] [00:09:16]POST finish read [00:09:16]Found Content-Length = 331 [00:09:16]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:09:16]execute_script... [00:09:16]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:09:16]POST & json_proto [00:09:16]process_json_proto [00:09:16]json parsed OK: [00:09:16]protocol is kg_v1.0 [00:09:16]action value=get_value [00:09:16]process_action get_value [00:09:16]cmd_get_value [00:09:16]process_action get_value done [00:09:16]requested_data is exist [00:09:16]produce_requested_data [00:09:16]requested_item fm.sale.total is exist - process it [00:09:16]SAM_PROTO_GetFMData [00:09:16]wFMCommunicate request_size=4 [00:09:16]MH_SAM_APDU [00:09:16]CAPDU: 80 13 03 00 [00:09:16]Write to MH i2c: E2 08 00 77 3D 80 13 03 00 00 00 00 00 33 [00:09:16]Write i2c OK [00:09:16]MH_I2C_Read... [00:09:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:17]Read from MH i2c: E2 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 FD 00 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 FD 00 77 3D 00 C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 FF [00:09:17]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A2 BE 00 00 69 04 A0 00 6F 04 04 00 8F BE 00 00 B1 04 04 00 A6 58 26 3D 70 04 04 00 86 7E 99 34 72 04 04 00 20 DA 8C 08 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 5F 7E 06 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 71 73 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [00:09:17]wFMCommunicate OK [00:09:17]wFMCommunicate request_size=4 [00:09:17]MH_SAM_APDU [00:09:17]CAPDU: 80 17 00 00 [00:09:17]Write to MH i2c: E2 08 00 78 3D 80 17 00 00 00 00 00 00 35 [00:09:17]Write i2c OK [00:09:17]MH_I2C_Read... [00:09:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:17]Read from MH i2c: E2 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 FD 00 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 FD 00 78 3D 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [00:09:17]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:17]wFMCommunicate OK [00:09:17]wFMCommunicate request_size=4 [00:09:17]MH_SAM_APDU [00:09:17]CAPDU: 80 17 00 00 [00:09:17]Write to MH i2c: E2 08 00 79 3D 80 17 00 00 00 00 00 00 36 [00:09:17]Write i2c OK [00:09:17]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 [00:09:18]MH_I2C_Read... [00:09:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:18]Read from MH i2c: E2 FD 00 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 FD 00 79 3D 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D9 [00:09:18]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:18]wFMCommunicate OK [00:09:18]wFMCommunicate request_size=4 [00:09:18]MH_SAM_APDU [00:09:18]CAPDU: 80 17 00 00 [00:09:18]Write to MH i2c: E2 08 00 7A 3D 80 17 00 00 00 00 00 00 37 [00:09:18]Write i2c OK [00:09:18]MH_I2C_Read... [00:09:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:18]Read from MH i2c: E2 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 FD 00 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 FD 00 7A 3D 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 AF [00:09:18]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [00:09:18]wFMCommunicate OK [00:09:18]wFMCommunicate request_size=4 [00:09:18]MH_SAM_APDU [00:09:18]CAPDU: 80 17 00 00 [00:09:18]Write to MH i2c: E2 08 00 7B 3D 80 17 00 00 00 00 00 00 38 [00:09:18]Write i2c OK [00:09:18]MH_I2C_Read... [00:09:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:09:18]Read from MH i2c: E2 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 DD 00 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 DD 00 7B 3D 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 20 [00:09:19]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:19]wFMCommunicate OK [00:09:19]SAM_PROTO_GetFMData done [00:09:19]requested_item fm.sale_refund.total is exist - process it [00:09:19]requested_item fm.buy.total is exist - process it [00:09:19]requested_item shift.sale.total is exist - process it [00:09:19]SAM_PROTO_GetShiftData [00:09:19]wFMCommunicate request_size=4 [00:09:19]MH_SAM_APDU [00:09:19]CAPDU: 80 13 02 00 [00:09:19]Write to MH i2c: E2 08 00 7C 3D 80 13 02 00 00 00 00 00 37 [00:09:19]Write i2c OK [00:09:19]MH_I2C_Read... [00:09:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:09:19]Read from MH i2c: E2 [00:09:19]MH_I2C_Read... [00:09:19]Read from MH i2c: E2 FD 00 [00:09:19]MH_I2C_Read... [00:09:19]Read from MH i2c: E2 FD 00 7C 3D 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 AA [00:09:19]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:09:19]wFMCommunicate OK [00:09:19]wFMCommunicate request_size=4 [00:09:19]MH_SAM_APDU [00:09:19]CAPDU: 80 17 00 00 [00:09:19]Write to MH i2c: E2 08 00 7D 3D 80 17 00 00 00 00 00 00 3A [00:09:19]Write i2c OK [00:09:19]MH_I2C_Read... [00:09:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:20]Read from MH i2c: E2 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 FD 00 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 FD 00 7D 3D 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 42 [00:09:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:09:20]wFMCommunicate OK [00:09:20]wFMCommunicate request_size=4 [00:09:20]MH_SAM_APDU [00:09:20]CAPDU: 80 17 00 00 [00:09:20]Write to MH i2c: E2 08 00 7E 3D 80 17 00 00 00 00 00 00 3B [00:09:20]Write i2c OK [00:09:20]MH_I2C_Read... [00:09:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:20]Read from MH i2c: E2 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 FD 00 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 FD 00 7E 3D 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 0D [00:09:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:09:20]wFMCommunicate OK [00:09:20]wFMCommunicate request_size=4 [00:09:20]MH_SAM_APDU [00:09:20]CAPDU: 80 17 00 00 [00:09:20]Write to MH i2c: E2 08 00 7F 3D 80 17 00 00 00 00 00 00 3C [00:09:20]Write i2c OK [00:09:20]MH_I2C_Read... [00:09:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:20]Read from MH i2c: E2 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 FD 00 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 FD 00 7F 3D 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 AE [00:09:21]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:09:21]wFMCommunicate OK [00:09:21]wFMCommunicate request_size=4 [00:09:21]MH_SAM_APDU [00:09:21]CAPDU: 80 17 00 00 [00:09:21]Write to MH i2c: E2 08 00 80 3D 80 17 00 00 00 00 00 00 3D [00:09:21]Write i2c OK [00:09:21]MH_I2C_Read... [00:09:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:09:21]Read from MH i2c: E2 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 BD 00 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 BD 00 80 3D 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 23 [00:09:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:21]wFMCommunicate OK [00:09:21]SAM_PROTO_GetShiftData done [00:09:21]requested_item shift.sale.total_cash is exist - process it [00:09:21]requested_item shift.sale_refund.total is exist - process it [00:09:21]requested_item shift.sale_refund.total_cash is exist - process it [00:09:21]requested_item shift.buy.total is exist - process it [00:09:21]requested_item shift.buy.total_cash is exist - process it [00:09:21]produce_requested_data done [00:09:21]produce_requested_data return {"fm.sale.total":10259232.38,"fm.sale_refund.total":24784.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:09:21]process_action_free get_value [00:09:21]json_value_free [00:09:21]json_value_free done [00:09:21]process_json_proto returns [00:09:21]Send response to host [00:09:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10259232.38,"fm.sale_refund.total":24784.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:09:21]free response buf [00:09:21]execute_script done [00:09:21]execute_script returns [00:09:21]free content buf [00:09:21]Sock 9.Close socket [00:09:21]Sock 9.Thread stoped [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:47]accept exits with 7 [00:19:47]New connection [00:19:47]New thread 3066801508 created [00:19:47]Thread 3066944868 joined [00:19:47]Waiting for new connection... [00:19:47] Sock 7.Parse request [00:19:47]Sock 7.Check first char [00:19:47]Sock 7.First char is OK [00:19:47]request: POST /json_proto HTTP/1.0 [00:19:47]Method: POST [00:19:47]URL: /json_proto [00:19:47]Method is POST - this is cgi request [00:19:47]url: /json_proto [00:19:47]query_string will be loaded in cgi processing [00:19:47]execute_cgi json_proto POST (null) [00:19:47]execute_cgi path=json_proto method=POST [00:19:47]POST find Content-Length [00:19:47]Host: 172.17.46.196:8080 [00:19:47]Content-Length: 633 [00:19:47]Content-Type: application/json [00:19:47] [00:19:47]POST finish read [00:19:47]Found Content-Length = 633 [00:19:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189915", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:47]execute_script... [00:19:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189915", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:47]POST & json_proto [00:19:47]process_json_proto [00:19:47]json parsed OK: [00:19:47]protocol is kg_v1.0 [00:19:47]action value=close_receipt [00:19:47]process_action close_receipt [00:19:47]cmd_close_receipt [00:19:47]MH_GetDate [00:19:47]Write to MH i2c: F0 00 00 81 3D AD [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: F0 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: F0 09 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: F0 09 00 81 3D 00 29 3E C1 66 07 E8 5D 66 F6 [00:19:47]GetLastDocTimeStamp 1723939759 [00:19:47]current date 1723940393 [00:19:47]FM_GetShiftState [00:19:47]SAM_PROTO_GetShiftState [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 13 01 00 [00:19:47]Write to MH i2c: E2 08 00 82 3D 80 13 01 00 00 00 00 00 3C [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 0E 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 0E 00 82 3D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 59 [00:19:47]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:19:47]wFMCommunicate OK [00:19:47]SAM_PROTO_GetShiftState done [00:19:47]FM_GetShiftState done [00:19:47]opened in 1723939759 [00:19:47]opened+sec_in_day 1724026159 [00:19:47]quantity*price = 26000 [00:19:47]sum+1 = 26001 [00:19:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 1 18.08.2024 00:19 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49735 ФПД: 171726606049960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T001954&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49735&fm=171726606049960&tin=02508201610067®Number=0000000000092546&sum=26000 0 [00:19:48]StoreToDocumentArchive [00:19:48]shift 466 fd 49735 [00:19:48]save to /storage/0466/doc_00049735 [00:19:48]save last doc name /storage/0466/doc_00049735 to /storage/kkm_last_doc_name [00:19:48]save OK [00:19:48]Clear old archive folders... [00:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=285 [00:19:48]tlvbuf is 0188BCC0 [00:19:48]SAM_PROTO_ClearQueue [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 09 00 00 [00:19:48]Write to MH i2c: E2 08 00 8F 3D 80 09 00 00 00 00 00 00 3E [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 03 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 03 00 8F 3D 00 90 00 40 [00:19:49]RAPDU: 90 00 [00:19:49]wFMCommunicate OK [00:19:49]SAM_PROTO_ClearQueue done [00:19:49]KKMCreateOFDPacket [00:19:49]OFDProtocolAddRootSTLVToBuf [00:19:49]FM_MakeSignedData [00:19:49]FM_MakeSignedData [00:19:49]SAM_PROTO_SignData [00:19:49]wFMCommunicate request_size=4 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 0D 01 02 [00:19:49]Write to MH i2c: E2 08 00 90 3D 80 0D 01 02 00 00 00 00 46 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 03 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 03 00 90 3D 00 90 00 41 [00:19:49]RAPDU: 90 00 [00:19:49]wFMCommunicate OK [00:19:49]wFMCommunicate request_size=255 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 2A 3E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 [00:19:49]Write to MH i2c: E2 02 01 91 3D 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 2A 3E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 00 00 27 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 03 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 03 00 91 3D 00 90 00 42 [00:19:49]RAPDU: 90 00 [00:19:49]wFMCommunicate OK [00:19:49]wFMCommunicate request_size=44 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 0D 02 02 27 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C2 00 00 35 04 06 00 9C 2F 37 5A 22 A8 [00:19:49]Write to MH i2c: E2 2F 00 92 3D 80 0D 02 02 27 00 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C2 00 00 35 04 06 00 9C 2F 37 5A 22 A8 00 00 90 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 03 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 03 00 92 3D 00 90 00 43 [00:19:49]RAPDU: 90 00 [00:19:49]wFMCommunicate OK [00:19:49]wFMCommunicate request_size=4 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 0D 03 02 [00:19:49]Write to MH i2c: E2 08 00 93 3D 80 0D 03 02 00 00 00 00 4B [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 0B 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 0B 00 93 3D 00 BB 80 1F 78 76 7F 9D 94 90 00 44 [00:19:49]RAPDU: BB 80 1F 78 76 7F 9D 94 90 00 [00:19:49]wFMCommunicate OK [00:19:49]SAM_PROTO_SignData done [00:19:49]FM_MakeSignedData done [00:19:49]CreateOFDProtocolMessage [00:19:49]wFMCommunicate request_size=4 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 11 00 00 [00:19:49]Write to MH i2c: E2 08 00 94 3D 80 11 00 00 00 00 00 00 4B [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 17 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 17 00 94 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 96 [00:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:19:49]wFMCommunicate OK [00:19:49]CreateOFDProtocolMessage done [00:19:49]OFDSenderStorePacket 49735 [00:19:49]StoreOFDPacket docnum=49735 [00:19:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 31 01 00 00 FD BB 29 01 F2 1D 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 2A 3E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C2 00 00 35 04 06 00 9C 2F 37 5A 22 A8 BB 80 1F 78 76 7F 9D 94 [00:19:49]CheckFolder [00:19:49]dirname=/storage/ofd_packets [00:19:49]CheckFolder done [00:19:49]ProducePacketName [00:19:49]name=ofd_packets/00049735 [00:19:49]NVStorageSaveData ofd_packets/00049735 [00:19:49]File name is /storage/ofd_packets/00049735 [00:19:49]Write 335 bytes [00:19:49]NVStorageSaveData done [00:19:49]OFDSenderStorePacket done [00:19:49]KKMCreateOFDPacket done [00:19:49]NVStorageSaveData kkm_last_timestamp [00:19:49]File name is /storage/kkm_last_timestamp [00:19:49]Write 4 bytes [00:19:49]NVStorageSaveData done [00:19:49]ExternCall_PrintAddStr [00:19:49]wPrintStart [00:19:49]Write to MH i2c: 01 00 00 95 3D D2 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: 01 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: 01 07 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: 01 07 00 95 3D 00 00 00 00 00 FF 0F E7 [00:19:49]RasterBufferAndPrint [00:19:49]line Счет N : (3)189915 [00:19:49]line ИНН: 02508201610067 [00:19:49]line Контрольно-Кассовый Чек [00:19:49]line ПРОДАЖА [00:19:49]line Товар: 48745291 [00:19:49]line Сигареты Parliament SOHO NYC COMPACT BLU [00:19:49]line 2.000 * 130.00 [00:19:49]line = 260.00 [00:19:49]line НДС 12% НСП 1% [00:19:49]line > о реализуемом товаре [00:19:49]line ИТОГО: 260.00 [00:19:49]line НСП 1% : 2.30 [00:19:49]line НДС 12% : 27.61 [00:19:49]line Наличными: 260.00 [00:19:49]line Безнал.: 0.00 [00:19:49]line Место: АЗС № 95 "Партнер Нефть" [00:19:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [00:19:49]line СНО: Общий режим [00:19:49]line Чек 1 18.08.2024 00:19 [00:19:49]line Смена: 466 ФФД: 1.0 [00:19:49]line ЗНМ: 0300000078 [00:19:49]line РНМ: 0000000000092546 [00:19:49]line Версия ККМ: 001 [00:19:49]line ФМ: 0000000000871800 [00:19:49]line ФД: 49735 [00:19:49]line ФПД: 171726606049960 [00:19:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T001954&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49735&fm=171726606049960&tin=02508201610067®Number=0000000000092546&sum=26000 [00:19:49]OFD Sender: Processing packet 49735 [packets to send 21, broken 20] [00:19:49]ProducePacketName [00:19:49]name=ofd_packets/00049735 [00:19:49]OFD Sender: To server: pG, [00:19:49]CommunicateWithHost lk.salyk.kg:30040 [00:19:49]ConnectInit lk.salyk.kg [00:19:49]line 0 [00:19:49]written 0, free lines is 4095 [00:19:50]Connected sock=10 [00:19:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 31 01 00 00 FD BB 29 01 F2 1D 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 2A 3E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C2 00 00 35 04 06 00 9C 2F 37 5A 22 A8 BB 80 1F 78 76 7F 9D 94 [00:19:50]Write to MH i2c: 01 00 00 BE 3D FB [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: 01 [00:19:50]MH_I2C_Read... [00:19:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 23 D6 47 00 C1 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C2 00 00 F4 03 04 00 64 E9 C0 66 B6 04 01 00 00 31 43 35 58 1C FA 53 72 [00:19:50]CommunicateWithHost err = 0 [00:19:50]CheckOFDResponse [00:19:50]1017 (14) - 77093643461234 [00:19:50]1041 (16) - 0000000000871800 [00:19:50]1040 (4) - 49735 [00:19:50]1012 (4) - 17.08.2024 18:18 [00:19:50]1206 (1) - 0 [00:19:50]OFD Sender: Remove packet 49735 [00:19:50]ProducePacketName [00:19:50]name=ofd_packets/00049735 [00:19:50]NVStorageDeleteData [00:19:50]Read from MH i2c: 01 07 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: 01 07 00 BE 3D 00 00 00 00 00 D7 0C E5 [00:19:50]RasterBufferAndPrint [00:19:50]line [00:19:50]line [00:19:50]line [00:19:50]line [00:19:50]line [00:19:50]written 0, free lines is 3312 [00:19:50]MH_Cut [00:19:50]Write to MH i2c: D1 01 00 C5 3D 01 D4 [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: D1 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: D1 01 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: D1 01 00 C5 3D 00 D3 [00:19:50]Write to MH i2c: 01 00 00 C6 3D 03 [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]OFD Sender: No OFD packet to send [00:19:51]*** Cut start [00:19:51]*** Purtial cut [00:19:51]*** CUTSNS_PIN = 0 [00:19:51]*** Stage 1: CUTSNS_PIN = 1 [00:19:53]Read from MH i2c: 01 [00:19:53]MH_I2C_Read... [00:19:53]*** Stop cut motor [00:19:53]*** Cut end [00:19:53]Read from MH i2c: 01 07 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: 01 07 00 C6 3D 00 00 00 00 00 FF 0F 18 [00:19:53]process_action close_receipt done [00:19:53]requested_data is exist [00:19:53]produce_requested_data [00:19:53]requested_item fm.sn is exist - process it [00:19:53]wFMCommunicate request_size=4 [00:19:53]MH_SAM_APDU [00:19:53]CAPDU: 80 11 00 00 [00:19:53]Write to MH i2c: E2 08 00 C7 3D 80 11 00 00 00 00 00 00 7E [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:53]Read from MH i2c: E2 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 17 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 17 00 C7 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C9 [00:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:19:53]wFMCommunicate OK [00:19:53]requested_item fd.num is exist - process it [00:19:53]SAM_PROTO_GetFieldsCounters [00:19:53]wFMCommunicate request_size=4 [00:19:53]MH_SAM_APDU [00:19:53]CAPDU: 80 13 00 00 [00:19:53]Write to MH i2c: E2 08 00 C8 3D 80 13 00 00 00 00 00 00 81 [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:53]Read from MH i2c: E2 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 62 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 62 00 C8 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 47 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [00:19:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 47 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:53]wFMCommunicate OK [00:19:53]SAM_PROTO_GetFieldsCounters done [00:19:53]requested_item shift.num is exist - process it [00:19:53]requested_item shift.opened is exist - process it [00:19:53]req_shift_opened [00:19:53]FM_GetShiftState [00:19:53]SAM_PROTO_GetShiftState [00:19:53]wFMCommunicate request_size=4 [00:19:53]MH_SAM_APDU [00:19:53]CAPDU: 80 13 01 00 [00:19:53]Write to MH i2c: E2 08 00 C9 3D 80 13 01 00 00 00 00 00 83 [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:53]Read from MH i2c: E2 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 0E 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 0E 00 C9 3D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A0 [00:19:53]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:19:53]wFMCommunicate OK [00:19:53]SAM_PROTO_GetShiftState done [00:19:53]FM_GetShiftState done [00:19:53]req_shift_opened done [00:19:53]requested_item shift.open_date is exist - process it [00:19:53]req_shift_open_date [00:19:53]req_shift_open_date done [00:19:53]produce_requested_data done [00:19:53]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49735,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [00:19:53]process_action_free close_receipt [00:19:53]json_value_free [00:19:53]json_value_free done [00:19:53]process_json_proto returns [00:19:53]Send response to host [00:19:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49735,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [00:19:53]free response buf [00:19:53]execute_script done [00:19:53]execute_script returns [00:19:53]free content buf [00:19:53]Sock 7.Close socket [00:19:53]Sock 7.Thread stoped [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:26]accept exits with 9 [00:25:26]New connection [00:25:26]New thread 3066944868 created [00:25:26]Thread 3066801508 joined [00:25:26]Waiting for new connection... [00:25:26] Sock 9.Parse request [00:25:26]Sock 9.Check first char [00:25:26]Sock 9.First char is OK [00:25:26]request: POST /json_proto HTTP/1.0 [00:25:26]Method: POST [00:25:26]URL: /json_proto [00:25:26]Method is POST - this is cgi request [00:25:26]url: /json_proto [00:25:26]query_string will be loaded in cgi processing [00:25:26]execute_cgi json_proto POST (null) [00:25:26]execute_cgi path=json_proto method=POST [00:25:26]POST find Content-Length [00:25:26]Host: 172.17.46.196:8080 [00:25:26]Content-Length: 675 [00:25:26]Content-Type: application/json [00:25:26] [00:25:26]POST finish read [00:25:26]Found Content-Length = 675 [00:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189916", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:26]execute_script... [00:25:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189916", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:26]POST & json_proto [00:25:26]process_json_proto [00:25:26]json parsed OK: [00:25:26]protocol is kg_v1.0 [00:25:26]action value=close_receipt [00:25:26]process_action close_receipt [00:25:26]cmd_close_receipt [00:25:26]MH_GetDate [00:25:26]Write to MH i2c: F0 00 00 CA 3D F6 [00:25:26]Write i2c OK [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: F0 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: F0 09 00 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: F0 09 00 CA 3D 00 7C 3F C1 66 07 E8 5D 66 93 [00:25:26]GetLastDocTimeStamp 1723940394 [00:25:26]current date 1723940732 [00:25:26]FM_GetShiftState [00:25:26]SAM_PROTO_GetShiftState [00:25:26]wFMCommunicate request_size=4 [00:25:26]MH_SAM_APDU [00:25:26]CAPDU: 80 13 01 00 [00:25:26]Write to MH i2c: E2 08 00 CB 3D 80 13 01 00 00 00 00 00 85 [00:25:26]Write i2c OK [00:25:26]MH_I2C_Read... [00:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:26]Read from MH i2c: E2 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: E2 0E 00 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: E2 0E 00 CB 3D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A2 [00:25:26]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:25:26]wFMCommunicate OK [00:25:26]SAM_PROTO_GetShiftState done [00:25:26]FM_GetShiftState done [00:25:26]opened in 1723939759 [00:25:26]opened+sec_in_day 1724026159 [00:25:26]quantity*price = 9000 [00:25:26]sum+1 = 9001 [00:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 2 18.08.2024 00:25 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49736 ФПД: 120792862681210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T002532&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49736&fm=120792862681210&tin=02508201610067®Number=0000000000092546&sum=9000 0 [00:25:27]StoreToDocumentArchive [00:25:27]shift 466 fd 49736 [00:25:27]save to /storage/0466/doc_00049736 [00:25:27]save last doc name /storage/0466/doc_00049736 to /storage/kkm_last_doc_name [00:25:27]save OK [00:25:27]Clear old archive folders... [00:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=294 [00:25:27]tlvbuf is 0188B8D0 [00:25:27]SAM_PROTO_ClearQueue [00:25:27]wFMCommunicate request_size=4 [00:25:27]MH_SAM_APDU [00:25:27]CAPDU: 80 09 00 00 [00:25:27]Write to MH i2c: E2 08 00 D8 3D 80 09 00 00 00 00 00 00 87 [00:25:27]Write i2c OK [00:25:27]MH_I2C_Read... [00:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:27]Read from MH i2c: E2 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 03 00 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 03 00 D8 3D 00 90 00 89 [00:25:27]RAPDU: 90 00 [00:25:27]wFMCommunicate OK [00:25:27]SAM_PROTO_ClearQueue done [00:25:27]KKMCreateOFDPacket [00:25:27]OFDProtocolAddRootSTLVToBuf [00:25:27]FM_MakeSignedData [00:25:27]FM_MakeSignedData [00:25:27]SAM_PROTO_SignData [00:25:27]wFMCommunicate request_size=4 [00:25:27]MH_SAM_APDU [00:25:27]CAPDU: 80 0D 01 02 [00:25:27]Write to MH i2c: E2 08 00 D9 3D 80 0D 01 02 00 00 00 00 8F [00:25:27]Write i2c OK [00:25:27]MH_I2C_Read... [00:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:27]Read from MH i2c: E2 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 03 00 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 03 00 D9 3D 00 90 00 8A [00:25:27]RAPDU: 90 00 [00:25:27]wFMCommunicate OK [00:25:27]wFMCommunicate request_size=255 [00:25:27]MH_SAM_APDU [00:25:27]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 7C 3F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [00:25:27]Write to MH i2c: E2 02 01 DA 3D 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 7C 3F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 E4 [00:25:27]Write i2c OK [00:25:27]MH_I2C_Read... [00:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:28]Read from MH i2c: E2 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 03 00 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 03 00 DA 3D 00 90 00 8B [00:25:28]RAPDU: 90 00 [00:25:28]wFMCommunicate OK [00:25:28]wFMCommunicate request_size=53 [00:25:28]MH_SAM_APDU [00:25:28]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C2 00 00 35 04 06 00 6D DC 47 AB E8 7A [00:25:28]Write to MH i2c: E2 38 00 DB 3D 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C2 00 00 35 04 06 00 6D DC 47 AB E8 7A 00 00 27 [00:25:28]Write i2c OK [00:25:28]MH_I2C_Read... [00:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:28]Read from MH i2c: E2 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 03 00 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 03 00 DB 3D 00 90 00 8C [00:25:28]RAPDU: 90 00 [00:25:28]wFMCommunicate OK [00:25:28]wFMCommunicate request_size=4 [00:25:28]MH_SAM_APDU [00:25:28]CAPDU: 80 0D 03 02 [00:25:28]Write to MH i2c: E2 08 00 DC 3D 80 0D 03 02 00 00 00 00 94 [00:25:28]Write i2c OK [00:25:28]MH_I2C_Read... [00:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:28]Read from MH i2c: E2 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 0B 00 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 0B 00 DC 3D 00 6B B9 FA 98 3F AF 32 0D 90 00 78 [00:25:28]RAPDU: 6B B9 FA 98 3F AF 32 0D 90 00 [00:25:28]wFMCommunicate OK [00:25:28]SAM_PROTO_SignData done [00:25:28]FM_MakeSignedData done [00:25:28]CreateOFDProtocolMessage [00:25:28]wFMCommunicate request_size=4 [00:25:28]MH_SAM_APDU [00:25:28]CAPDU: 80 11 00 00 [00:25:28]Write to MH i2c: E2 08 00 DD 3D 80 11 00 00 00 00 00 00 94 [00:25:28]Write i2c OK [00:25:28]MH_I2C_Read... [00:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:28]Read from MH i2c: E2 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 17 00 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 17 00 DD 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DF [00:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:25:28]wFMCommunicate OK [00:25:28]CreateOFDProtocolMessage done [00:25:28]OFDSenderStorePacket 49736 [00:25:28]StoreOFDPacket docnum=49736 [00:25:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 90 39 32 01 C6 A3 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 7C 3F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C2 00 00 35 04 06 00 6D DC 47 AB E8 7A 6B B9 FA 98 3F AF 32 0D [00:25:28]CheckFolder [00:25:28]dirname=/storage/ofd_packets [00:25:28]CheckFolder done [00:25:28]ProducePacketName [00:25:28]name=ofd_packets/00049736 [00:25:28]NVStorageSaveData ofd_packets/00049736 [00:25:28]File name is /storage/ofd_packets/00049736 [00:25:28]Write 344 bytes [00:25:28]NVStorageSaveData done [00:25:28]OFDSenderStorePacket done [00:25:28]KKMCreateOFDPacket done [00:25:28]NVStorageSaveData kkm_last_timestamp [00:25:28]File name is /storage/kkm_last_timestamp [00:25:28]Write 4 bytes [00:25:28]NVStorageSaveData done [00:25:28]ExternCall_PrintAddStr [00:25:28]wPrintStart [00:25:28]Write to MH i2c: 01 00 00 DE 3D 1B [00:25:28]Write i2c OK [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: 01 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: 01 07 00 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: 01 07 00 DE 3D 00 00 00 00 00 FF 0F 30 [00:25:28]RasterBufferAndPrint [00:25:28]line Счет N : (3)189916 [00:25:28]line ИНН: 02508201610067 [00:25:28]line Контрольно-Кассовый Чек [00:25:28]line ПРОДАЖА [00:25:28]line Товар: 4650243871828 [00:25:28]line Gorilla эн нап манго-кокос 0,45 ж/б [00:25:28]line 1.000 * 90.00 [00:25:28]line = 90.00 [00:25:28]line НДС 12% НСП 1% [00:25:28]line > о реализуемом товаре [00:25:28]line ИТОГО: 90.00 [00:25:28]line НСП 1% : 0.80 [00:25:28]line НДС 12% : 9.56 [00:25:28]line Наличными: 90.00 [00:25:28]line Безнал.: 0.00 [00:25:28]line Место: АЗС № 95 "Партнер Нефть" [00:25:28]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [00:25:28]line СНО: Общий режим [00:25:28]line Чек 2 18.08.2024 00:25 [00:25:28]line Смена: 466 ФФД: 1.0 [00:25:28]line ЗНМ: 0300000078 [00:25:28]line РНМ: 0000000000092546 [00:25:28]line Версия ККМ: 001 [00:25:28]line ФМ: 0000000000871800 [00:25:28]line ФД: 49736 [00:25:28]line ФПД: 120792862681210 [00:25:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T002532&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49736&fm=120792862681210&tin=02508201610067®Number=0000000000092546&sum=9000 [00:25:28]line 0 [00:25:28]OFD Sender: Processing packet 49736 [packets to send 21, broken 20] [00:25:28]ProducePacketName [00:25:28]name=ofd_packets/00049736 [00:25:28]OFD Sender: To server: pG, [00:25:28]CommunicateWithHost lk.salyk.kg:30040 [00:25:28]ConnectInit lk.salyk.kg [00:25:28]written 0, free lines is 4095 [00:25:29]Connected sock=10 [00:25:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 90 39 32 01 C6 A3 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 7C 3F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C2 00 00 35 04 06 00 6D DC 47 AB E8 7A 6B B9 FA 98 3F AF 32 0D [00:25:29]Write to MH i2c: 01 00 00 07 3E 45 [00:25:29]Write i2c OK [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: 01 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: 01 07 00 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: 01 07 00 07 3E 00 00 00 00 00 EC 0C 44 [00:25:29]RasterBufferAndPrint [00:25:29]line [00:25:29]line [00:25:29]line [00:25:29]line [00:25:29]line [00:25:29]written 0, free lines is 3314 [00:25:29]MH_Cut [00:25:29]Write to MH i2c: D1 01 00 0E 3E 01 1E [00:25:29]Write i2c OK [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: D1 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: D1 01 00 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: D1 01 00 0E 3E 00 1D [00:25:29]Write to MH i2c: 01 00 00 0F 3E 4D [00:25:29]Write i2c OK [00:25:29]MH_I2C_Read... [00:25:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 38 54 47 00 0B 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C2 00 00 F4 03 04 00 B7 EA C0 66 B6 04 01 00 00 A5 5C 6A 29 08 7A 38 EE [00:25:29]CommunicateWithHost err = 0 [00:25:29]CheckOFDResponse [00:25:29]1017 (14) - 77093643461234 [00:25:29]1041 (16) - 0000000000871800 [00:25:29]1040 (4) - 49736 [00:25:29]1012 (4) - 17.08.2024 18:23 [00:25:29]1206 (1) - 0 [00:25:29]OFD Sender: Remove packet 49736 [00:25:29]ProducePacketName [00:25:29]name=ofd_packets/00049736 [00:25:29]NVStorageDeleteData [00:25:29]OFD Sender: No OFD packet to send [00:25:29]*** Cut start [00:25:29]*** Purtial cut [00:25:30]*** Stage 1: CUTSNS_PIN = 1 [00:25:30]Read from MH i2c: 01 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: 01 07 00 [00:25:30]MH_I2C_Read... [00:25:30]*** Stop cut motor [00:25:30]Read from MH i2c: 01 07 00 0F 3E 00 00 00 00 00 FF 0F 62 [00:25:30]process_action close_receipt done [00:25:30]requested_data is exist [00:25:30]produce_requested_data [00:25:30]requested_item fm.sn is exist - process it [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 11 00 00 [00:25:30]Write to MH i2c: E2 08 00 10 3E 80 11 00 00 00 00 00 00 C8 [00:25:30]*** Cut end [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 17 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 17 00 10 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 13 [00:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:25:30]wFMCommunicate OK [00:25:30]requested_item fd.num is exist - process it [00:25:30]SAM_PROTO_GetFieldsCounters [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 13 00 00 [00:25:30]Write to MH i2c: E2 08 00 11 3E 80 13 00 00 00 00 00 00 CB [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 62 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 62 00 11 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 48 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [00:25: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 48 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:30]wFMCommunicate OK [00:25:30]SAM_PROTO_GetFieldsCounters done [00:25:30]requested_item shift.num is exist - process it [00:25:30]requested_item shift.opened is exist - process it [00:25:30]req_shift_opened [00:25:30]FM_GetShiftState [00:25:30]SAM_PROTO_GetShiftState [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 13 01 00 [00:25:30]Write to MH i2c: E2 08 00 12 3E 80 13 01 00 00 00 00 00 CD [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 0E 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 0E 00 12 3E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 EA [00:25:30]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:25:30]wFMCommunicate OK [00:25:30]SAM_PROTO_GetShiftState done [00:25:30]FM_GetShiftState done [00:25:30]req_shift_opened done [00:25:30]requested_item shift.open_date is exist - process it [00:25:30]req_shift_open_date [00:25:30]req_shift_open_date done [00:25:30]produce_requested_data done [00:25:30]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49736,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [00:25:30]process_action_free close_receipt [00:25:30]json_value_free [00:25:30]json_value_free done [00:25:30]process_json_proto returns [00:25:30]Send response to host [00:25:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49736,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [00:25:30]free response buf [00:25:30]execute_script done [00:25:30]execute_script returns [00:25:30]free content buf [00:25:30]Sock 9.Close socket [00:25:30]Sock 9.Thread stoped [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:26]accept exits with 7 [00:26:26]New connection [00:26:26]New thread 3066801508 created [00:26:26]Thread 3066944868 joined [00:26:26]Waiting for new connection... [00:26:26] Sock 7.Parse request [00:26:26]Sock 7.Check first char [00:26:26]Sock 7.First char is OK [00:26:26]request: POST /json_proto HTTP/1.0 [00:26:26]Method: POST [00:26:26]URL: /json_proto [00:26:26]Method is POST - this is cgi request [00:26:26]url: /json_proto [00:26:26]query_string will be loaded in cgi processing [00:26:26]execute_cgi json_proto POST (null) [00:26:26]execute_cgi path=json_proto method=POST [00:26:26]POST find Content-Length [00:26:26]Host: 172.17.46.196:8080 [00:26:26]Content-Length: 614 [00:26:26]Content-Type: application/json [00:26:26] [00:26:26]POST finish read [00:26:26]Found Content-Length = 614 [00:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189917", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:26]execute_script... [00:26:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189917", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:26]POST & json_proto [00:26:26]process_json_proto [00:26:26]json parsed OK: [00:26:26]protocol is kg_v1.0 [00:26:26]action value=close_receipt [00:26:26]process_action close_receipt [00:26:26]cmd_close_receipt [00:26:26]MH_GetDate [00:26:26]Write to MH i2c: F0 00 00 13 3E 40 [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: F0 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: F0 09 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: F0 09 00 13 3E 00 B8 3F C1 66 07 E8 5D 66 19 [00:26:26]GetLastDocTimeStamp 1723940732 [00:26:26]current date 1723940792 [00:26:26]FM_GetShiftState [00:26:26]SAM_PROTO_GetShiftState [00:26:26]wFMCommunicate request_size=4 [00:26:26]MH_SAM_APDU [00:26:26]CAPDU: 80 13 01 00 [00:26:26]Write to MH i2c: E2 08 00 14 3E 80 13 01 00 00 00 00 00 CF [00:26:26]Write i2c OK [00:26:26]MH_I2C_Read... [00:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:26]Read from MH i2c: E2 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 0E 00 [00:26:26]MH_I2C_Read... [00:26:26]Read from MH i2c: E2 0E 00 14 3E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 EC [00:26:26]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:26:26]wFMCommunicate OK [00:26:26]SAM_PROTO_GetShiftState done [00:26:26]FM_GetShiftState done [00:26:26]opened in 1723939759 [00:26:26]opened+sec_in_day 1724026159 [00:26:26]quantity*price = 11100 [00:26:26]sum+1 = 11101 [00:26:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 3 18.08.2024 00:26 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49737 ФПД: 139056493409456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T002633&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49737&fm=139056493409456&tin=02508201610067®Number=0000000000092546&sum=11100 0 [00:26:27]StoreToDocumentArchive [00:26:27]shift 466 fd 49737 [00:26:27]save to /storage/0466/doc_00049737 [00:26:27]save last doc name /storage/0466/doc_00049737 to /storage/kkm_last_doc_name [00:26:27]save OK [00:26:27]Clear old archive folders... [00:26:27]ProcessDocumentItem done err = 0, tmpTLVsize=266 [00:26:27]tlvbuf is B6F532D0 [00:26:27]SAM_PROTO_ClearQueue [00:26:27]wFMCommunicate request_size=4 [00:26:27]MH_SAM_APDU [00:26:27]CAPDU: 80 09 00 00 [00:26:27]Write to MH i2c: E2 08 00 21 3E 80 09 00 00 00 00 00 00 D1 [00:26:27]Write i2c OK [00:26:27]MH_I2C_Read... [00:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:27]Read from MH i2c: E2 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: E2 03 00 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: E2 03 00 21 3E 00 90 00 D3 [00:26:27]RAPDU: 90 00 [00:26:27]wFMCommunicate OK [00:26:27]SAM_PROTO_ClearQueue done [00:26:27]KKMCreateOFDPacket [00:26:27]OFDProtocolAddRootSTLVToBuf [00:26:27]FM_MakeSignedData [00:26:27]FM_MakeSignedData [00:26:27]SAM_PROTO_SignData [00:26:27]wFMCommunicate request_size=4 [00:26:27]MH_SAM_APDU [00:26:27]CAPDU: 80 0D 01 02 [00:26:27]Write to MH i2c: E2 08 00 22 3E 80 0D 01 02 00 00 00 00 D9 [00:26:27]Write i2c OK [00:26:27]MH_I2C_Read... [00:26:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:28]Read from MH i2c: E2 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 03 00 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 03 00 22 3E 00 90 00 D4 [00:26:28]RAPDU: 90 00 [00:26:28]wFMCommunicate OK [00:26:28]wFMCommunicate request_size=255 [00:26:28]MH_SAM_APDU [00:26:28]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B9 3F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [00:26:28]Write to MH i2c: E2 02 01 23 3E 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B9 3F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 E6 [00:26:28]Write i2c OK [00:26:28]MH_I2C_Read... [00:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:28]Read from MH i2c: E2 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 03 00 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 03 00 23 3E 00 90 00 D5 [00:26:28]RAPDU: 90 00 [00:26:28]wFMCommunicate OK [00:26:28]wFMCommunicate request_size=25 [00:26:28]MH_SAM_APDU [00:26:28]CAPDU: 80 0D 02 02 14 30 30 10 04 04 00 49 C2 00 00 35 04 06 00 7E 78 9C E4 B4 B0 [00:26:28]Write to MH i2c: E2 1C 00 24 3E 80 0D 02 02 14 00 30 30 10 04 04 00 49 C2 00 00 35 04 06 00 7E 78 9C E4 B4 B0 00 00 A0 [00:26:28]Write i2c OK [00:26:28]MH_I2C_Read... [00:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:28]Read from MH i2c: E2 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 03 00 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 03 00 24 3E 00 90 00 D6 [00:26:28]RAPDU: 90 00 [00:26:28]wFMCommunicate OK [00:26:28]wFMCommunicate request_size=4 [00:26:28]MH_SAM_APDU [00:26:28]CAPDU: 80 0D 03 02 [00:26:28]Write to MH i2c: E2 08 00 25 3E 80 0D 03 02 00 00 00 00 DE [00:26:28]Write i2c OK [00:26:28]MH_I2C_Read... [00:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:28]Read from MH i2c: E2 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 0B 00 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 0B 00 25 3E 00 CD C2 31 30 E4 85 91 E5 90 00 AE [00:26:28]RAPDU: CD C2 31 30 E4 85 91 E5 90 00 [00:26:28]wFMCommunicate OK [00:26:28]SAM_PROTO_SignData done [00:26:28]FM_MakeSignedData done [00:26:28]CreateOFDProtocolMessage [00:26:28]wFMCommunicate request_size=4 [00:26:28]MH_SAM_APDU [00:26:28]CAPDU: 80 11 00 00 [00:26:28]Write to MH i2c: E2 08 00 26 3E 80 11 00 00 00 00 00 00 DE [00:26:28]Write i2c OK [00:26:28]MH_I2C_Read... [00:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:28]Read from MH i2c: E2 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 17 00 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 17 00 26 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 29 [00:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:26:28]wFMCommunicate OK [00:26:28]CreateOFDProtocolMessage done [00:26:28]OFDSenderStorePacket 49737 [00:26:28]StoreOFDPacket docnum=49737 [00:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 3F CA 16 01 5E 25 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B9 3F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 49 C2 00 00 35 04 06 00 7E 78 9C E4 B4 B0 CD C2 31 30 E4 85 91 E5 [00:26:28]CheckFolder [00:26:28]dirname=/storage/ofd_packets [00:26:28]CheckFolder done [00:26:28]ProducePacketName [00:26:28]name=ofd_packets/00049737 [00:26:28]NVStorageSaveData ofd_packets/00049737 [00:26:28]File name is /storage/ofd_packets/00049737 [00:26:28]Write 316 bytes [00:26:28]NVStorageSaveData done [00:26:28]OFDSenderStorePacket done [00:26:28]KKMCreateOFDPacket done [00:26:28]NVStorageSaveData kkm_last_timestamp [00:26:28]File name is /storage/kkm_last_timestamp [00:26:28]Write 4 bytes [00:26:28]NVStorageSaveData done [00:26:28]ExternCall_PrintAddStr [00:26:28]wPrintStart [00:26:28]Write to MH i2c: 01 00 00 27 3E 65 [00:26:28]Write i2c OK [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: 01 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: 01 07 00 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: 01 07 00 27 3E 00 00 00 00 00 FF 0F 7A [00:26:28]RasterBufferAndPrint [00:26:28]line Счет N : (3)189917 [00:26:28]line ИНН: 02508201610067 [00:26:28]line Контрольно-Кассовый Чек [00:26:28]line ПРОДАЖА [00:26:28]line Товар: 4870001570071 [00:26:28]line Напиток Pepsi 1л [00:26:28]line 1.000 * 111.00 [00:26:28]line = 111.00 [00:26:28]line НДС 12% НСП 1% [00:26:28]line > о реализуемом товаре [00:26:28]line ИТОГО: 111.00 [00:26:28]line НСП 1% : 0.98 [00:26:28]line НДС 12% : 11.79 [00:26:28]line Наличными: 111.00 [00:26:28]line Безнал.: 0.00 [00:26:28]line Место: АЗС № 95 "Партнер Нефть" [00:26:28]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [00:26:28]line СНО: Общий режим [00:26:28]line Чек 3 18.08.2024 00:26 [00:26:28]line Смена: 466 ФФД: 1.0 [00:26:28]line ЗНМ: 0300000078 [00:26:28]line РНМ: 0000000000092546 [00:26:28]line Версия ККМ: 001 [00:26:28]line ФМ: 0000000000871800 [00:26:28]line ФД: 49737 [00:26:28]line ФПД: 139056493409456 [00:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T002633&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49737&fm=139056493409456&tin=02508201610067®Number=0000000000092546&sum=11100 [00:26:28]OFD Sender: Processing packet 49737 [packets to send 21, broken 20] [00:26:28]ProducePacketName [00:26:28]name=ofd_packets/00049737 [00:26:28]OFD Sender: To server: pG, [00:26:28]CommunicateWithHost lk.salyk.kg:30040 [00:26:28]ConnectInit lk.salyk.kg [00:26:28]line 0 [00:26:28]written 0, free lines is 4095 [00:26:28]Connected sock=10 [00:26:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 3F CA 16 01 5E 25 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B9 3F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 49 C2 00 00 35 04 06 00 7E 78 9C E4 B4 B0 CD C2 31 30 E4 85 91 E5 [00:26:29]Write to MH i2c: 01 00 00 4F 3E 8D [00:26:29]Write i2c OK [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: 01 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: 01 07 00 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: 01 07 00 4F 3E 00 00 00 00 00 F7 0C 97 [00:26:29]RasterBufferAndPrint [00:26:29]line [00:26:29]line [00:26:29]line [00:26:29]line [00:26:29]line [00:26:29]written 0, free lines is 3325 [00:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 14 21 47 00 95 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 31 38 30 30 10 04 04 00 49 C2 00 00 F4 03 04 00 F3 EA C0 66 B6 04 01 00 00 50 DE 59 85 97 B1 51 A3 [00:26:29]CommunicateWithHost err = 0 [00:26:29]CheckOFDResponse [00:26:29]1017 (14) - 77093643461234 [00:26:29]1041 (16) - 0000000000871800 [00:26:29]1040 (4) - 49737 [00:26:29]1012 (4) - 17.08.2024 18:24 [00:26:29]1206 (1) - 0 [00:26:29]OFD Sender: Remove packet 49737 [00:26:29]ProducePacketName [00:26:29]name=ofd_packets/00049737 [00:26:29]NVStorageDeleteData [00:26:29]MH_Cut [00:26:29]Write to MH i2c: D1 01 00 56 3E 01 66 [00:26:29]Write i2c OK [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: D1 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: D1 01 00 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: D1 01 00 56 3E 00 65 [00:26:29]Write to MH i2c: 01 00 00 57 3E 95 [00:26:29]Write i2c OK [00:26:29]MH_I2C_Read... [00:26:29]OFD Sender: No OFD packet to send [00:26:29]*** Cut start [00:26:29]*** Purtial cut [00:26:29]*** CUTSNS_PIN = 0 [00:26:30]*** Stage 1: CUTSNS_PIN = 1 [00:26:31]Read from MH i2c: 01 [00:26:31]MH_I2C_Read... [00:26:32]*** Stop cut motor [00:26:32]*** Cut end [00:26:32]Read from MH i2c: 01 07 00 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: 01 07 00 57 3E 00 00 00 00 00 FF 0F AA [00:26:32]process_action close_receipt done [00:26:32]requested_data is exist [00:26:32]produce_requested_data [00:26:32]requested_item fm.sn is exist - process it [00:26:32]wFMCommunicate request_size=4 [00:26:32]MH_SAM_APDU [00:26:32]CAPDU: 80 11 00 00 [00:26:32]Write to MH i2c: E2 08 00 58 3E 80 11 00 00 00 00 00 00 10 [00:26:32]Write i2c OK [00:26:32]MH_I2C_Read... [00:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:32]Read from MH i2c: E2 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 17 00 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 17 00 58 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5B [00:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:26:32]wFMCommunicate OK [00:26:32]requested_item fd.num is exist - process it [00:26:32]SAM_PROTO_GetFieldsCounters [00:26:32]wFMCommunicate request_size=4 [00:26:32]MH_SAM_APDU [00:26:32]CAPDU: 80 13 00 00 [00:26:32]Write to MH i2c: E2 08 00 59 3E 80 13 00 00 00 00 00 00 13 [00:26:32]Write i2c OK [00:26:32]MH_I2C_Read... [00:26:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:32]Read from MH i2c: E2 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 62 00 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 62 00 59 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 49 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [00:26: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 49 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:32]wFMCommunicate OK [00:26:32]SAM_PROTO_GetFieldsCounters done [00:26:32]requested_item shift.num is exist - process it [00:26:32]requested_item shift.opened is exist - process it [00:26:32]req_shift_opened [00:26:32]FM_GetShiftState [00:26:32]SAM_PROTO_GetShiftState [00:26:32]wFMCommunicate request_size=4 [00:26:32]MH_SAM_APDU [00:26:32]CAPDU: 80 13 01 00 [00:26:32]Write to MH i2c: E2 08 00 5A 3E 80 13 01 00 00 00 00 00 15 [00:26:32]Write i2c OK [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 [00:26:32]MH_I2C_Read... [00:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:32]Read from MH i2c: E2 0E 00 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 0E 00 5A 3E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 32 [00:26:32]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:26:32]wFMCommunicate OK [00:26:32]SAM_PROTO_GetShiftState done [00:26:32]FM_GetShiftState done [00:26:32]req_shift_opened done [00:26:32]requested_item shift.open_date is exist - process it [00:26:32]req_shift_open_date [00:26:32]req_shift_open_date done [00:26:32]produce_requested_data done [00:26:32]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49737,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [00:26:32]process_action_free close_receipt [00:26:32]json_value_free [00:26:32]json_value_free done [00:26:32]process_json_proto returns [00:26:32]Send response to host [00:26:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49737,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [00:26:32]free response buf [00:26:32]execute_script done [00:26:32]execute_script returns [00:26:32]free content buf [00:26:32]Sock 7.Close socket [00:26:32]Sock 7.Thread stoped [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:31]int [00:30:31]Write to MH i2c: 01 00 00 5B 3E 99 [00:30:31]*** FLAG_PRN_KEY set [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 07 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 07 00 5B 3E 00 08 00 00 00 FF 0F B6 [00:30:32]state=0 [00:30:32]Key pressed [00:30:32]Feed [00:30:32]Write to MH i2c: D8 00 00 5C 3E 71 [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: D8 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: D8 01 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: D8 01 00 5C 3E 00 72 [00:30:32]int [00:30:32]Write to MH i2c: 01 00 00 5D 3E 9B [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 07 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 07 00 5D 3E 00 48 00 00 00 3C 00 26 [00:30:32]state=2 [00:30:32]Key pressed [00:30:32]int [00:30:32]Write to MH i2c: 01 00 00 5E 3E 9C [00:30:32]*** FLAG_PRN_KEY reset [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 07 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 07 00 5E 3E 00 00 00 00 00 F9 0F AB [00:30:32]state=2 [00:30:32]Stop feed [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:41]accept exits with 9 [00:31:41]New connection [00:31:41]New thread 3066944868 created [00:31:41]Thread 3066801508 joined [00:31:41]Waiting for new connection... [00:31:41] Sock 9.Parse request [00:31:41]Sock 9.Check first char [00:31:41]Sock 9.First char is OK [00:31:41]request: POST /json_proto HTTP/1.0 [00:31:41]Method: POST [00:31:41]URL: /json_proto [00:31:41]Method is POST - this is cgi request [00:31:41]url: /json_proto [00:31:41]query_string will be loaded in cgi processing [00:31:41]execute_cgi json_proto POST (null) [00:31:41]execute_cgi path=json_proto method=POST [00:31:41]POST find Content-Length [00:31:41]Host: 172.17.46.196:8080 [00:31:41]Content-Length: 614 [00:31:41]Content-Type: application/json [00:31:41] [00:31:41]POST finish read [00:31:41]Found Content-Length = 614 [00:31:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189918", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:41]execute_script... [00:31:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189918", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:41]POST & json_proto [00:31:41]process_json_proto [00:31:41]json parsed OK: [00:31:41]protocol is kg_v1.0 [00:31:41]action value=close_receipt [00:31:41]process_action close_receipt [00:31:41]cmd_close_receipt [00:31:41]MH_GetDate [00:31:41]Write to MH i2c: F0 00 00 5F 3E 8C [00:31:41]Write i2c OK [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: F0 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: F0 09 00 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: F0 09 00 5F 3E 00 F3 40 C1 66 07 E8 5D 66 A1 [00:31:41]GetLastDocTimeStamp 1723940793 [00:31:41]current date 1723941107 [00:31:41]FM_GetShiftState [00:31:41]SAM_PROTO_GetShiftState [00:31:41]wFMCommunicate request_size=4 [00:31:41]MH_SAM_APDU [00:31:41]CAPDU: 80 13 01 00 [00:31:41]Write to MH i2c: E2 08 00 60 3E 80 13 01 00 00 00 00 00 1B [00:31:41]Write i2c OK [00:31:41]MH_I2C_Read... [00:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:41]Read from MH i2c: E2 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 0E 00 [00:31:41]MH_I2C_Read... [00:31:41]Read from MH i2c: E2 0E 00 60 3E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 38 [00:31:41]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:31:41]wFMCommunicate OK [00:31:41]SAM_PROTO_GetShiftState done [00:31:41]FM_GetShiftState done [00:31:41]opened in 1723939759 [00:31:41]opened+sec_in_day 1724026159 [00:31:41]quantity*price = 11100 [00:31:41]sum+1 = 11101 [00:31:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 4 18.08.2024 00:31 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49738 ФПД: 244926873982885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T003147&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49738&fm=244926873982885&tin=02508201610067®Number=0000000000092546&sum=11100 0 [00:31:42]StoreToDocumentArchive [00:31:42]shift 466 fd 49738 [00:31:42]save to /storage/0466/doc_00049738 [00:31:42]save last doc name /storage/0466/doc_00049738 to /storage/kkm_last_doc_name [00:31:42]save OK [00:31:42]Clear old archive folders... [00:31:42]ProcessDocumentItem done err = 0, tmpTLVsize=266 [00:31:42]tlvbuf is 018A1230 [00:31:42]SAM_PROTO_ClearQueue [00:31:42]wFMCommunicate request_size=4 [00:31:42]MH_SAM_APDU [00:31:42]CAPDU: 80 09 00 00 [00:31:42]Write to MH i2c: E2 08 00 6D 3E 80 09 00 00 00 00 00 00 1D [00:31:42]Write i2c OK [00:31:42]MH_I2C_Read... [00:31:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:42]Read from MH i2c: E2 [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: E2 03 00 [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: E2 03 00 6D 3E 00 90 00 1F [00:31:42]RAPDU: 90 00 [00:31:42]wFMCommunicate OK [00:31:42]SAM_PROTO_ClearQueue done [00:31:42]KKMCreateOFDPacket [00:31:42]OFDProtocolAddRootSTLVToBuf [00:31:42]FM_MakeSignedData [00:31:42]FM_MakeSignedData [00:31:42]SAM_PROTO_SignData [00:31:42]wFMCommunicate request_size=4 [00:31:42]MH_SAM_APDU [00:31:42]CAPDU: 80 0D 01 02 [00:31:42]Write to MH i2c: E2 08 00 6E 3E 80 0D 01 02 00 00 00 00 25 [00:31:42]Write i2c OK [00:31:42]MH_I2C_Read... [00:31:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:42]Read from MH i2c: E2 [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: E2 03 00 [00:31:42]MH_I2C_Read... [00:31:42]Read from MH i2c: E2 03 00 6E 3E 00 90 00 20 [00:31:42]RAPDU: 90 00 [00:31:42]wFMCommunicate OK [00:31:42]wFMCommunicate request_size=255 [00:31:42]MH_SAM_APDU [00:31:42]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 F3 40 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [00:31:42]Write to MH i2c: E2 02 01 6F 3E 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 F3 40 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 6E [00:31:42]Write i2c OK [00:31:42]MH_I2C_Read... [00:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:43]Read from MH i2c: E2 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 03 00 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 03 00 6F 3E 00 90 00 21 [00:31:43]RAPDU: 90 00 [00:31:43]wFMCommunicate OK [00:31:43]wFMCommunicate request_size=25 [00:31:43]MH_SAM_APDU [00:31:43]CAPDU: 80 0D 02 02 14 30 30 10 04 04 00 4A C2 00 00 35 04 06 00 DE C2 7B 51 D7 A5 [00:31:43]Write to MH i2c: E2 1C 00 70 3E 80 0D 02 02 14 00 30 30 10 04 04 00 4A C2 00 00 35 04 06 00 DE C2 7B 51 D7 A5 00 00 FB [00:31:43]Write i2c OK [00:31:43]MH_I2C_Read... [00:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:43]Read from MH i2c: E2 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 03 00 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 03 00 70 3E 00 90 00 22 [00:31:43]RAPDU: 90 00 [00:31:43]wFMCommunicate OK [00:31:43]wFMCommunicate request_size=4 [00:31:43]MH_SAM_APDU [00:31:43]CAPDU: 80 0D 03 02 [00:31:43]Write to MH i2c: E2 08 00 71 3E 80 0D 03 02 00 00 00 00 2A [00:31:43]Write i2c OK [00:31:43]MH_I2C_Read... [00:31:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:43]Read from MH i2c: E2 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 0B 00 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 0B 00 71 3E 00 D1 A9 EF E4 C7 0D 99 79 90 00 5E [00:31:43]RAPDU: D1 A9 EF E4 C7 0D 99 79 90 00 [00:31:43]wFMCommunicate OK [00:31:43]SAM_PROTO_SignData done [00:31:43]FM_MakeSignedData done [00:31:43]CreateOFDProtocolMessage [00:31:43]wFMCommunicate request_size=4 [00:31:43]MH_SAM_APDU [00:31:43]CAPDU: 80 11 00 00 [00:31:43]Write to MH i2c: E2 08 00 72 3E 80 11 00 00 00 00 00 00 2A [00:31:43]Write i2c OK [00:31:43]MH_I2C_Read... [00:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:43]Read from MH i2c: E2 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 17 00 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 17 00 72 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 75 [00:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:31:43]wFMCommunicate OK [00:31:43]CreateOFDProtocolMessage done [00:31:43]OFDSenderStorePacket 49738 [00:31:43]StoreOFDPacket docnum=49738 [00:31:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 30 99 16 01 17 9F 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 F3 40 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4A C2 00 00 35 04 06 00 DE C2 7B 51 D7 A5 D1 A9 EF E4 C7 0D 99 79 [00:31:43]CheckFolder [00:31:43]dirname=/storage/ofd_packets [00:31:43]CheckFolder done [00:31:43]ProducePacketName [00:31:43]name=ofd_packets/00049738 [00:31:43]NVStorageSaveData ofd_packets/00049738 [00:31:43]File name is /storage/ofd_packets/00049738 [00:31:43]Write 316 bytes [00:31:43]NVStorageSaveData done [00:31:43]OFDSenderStorePacket done [00:31:43]KKMCreateOFDPacket done [00:31:43]NVStorageSaveData kkm_last_timestamp [00:31:43]File name is /storage/kkm_last_timestamp [00:31:43]Write 4 bytes [00:31:43]NVStorageSaveData done [00:31:43]ExternCall_PrintAddStr [00:31:43]wPrintStart [00:31:43]Write to MH i2c: 01 00 00 73 3E B1 [00:31:43]Write i2c OK [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: 01 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: 01 07 00 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: 01 07 00 73 3E 00 00 00 00 00 FF 0F C6 [00:31:43]RasterBufferAndPrint [00:31:43]line Счет N : (3)189918 [00:31:43]line ИНН: 02508201610067 [00:31:43]line Контрольно-Кассовый Чек [00:31:43]line ПРОДАЖА [00:31:43]line Товар: 4870001570071 [00:31:43]line Напиток Pepsi 1л [00:31:43]line 1.000 * 111.00 [00:31:43]line = 111.00 [00:31:43]line НДС 12% НСП 1% [00:31:43]line > о реализуемом товаре [00:31:43]line ИТОГО: 111.00 [00:31:43]line НСП 1% : 0.98 [00:31:43]line НДС 12% : 11.79 [00:31:43]line Наличными: 111.00 [00:31:43]line Безнал.: 0.00 [00:31:43]line Место: АЗС № 95 "Партнер Нефть" [00:31:43]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [00:31:43]line СНО: Общий режим [00:31:43]line Чек 4 18.08.2024 00:31 [00:31:43]line Смена: 466 ФФД: 1.0 [00:31:43]line ЗНМ: 0300000078 [00:31:43]line РНМ: 0000000000092546 [00:31:43]line Версия ККМ: 001 [00:31:43]line ФМ: 0000000000871800 [00:31:43]line ФД: 49738 [00:31:43]line ФПД: 244926873982885 [00:31:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T003147&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49738&fm=244926873982885&tin=02508201610067®Number=0000000000092546&sum=11100 [00:31:43]OFD Sender: Processing packet 49738 [packets to send 21, broken 20] [00:31:43]ProducePacketName [00:31:43]name=ofd_packets/00049738 [00:31:43]OFD Sender: To server: pG, [00:31:43]CommunicateWithHost lk.salyk.kg:30040 [00:31:43]ConnectInit lk.salyk.kg [00:31:43]line 0 [00:31:43]written 0, free lines is 4095 [00:31:43]Connected sock=10 [00:31:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 30 99 16 01 17 9F 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 F3 40 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4A C2 00 00 35 04 06 00 DE C2 7B 51 D7 A5 D1 A9 EF E4 C7 0D 99 79 [00:31:44]Write to MH i2c: 01 00 00 9B 3E D9 [00:31:44]Write i2c OK [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: 01 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: 01 07 00 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: 01 07 00 9B 3E 00 00 00 00 00 F2 0C DE [00:31:44]RasterBufferAndPrint [00:31:44]line [00:31:44]line [00:31:44]line [00:31:44]line [00:31:44]line [00:31:44]written 0, free lines is 3319 [00:31:44]MH_Cut [00:31:44]Write to MH i2c: D1 01 00 A2 3E 01 B2 [00:31:44]Write i2c OK [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: D1 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: D1 01 00 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: D1 01 00 A2 3E 00 B1 [00:31:44]Write to MH i2c: 01 00 00 A3 3E E1 [00:31:44]Write i2c OK [00:31:44]MH_I2C_Read... [00:31:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A2 B5 47 00 C2 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4A C2 00 00 F4 03 04 00 2E EC C0 66 B6 04 01 00 00 51 C3 EA 06 48 B2 A9 16 [00:31:44]CommunicateWithHost err = 0 [00:31:44]CheckOFDResponse [00:31:44]1017 (14) - 77093643461234 [00:31:44]1041 (16) - 0000000000871800 [00:31:44]1040 (4) - 49738 [00:31:44]1012 (4) - 17.08.2024 18:30 [00:31:44]1206 (1) - 0 [00:31:44]OFD Sender: Remove packet 49738 [00:31:44]ProducePacketName [00:31:44]name=ofd_packets/00049738 [00:31:44]NVStorageDeleteData [00:31:44]OFD Sender: No OFD packet to send [00:31:44]*** Cut start [00:31:44]*** Purtial cut [00:31:44]*** Stage 1: CUTSNS_PIN = 1 [00:31:45]Read from MH i2c: 01 [00:31:45]MH_I2C_Read... [00:31:45]*** Stop cut motor [00:31:45]*** Cut end [00:31:45]Read from MH i2c: 01 07 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: 01 07 00 A3 3E 00 00 00 00 00 FF 0F F6 [00:31:45]process_action close_receipt done [00:31:45]requested_data is exist [00:31:45]produce_requested_data [00:31:45]requested_item fm.sn is exist - process it [00:31:45]wFMCommunicate request_size=4 [00:31:45]MH_SAM_APDU [00:31:45]CAPDU: 80 11 00 00 [00:31:45]Write to MH i2c: E2 08 00 A4 3E 80 11 00 00 00 00 00 00 5C [00:31:45]Write i2c OK [00:31:45]MH_I2C_Read... [00:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:45]Read from MH i2c: E2 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 17 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 17 00 A4 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A7 [00:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:31:45]wFMCommunicate OK [00:31:45]requested_item fd.num is exist - process it [00:31:45]SAM_PROTO_GetFieldsCounters [00:31:45]wFMCommunicate request_size=4 [00:31:45]MH_SAM_APDU [00:31:45]CAPDU: 80 13 00 00 [00:31:45]Write to MH i2c: E2 08 00 A5 3E 80 13 00 00 00 00 00 00 5F [00:31:45]Write i2c OK [00:31:45]MH_I2C_Read... [00:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:45]Read from MH i2c: E2 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 62 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 62 00 A5 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4A C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [00:31: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4A C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:45]wFMCommunicate OK [00:31:45]SAM_PROTO_GetFieldsCounters done [00:31:45]requested_item shift.num is exist - process it [00:31:45]requested_item shift.opened is exist - process it [00:31:45]req_shift_opened [00:31:45]FM_GetShiftState [00:31:45]SAM_PROTO_GetShiftState [00:31:45]wFMCommunicate request_size=4 [00:31:45]MH_SAM_APDU [00:31:45]CAPDU: 80 13 01 00 [00:31:45]Write to MH i2c: E2 08 00 A6 3E 80 13 01 00 00 00 00 00 61 [00:31:45]Write i2c OK [00:31:45]MH_I2C_Read... [00:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:45]Read from MH i2c: E2 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 0E 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 0E 00 A6 3E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 7E [00:31:45]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:31:45]wFMCommunicate OK [00:31:45]SAM_PROTO_GetShiftState done [00:31:45]FM_GetShiftState done [00:31:45]req_shift_opened done [00:31:45]requested_item shift.open_date is exist - process it [00:31:45]req_shift_open_date [00:31:45]req_shift_open_date done [00:31:45]produce_requested_data done [00:31:45]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49738,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [00:31:45]process_action_free close_receipt [00:31:45]json_value_free [00:31:45]json_value_free done [00:31:45]process_json_proto returns [00:31:45]Send response to host [00:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49738,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [00:31:45]free response buf [00:31:45]execute_script done [00:31:45]execute_script returns [00:31:45]free content buf [00:31:45]Sock 9.Close socket [00:31:45]Sock 9.Thread stoped [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:12]accept exits with 7 [00:34:12]New connection [00:34:12]New thread 3066801508 created [00:34:12]Thread 3066944868 joined [00:34:12]Waiting for new connection... [00:34:12] Sock 7.Parse request [00:34:12]Sock 7.Check first char [00:34:12]Sock 7.First char is OK [00:34:12]request: POST /json_proto HTTP/1.0 [00:34:12]Method: POST [00:34:12]URL: /json_proto [00:34:12]Method is POST - this is cgi request [00:34:12]url: /json_proto [00:34:12]query_string will be loaded in cgi processing [00:34:12]execute_cgi json_proto POST (null) [00:34:12]execute_cgi path=json_proto method=POST [00:34:12]POST find Content-Length [00:34:12]Host: 172.17.46.196:8080 [00:34:12]Content-Length: 753 [00:34:12]Content-Type: application/json [00:34:12] [00:34:12]POST finish read [00:34:12]Found Content-Length = 753 [00:34:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30134458", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:12]execute_script... [00:34: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)11326675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30134458", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:12]POST & json_proto [00:34:12]process_json_proto [00:34:12]json parsed OK: [00:34:12]protocol is kg_v1.0 [00:34:12]action value=close_receipt [00:34:12]process_action close_receipt [00:34:12]cmd_close_receipt [00:34:12]MH_GetDate [00:34:12]Write to MH i2c: F0 00 00 A7 3E D4 [00:34:12]Write i2c OK [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: F0 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: F0 09 00 [00:34:12]MH_I2C_Read... [00:34:12]Read from MH i2c: F0 09 00 A7 3E 00 8B 41 C1 66 07 E8 5D 66 82 [00:34:12]GetLastDocTimeStamp 1723941107 [00:34:12]current date 1723941259 [00:34:12]FM_GetShiftState [00:34:12]SAM_PROTO_GetShiftState [00:34:12]wFMCommunicate request_size=4 [00:34:12]MH_SAM_APDU [00:34:12]CAPDU: 80 13 01 00 [00:34:12]Write to MH i2c: E2 08 00 A8 3E 80 13 01 00 00 00 00 00 63 [00:34:12]Write i2c OK [00:34:12]MH_I2C_Read... [00:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:13]Read from MH i2c: E2 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: E2 0E 00 [00:34:13]MH_I2C_Read... [00:34:13]Read from MH i2c: E2 0E 00 A8 3E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 80 [00:34:13]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:34:13]wFMCommunicate OK [00:34:13]SAM_PROTO_GetShiftState done [00:34:13]FM_GetShiftState done [00:34:13]opened in 1723939759 [00:34:13]opened+sec_in_day 1724026159 [00:34:13]quantity*price = 0 [00:34:13]sum+1 = 1 [00:34:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 5 18.08.2024 00:34 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30134458 ФМ: 0000000000871800 ФД: 49739 ФПД: 147688516338750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T003419&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49739&fm=147688516338750&tin=02508201610067®Number=0000000000092546&sum=0 [00:34:14]StoreToDocumentArchive [00:34:14]shift 466 fd 49739 [00:34:14]save to /storage/0466/doc_00049739 [00:34:14]save last doc name /storage/0466/doc_00049739 to /storage/kkm_last_doc_name [00:34:14]save OK [00:34:14]Clear old archive folders... [00:34:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:34:14]tlvbuf is 01919D40 [00:34:14]SAM_PROTO_ClearQueue [00:34:14]wFMCommunicate request_size=4 [00:34:14]MH_SAM_APDU [00:34:14]CAPDU: 80 09 00 00 [00:34:14]Write to MH i2c: E2 08 00 B5 3E 80 09 00 00 00 00 00 00 65 [00:34:14]Write i2c OK [00:34:14]MH_I2C_Read... [00:34:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:14]Read from MH i2c: E2 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 03 00 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 03 00 B5 3E 00 90 00 67 [00:34:14]RAPDU: 90 00 [00:34:14]wFMCommunicate OK [00:34:14]SAM_PROTO_ClearQueue done [00:34:14]KKMCreateOFDPacket [00:34:14]OFDProtocolAddRootSTLVToBuf [00:34:14]FM_MakeSignedData [00:34:14]FM_MakeSignedData [00:34:14]SAM_PROTO_SignData [00:34:14]wFMCommunicate request_size=4 [00:34:14]MH_SAM_APDU [00:34:14]CAPDU: 80 0D 01 02 [00:34:14]Write to MH i2c: E2 08 00 B6 3E 80 0D 01 02 00 00 00 00 6D [00:34:14]Write i2c OK [00:34:14]MH_I2C_Read... [00:34:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:14]Read from MH i2c: E2 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 03 00 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 03 00 B6 3E 00 90 00 68 [00:34:14]RAPDU: 90 00 [00:34:14]wFMCommunicate OK [00:34:14]wFMCommunicate request_size=255 [00:34:14]MH_SAM_APDU [00:34:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 8B 41 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C2 00 00 35 04 06 00 86 52 69 8D [00:34:14]Write to MH i2c: E2 02 01 B7 3E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 8B 41 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C2 00 00 35 04 06 00 86 52 69 8D 00 00 0E [00:34:14]Write i2c OK [00:34:14]MH_I2C_Read... [00:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:14]Read from MH i2c: E2 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 03 00 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 03 00 B7 3E 00 90 00 69 [00:34:14]RAPDU: 90 00 [00:34:14]wFMCommunicate OK [00:34:14]wFMCommunicate request_size=7 [00:34:14]MH_SAM_APDU [00:34:14]CAPDU: 80 0D 02 02 02 C4 3E [00:34:14]Write to MH i2c: E2 0A 00 B8 3E 80 0D 02 02 02 00 C4 3E 00 00 76 [00:34:14]Write i2c OK [00:34:14]MH_I2C_Read... [00:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:14]Read from MH i2c: E2 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 03 00 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 03 00 B8 3E 00 90 00 6A [00:34:14]RAPDU: 90 00 [00:34:14]wFMCommunicate OK [00:34:14]wFMCommunicate request_size=4 [00:34:14]MH_SAM_APDU [00:34:14]CAPDU: 80 0D 03 02 [00:34:14]Write to MH i2c: E2 08 00 B9 3E 80 0D 03 02 00 00 00 00 72 [00:34:14]Write i2c OK [00:34:14]MH_I2C_Read... [00:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:14]Read from MH i2c: E2 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 0B 00 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 0B 00 B9 3E 00 10 AB 1E C2 DF EF D4 BE 90 00 6E [00:34:14]RAPDU: 10 AB 1E C2 DF EF D4 BE 90 00 [00:34:14]wFMCommunicate OK [00:34:14]SAM_PROTO_SignData done [00:34:14]FM_MakeSignedData done [00:34:14]CreateOFDProtocolMessage [00:34:14]wFMCommunicate request_size=4 [00:34:14]MH_SAM_APDU [00:34:14]CAPDU: 80 11 00 00 [00:34:14]Write to MH i2c: E2 08 00 BA 3E 80 11 00 00 00 00 00 00 72 [00:34:14]Write i2c OK [00:34:14]MH_I2C_Read... [00:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:14]Read from MH i2c: E2 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 17 00 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: E2 17 00 BA 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BD [00:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:34:14]wFMCommunicate OK [00:34:14]CreateOFDProtocolMessage done [00:34:14]OFDSenderStorePacket 49739 [00:34:14]StoreOFDPacket docnum=49739 [00:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 58 7C 04 01 F0 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 8B 41 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C2 00 00 35 04 06 00 86 52 69 8D C4 3E 10 AB 1E C2 DF EF D4 BE [00:34:14]CheckFolder [00:34:14]dirname=/storage/ofd_packets [00:34:14]CheckFolder done [00:34:14]ProducePacketName [00:34:14]name=ofd_packets/00049739 [00:34:14]NVStorageSaveData ofd_packets/00049739 [00:34:14]File name is /storage/ofd_packets/00049739 [00:34:14]Write 298 bytes [00:34:14]NVStorageSaveData done [00:34:14]OFDSenderStorePacket done [00:34:14]KKMCreateOFDPacket done [00:34:14]NVStorageSaveData kkm_last_timestamp [00:34:14]File name is /storage/kkm_last_timestamp [00:34:14]Write 4 bytes [00:34:14]NVStorageSaveData done [00:34:14]ExternCall_PrintAddStr [00:34:14]wPrintStart [00:34:14]Write to MH i2c: 01 00 00 BB 3E F9 [00:34:14]Write i2c OK [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: 01 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: 01 07 00 [00:34:14]MH_I2C_Read... [00:34:14]Read from MH i2c: 01 07 00 BB 3E 00 00 00 00 00 FF 0F 0E [00:34:14]RasterBufferAndPrint [00:34:14]line Счет N : (1)11326675 [00:34:14]line ИНН: 02508201610067 [00:34:14]line Контрольно-Кассовый Чек [00:34:14]line ПРОДАЖА [00:34:14]line ТРК (МРК, ГНК) : 51 [00:34:14]line Товар: 2710194210 [00:34:14]line ДТ-К-5 [00:34:14]line 30.000 * 0.00 [00:34:14]line = 0.00 [00:34:14]line НДС 12% НСП 1% [00:34:14]line > о реализуемом товаре [00:34:14]line ИТОГО: 0.00 [00:34:14]line НСП 1% : 0.00 [00:34:14]line НДС 12% : 0.00 [00:34:14]line Наличными: 0.00 [00:34:14]line Безнал.: 0.00 [00:34:14]line Место: АЗС № 95 "Партнер Нефть" [00:34:14]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [00:34:14]line СНО: Общий режим [00:34:14]line Чек 5 18.08.2024 00:34 [00:34:14]line Смена: 466 ФФД: 1.0 [00:34:14]line ЗНМ: 0300000078 [00:34:14]line РНМ: 0000000000092546 [00:34:14]line Версия ККМ: 001 [00:34:14]line Талоны: ТК ГПНА Online [00:34:14]line 30134458 [00:34:14]line ФМ: 0000000000871800 [00:34:14]line ФД: 49739 [00:34:14]line ФПД: 147688516338750 [00:34:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T003419&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49739&fm=147688516338750&tin=02508201610067®Number=0000000000092546&sum=0 [00:34:15]OFD Sender: Processing packet 49739 [packets to send 21, broken 20] [00:34:15]ProducePacketName [00:34:15]name=ofd_packets/00049739 [00:34:15]OFD Sender: To server: pG, [00:34:15]CommunicateWithHost lk.salyk.kg:30040 [00:34:15]ConnectInit lk.salyk.kg [00:34:15]written 0, free lines is 4095 [00:34:15]Connected sock=10 [00:34:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 58 7C 04 01 F0 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 8B 41 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C2 00 00 35 04 06 00 86 52 69 8D C4 3E 10 AB 1E C2 DF EF D4 BE [00:34:15]Write to MH i2c: 01 00 00 E5 3E 23 [00:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 04 AD 47 00 1F 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 31 38 30 30 10 04 04 00 4B C2 00 00 F4 03 04 00 C5 EC C0 66 B6 04 01 00 00 60 09 0A 3A BB B5 CF CE [00:34:15]CommunicateWithHost err = 0 [00:34:15]CheckOFDResponse [00:34:15]1017 (14) - 77093643461234 [00:34:15]1041 (16) - 0000000000871800 [00:34:15]1040 (4) - 49739 [00:34:15]1012 (4) - 17.08.2024 18:32 [00:34:15]1206 (1) - 0 [00:34:15]OFD Sender: Remove packet 49739 [00:34:15]ProducePacketName [00:34:15]name=ofd_packets/00049739 [00:34:15]NVStorageDeleteData [00:34:15]Write i2c OK [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: 01 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: 01 07 00 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: 01 07 00 E5 3E 00 00 00 00 00 EC 0C 22 [00:34:15]RasterBufferAndPrint [00:34:15]line [00:34:15]line [00:34:15]line [00:34:15]line [00:34:15]line [00:34:15]written 0, free lines is 3325 [00:34:15]MH_Cut [00:34:15]Write to MH i2c: D1 01 00 EC 3E 01 FC [00:34:15]Write i2c OK [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: D1 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: D1 01 00 [00:34:15]MH_I2C_Read... [00:34:15]Read from MH i2c: D1 01 00 EC 3E 00 FB [00:34:15]Write to MH i2c: 01 00 00 ED 3E 2B [00:34:15]Write i2c OK [00:34:15]MH_I2C_Read... [00:34:15]OFD Sender: No OFD packet to send [00:34:16]*** Cut start [00:34:16]*** Purtial cut [00:34:16]*** CUTSNS_PIN = 0 [00:34:16]*** Stage 1: CUTSNS_PIN = 1 [00:34:18]Read from MH i2c: 01 [00:34:18]MH_I2C_Read... [00:34:18]*** Stop cut motor [00:34:18]*** Cut end [00:34:18]Read from MH i2c: 01 07 00 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: 01 07 00 ED 3E 00 00 00 00 00 FF 0F 40 [00:34:18]process_action close_receipt done [00:34:18]requested_data is exist [00:34:18]produce_requested_data [00:34:18]requested_item fm.sn is exist - process it [00:34:18]wFMCommunicate request_size=4 [00:34:18]MH_SAM_APDU [00:34:18]CAPDU: 80 11 00 00 [00:34:18]Write to MH i2c: E2 08 00 EE 3E 80 11 00 00 00 00 00 00 A6 [00:34:18]Write i2c OK [00:34:18]MH_I2C_Read... [00:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:18]Read from MH i2c: E2 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: E2 17 00 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: E2 17 00 EE 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F1 [00:34:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:34:18]wFMCommunicate OK [00:34:18]requested_item fd.num is exist - process it [00:34:18]SAM_PROTO_GetFieldsCounters [00:34:18]wFMCommunicate request_size=4 [00:34:18]MH_SAM_APDU [00:34:18]CAPDU: 80 13 00 00 [00:34:18]Write to MH i2c: E2 08 00 EF 3E 80 13 00 00 00 00 00 00 A9 [00:34:18]Write i2c OK [00:34:18]MH_I2C_Read... [00:34:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:18]Read from MH i2c: E2 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: E2 62 00 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: E2 62 00 EF 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4B C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [00:34:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4B C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:34:18]wFMCommunicate OK [00:34:18]SAM_PROTO_GetFieldsCounters done [00:34:18]requested_item shift.num is exist - process it [00:34:18]requested_item shift.opened is exist - process it [00:34:18]req_shift_opened [00:34:18]FM_GetShiftState [00:34:18]SAM_PROTO_GetShiftState [00:34:18]wFMCommunicate request_size=4 [00:34:18]MH_SAM_APDU [00:34:18]CAPDU: 80 13 01 00 [00:34:18]Write to MH i2c: E2 08 00 F0 3E 80 13 01 00 00 00 00 00 AB [00:34:18]Write i2c OK [00:34:18]MH_I2C_Read... [00:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:18]Read from MH i2c: E2 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: E2 0E 00 [00:34:18]MH_I2C_Read... [00:34:18]Read from MH i2c: E2 0E 00 F0 3E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 C8 [00:34:18]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:34:18]wFMCommunicate OK [00:34:18]SAM_PROTO_GetShiftState done [00:34:18]FM_GetShiftState done [00:34:18]req_shift_opened done [00:34:18]requested_item shift.open_date is exist - process it [00:34:18]req_shift_open_date [00:34:18]req_shift_open_date done [00:34:18]produce_requested_data done [00:34:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49739,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [00:34:18]process_action_free close_receipt [00:34:18]json_value_free [00:34:18]json_value_free done [00:34:18]process_json_proto returns [00:34:18]Send response to host [00:34:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49739,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [00:34:18]free response buf [00:34:18]execute_script done [00:34:18]execute_script returns [00:34:18]free content buf [00:34:18]Sock 7.Close socket [00:34:18]Sock 7.Thread stoped [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:51]accept exits with 9 [00:42:51]New connection [00:42:51]New thread 3066944868 created [00:42:51]Thread 3066801508 joined [00:42:51]Waiting for new connection... [00:42:51] Sock 9.Parse request [00:42:51]Sock 9.Check first char [00:42:51]Sock 9.First char is OK [00:42:51]request: POST /json_proto HTTP/1.0 [00:42:51]Method: POST [00:42:51]URL: /json_proto [00:42:51]Method is POST - this is cgi request [00:42:51]url: /json_proto [00:42:51]query_string will be loaded in cgi processing [00:42:51]execute_cgi json_proto POST (null) [00:42:51]execute_cgi path=json_proto method=POST [00:42:51]POST find Content-Length [00:42:51]Host: 172.17.46.196:8080 [00:42:51]Content-Length: 855 [00:42:51]Content-Type: application/json [00:42:51] [00:42:51]POST finish read [00:42:51]Found Content-Length = 855 [00:42:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189919", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:51]execute_script... [00:42:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189919", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:51]POST & json_proto [00:42:51]process_json_proto [00:42:51]json parsed OK: [00:42:51]protocol is kg_v1.0 [00:42:51]action value=close_receipt [00:42:51]process_action close_receipt [00:42:51]cmd_close_receipt [00:42:51]MH_GetDate [00:42:51]Write to MH i2c: F0 00 00 F1 3E 1E [00:42:51]Write i2c OK [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: F0 [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: F0 09 00 [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: F0 09 00 F1 3E 00 92 43 C1 66 07 E8 5D 66 D5 [00:42:51]GetLastDocTimeStamp 1723941259 [00:42:51]current date 1723941778 [00:42:51]FM_GetShiftState [00:42:51]SAM_PROTO_GetShiftState [00:42:51]wFMCommunicate request_size=4 [00:42:51]MH_SAM_APDU [00:42:51]CAPDU: 80 13 01 00 [00:42:51]Write to MH i2c: E2 08 00 F2 3E 80 13 01 00 00 00 00 00 AD [00:42:51]Write i2c OK [00:42:51]MH_I2C_Read... [00:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:51]Read from MH i2c: E2 [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: E2 0E 00 [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: E2 0E 00 F2 3E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 CA [00:42:51]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:42:51]wFMCommunicate OK [00:42:51]SAM_PROTO_GetShiftState done [00:42:51]FM_GetShiftState done [00:42:51]opened in 1723939759 [00:42:51]opened+sec_in_day 1724026159 [00:42:51]quantity*price = 17500 [00:42:51]sum+1 = 17501 [00:42:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 315.00 НСП 1% : 2.79 НДС 12% : 33.45 Наличными: 315.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 6 18.08.2024 00:42 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49740 ФПД: 9589660974563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T004258&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49740&fm=9589660974563&tin=02508201610067®Number=0000000000092546&sum=31500 0 [00:42:53]StoreToDocumentArchive [00:42:53]shift 466 fd 49740 [00:42:53]save to /storage/0466/doc_00049740 [00:42:53]save last doc name /storage/0466/doc_00049740 to /storage/kkm_last_doc_name [00:42:53]save OK [00:42:53]Clear old archive folders... [00:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=373 [00:42:53]tlvbuf is 01919B20 [00:42:53]SAM_PROTO_ClearQueue [00:42:53]wFMCommunicate request_size=4 [00:42:53]MH_SAM_APDU [00:42:53]CAPDU: 80 09 00 00 [00:42:53]Write to MH i2c: E2 08 00 FF 3E 80 09 00 00 00 00 00 00 AF [00:42:53]Write i2c OK [00:42:53]MH_I2C_Read... [00:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:42:53]Read from MH i2c: E2 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: E2 03 00 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: E2 03 00 FF 3E 00 90 00 B1 [00:42:53]RAPDU: 90 00 [00:42:53]wFMCommunicate OK [00:42:53]SAM_PROTO_ClearQueue done [00:42:53]KKMCreateOFDPacket [00:42:53]OFDProtocolAddRootSTLVToBuf [00:42:53]FM_MakeSignedData [00:42:53]FM_MakeSignedData [00:42:53]SAM_PROTO_SignData [00:42:53]wFMCommunicate request_size=4 [00:42:53]MH_SAM_APDU [00:42:53]CAPDU: 80 0D 01 02 [00:42:53]Write to MH i2c: E2 08 00 00 3F 80 0D 01 02 00 00 00 00 B8 [00:42:53]Write i2c OK [00:42:53]MH_I2C_Read... [00:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:42:53]Read from MH i2c: E2 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: E2 03 00 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: E2 03 00 00 3F 00 90 00 B3 [00:42:53]RAPDU: 90 00 [00:42:53]wFMCommunicate OK [00:42:53]wFMCommunicate request_size=255 [00:42:53]MH_SAM_APDU [00:42:53]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 [00:42:53]Write to MH i2c: E2 02 01 01 3F 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 00 00 7A [00:42:53]Write i2c OK [00:42:53]MH_I2C_Read... [00:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:53]Read from MH i2c: E2 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: E2 03 00 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: E2 03 00 01 3F 00 90 00 B4 [00:42:53]RAPDU: 90 00 [00:42:53]wFMCommunicate OK [00:42:53]wFMCommunicate request_size=132 [00:42:53]MH_SAM_APDU [00:42:53]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 92 43 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4C C2 00 00 35 04 06 00 08 B8 C4 55 FD E3 [00:42:53]Write to MH i2c: E2 87 00 02 3F 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 92 43 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4C C2 00 00 35 04 06 00 08 B8 C4 55 FD E3 00 00 2E [00:42:53]Write i2c OK [00:42:53]MH_I2C_Read... [00:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:53]Read from MH i2c: E2 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: E2 03 00 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: E2 03 00 02 3F 00 90 00 B5 [00:42:53]RAPDU: 90 00 [00:42:53]wFMCommunicate OK [00:42:53]wFMCommunicate request_size=4 [00:42:53]MH_SAM_APDU [00:42:53]CAPDU: 80 0D 03 02 [00:42:53]Write to MH i2c: E2 08 00 03 3F 80 0D 03 02 00 00 00 00 BD [00:42:53]Write i2c OK [00:42:53]MH_I2C_Read... [00:42:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:42:53]Read from MH i2c: E2 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: E2 0B 00 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: E2 0B 00 03 3F 00 F7 D7 45 55 85 6D 6D A7 90 00 2C [00:42:53]RAPDU: F7 D7 45 55 85 6D 6D A7 90 00 [00:42:53]wFMCommunicate OK [00:42:53]SAM_PROTO_SignData done [00:42:53]FM_MakeSignedData done [00:42:53]CreateOFDProtocolMessage [00:42:53]wFMCommunicate request_size=4 [00:42:53]MH_SAM_APDU [00:42:53]CAPDU: 80 11 00 00 [00:42:53]Write to MH i2c: E2 08 00 04 3F 80 11 00 00 00 00 00 00 BD [00:42:53]Write i2c OK [00:42:53]MH_I2C_Read... [00:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:53]Read from MH i2c: E2 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: E2 17 00 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: E2 17 00 04 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 08 [00:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:42:53]wFMCommunicate OK [00:42:53]CreateOFDProtocolMessage done [00:42:53]OFDSenderStorePacket 49740 [00:42:53]StoreOFDPacket docnum=49740 [00:42:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 89 01 00 00 CB 2D 81 01 7F 52 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 92 43 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4C C2 00 00 35 04 06 00 08 B8 C4 55 FD E3 F7 D7 45 55 85 6D 6D A7 [00:42:53]CheckFolder [00:42:53]dirname=/storage/ofd_packets [00:42:53]CheckFolder done [00:42:53]ProducePacketName [00:42:53]name=ofd_packets/00049740 [00:42:53]NVStorageSaveData ofd_packets/00049740 [00:42:53]File name is /storage/ofd_packets/00049740 [00:42:53]Write 423 bytes [00:42:53]NVStorageSaveData done [00:42:53]OFDSenderStorePacket done [00:42:53]KKMCreateOFDPacket done [00:42:53]NVStorageSaveData kkm_last_timestamp [00:42:53]File name is /storage/kkm_last_timestamp [00:42:53]Write 4 bytes [00:42:53]NVStorageSaveData done [00:42:53]ExternCall_PrintAddStr [00:42:53]wPrintStart [00:42:53]Write to MH i2c: 01 00 00 05 3F 44 [00:42:53]Write i2c OK [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: 01 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: 01 07 00 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: 01 07 00 05 3F 00 00 00 00 00 FF 0F 59 [00:42:53]RasterBufferAndPrint [00:42:53]line Счет N : (3)189919 [00:42:53]line ИНН: 02508201610067 [00:42:53]line Контрольно-Кассовый Чек [00:42:53]line ПРОДАЖА [00:42:53]line Товар: 4870002329487 [00:42:53]line Напиток Pepsi 1,5л [00:42:53]line 1.000 * 175.00 [00:42:53]line = 175.00 [00:42:53]line НДС 12% НСП 1% [00:42:53]line > о реализуемом товаре [00:42:53]line Товар: 48743587 [00:42:54]line Сигареты Winston XStyle Silver [00:42:54]line 1.000 * 140.00 [00:42:54]line = 140.00 [00:42:54]line НДС 12% НСП 1% [00:42:54]line > о реализуемом товаре [00:42:54]line ИТОГО: 315.00 [00:42:54]line НСП 1% : 2.79 [00:42:54]line НДС 12% : 33.45 [00:42:54]line Наличными: 315.00 [00:42:54]line Безнал.: 0.00 [00:42:54]line Место: АЗС № 95 "Партнер Нефть" [00:42:54]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [00:42:54]line СНО: Общий режим [00:42:54]line Чек 6 18.08.2024 00:42 [00:42:54]line Смена: 466 ФФД: 1.0 [00:42:54]line ЗНМ: 0300000078 [00:42:54]line РНМ: 0000000000092546 [00:42:54]line Версия ККМ: 001 [00:42:54]line ФМ: 0000000000871800 [00:42:54]line ФД: 49740 [00:42:54]line ФПД: 9589660974563 [00:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T004258&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49740&fm=9589660974563&tin=02508201610067®Number=0000000000092546&sum=31500 [00:42:54]line 0 [00:42:54]OFD Sender: Processing packet 49740 [packets to send 21, broken 20] [00:42:54]ProducePacketName [00:42:54]name=ofd_packets/00049740 [00:42:54]OFD Sender: To server: pG, [00:42:54]CommunicateWithHost lk.salyk.kg:30040 [00:42:54]ConnectInit lk.salyk.kg [00:42:54]written 0, free lines is 4095 [00:42:54]Connected sock=10 [00:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 89 01 00 00 CB 2D 81 01 7F 52 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 92 43 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4C C2 00 00 35 04 06 00 08 B8 C4 55 FD E3 F7 D7 45 55 85 6D 6D A7 [00:42:54]Write to MH i2c: 01 00 00 34 3F 73 [00:42:54]Write i2c OK [00:42:54]MH_I2C_Read... [00:42:54]Read from MH i2c: 01 [00:42:54]MH_I2C_Read... [00:42:54]Read from MH i2c: 01 07 00 [00:42:54]MH_I2C_Read... [00:42:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8B 3F 47 00 C5 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4C C2 00 00 F4 03 04 00 CC EE C0 66 B6 04 01 00 00 7C 8E 80 C2 05 1D 52 08 [00:42:54]CommunicateWithHost err = 0 [00:42:54]CheckOFDResponse [00:42:54]1017 (14) - 77093643461234 [00:42:54]1041 (16) - 0000000000871800 [00:42:54]1040 (4) - 49740 [00:42:54]1012 (4) - 17.08.2024 18:41 [00:42:54]1206 (1) - 0 [00:42:54]OFD Sender: Remove packet 49740 [00:42:54]ProducePacketName [00:42:54]name=ofd_packets/00049740 [00:42:54]NVStorageDeleteData [00:42:54]Read from MH i2c: 01 07 00 34 3F 00 00 00 00 00 8C 0C 12 [00:42:54]RasterBufferAndPrint [00:42:54]line [00:42:54]line [00:42:54]line [00:42:54]line [00:42:54]line [00:42:54]written 0, free lines is 3256 [00:42:54]MH_Cut [00:42:54]Write to MH i2c: D1 01 00 3B 3F 01 4C [00:42:54]Write i2c OK [00:42:54]MH_I2C_Read... [00:42:54]Read from MH i2c: D1 [00:42:54]MH_I2C_Read... [00:42:54]Read from MH i2c: D1 01 00 [00:42:54]MH_I2C_Read... [00:42:54]Read from MH i2c: D1 01 00 3B 3F 00 4B [00:42:54]Write to MH i2c: 01 00 00 3C 3F 7B [00:42:54]Write i2c OK [00:42:54]MH_I2C_Read... [00:42:55]OFD Sender: No OFD packet to send [00:42:55]*** Cut start [00:42:55]*** Purtial cut [00:42:55]*** Stage 1: CUTSNS_PIN = 1 [00:42:55]Read from MH i2c: 01 [00:42:55]MH_I2C_Read... [00:42:55]*** Stop cut motor [00:42:55]*** Cut end [00:42:55]Read from MH i2c: 01 07 00 [00:42:55]MH_I2C_Read... [00:42:55]Read from MH i2c: 01 07 00 3C 3F 00 00 00 00 00 FF 0F 90 [00:42:55]process_action close_receipt done [00:42:55]requested_data is exist [00:42:55]produce_requested_data [00:42:55]requested_item fm.sn is exist - process it [00:42:55]wFMCommunicate request_size=4 [00:42:55]MH_SAM_APDU [00:42:55]CAPDU: 80 11 00 00 [00:42:55]Write to MH i2c: E2 08 00 3D 3F 80 11 00 00 00 00 00 00 F6 [00:42:55]Write i2c OK [00:42:55]MH_I2C_Read... [00:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:55]Read from MH i2c: E2 [00:42:55]MH_I2C_Read... [00:42:55]Read from MH i2c: E2 17 00 [00:42:55]MH_I2C_Read... [00:42:55]Read from MH i2c: E2 17 00 3D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 41 [00:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:42:55]wFMCommunicate OK [00:42:55]requested_item fd.num is exist - process it [00:42:55]SAM_PROTO_GetFieldsCounters [00:42:55]wFMCommunicate request_size=4 [00:42:55]MH_SAM_APDU [00:42:55]CAPDU: 80 13 00 00 [00:42:55]Write to MH i2c: E2 08 00 3E 3F 80 13 00 00 00 00 00 00 F9 [00:42:55]Write i2c OK [00:42:55]MH_I2C_Read... [00:42:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:55]Read from MH i2c: E2 [00:42:55]MH_I2C_Read... [00:42:55]Read from MH i2c: E2 62 00 [00:42:55]MH_I2C_Read... [00:42:55]Read from MH i2c: E2 62 00 3E 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4C C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [00:42:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4C C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:42:55]wFMCommunicate OK [00:42:55]SAM_PROTO_GetFieldsCounters done [00:42:55]requested_item shift.num is exist - process it [00:42:55]requested_item shift.opened is exist - process it [00:42:55]req_shift_opened [00:42:55]FM_GetShiftState [00:42:55]SAM_PROTO_GetShiftState [00:42:55]wFMCommunicate request_size=4 [00:42:55]MH_SAM_APDU [00:42:55]CAPDU: 80 13 01 00 [00:42:55]Write to MH i2c: E2 08 00 3F 3F 80 13 01 00 00 00 00 00 FB [00:42:55]Write i2c OK [00:42:55]MH_I2C_Read... [00:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:55]Read from MH i2c: E2 [00:42:55]MH_I2C_Read... [00:42:55]Read from MH i2c: E2 0E 00 [00:42:55]MH_I2C_Read... [00:42:55]Read from MH i2c: E2 0E 00 3F 3F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 18 [00:42:55]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:42:55]wFMCommunicate OK [00:42:55]SAM_PROTO_GetShiftState done [00:42:55]FM_GetShiftState done [00:42:55]req_shift_opened done [00:42:55]requested_item shift.open_date is exist - process it [00:42:55]req_shift_open_date [00:42:55]req_shift_open_date done [00:42:55]produce_requested_data done [00:42:55]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49740,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [00:42:55]process_action_free close_receipt [00:42:55]json_value_free [00:42:55]json_value_free done [00:42:55]process_json_proto returns [00:42:55]Send response to host [00:42:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49740,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [00:42:55]free response buf [00:42:55]execute_script done [00:42:55]execute_script returns [00:42:55]free content buf [00:42:55]Sock 9.Close socket [00:42:55]Sock 9.Thread stoped [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:10]int [00:43:10]Write to MH i2c: 01 00 00 40 3F 7F [00:43:10]*** FLAG_PRN_KEY set [00:43:10]Write i2c OK [00:43:10]MH_I2C_Read... [00:43:10]Read from MH i2c: 01 [00:43:10]MH_I2C_Read... [00:43:10]Read from MH i2c: 01 07 00 [00:43:10]MH_I2C_Read... [00:43:10]Read from MH i2c: 01 07 00 40 3F 00 08 00 00 00 FF 0F 9C [00:43:10]state=0 [00:43:10]Key pressed [00:43:10]Feed [00:43:10]Write to MH i2c: D8 00 00 41 3F 57 [00:43:10]Write i2c OK [00:43:10]MH_I2C_Read... [00:43:10]Read from MH i2c: D8 [00:43:10]MH_I2C_Read... [00:43:10]Read from MH i2c: D8 01 00 [00:43:10]MH_I2C_Read... [00:43:10]Read from MH i2c: D8 01 00 41 3F 00 58 [00:43:10]int [00:43:10]Write to MH i2c: 01 00 00 42 3F 81 [00:43:10]Write i2c OK [00:43:10]MH_I2C_Read... [00:43:10]Read from MH i2c: 01 [00:43:10]MH_I2C_Read... [00:43:10]Read from MH i2c: 01 07 00 [00:43:10]MH_I2C_Read... [00:43:10]Read from MH i2c: 01 07 00 42 3F 00 48 00 00 00 3C 00 0C [00:43:10]state=2 [00:43:10]Key pressed [00:43:10]int [00:43:10]Write to MH i2c: 01 00 00 43 3F 82 [00:43:10]*** FLAG_PRN_KEY reset [00:43:10]Write i2c OK [00:43:10]MH_I2C_Read... [00:43:10]Read from MH i2c: 01 [00:43:10]MH_I2C_Read... [00:43:10]Read from MH i2c: 01 07 00 [00:43:10]MH_I2C_Read... [00:43:10]Read from MH i2c: 01 07 00 43 3F 00 00 00 00 00 F8 0F 90 [00:43:10]state=2 [00:43:10]Stop feed [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:47]accept exits with 7 [00:48:47]New connection [00:48:47]New thread 3066801508 created [00:48:47]Thread 3066944868 joined [00:48:47]Waiting for new connection... [00:48:47] Sock 7.Parse request [00:48:47]Sock 7.Check first char [00:48:47]Sock 7.First char is OK [00:48:47]request: POST /json_proto HTTP/1.0 [00:48:47]Method: POST [00:48:47]URL: /json_proto [00:48:47]Method is POST - this is cgi request [00:48:47]url: /json_proto [00:48:47]query_string will be loaded in cgi processing [00:48:47]execute_cgi json_proto POST (null) [00:48:47]execute_cgi path=json_proto method=POST [00:48:47]POST find Content-Length [00:48:47]Host: 172.17.46.196:8080 [00:48:47]Content-Length: 881 [00:48:47]Content-Type: application/json [00:48:47] [00:48:47]POST finish read [00:48:47]Found Content-Length = 881 [00:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189920", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870227272612", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 0,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:47]execute_script... [00:48:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189920", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870227272612", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 0,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:47]POST & json_proto [00:48:47]process_json_proto [00:48:47]json parsed OK: [00:48:47]protocol is kg_v1.0 [00:48:47]action value=close_receipt [00:48:47]process_action close_receipt [00:48:47]cmd_close_receipt [00:48:47]MH_GetDate [00:48:47]Write to MH i2c: F0 00 00 44 3F 72 [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: F0 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: F0 09 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: F0 09 00 44 3F 00 F6 44 C1 66 07 E8 5D 66 8E [00:48:47]GetLastDocTimeStamp 1723941778 [00:48:47]current date 1723942134 [00:48:47]FM_GetShiftState [00:48:47]SAM_PROTO_GetShiftState [00:48:47]wFMCommunicate request_size=4 [00:48:47]MH_SAM_APDU [00:48:47]CAPDU: 80 13 01 00 [00:48:47]Write to MH i2c: E2 08 00 45 3F 80 13 01 00 00 00 00 00 01 [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:47]Read from MH i2c: E2 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 0E 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 0E 00 45 3F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 1E [00:48:47]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:48:47]wFMCommunicate OK [00:48:47]SAM_PROTO_GetShiftState done [00:48:47]FM_GetShiftState done [00:48:47]opened in 1723939759 [00:48:47]opened+sec_in_day 1724026159 [00:48:47]quantity*price = 15500 [00:48:47]sum+1 = 15501 [00:48:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870227272612 Лимонад Sunbel Тархун 0,5л 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 7 18.08.2024 00:48 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49741 ФПД: 209815185730458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T004854&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49741&fm=209815185730458&tin=02508201610067®Number=0000000000092546&sum=21000 0 [00:48:48]StoreToDocumentArchive [00:48:48]shift 466 fd 49741 [00:48:48]save to /storage/0466/doc_00049741 [00:48:48]save last doc name /storage/0466/doc_00049741 to /storage/kkm_last_doc_name [00:48:48]save OK [00:48:48]Clear old archive folders... [00:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=377 [00:48:48]tlvbuf is 018EE830 [00:48:48]SAM_PROTO_ClearQueue [00:48:48]wFMCommunicate request_size=4 [00:48:48]MH_SAM_APDU [00:48:48]CAPDU: 80 09 00 00 [00:48:48]Write to MH i2c: E2 08 00 52 3F 80 09 00 00 00 00 00 00 03 [00:48:48]Write i2c OK [00:48:48]MH_I2C_Read... [00:48:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:49]Read from MH i2c: E2 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 03 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 03 00 52 3F 00 90 00 05 [00:48:49]RAPDU: 90 00 [00:48:49]wFMCommunicate OK [00:48:49]SAM_PROTO_ClearQueue done [00:48:49]KKMCreateOFDPacket [00:48:49]OFDProtocolAddRootSTLVToBuf [00:48:49]FM_MakeSignedData [00:48:49]FM_MakeSignedData [00:48:49]SAM_PROTO_SignData [00:48:49]wFMCommunicate request_size=4 [00:48:49]MH_SAM_APDU [00:48:49]CAPDU: 80 0D 01 02 [00:48:49]Write to MH i2c: E2 08 00 53 3F 80 0D 01 02 00 00 00 00 0B [00:48:49]Write i2c OK [00:48:49]MH_I2C_Read... [00:48:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:49]Read from MH i2c: E2 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 03 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 03 00 53 3F 00 90 00 06 [00:48:49]RAPDU: 90 00 [00:48:49]wFMCommunicate OK [00:48:49]wFMCommunicate request_size=255 [00:48:49]MH_SAM_APDU [00:48:49]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 31 32 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE [00:48:49]Write to MH i2c: E2 02 01 54 3F 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 31 32 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 00 00 31 [00:48:49]Write i2c OK [00:48:49]MH_I2C_Read... [00:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:49]Read from MH i2c: E2 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 03 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 03 00 54 3F 00 90 00 07 [00:48:49]RAPDU: 90 00 [00:48:49]wFMCommunicate OK [00:48:49]wFMCommunicate request_size=136 [00:48:49]MH_SAM_APDU [00:48:49]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 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 F6 44 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C2 00 00 35 04 06 00 BE D3 67 9D 2B 9A [00:48:49]Write to MH i2c: E2 8B 00 55 3F 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 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 F6 44 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C2 00 00 35 04 06 00 BE D3 67 9D 2B 9A 00 00 08 [00:48:49]Write i2c OK [00:48:49]MH_I2C_Read... [00:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:49]Read from MH i2c: E2 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 03 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 03 00 55 3F 00 90 00 08 [00:48:49]RAPDU: 90 00 [00:48:49]wFMCommunicate OK [00:48:49]wFMCommunicate request_size=4 [00:48:49]MH_SAM_APDU [00:48:49]CAPDU: 80 0D 03 02 [00:48:49]Write to MH i2c: E2 08 00 56 3F 80 0D 03 02 00 00 00 00 10 [00:48:49]Write i2c OK [00:48:49]MH_I2C_Read... [00:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:49]Read from MH i2c: E2 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 0B 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 0B 00 56 3F 00 5E 9E 18 DB B6 67 02 94 90 00 B3 [00:48:49]RAPDU: 5E 9E 18 DB B6 67 02 94 90 00 [00:48:49]wFMCommunicate OK [00:48:49]SAM_PROTO_SignData done [00:48:49]FM_MakeSignedData done [00:48:49]CreateOFDProtocolMessage [00:48:49]wFMCommunicate request_size=4 [00:48:49]MH_SAM_APDU [00:48:49]CAPDU: 80 11 00 00 [00:48:49]Write to MH i2c: E2 08 00 57 3F 80 11 00 00 00 00 00 00 10 [00:48:49]Write i2c OK [00:48:49]MH_I2C_Read... [00:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:49]Read from MH i2c: E2 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 17 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 17 00 57 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5B [00:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:48:49]wFMCommunicate OK [00:48:49]CreateOFDProtocolMessage done [00:48:49]OFDSenderStorePacket 49741 [00:48:49]StoreOFDPacket docnum=49741 [00:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8D 01 00 00 99 E2 85 01 92 7C 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 31 32 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 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 F6 44 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C2 00 00 35 04 06 00 BE D3 67 9D 2B 9A 5E 9E 18 DB B6 67 02 94 [00:48:49]CheckFolder [00:48:49]dirname=/storage/ofd_packets [00:48:49]CheckFolder done [00:48:49]ProducePacketName [00:48:49]name=ofd_packets/00049741 [00:48:49]NVStorageSaveData ofd_packets/00049741 [00:48:49]File name is /storage/ofd_packets/00049741 [00:48:49]Write 427 bytes [00:48:49]NVStorageSaveData done [00:48:49]OFDSenderStorePacket done [00:48:49]KKMCreateOFDPacket done [00:48:49]NVStorageSaveData kkm_last_timestamp [00:48:49]File name is /storage/kkm_last_timestamp [00:48:49]Write 4 bytes [00:48:49]NVStorageSaveData done [00:48:49]ExternCall_PrintAddStr [00:48:49]wPrintStart [00:48:49]Write to MH i2c: 01 00 00 58 3F 97 [00:48:49]Write i2c OK [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: 01 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: 01 07 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: 01 07 00 58 3F 00 00 00 00 00 FF 0F AC [00:48:49]RasterBufferAndPrint [00:48:49]line Счет N : (3)189920 [00:48:49]line ИНН: 02508201610067 [00:48:49]line Контрольно-Кассовый Чек [00:48:49]line ПРОДАЖА [00:48:49]line Товар: 47803152 [00:48:49]line Сигареты Mevius Revo [00:48:49]line 1.000 * 155.00 [00:48:49]line = 155.00 [00:48:49]line НДС 12% НСП 1% [00:48:49]line > о реализуемом товаре [00:48:49]line Товар: 4870227272612 [00:48:49]line Лимонад Sunbel Тархун 0,5л [00:48:49]line 1.000 * 55.00 [00:48:49]line = 55.00 [00:48:49]line НДС 12% НСП 1% [00:48:49]line > о реализуемом товаре [00:48:49]line ИТОГО: 210.00 [00:48:49]line НСП 1% : 1.86 [00:48:49]line НДС 12% : 22.30 [00:48:49]line Наличными: 210.00 [00:48:49]line Безнал.: 0.00 [00:48:49]line Место: АЗС № 95 "Партнер Нефть" [00:48:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [00:48:49]line СНО: Общий режим [00:48:49]line Чек 7 18.08.2024 00:48 [00:48:49]line Смена: 466 ФФД: 1.0 [00:48:49]line ЗНМ: 0300000078 [00:48:49]line РНМ: 0000000000092546 [00:48:49]line Версия ККМ: 001 [00:48:49]line ФМ: 0000000000871800 [00:48:49]line ФД: 49741 [00:48:49]line ФПД: 209815185730458 [00:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T004854&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49741&fm=209815185730458&tin=02508201610067®Number=0000000000092546&sum=21000 [00:48:49]OFD Sender: Processing packet 49741 [packets to send 21, broken 20] [00:48:49]ProducePacketName [00:48:49]name=ofd_packets/00049741 [00:48:49]OFD Sender: To server: pG, [00:48:49]CommunicateWithHost lk.salyk.kg:30040 [00:48:49]ConnectInit lk.salyk.kg [00:48:49]line 0 [00:48:49]written 0, free lines is 4095 [00:48:50]Connected sock=10 [00:48:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8D 01 00 00 99 E2 85 01 92 7C 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 31 32 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 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 F6 44 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C2 00 00 35 04 06 00 BE D3 67 9D 2B 9A 5E 9E 18 DB B6 67 02 94 [00:48:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 72 FC 47 00 FA 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 31 38 30 30 10 04 04 00 4D C2 00 00 F4 03 04 00 30 F0 C0 66 B6 04 01 00 00 1C 9A FC 84 00 A5 04 14 [00:48:50]CommunicateWithHost err = 0 [00:48:50]CheckOFDResponse [00:48:50]1017 (14) - 77093643461234 [00:48:50]1041 (16) - 0000000000871800 [00:48:50]1040 (4) - 49741 [00:48:50]1012 (4) - 17.08.2024 18:47 [00:48:50]1206 (1) - 0 [00:48:50]OFD Sender: Remove packet 49741 [00:48:50]ProducePacketName [00:48:50]name=ofd_packets/00049741 [00:48:50]NVStorageDeleteData [00:48:50]Write to MH i2c: 01 00 00 86 3F C5 [00:48:50]Write i2c OK [00:48:50]MH_I2C_Read... [00:48:50]Read from MH i2c: 01 [00:48:50]MH_I2C_Read... [00:48:50]Read from MH i2c: 01 07 00 [00:48:50]MH_I2C_Read... [00:48:50]Read from MH i2c: 01 07 00 86 3F 00 00 00 00 00 A2 0C 7A [00:48:50]RasterBufferAndPrint [00:48:50]line [00:48:50]line [00:48:50]line [00:48:50]line [00:48:50]line [00:48:50]written 0, free lines is 3241 [00:48:50]MH_Cut [00:48:50]Write to MH i2c: D1 01 00 8D 3F 01 9E [00:48:50]Write i2c OK [00:48:50]MH_I2C_Read... [00:48:50]Read from MH i2c: D1 [00:48:50]MH_I2C_Read... [00:48:50]Read from MH i2c: D1 01 00 [00:48:50]MH_I2C_Read... [00:48:50]Read from MH i2c: D1 01 00 8D 3F 00 9D [00:48:50]Write to MH i2c: 01 00 00 8E 3F CD [00:48:50]Write i2c OK [00:48:50]MH_I2C_Read... [00:48:50]OFD Sender: No OFD packet to send [00:48:51]*** Cut start [00:48:51]*** Purtial cut [00:48:51]*** CUTSNS_PIN = 0 [00:48:51]*** Stage 1: CUTSNS_PIN = 1 [00:48:53]Read from MH i2c: 01 [00:48:53]MH_I2C_Read... [00:48:53]*** Stop cut motor [00:48:53]*** Cut end [00:48:53]Read from MH i2c: 01 07 00 [00:48:53]MH_I2C_Read... [00:48:53]Read from MH i2c: 01 07 00 8E 3F 00 00 00 00 00 FF 0F E2 [00:48:53]process_action close_receipt done [00:48:53]requested_data is exist [00:48:53]produce_requested_data [00:48:53]requested_item fm.sn is exist - process it [00:48:53]wFMCommunicate request_size=4 [00:48:53]MH_SAM_APDU [00:48:53]CAPDU: 80 11 00 00 [00:48:53]Write to MH i2c: E2 08 00 8F 3F 80 11 00 00 00 00 00 00 48 [00:48:53]Write i2c OK [00:48:53]MH_I2C_Read... [00:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:53]Read from MH i2c: E2 [00:48:53]MH_I2C_Read... [00:48:53]Read from MH i2c: E2 17 00 [00:48:53]MH_I2C_Read... [00:48:53]Read from MH i2c: E2 17 00 8F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 93 [00:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:48:53]wFMCommunicate OK [00:48:53]requested_item fd.num is exist - process it [00:48:53]SAM_PROTO_GetFieldsCounters [00:48:53]wFMCommunicate request_size=4 [00:48:53]MH_SAM_APDU [00:48:53]CAPDU: 80 13 00 00 [00:48:53]Write to MH i2c: E2 08 00 90 3F 80 13 00 00 00 00 00 00 4B [00:48:53]Write i2c OK [00:48:53]MH_I2C_Read... [00:48:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:53]Read from MH i2c: E2 [00:48:53]MH_I2C_Read... [00:48:53]Read from MH i2c: E2 62 00 [00:48:53]MH_I2C_Read... [00:48:53]Read from MH i2c: E2 62 00 90 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4D C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [00:48:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4D C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:53]wFMCommunicate OK [00:48:53]SAM_PROTO_GetFieldsCounters done [00:48:53]requested_item shift.num is exist - process it [00:48:53]requested_item shift.opened is exist - process it [00:48:53]req_shift_opened [00:48:53]FM_GetShiftState [00:48:53]SAM_PROTO_GetShiftState [00:48:53]wFMCommunicate request_size=4 [00:48:53]MH_SAM_APDU [00:48:53]CAPDU: 80 13 01 00 [00:48:53]Write to MH i2c: E2 08 00 91 3F 80 13 01 00 00 00 00 00 4D [00:48:53]Write i2c OK [00:48:53]MH_I2C_Read... [00:48:53]Read from MH i2c: E2 [00:48:53]MH_I2C_Read... [00:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:53]Read from MH i2c: E2 0E 00 [00:48:53]MH_I2C_Read... [00:48:53]Read from MH i2c: E2 0E 00 91 3F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 6A [00:48:53]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:48:53]wFMCommunicate OK [00:48:53]SAM_PROTO_GetShiftState done [00:48:53]FM_GetShiftState done [00:48:53]req_shift_opened done [00:48:53]requested_item shift.open_date is exist - process it [00:48:53]req_shift_open_date [00:48:53]req_shift_open_date done [00:48:53]produce_requested_data done [00:48:53]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49741,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [00:48:53]process_action_free close_receipt [00:48:53]json_value_free [00:48:53]json_value_free done [00:48:53]process_json_proto returns [00:48:53]Send response to host [00:48:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49741,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [00:48:53]free response buf [00:48:53]execute_script done [00:48:53]execute_script returns [00:48:53]free content buf [00:48:53]Sock 7.Close socket [00:48:53]Sock 7.Thread stoped [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:52]accept exits with 9 [01:18:52]New connection [01:18:52]New thread 3066944868 created [01:18:52]Thread 3066801508 joined [01:18:52]Waiting for new connection... [01:18:52] Sock 9.Parse request [01:18:52]Sock 9.Check first char [01:18:52]Sock 9.First char is OK [01:18:52]request: POST /json_proto HTTP/1.0 [01:18:52]Method: POST [01:18:52]URL: /json_proto [01:18:52]Method is POST - this is cgi request [01:18:52]url: /json_proto [01:18:52]query_string will be loaded in cgi processing [01:18:52]execute_cgi json_proto POST (null) [01:18:52]execute_cgi path=json_proto method=POST [01:18:52]POST find Content-Length [01:18:52]Host: 172.17.46.196:8080 [01:18:52]Content-Length: 621 [01:18:52]Content-Type: application/json [01:18:52] [01:18:52]POST finish read [01:18:52]Found Content-Length = 621 [01:18:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189921", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:52]execute_script... [01: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 : (3)189921", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:52]POST & json_proto [01:18:52]process_json_proto [01:18:52]json parsed OK: [01:18:52]protocol is kg_v1.0 [01:18:52]action value=close_receipt [01:18:52]process_action close_receipt [01:18:52]cmd_close_receipt [01:18:52]MH_GetDate [01:18:52]Write to MH i2c: F0 00 00 92 3F C0 [01:18:52]Write i2c OK [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: F0 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: F0 09 00 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: F0 09 00 92 3F 00 03 4C C1 66 07 E8 5D 66 F1 [01:18:52]GetLastDocTimeStamp 1723942134 [01:18:52]current date 1723943939 [01:18:52]FM_GetShiftState [01:18:52]SAM_PROTO_GetShiftState [01:18:52]wFMCommunicate request_size=4 [01:18:52]MH_SAM_APDU [01:18:52]CAPDU: 80 13 01 00 [01:18:52]Write to MH i2c: E2 08 00 93 3F 80 13 01 00 00 00 00 00 4F [01:18:52]Write i2c OK [01:18:52]MH_I2C_Read... [01:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:52]Read from MH i2c: E2 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: E2 0E 00 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: E2 0E 00 93 3F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 6C [01:18:52]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [01:18:52]wFMCommunicate OK [01:18:52]SAM_PROTO_GetShiftState done [01:18:52]FM_GetShiftState done [01:18:52]opened in 1723939759 [01:18:52]opened+sec_in_day 1724026159 [01:18:52]quantity*price = 14000 [01:18:52]sum+1 = 14001 [01:18:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 8 18.08.2024 01:18 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49742 ФПД: 70486281945851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T011859&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49742&fm=70486281945851&tin=02508201610067®Number=0000000000092546&sum=14000 0 [01:18:53]StoreToDocumentArchive [01:18:53]shift 466 fd 49742 [01:18:53]save to /storage/0466/doc_00049742 [01:18:53]save last doc name /storage/0466/doc_00049742 to /storage/kkm_last_doc_name [01:18:53]save OK [01:18:53]Clear old archive folders... [01:18:53]ProcessDocumentItem done err = 0, tmpTLVsize=273 [01:18:53]tlvbuf is 018B23F0 [01:18:53]SAM_PROTO_ClearQueue [01:18:53]wFMCommunicate request_size=4 [01:18:53]MH_SAM_APDU [01:18:53]CAPDU: 80 09 00 00 [01:18:53]Write to MH i2c: E2 08 00 A0 3F 80 09 00 00 00 00 00 00 51 [01:18:53]Write i2c OK [01:18:53]MH_I2C_Read... [01:18:53]Read from MH i2c: E2 [01:18:53]MH_I2C_Read... [01:18:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:18:53]Read from MH i2c: E2 03 00 [01:18:53]MH_I2C_Read... [01:18:53]Read from MH i2c: E2 03 00 A0 3F 00 90 00 53 [01:18:53]RAPDU: 90 00 [01:18:53]wFMCommunicate OK [01:18:53]SAM_PROTO_ClearQueue done [01:18:53]KKMCreateOFDPacket [01:18:53]OFDProtocolAddRootSTLVToBuf [01:18:53]FM_MakeSignedData [01:18:53]FM_MakeSignedData [01:18:53]SAM_PROTO_SignData [01:18:53]wFMCommunicate request_size=4 [01:18:53]MH_SAM_APDU [01:18:53]CAPDU: 80 0D 01 02 [01:18:53]Write to MH i2c: E2 08 00 A1 3F 80 0D 01 02 00 00 00 00 59 [01:18:53]Write i2c OK [01:18:53]MH_I2C_Read... [01:18:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:18:53]Read from MH i2c: E2 [01:18:53]MH_I2C_Read... [01:18:53]Read from MH i2c: E2 03 00 [01:18:53]MH_I2C_Read... [01:18:53]Read from MH i2c: E2 03 00 A1 3F 00 90 00 54 [01:18:53]RAPDU: 90 00 [01:18:53]wFMCommunicate OK [01:18:53]wFMCommunicate request_size=255 [01:18:53]MH_SAM_APDU [01:18:53]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 03 4C C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [01:18:53]Write to MH i2c: E2 02 01 A2 3F 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 03 4C C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 A0 [01:18:53]Write i2c OK [01:18:53]MH_I2C_Read... [01:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:54]Read from MH i2c: E2 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 03 00 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 03 00 A2 3F 00 90 00 55 [01:18:54]RAPDU: 90 00 [01:18:54]wFMCommunicate OK [01:18:54]wFMCommunicate request_size=32 [01:18:54]MH_SAM_APDU [01:18:54]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C2 00 00 35 04 06 00 40 1B 5D CC 02 FB [01:18:54]Write to MH i2c: E2 23 00 A3 3F 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C2 00 00 35 04 06 00 40 1B 5D CC 02 FB 00 00 42 [01:18:54]Write i2c OK [01:18:54]MH_I2C_Read... [01:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:54]Read from MH i2c: E2 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 03 00 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 03 00 A3 3F 00 90 00 56 [01:18:54]RAPDU: 90 00 [01:18:54]wFMCommunicate OK [01:18:54]wFMCommunicate request_size=4 [01:18:54]MH_SAM_APDU [01:18:54]CAPDU: 80 0D 03 02 [01:18:54]Write to MH i2c: E2 08 00 A4 3F 80 0D 03 02 00 00 00 00 5E [01:18:54]Write i2c OK [01:18:54]MH_I2C_Read... [01:18:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:18:54]Read from MH i2c: E2 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 0B 00 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 0B 00 A4 3F 00 F9 96 EF 97 2C B0 CE 86 90 00 A4 [01:18:54]RAPDU: F9 96 EF 97 2C B0 CE 86 90 00 [01:18:54]wFMCommunicate OK [01:18:54]SAM_PROTO_SignData done [01:18:54]FM_MakeSignedData done [01:18:54]CreateOFDProtocolMessage [01:18:54]wFMCommunicate request_size=4 [01:18:54]MH_SAM_APDU [01:18:54]CAPDU: 80 11 00 00 [01:18:54]Write to MH i2c: E2 08 00 A5 3F 80 11 00 00 00 00 00 00 5E [01:18:54]Write i2c OK [01:18:54]MH_I2C_Read... [01:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:54]Read from MH i2c: E2 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 17 00 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: E2 17 00 A5 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A9 [01:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:18:54]wFMCommunicate OK [01:18:54]CreateOFDProtocolMessage done [01:18:54]OFDSenderStorePacket 49742 [01:18:54]StoreOFDPacket docnum=49742 [01:18:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 F3 DF 1D 01 3F D8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 03 4C C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C2 00 00 35 04 06 00 40 1B 5D CC 02 FB F9 96 EF 97 2C B0 CE 86 [01:18:54]CheckFolder [01:18:54]dirname=/storage/ofd_packets [01:18:54]CheckFolder done [01:18:54]ProducePacketName [01:18:54]name=ofd_packets/00049742 [01:18:54]NVStorageSaveData ofd_packets/00049742 [01:18:54]File name is /storage/ofd_packets/00049742 [01:18:54]Write 323 bytes [01:18:54]NVStorageSaveData done [01:18:54]OFDSenderStorePacket done [01:18:54]KKMCreateOFDPacket done [01:18:54]NVStorageSaveData kkm_last_timestamp [01:18:54]File name is /storage/kkm_last_timestamp [01:18:54]Write 4 bytes [01:18:54]NVStorageSaveData done [01:18:54]ExternCall_PrintAddStr [01:18:54]wPrintStart [01:18:54]Write to MH i2c: 01 00 00 A6 3F E5 [01:18:54]Write i2c OK [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: 01 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: 01 07 00 [01:18:54]MH_I2C_Read... [01:18:54]Read from MH i2c: 01 07 00 A6 3F 00 00 00 00 00 FF 0F FA [01:18:54]RasterBufferAndPrint [01:18:54]line Счет N : (3)189921 [01:18:54]line ИНН: 02508201610067 [01:18:54]line Контрольно-Кассовый Чек [01:18:54]line ПРОДАЖА [01:18:54]line Товар: 48743570 [01:18:54]line Сигареты Winston XStyle Blue [01:18:54]line 1.000 * 140.00 [01:18:54]line = 140.00 [01:18:54]line НДС 12% НСП 1% [01:18:54]line > о реализуемом товаре [01:18:54]line ИТОГО: 140.00 [01:18:54]line НСП 1% : 1.24 [01:18:54]line НДС 12% : 14.87 [01:18:54]line Наличными: 140.00 [01:18:54]line Безнал.: 0.00 [01:18:54]line Место: АЗС № 95 "Партнер Нефть" [01:18:54]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:18:54]line СНО: Общий режим [01:18:54]line Чек 8 18.08.2024 01:18 [01:18:54]line Смена: 466 ФФД: 1.0 [01:18:54]line ЗНМ: 0300000078 [01:18:54]line РНМ: 0000000000092546 [01:18:54]line Версия ККМ: 001 [01:18:54]line ФМ: 0000000000871800 [01:18:54]line ФД: 49742 [01:18:54]line ФПД: 70486281945851 [01:18:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T011859&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49742&fm=70486281945851&tin=02508201610067®Number=0000000000092546&sum=14000 [01:18:54]line 0 [01:18:54]OFD Sender: Processing packet 49742 [packets to send 21, broken 20] [01:18:54]ProducePacketName [01:18:54]name=ofd_packets/00049742 [01:18:54]OFD Sender: To server: pG, [01:18:54]CommunicateWithHost lk.salyk.kg:30040 [01:18:54]ConnectInit lk.salyk.kg [01:18:54]written 0, free lines is 4095 [01:18:54]Connected sock=10 [01:18:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 F3 DF 1D 01 3F D8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 03 4C C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C2 00 00 35 04 06 00 40 1B 5D CC 02 FB F9 96 EF 97 2C B0 CE 86 [01:18:55]Write to MH i2c: 01 00 00 CE 3F 0D [01:18:55]Write i2c OK [01:18:55]MH_I2C_Read... [01:18:55]Read from MH i2c: 01 [01:18:55]MH_I2C_Read... [01:18:55]Read from MH i2c: 01 07 00 [01:18:55]MH_I2C_Read... [01:18:55]Read from MH i2c: 01 07 00 CE 3F 00 00 00 00 00 DE 0C FE [01:18:55]RasterBufferAndPrint [01:18:55]line [01:18:55]line [01:18:55]line [01:18:55]line [01:18:55]line [01:18:55]written 0, free lines is 3300 [01:18:55]MH_Cut [01:18:55]Write to MH i2c: D1 01 00 D5 3F 01 E6 [01:18:55]Write i2c OK [01:18:55]MH_I2C_Read... [01:18:55]Read from MH i2c: D1 [01:18:55]MH_I2C_Read... [01:18:55]Read from MH i2c: D1 01 00 [01:18:55]MH_I2C_Read... [01:18:55]Read from MH i2c: D1 01 00 D5 3F 00 E5 [01:18:55]Write to MH i2c: 01 00 00 D6 3F 15 [01:18:55]Write i2c OK [01:18:55]MH_I2C_Read... [01:18:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 22 36 47 00 1C 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 31 38 30 30 10 04 04 00 4E C2 00 00 F4 03 04 00 3D F7 C0 66 B6 04 01 00 00 A8 9E 3A C4 89 58 50 57 [01:18:55]CommunicateWithHost err = 0 [01:18:55]CheckOFDResponse [01:18:55]1017 (14) - 77093643461234 [01:18:55]1041 (16) - 0000000000871800 [01:18:55]1040 (4) - 49742 [01:18:55]1012 (4) - 17.08.2024 19:17 [01:18:55]1206 (1) - 0 [01:18:55]OFD Sender: Remove packet 49742 [01:18:55]ProducePacketName [01:18:55]name=ofd_packets/00049742 [01:18:55]NVStorageDeleteData [01:18:55]OFD Sender: No OFD packet to send [01:18:55]*** Cut start [01:18:55]*** Purtial cut [01:18:55]*** Stage 1: CUTSNS_PIN = 1 [01:18:56]Read from MH i2c: 01 [01:18:56]MH_I2C_Read... [01:18:56]*** Stop cut motor [01:18:56]*** Cut end [01:18:56]Read from MH i2c: 01 07 00 [01:18:56]MH_I2C_Read... [01:18:56]Read from MH i2c: 01 07 00 D6 3F 00 00 00 00 00 FF 0F 2A [01:18:56]process_action close_receipt done [01:18:56]requested_data is exist [01:18:56]produce_requested_data [01:18:56]requested_item fm.sn is exist - process it [01:18:56]wFMCommunicate request_size=4 [01:18:56]MH_SAM_APDU [01:18:56]CAPDU: 80 11 00 00 [01:18:56]Write to MH i2c: E2 08 00 D7 3F 80 11 00 00 00 00 00 00 90 [01:18:56]Write i2c OK [01:18:56]MH_I2C_Read... [01:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:56]Read from MH i2c: E2 [01:18:56]MH_I2C_Read... [01:18:56]Read from MH i2c: E2 17 00 [01:18:56]MH_I2C_Read... [01:18:56]Read from MH i2c: E2 17 00 D7 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DB [01:18:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:18:56]wFMCommunicate OK [01:18:56]requested_item fd.num is exist - process it [01:18:56]SAM_PROTO_GetFieldsCounters [01:18:56]wFMCommunicate request_size=4 [01:18:56]MH_SAM_APDU [01:18:56]CAPDU: 80 13 00 00 [01:18:56]Write to MH i2c: E2 08 00 D8 3F 80 13 00 00 00 00 00 00 93 [01:18:56]Write i2c OK [01:18:56]MH_I2C_Read... [01:18:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:18:56]Read from MH i2c: E2 [01:18:56]MH_I2C_Read... [01:18:56]Read from MH i2c: E2 62 00 [01:18:56]MH_I2C_Read... [01:18:56]Read from MH i2c: E2 62 00 D8 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4E C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [01: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4E C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:18:56]wFMCommunicate OK [01:18:56]SAM_PROTO_GetFieldsCounters done [01:18:56]requested_item shift.num is exist - process it [01:18:56]requested_item shift.opened is exist - process it [01:18:56]req_shift_opened [01:18:56]FM_GetShiftState [01:18:56]SAM_PROTO_GetShiftState [01:18:56]wFMCommunicate request_size=4 [01:18:56]MH_SAM_APDU [01:18:56]CAPDU: 80 13 01 00 [01:18:56]Write to MH i2c: E2 08 00 D9 3F 80 13 01 00 00 00 00 00 95 [01:18:56]Write i2c OK [01:18:56]MH_I2C_Read... [01:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:56]Read from MH i2c: E2 [01:18:56]MH_I2C_Read... [01:18:56]Read from MH i2c: E2 0E 00 [01:18:56]MH_I2C_Read... [01:18:56]Read from MH i2c: E2 0E 00 D9 3F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B2 [01:18:56]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [01:18:56]wFMCommunicate OK [01:18:56]SAM_PROTO_GetShiftState done [01:18:56]FM_GetShiftState done [01:18:56]req_shift_opened done [01:18:56]requested_item shift.open_date is exist - process it [01:18:56]req_shift_open_date [01:18:56]req_shift_open_date done [01:18:56]produce_requested_data done [01:18:56]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49742,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [01:18:56]process_action_free close_receipt [01:18:56]json_value_free [01:18:56]json_value_free done [01:18:56]process_json_proto returns [01:18:56]Send response to host [01:18:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49742,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [01:18:56]free response buf [01:18:56]execute_script done [01:18:56]execute_script returns [01:18:56]free content buf [01:18:56]Sock 9.Close socket [01:18:56]Sock 9.Thread stoped [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:37]accept exits with 7 [01:19:37]New connection [01:19:37]New thread 3066801508 created [01:19:37]Thread 3066944868 joined [01:19:37]Waiting for new connection... [01:19:37] Sock 7.Parse request [01:19:37]Sock 7.Check first char [01:19:37]Sock 7.First char is OK [01:19:37]request: POST /json_proto HTTP/1.0 [01:19:37]Method: POST [01:19:37]URL: /json_proto [01:19:37]Method is POST - this is cgi request [01:19:37]url: /json_proto [01:19:37]query_string will be loaded in cgi processing [01:19:37]execute_cgi json_proto POST (null) [01:19:37]execute_cgi path=json_proto method=POST [01:19:37]POST find Content-Length [01:19:37]Host: 172.17.46.196:8080 [01:19:37]Content-Length: 626 [01:19:37]Content-Type: application/json [01:19:37] [01:19:37]POST finish read [01:19:37]Found Content-Length = 626 [01:19:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189922", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:37]execute_script... [01:19:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189922", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:37]POST & json_proto [01:19:37]process_json_proto [01:19:37]json parsed OK: [01:19:37]protocol is kg_v1.0 [01:19:37]action value=close_receipt [01:19:37]process_action close_receipt [01:19:37]cmd_close_receipt [01:19:37]MH_GetDate [01:19:37]Write to MH i2c: F0 00 00 DA 3F 08 [01:19:37]Write i2c OK [01:19:37]MH_I2C_Read... [01:19:37]Read from MH i2c: F0 [01:19:37]MH_I2C_Read... [01:19:37]Read from MH i2c: F0 09 00 [01:19:37]MH_I2C_Read... [01:19:37]Read from MH i2c: F0 09 00 DA 3F 00 2F 4C C1 66 07 E8 5D 66 65 [01:19:37]GetLastDocTimeStamp 1723943939 [01:19:37]current date 1723943983 [01:19:37]FM_GetShiftState [01:19:37]SAM_PROTO_GetShiftState [01:19:37]wFMCommunicate request_size=4 [01:19:37]MH_SAM_APDU [01:19:37]CAPDU: 80 13 01 00 [01:19:37]Write to MH i2c: E2 08 00 DB 3F 80 13 01 00 00 00 00 00 97 [01:19:37]Write i2c OK [01:19:37]MH_I2C_Read... [01:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:37]Read from MH i2c: E2 [01:19:37]MH_I2C_Read... [01:19:37]Read from MH i2c: E2 0E 00 [01:19:37]MH_I2C_Read... [01:19:37]Read from MH i2c: E2 0E 00 DB 3F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B4 [01:19:37]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [01:19:37]wFMCommunicate OK [01:19:37]SAM_PROTO_GetShiftState done [01:19:37]FM_GetShiftState done [01:19:37]opened in 1723939759 [01:19:37]opened+sec_in_day 1724026159 [01:19:37]quantity*price = 15000 [01:19:37]sum+1 = 15001 [01:19:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 9 18.08.2024 01:19 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49743 ФПД: 68789983352106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T011944&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49743&fm=68789983352106&tin=02508201610067®Number=0000000000092546&sum=15000 0 [01:19:38]StoreToDocumentArchive [01:19:38]shift 466 fd 49743 [01:19:38]save to /storage/0466/doc_00049743 [01:19:38]save last doc name /storage/0466/doc_00049743 to /storage/kkm_last_doc_name [01:19:38]save OK [01:19:38]Clear old archive folders... [01:19:38]ProcessDocumentItem done err = 0, tmpTLVsize=278 [01:19:38]tlvbuf is 018B1F50 [01:19:38]SAM_PROTO_ClearQueue [01:19:38]wFMCommunicate request_size=4 [01:19:38]MH_SAM_APDU [01:19:38]CAPDU: 80 09 00 00 [01:19:38]Write to MH i2c: E2 08 00 E8 3F 80 09 00 00 00 00 00 00 99 [01:19:38]Write i2c OK [01:19:38]MH_I2C_Read... [01:19:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:19:38]Read from MH i2c: E2 [01:19:38]MH_I2C_Read... [01:19:38]Read from MH i2c: E2 03 00 [01:19:38]MH_I2C_Read... [01:19:38]Read from MH i2c: E2 03 00 E8 3F 00 90 00 9B [01:19:38]RAPDU: 90 00 [01:19:38]wFMCommunicate OK [01:19:38]SAM_PROTO_ClearQueue done [01:19:38]KKMCreateOFDPacket [01:19:38]OFDProtocolAddRootSTLVToBuf [01:19:38]FM_MakeSignedData [01:19:38]FM_MakeSignedData [01:19:38]SAM_PROTO_SignData [01:19:38]wFMCommunicate request_size=4 [01:19:38]MH_SAM_APDU [01:19:38]CAPDU: 80 0D 01 02 [01:19:38]Write to MH i2c: E2 08 00 E9 3F 80 0D 01 02 00 00 00 00 A1 [01:19:38]Write i2c OK [01:19:38]MH_I2C_Read... [01:19:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:19:38]Read from MH i2c: E2 [01:19:38]MH_I2C_Read... [01:19:38]Read from MH i2c: E2 03 00 [01:19:38]MH_I2C_Read... [01:19:38]Read from MH i2c: E2 03 00 E9 3F 00 90 00 9C [01:19:38]RAPDU: 90 00 [01:19:38]wFMCommunicate OK [01:19:38]wFMCommunicate request_size=255 [01:19:38]MH_SAM_APDU [01:19:38]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 30 4C C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 [01:19:38]Write to MH i2c: E2 02 01 EA 3F 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 30 4C C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 00 00 46 [01:19:38]Write i2c OK [01:19:38]MH_I2C_Read... [01:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:39]Read from MH i2c: E2 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: E2 03 00 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: E2 03 00 EA 3F 00 90 00 9D [01:19:39]RAPDU: 90 00 [01:19:39]wFMCommunicate OK [01:19:39]wFMCommunicate request_size=37 [01:19:39]MH_SAM_APDU [01:19:39]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C2 00 00 35 04 06 00 3E 90 6A 85 95 2A [01:19:39]Write to MH i2c: E2 28 00 EB 3F 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C2 00 00 35 04 06 00 3E 90 6A 85 95 2A 00 00 80 [01:19:39]Write i2c OK [01:19:39]MH_I2C_Read... [01:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:39]Read from MH i2c: E2 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: E2 03 00 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: E2 03 00 EB 3F 00 90 00 9E [01:19:39]RAPDU: 90 00 [01:19:39]wFMCommunicate OK [01:19:39]wFMCommunicate request_size=4 [01:19:39]MH_SAM_APDU [01:19:39]CAPDU: 80 0D 03 02 [01:19:39]Write to MH i2c: E2 08 00 EC 3F 80 0D 03 02 00 00 00 00 A6 [01:19:39]Write i2c OK [01:19:39]MH_I2C_Read... [01:19:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:19:39]Read from MH i2c: E2 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: E2 0B 00 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: E2 0B 00 EC 3F 00 DA 25 6A A4 DC 71 C7 80 90 00 48 [01:19:39]RAPDU: DA 25 6A A4 DC 71 C7 80 90 00 [01:19:39]wFMCommunicate OK [01:19:39]SAM_PROTO_SignData done [01:19:39]FM_MakeSignedData done [01:19:39]CreateOFDProtocolMessage [01:19:39]wFMCommunicate request_size=4 [01:19:39]MH_SAM_APDU [01:19:39]CAPDU: 80 11 00 00 [01:19:39]Write to MH i2c: E2 08 00 ED 3F 80 11 00 00 00 00 00 00 A6 [01:19:39]Write i2c OK [01:19:39]MH_I2C_Read... [01:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:39]Read from MH i2c: E2 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: E2 17 00 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: E2 17 00 ED 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F1 [01:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:19:39]wFMCommunicate OK [01:19:39]CreateOFDProtocolMessage done [01:19:39]OFDSenderStorePacket 49743 [01:19:39]StoreOFDPacket docnum=49743 [01:19:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 9D 33 22 01 3A 2D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 30 4C C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C2 00 00 35 04 06 00 3E 90 6A 85 95 2A DA 25 6A A4 DC 71 C7 80 [01:19:39]CheckFolder [01:19:39]dirname=/storage/ofd_packets [01:19:39]CheckFolder done [01:19:39]ProducePacketName [01:19:39]name=ofd_packets/00049743 [01:19:39]NVStorageSaveData ofd_packets/00049743 [01:19:39]File name is /storage/ofd_packets/00049743 [01:19:39]Write 328 bytes [01:19:39]NVStorageSaveData done [01:19:39]OFDSenderStorePacket done [01:19:39]KKMCreateOFDPacket done [01:19:39]NVStorageSaveData kkm_last_timestamp [01:19:39]File name is /storage/kkm_last_timestamp [01:19:39]Write 4 bytes [01:19:39]NVStorageSaveData done [01:19:39]ExternCall_PrintAddStr [01:19:39]wPrintStart [01:19:39]Write to MH i2c: 01 00 00 EE 3F 2D [01:19:39]Write i2c OK [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: 01 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: 01 07 00 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: 01 07 00 EE 3F 00 00 00 00 00 FF 0F 42 [01:19:39]RasterBufferAndPrint [01:19:39]line Счет N : (3)189922 [01:19:39]line ИНН: 02508201610067 [01:19:39]line Контрольно-Кассовый Чек [01:19:39]line ПРОДАЖА [01:19:39]line Товар: 4640030092499 [01:19:39]line Сигареты ESSE SENSE Himalaya [01:19:39]line 1.000 * 150.00 [01:19:39]line = 150.00 [01:19:39]line НДС 12% НСП 1% [01:19:39]line > о реализуемом товаре [01:19:39]line ИТОГО: 150.00 [01:19:39]line НСП 1% : 1.33 [01:19:39]line НДС 12% : 15.93 [01:19:39]line Наличными: 150.00 [01:19:39]line Безнал.: 0.00 [01:19:39]line Место: АЗС № 95 "Партнер Нефть" [01:19:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:19:39]line СНО: Общий режим [01:19:39]line Чек 9 18.08.2024 01:19 [01:19:39]line Смена: 466 ФФД: 1.0 [01:19:39]line ЗНМ: 0300000078 [01:19:39]line РНМ: 0000000000092546 [01:19:39]line Версия ККМ: 001 [01:19:39]line ФМ: 0000000000871800 [01:19:39]line ФД: 49743 [01:19:39]line ФПД: 68789983352106 [01:19:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T011944&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49743&fm=68789983352106&tin=02508201610067®Number=0000000000092546&sum=15000 [01:19:39]line 0 [01:19:39]OFD Sender: Processing packet 49743 [packets to send 21, broken 20] [01:19:39]ProducePacketName [01:19:39]name=ofd_packets/00049743 [01:19:39]OFD Sender: To server: pG, [01:19:39]CommunicateWithHost lk.salyk.kg:30040 [01:19:39]ConnectInit lk.salyk.kg [01:19:39]written 0, free lines is 4095 [01:19:39]Connected sock=10 [01:19:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 9D 33 22 01 3A 2D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 30 4C C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C2 00 00 35 04 06 00 3E 90 6A 85 95 2A DA 25 6A A4 DC 71 C7 80 [01:19:40]Write to MH i2c: 01 00 00 17 40 57 [01:19:40]Write i2c OK [01:19:40]MH_I2C_Read... [01:19:40]Read from MH i2c: 01 [01:19:40]MH_I2C_Read... [01:19:40]Read from MH i2c: 01 07 00 [01:19:40]MH_I2C_Read... [01:19:40]Read from MH i2c: 01 07 00 17 40 00 00 00 00 00 C8 0C 32 [01:19:40]RasterBufferAndPrint [01:19:40]line [01:19:40]line [01:19:40]line [01:19:40]line [01:19:40]line [01:19:40]written 0, free lines is 3279 [01:19:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BE 17 47 00 2D 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C2 00 00 F4 03 04 00 6A F7 C0 66 B6 04 01 00 00 55 0B 35 6B 3C F7 E3 2B [01:19:40]CommunicateWithHost err = 0 [01:19:40]CheckOFDResponse [01:19:40]1017 (14) - 77093643461234 [01:19:40]1041 (16) - 0000000000871800 [01:19:40]1040 (4) - 49743 [01:19:40]1012 (4) - 17.08.2024 19:18 [01:19:40]1206 (1) - 0 [01:19:40]OFD Sender: Remove packet 49743 [01:19:40]ProducePacketName [01:19:40]name=ofd_packets/00049743 [01:19:40]NVStorageDeleteData [01:19:40]MH_Cut [01:19:40]Write to MH i2c: D1 01 00 1E 40 01 30 [01:19:40]Write i2c OK [01:19:40]MH_I2C_Read... [01:19:40]Read from MH i2c: D1 [01:19:40]MH_I2C_Read... [01:19:40]Read from MH i2c: D1 01 00 [01:19:40]MH_I2C_Read... [01:19:40]Read from MH i2c: D1 01 00 1E 40 00 2F [01:19:40]Write to MH i2c: 01 00 00 1F 40 5F [01:19:40]Write i2c OK [01:19:40]MH_I2C_Read... [01:19:40]OFD Sender: No OFD packet to send [01:19:40]*** Cut start [01:19:40]*** Purtial cut [01:19:40]*** CUTSNS_PIN = 0 [01:19:41]*** Stage 1: CUTSNS_PIN = 1 [01:19:42]Read from MH i2c: 01 [01:19:42]MH_I2C_Read... [01:19:42]*** Stop cut motor [01:19:42]*** Cut end [01:19:42]Read from MH i2c: 01 07 00 [01:19:42]MH_I2C_Read... [01:19:42]Read from MH i2c: 01 07 00 1F 40 00 00 00 00 00 FF 0F 74 [01:19:42]process_action close_receipt done [01:19:42]requested_data is exist [01:19:42]produce_requested_data [01:19:42]requested_item fm.sn is exist - process it [01:19:42]wFMCommunicate request_size=4 [01:19:42]MH_SAM_APDU [01:19:42]CAPDU: 80 11 00 00 [01:19:42]Write to MH i2c: E2 08 00 20 40 80 11 00 00 00 00 00 00 DA [01:19:42]Write i2c OK [01:19:42]MH_I2C_Read... [01:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:42]Read from MH i2c: E2 [01:19:42]MH_I2C_Read... [01:19:42]Read from MH i2c: E2 17 00 [01:19:42]MH_I2C_Read... [01:19:42]Read from MH i2c: E2 17 00 20 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 25 [01:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:19:42]wFMCommunicate OK [01:19:42]requested_item fd.num is exist - process it [01:19:42]SAM_PROTO_GetFieldsCounters [01:19:42]wFMCommunicate request_size=4 [01:19:42]MH_SAM_APDU [01:19:42]CAPDU: 80 13 00 00 [01:19:42]Write to MH i2c: E2 08 00 21 40 80 13 00 00 00 00 00 00 DD [01:19:42]Write i2c OK [01:19:42]MH_I2C_Read... [01:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:43]Read from MH i2c: E2 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: E2 62 00 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: E2 62 00 21 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [01:19: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:19:43]wFMCommunicate OK [01:19:43]SAM_PROTO_GetFieldsCounters done [01:19:43]requested_item shift.num is exist - process it [01:19:43]requested_item shift.opened is exist - process it [01:19:43]req_shift_opened [01:19:43]FM_GetShiftState [01:19:43]SAM_PROTO_GetShiftState [01:19:43]wFMCommunicate request_size=4 [01:19:43]MH_SAM_APDU [01:19:43]CAPDU: 80 13 01 00 [01:19:43]Write to MH i2c: E2 08 00 22 40 80 13 01 00 00 00 00 00 DF [01:19:43]Write i2c OK [01:19:43]MH_I2C_Read... [01:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:43]Read from MH i2c: E2 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: E2 0E 00 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: E2 0E 00 22 40 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 FC [01:19:43]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [01:19:43]wFMCommunicate OK [01:19:43]SAM_PROTO_GetShiftState done [01:19:43]FM_GetShiftState done [01:19:43]req_shift_opened done [01:19:43]requested_item shift.open_date is exist - process it [01:19:43]req_shift_open_date [01:19:43]req_shift_open_date done [01:19:43]produce_requested_data done [01:19:43]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49743,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [01:19:43]process_action_free close_receipt [01:19:43]json_value_free [01:19:43]json_value_free done [01:19:43]process_json_proto returns [01:19:43]Send response to host [01:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49743,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [01:19:43]free response buf [01:19:43]execute_script done [01:19:43]execute_script returns [01:19:43]free content buf [01:19:43]Sock 7.Close socket [01:19:43]Sock 7.Thread stoped [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: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]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: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: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: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: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:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:45]accept exits with 9 [01:29:45]New connection [01:29:45]New thread 3066944868 created [01:29:45]Thread 3066801508 joined [01:29:45]Waiting for new connection... [01:29:45] Sock 9.Parse request [01:29:45]Sock 9.Check first char [01:29:45]Sock 9.First char is OK [01:29:45]request: POST /json_proto HTTP/1.0 [01:29:45]Method: POST [01:29:45]URL: /json_proto [01:29:45]Method is POST - this is cgi request [01:29:45]url: /json_proto [01:29:45]query_string will be loaded in cgi processing [01:29:45]execute_cgi json_proto POST (null) [01:29:45]execute_cgi path=json_proto method=POST [01:29:45]POST find Content-Length [01:29:45]Host: 172.17.46.196:8080 [01:29:45]Content-Length: 2036 [01:29:45]Content-Type: application/json [01:29:45] [01:29:45]POST finish read [01:29:45]Found Content-Length = 2036 [01:29:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189923", "tax_sys" : 0, "items" : [ { "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077641312", "name": "\u0412\u0430\u0444\u043B\u0438 ROSHEN WAFERS COCOA MILK 216 \u0433\u0440", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:45]execute_script... [01:29: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 : (3)189923", "tax_sys" : 0, "items" : [ { "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077641312", "name": "\u0412\u0430\u0444\u043B\u0438 ROSHEN WAFERS COCOA MILK 216 \u0433\u0440", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:45]POST & json_proto [01:29:45]process_json_proto [01:29:45]json parsed OK: [01:29:45]protocol is kg_v1.0 [01:29:45]action value=close_receipt [01:29:45]process_action close_receipt [01:29:45]cmd_close_receipt [01:29:45]MH_GetDate [01:29:45]Write to MH i2c: F0 00 00 23 40 52 [01:29:45]Write i2c OK [01:29:45]MH_I2C_Read... [01:29:45]Read from MH i2c: F0 [01:29:45]MH_I2C_Read... [01:29:45]Read from MH i2c: F0 09 00 [01:29:45]MH_I2C_Read... [01:29:45]Read from MH i2c: F0 09 00 23 40 00 90 4E C1 66 07 E8 5D 66 12 [01:29:45]GetLastDocTimeStamp 1723943984 [01:29:45]current date 1723944592 [01:29:45]FM_GetShiftState [01:29:45]SAM_PROTO_GetShiftState [01:29:45]wFMCommunicate request_size=4 [01:29:45]MH_SAM_APDU [01:29:45]CAPDU: 80 13 01 00 [01:29:45]Write to MH i2c: E2 08 00 24 40 80 13 01 00 00 00 00 00 E1 [01:29:45]Write i2c OK [01:29:45]MH_I2C_Read... [01:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:45]Read from MH i2c: E2 [01:29:45]MH_I2C_Read... [01:29:45]Read from MH i2c: E2 0E 00 [01:29:45]MH_I2C_Read... [01:29:45]Read from MH i2c: E2 0E 00 24 40 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 FE [01:29:45]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [01:29:45]wFMCommunicate OK [01:29:45]SAM_PROTO_GetShiftState done [01:29:45]FM_GetShiftState done [01:29:45]opened in 1723939759 [01:29:45]opened+sec_in_day 1724026159 [01:29:45]quantity*price = 9500 [01:29:45]sum+1 = 9501 [01:29:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004824 Печ зат Яшкино слив Крем 182г 1.000 * 81.00 = 81.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4823077641312 Вафли ROSHEN WAFERS COCOA MILK 216 гр 1.000 * 185.00 = 185.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010070 Чай хол Let`s Go! чер персик ПЭТ 1,25л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 460.00 НСП 1% : 4.07 НДС 12% : 48.85 Наличными: 0.00 Безнал.: 460.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 10 18.08.2024 01:29 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49744 ФПД: 17806460705809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T012952&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49744&fm=17806460705809&tin=02508201610067®Number=0000000000092546&sum=46000 0 [01:29:46]StoreToDocumentArchive [01:29:46]shift 466 fd 49744 [01:29:46]save to /storage/0466/doc_00049744 [01:29:46]save last doc name /storage/0466/doc_00049744 to /storage/kkm_last_doc_name [01:29:46]save OK [01:29:46]Clear old archive folders... [01:29:46]ProcessDocumentItem done err = 0, tmpTLVsize=785 [01:29:46]tlvbuf is 018C6850 [01:29:46]SAM_PROTO_ClearQueue [01:29:46]wFMCommunicate request_size=4 [01:29:46]MH_SAM_APDU [01:29:46]CAPDU: 80 09 00 00 [01:29:46]Write to MH i2c: E2 08 00 31 40 80 09 00 00 00 00 00 00 E3 [01:29:46]Write i2c OK [01:29:46]MH_I2C_Read... [01:29:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:29:46]Read from MH i2c: E2 [01:29:46]MH_I2C_Read... [01:29:46]Read from MH i2c: E2 03 00 [01:29:46]MH_I2C_Read... [01:29:46]Read from MH i2c: E2 03 00 31 40 00 90 00 E5 [01:29:46]RAPDU: 90 00 [01:29:46]wFMCommunicate OK [01:29:46]SAM_PROTO_ClearQueue done [01:29:46]KKMCreateOFDPacket [01:29:46]OFDProtocolAddRootSTLVToBuf [01:29:46]FM_MakeSignedData [01:29:46]FM_MakeSignedData [01:29:46]SAM_PROTO_SignData [01:29:46]wFMCommunicate request_size=4 [01:29:46]MH_SAM_APDU [01:29:46]CAPDU: 80 0D 01 02 [01:29:46]Write to MH i2c: E2 08 00 32 40 80 0D 01 02 00 00 00 00 EB [01:29:46]Write i2c OK [01:29:46]MH_I2C_Read... [01:29:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:29:46]Read from MH i2c: E2 [01:29:46]MH_I2C_Read... [01:29:46]Read from MH i2c: E2 03 00 [01:29:46]MH_I2C_Read... [01:29:46]Read from MH i2c: E2 03 00 32 40 00 90 00 E6 [01:29:46]RAPDU: 90 00 [01:29:46]wFMCommunicate OK [01:29:46]wFMCommunicate request_size=255 [01:29:46]MH_SAM_APDU [01:29:46]CAPDU: 80 0D 02 02 FA 03 00 11 03 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 [01:29:46]Write to MH i2c: E2 02 01 33 40 80 0D 02 02 FA 00 03 00 11 03 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 00 00 22 [01:29:47]Write i2c OK [01:29:47]MH_I2C_Read... [01:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:47]Read from MH i2c: E2 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 03 00 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 03 00 33 40 00 90 00 E7 [01:29:47]RAPDU: 90 00 [01:29:47]wFMCommunicate OK [01:29:47]wFMCommunicate request_size=255 [01:29:47]MH_SAM_APDU [01:29:47]CAPDU: 80 0D 02 02 FA A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 32 33 30 37 37 36 34 31 33 31 32 06 04 2C 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 52 4F 53 48 45 4E 20 57 41 46 45 52 53 20 43 4F 43 4F 41 20 4D 49 4C 4B 20 32 31 36 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 [01:29:47]Write to MH i2c: E2 02 01 34 40 80 0D 02 02 FA 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 32 33 30 37 37 36 34 31 33 31 32 06 04 2C 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 52 4F 53 48 45 4E 20 57 41 46 45 52 53 20 43 4F 43 4F 41 20 4D 49 4C 4B 20 32 31 36 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 00 46 [01:29:47]Write i2c OK [01:29:47]MH_I2C_Read... [01:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:47]Read from MH i2c: E2 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 03 00 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 03 00 34 40 00 90 00 E8 [01:29:47]RAPDU: 90 00 [01:29:47]wFMCommunicate OK [01:29:47]wFMCommunicate request_size=255 [01:29:47]MH_SAM_APDU [01:29:47]CAPDU: 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 B3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 90 4E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 [01:29:47]Write to MH i2c: E2 02 01 35 40 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 B3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 90 4E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 00 00 FF [01:29:47]Write i2c OK [01:29:47]MH_I2C_Read... [01:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:48]Read from MH i2c: E2 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 03 00 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 03 00 35 40 00 90 00 E9 [01:29:48]RAPDU: 90 00 [01:29:48]wFMCommunicate OK [01:29:48]wFMCommunicate request_size=44 [01:29:48]MH_SAM_APDU [01:29:48]CAPDU: 80 0D 02 02 27 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 50 C2 00 00 35 04 06 00 10 31 E3 C3 DC 11 [01:29:48]Write to MH i2c: E2 2F 00 36 40 80 0D 02 02 27 00 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 50 C2 00 00 35 04 06 00 10 31 E3 C3 DC 11 00 00 EE [01:29:48]Write i2c OK [01:29:48]MH_I2C_Read... [01:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:48]Read from MH i2c: E2 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 03 00 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 03 00 36 40 00 90 00 EA [01:29:48]RAPDU: 90 00 [01:29:48]wFMCommunicate OK [01:29:48]wFMCommunicate request_size=4 [01:29:48]MH_SAM_APDU [01:29:48]CAPDU: 80 0D 03 02 [01:29:48]Write to MH i2c: E2 08 00 37 40 80 0D 03 02 00 00 00 00 F2 [01:29:48]Write i2c OK [01:29:48]MH_I2C_Read... [01:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:29:48]Read from MH i2c: E2 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 0B 00 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 0B 00 37 40 00 5F CF 8E EB 0D D9 F6 C5 90 00 3B [01:29:48]RAPDU: 5F CF 8E EB 0D D9 F6 C5 90 00 [01:29:48]wFMCommunicate OK [01:29:48]SAM_PROTO_SignData done [01:29:48]FM_MakeSignedData done [01:29:48]CreateOFDProtocolMessage [01:29:48]wFMCommunicate request_size=4 [01:29:48]MH_SAM_APDU [01:29:48]CAPDU: 80 11 00 00 [01:29:48]Write to MH i2c: E2 08 00 38 40 80 11 00 00 00 00 00 00 F2 [01:29:48]Write i2c OK [01:29:48]MH_I2C_Read... [01:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:48]Read from MH i2c: E2 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 17 00 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 17 00 38 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3D [01:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:29:48]wFMCommunicate OK [01:29:48]CreateOFDProtocolMessage done [01:29:48]OFDSenderStorePacket 49744 [01:29:48]StoreOFDPacket docnum=49744 [01:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 03 00 00 EB 11 1D 03 D9 58 5A 03 01 00 03 00 11 03 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 32 33 30 37 37 36 34 31 33 31 32 06 04 2C 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 52 4F 53 48 45 4E 20 57 41 46 45 52 53 20 43 4F 43 4F 41 20 4D 49 4C 4B 20 32 31 36 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 B3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 90 4E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 50 C2 00 00 35 04 06 00 10 31 E3 C3 DC 11 5F CF 8E EB 0D D9 F6 C5 [01:29:48]CheckFolder [01:29:48]dirname=/storage/ofd_packets [01:29:48]CheckFolder done [01:29:48]ProducePacketName [01:29:48]name=ofd_packets/00049744 [01:29:48]NVStorageSaveData ofd_packets/00049744 [01:29:48]File name is /storage/ofd_packets/00049744 [01:29:48]Write 835 bytes [01:29:48]NVStorageSaveData done [01:29:48]OFDSenderStorePacket done [01:29:48]KKMCreateOFDPacket done [01:29:48]NVStorageSaveData kkm_last_timestamp [01:29:48]File name is /storage/kkm_last_timestamp [01:29:48]Write 4 bytes [01:29:48]NVStorageSaveData done [01:29:48]ExternCall_PrintAddStr [01:29:48]wPrintStart [01:29:48]Write to MH i2c: 01 00 00 39 40 79 [01:29:48]Write i2c OK [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: 01 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: 01 07 00 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: 01 07 00 39 40 00 00 00 00 00 FF 0F 8E [01:29:48]RasterBufferAndPrint [01:29:48]line Счет N : (3)189923 [01:29:48]line ИНН: 02508201610067 [01:29:48]line Контрольно-Кассовый Чек [01:29:48]line ПРОДАЖА [01:29:48]line Товар: 4607015232868 [01:29:48]line Вафли Яшкино в шоколадной глазури 200г [01:29:48]line 1.000 * 95.00 [01:29:48]line = 95.00 [01:29:48]line НДС 12% НСП 1% [01:29:48]line > о реализуемом товаре [01:29:48]line Товар: 4603290004824 [01:29:48]line Печ зат Яшкино слив Крем 182г [01:29:48]line 1.000 * 81.00 [01:29:48]line = 81.00 [01:29:48]line НДС 12% НСП 1% [01:29:48]line > о реализуемом товаре [01:29:48]line Товар: 4823077641312 [01:29:48]line Вафли ROSHEN WAFERS COCOA MILK 216 гр [01:29:48]line 1.000 * 185.00 [01:29:48]line = 185.00 [01:29:48]line НДС 12% НСП 1% [01:29:48]line > о реализуемом товаре [01:29:48]line Товар: 4700003010070 [01:29:48]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [01:29:48]line 1.000 * 95.00 [01:29:48]line = 95.00 [01:29:48]line НДС 12% НСП 1% [01:29:48]line > о реализуемом товаре [01:29:48]line Товар: 2000031750019 [01:29:48]line Пакет Партнер Нефть [01:29:48]line 1.000 * 4.00 [01:29:48]line = 4.00 [01:29:48]line НДС 12% НСП 1% [01:29:48]line > о реализуемом товаре [01:29:48]line ИТОГО: 460.00 [01:29:48]line НСП 1% : 4.07 [01:29:48]line НДС 12% : 48.85 [01:29:48]line Наличными: 0.00 [01:29:48]line Безнал.: 460.00 [01:29:48]line Место: АЗС № 95 "Партнер Нефть" [01:29:48]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:29:48]line СНО: Общий режим [01:29:48]line Чек 10 18.08.2024 01:29 [01:29:48]line Смена: 466 ФФД: 1.0 [01:29:48]line ЗНМ: 0300000078 [01:29:48]line РНМ: 0000000000092546 [01:29:48]line Версия ККМ: 001 [01:29:48]line Платежная система: O! деньги [01:29:48]line ФМ: 0000000000871800 [01:29:48]line ФД: 49744 [01:29:48]line ФПД: 17806460705809 [01:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T012952&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49744&fm=17806460705809&tin=02508201610067®Number=0000000000092546&sum=46000 [01:29:48]line 0 [01:29:48]OFD Sender: Processing packet 49744 [packets to send 21, broken 20] [01:29:48]ProducePacketName [01:29:48]name=ofd_packets/00049744 [01:29:48]OFD Sender: To server: pG, [01:29:48]CommunicateWithHost lk.salyk.kg:30040 [01:29:48]ConnectInit lk.salyk.kg [01:29:48]written 0, free lines is 4095 [01:29:48]Connected sock=10 [01:29:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 03 00 00 EB 11 1D 03 D9 58 5A 03 01 00 03 00 11 03 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 32 33 30 37 37 36 34 31 33 31 32 06 04 2C 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 52 4F 53 48 45 4E 20 57 41 46 45 52 53 20 43 4F 43 4F 41 20 4D 49 4C 4B 20 32 31 36 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 B3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 90 4E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 50 C2 00 00 35 04 06 00 10 31 E3 C3 DC 11 5F CF 8E EB 0D D9 F6 C5 [01:29:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F0 CF 47 00 8C 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 31 38 30 30 10 04 04 00 50 C2 00 00 F4 03 04 00 CB F9 C0 66 B6 04 01 00 00 D0 CB 30 A2 F7 47 5A 29 [01:29:49]CommunicateWithHost err = 0 [01:29:49]CheckOFDResponse [01:29:49]1017 (14) - 77093643461234 [01:29:49]1041 (16) - 0000000000871800 [01:29:49]1040 (4) - 49744 [01:29:49]1012 (4) - 17.08.2024 19:28 [01:29:49]1206 (1) - 0 [01:29:49]OFD Sender: Remove packet 49744 [01:29:49]ProducePacketName [01:29:49]name=ofd_packets/00049744 [01:29:49]NVStorageDeleteData [01:29:49]Write to MH i2c: 01 00 00 7F 40 BF [01:29:49]Write i2c OK [01:29:49]MH_I2C_Read... [01:29:49]Read from MH i2c: 01 [01:29:49]MH_I2C_Read... [01:29:49]Read from MH i2c: 01 07 00 [01:29:49]MH_I2C_Read... [01:29:49]Read from MH i2c: 01 07 00 7F 40 00 00 00 00 00 11 0B E2 [01:29:49]RasterBufferAndPrint [01:29:49]line [01:29:49]line [01:29:49]line [01:29:49]line [01:29:49]line [01:29:49]written 0, free lines is 2844 [01:29:49]MH_Cut [01:29:49]Write to MH i2c: D1 01 00 86 40 01 98 [01:29:49]Write i2c OK [01:29:49]MH_I2C_Read... [01:29:49]Read from MH i2c: D1 [01:29:49]MH_I2C_Read... [01:29:49]Read from MH i2c: D1 01 00 [01:29:49]MH_I2C_Read... [01:29:49]Read from MH i2c: D1 01 00 86 40 00 97 [01:29:49]Write to MH i2c: 01 00 00 87 40 C7 [01:29:49]Write i2c OK [01:29:49]MH_I2C_Read... [01:29:49]OFD Sender: No OFD packet to send [01:29:50]*** Cut start [01:29:50]*** Purtial cut [01:29:50]*** Stage 1: CUTSNS_PIN = 1 [01:29:50]Read from MH i2c: 01 [01:29:50]MH_I2C_Read... [01:29:50]*** Stop cut motor [01:29:50]*** Cut end [01:29:50]Read from MH i2c: 01 07 00 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: 01 07 00 87 40 00 00 00 00 00 FF 0F DC [01:29:50]process_action close_receipt done [01:29:50]requested_data is exist [01:29:50]produce_requested_data [01:29:50]requested_item fm.sn is exist - process it [01:29:50]wFMCommunicate request_size=4 [01:29:50]MH_SAM_APDU [01:29:50]CAPDU: 80 11 00 00 [01:29:50]Write to MH i2c: E2 08 00 88 40 80 11 00 00 00 00 00 00 42 [01:29:50]Write i2c OK [01:29:50]MH_I2C_Read... [01:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:50]Read from MH i2c: E2 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 17 00 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 17 00 88 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8D [01:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:29:50]wFMCommunicate OK [01:29:50]requested_item fd.num is exist - process it [01:29:50]SAM_PROTO_GetFieldsCounters [01:29:50]wFMCommunicate request_size=4 [01:29:50]MH_SAM_APDU [01:29:50]CAPDU: 80 13 00 00 [01:29:50]Write to MH i2c: E2 08 00 89 40 80 13 00 00 00 00 00 00 45 [01:29:50]Write i2c OK [01:29:50]MH_I2C_Read... [01:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:51]Read from MH i2c: E2 [01:29:51]MH_I2C_Read... [01:29:51]Read from MH i2c: E2 62 00 [01:29:51]MH_I2C_Read... [01:29:51]Read from MH i2c: E2 62 00 89 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 50 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [01:29: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 50 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:29:51]wFMCommunicate OK [01:29:51]SAM_PROTO_GetFieldsCounters done [01:29:51]requested_item shift.num is exist - process it [01:29:51]requested_item shift.opened is exist - process it [01:29:51]req_shift_opened [01:29:51]FM_GetShiftState [01:29:51]SAM_PROTO_GetShiftState [01:29:51]wFMCommunicate request_size=4 [01:29:51]MH_SAM_APDU [01:29:51]CAPDU: 80 13 01 00 [01:29:51]Write to MH i2c: E2 08 00 8A 40 80 13 01 00 00 00 00 00 47 [01:29:51]Write i2c OK [01:29:51]MH_I2C_Read... [01:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:51]Read from MH i2c: E2 [01:29:51]MH_I2C_Read... [01:29:51]Read from MH i2c: E2 0E 00 [01:29:51]MH_I2C_Read... [01:29:51]Read from MH i2c: E2 0E 00 8A 40 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 64 [01:29:51]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [01:29:51]wFMCommunicate OK [01:29:51]SAM_PROTO_GetShiftState done [01:29:51]FM_GetShiftState done [01:29:51]req_shift_opened done [01:29:51]requested_item shift.open_date is exist - process it [01:29:51]req_shift_open_date [01:29:51]req_shift_open_date done [01:29:51]produce_requested_data done [01:29:51]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49744,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [01:29:51]process_action_free close_receipt [01:29:51]json_value_free [01:29:51]json_value_free done [01:29:51]process_json_proto returns [01:29:51]Send response to host [01:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49744,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [01:29:51]free response buf [01:29:51]execute_script done [01:29:51]execute_script returns [01:29:51]free content buf [01:29:51]Sock 9.Close socket [01:29:51]Sock 9.Thread stoped [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:11]int [01:30:11]Write to MH i2c: 01 00 00 8B 40 CB [01:30:11]*** FLAG_PRN_KEY set [01:30:11]Write i2c OK [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: 01 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: 01 07 00 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: 01 07 00 8B 40 00 08 00 00 00 FF 0F E8 [01:30:11]state=0 [01:30:11]Key pressed [01:30:11]Feed [01:30:11]Write to MH i2c: D8 00 00 8C 40 A3 [01:30:11]Write i2c OK [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: D8 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: D8 01 00 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: D8 01 00 8C 40 00 A4 [01:30:12]int [01:30:12]Write to MH i2c: 01 00 00 8D 40 CD [01:30:12]Write i2c OK [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: 01 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: 01 07 00 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: 01 07 00 8D 40 00 48 00 00 00 3C 00 58 [01:30:12]state=2 [01:30:12]Key pressed [01:30:12]int [01:30:12]Write to MH i2c: 01 00 00 8E 40 CE [01:30:12]*** FLAG_PRN_KEY reset [01:30:12]Write i2c OK [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: 01 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: 01 07 00 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: 01 07 00 8E 40 00 00 00 00 00 F5 0F D9 [01:30:12]state=2 [01:30:12]Stop feed [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:49]OFD Sender: No OFD packet to send [01:35:54]OFD Sender: No OFD packet to send [01:35:59]OFD Sender: No OFD packet to send [01:36:04]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:49]recv_with_timeout no data received [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [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: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:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:28]accept exits with 7 [02:39:28]New connection [02:39:28]New thread 3066801508 created [02:39:28]Thread 3066944868 joined [02:39:28]Waiting for new connection... [02:39:28] Sock 7.Parse request [02:39:28]Sock 7.Check first char [02:39:28]Sock 7.First char is OK [02:39:28]request: POST /json_proto HTTP/1.0 [02:39:28]Method: POST [02:39:28]URL: /json_proto [02:39:28]Method is POST - this is cgi request [02:39:28]url: /json_proto [02:39:28]query_string will be loaded in cgi processing [02:39:28]execute_cgi json_proto POST (null) [02:39:28]execute_cgi path=json_proto method=POST [02:39:28]POST find Content-Length [02:39:28]Host: 172.17.46.196:8080 [02:39:28]Content-Length: 647 [02:39:28]Content-Type: application/json [02:39:28] [02:39:28]POST finish read [02:39:28]Found Content-Length = 647 [02:39:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189924", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 270.00, "quantity" : 1.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:39:28]execute_script... [02:39:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189924", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 270.00, "quantity" : 1.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:39:28]POST & json_proto [02:39:28]process_json_proto [02:39:28]json parsed OK: [02:39:28]protocol is kg_v1.0 [02:39:28]action value=close_receipt [02:39:28]process_action close_receipt [02:39:28]cmd_close_receipt [02:39:28]MH_GetDate [02:39:28]Write to MH i2c: F0 00 00 8F 40 BE [02:39:28]Write i2c OK [02:39:28]MH_I2C_Read... [02:39:28]Read from MH i2c: F0 [02:39:28]MH_I2C_Read... [02:39:28]Read from MH i2c: F0 09 00 [02:39:28]MH_I2C_Read... [02:39:28]Read from MH i2c: F0 09 00 8F 40 00 E7 5E C1 66 07 E8 5D 66 E5 [02:39:28]GetLastDocTimeStamp 1723944592 [02:39:28]current date 1723948775 [02:39:28]FM_GetShiftState [02:39:28]SAM_PROTO_GetShiftState [02:39:28]wFMCommunicate request_size=4 [02:39:28]MH_SAM_APDU [02:39:28]CAPDU: 80 13 01 00 [02:39:28]Write to MH i2c: E2 08 00 90 40 80 13 01 00 00 00 00 00 4D [02:39:28]Write i2c OK [02:39:28]MH_I2C_Read... [02:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:39:28]Read from MH i2c: E2 [02:39:28]MH_I2C_Read... [02:39:28]Read from MH i2c: E2 0E 00 [02:39:28]MH_I2C_Read... [02:39:28]Read from MH i2c: E2 0E 00 90 40 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 6A [02:39:28]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [02:39:28]wFMCommunicate OK [02:39:28]SAM_PROTO_GetShiftState done [02:39:28]FM_GetShiftState done [02:39:28]opened in 1723939759 [02:39:28]opened+sec_in_day 1724026159 [02:39:28]quantity*price = 27000 [02:39:28]sum+1 = 27001 [02:39:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 11 18.08.2024 02:39 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49745 ФПД: 54075953291989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T023935&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49745&fm=54075953291989&tin=02508201610067®Number=0000000000092546&sum=27000 0 [02:39:29]StoreToDocumentArchive [02:39:29]shift 466 fd 49745 [02:39:29]save to /storage/0466/doc_00049745 [02:39:29]save last doc name /storage/0466/doc_00049745 to /storage/kkm_last_doc_name [02:39:29]save OK [02:39:29]Clear old archive folders... [02:39:29]ProcessDocumentItem done err = 0, tmpTLVsize=275 [02:39:29]tlvbuf is 018FB250 [02:39:29]SAM_PROTO_ClearQueue [02:39:29]wFMCommunicate request_size=4 [02:39:29]MH_SAM_APDU [02:39:29]CAPDU: 80 09 00 00 [02:39:29]Write to MH i2c: E2 08 00 9D 40 80 09 00 00 00 00 00 00 4F [02:39:29]Write i2c OK [02:39:29]MH_I2C_Read... [02:39:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:39:29]Read from MH i2c: E2 [02:39:29]MH_I2C_Read... [02:39:29]Read from MH i2c: E2 03 00 [02:39:29]MH_I2C_Read... [02:39:29]Read from MH i2c: E2 03 00 9D 40 00 90 00 51 [02:39:29]RAPDU: 90 00 [02:39:29]wFMCommunicate OK [02:39:29]SAM_PROTO_ClearQueue done [02:39:29]KKMCreateOFDPacket [02:39:29]OFDProtocolAddRootSTLVToBuf [02:39:29]FM_MakeSignedData [02:39:29]FM_MakeSignedData [02:39:29]SAM_PROTO_SignData [02:39:29]wFMCommunicate request_size=4 [02:39:29]MH_SAM_APDU [02:39:29]CAPDU: 80 0D 01 02 [02:39:29]Write to MH i2c: E2 08 00 9E 40 80 0D 01 02 00 00 00 00 57 [02:39:29]Write i2c OK [02:39:29]MH_I2C_Read... [02:39:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:39:29]Read from MH i2c: E2 [02:39:29]MH_I2C_Read... [02:39:29]Read from MH i2c: E2 03 00 [02:39:29]MH_I2C_Read... [02:39:29]Read from MH i2c: E2 03 00 9E 40 00 90 00 52 [02:39:29]RAPDU: 90 00 [02:39:29]wFMCommunicate OK [02:39:29]wFMCommunicate request_size=255 [02:39:29]MH_SAM_APDU [02:39:29]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E7 5E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [02:39:29]Write to MH i2c: E2 02 01 9F 40 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E7 5E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 B1 [02:39:29]Write i2c OK [02:39:29]MH_I2C_Read... [02:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:39:30]Read from MH i2c: E2 [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: E2 03 00 [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: E2 03 00 9F 40 00 90 00 53 [02:39:30]RAPDU: 90 00 [02:39:30]wFMCommunicate OK [02:39:30]wFMCommunicate request_size=34 [02:39:30]MH_SAM_APDU [02:39:30]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C2 00 00 35 04 06 00 31 2E 89 FC A2 D5 [02:39:30]Write to MH i2c: E2 25 00 A0 40 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C2 00 00 35 04 06 00 31 2E 89 FC A2 D5 00 00 81 [02:39:30]Write i2c OK [02:39:30]MH_I2C_Read... [02:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:39:30]Read from MH i2c: E2 [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: E2 03 00 [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: E2 03 00 A0 40 00 90 00 54 [02:39:30]RAPDU: 90 00 [02:39:30]wFMCommunicate OK [02:39:30]wFMCommunicate request_size=4 [02:39:30]MH_SAM_APDU [02:39:30]CAPDU: 80 0D 03 02 [02:39:30]Write to MH i2c: E2 08 00 A1 40 80 0D 03 02 00 00 00 00 5C [02:39:30]Write i2c OK [02:39:30]MH_I2C_Read... [02:39:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:39:30]Read from MH i2c: E2 [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: E2 0B 00 [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: E2 0B 00 A1 40 00 CE 4F F6 CA A4 49 64 B2 90 00 3D [02:39:30]RAPDU: CE 4F F6 CA A4 49 64 B2 90 00 [02:39:30]wFMCommunicate OK [02:39:30]SAM_PROTO_SignData done [02:39:30]FM_MakeSignedData done [02:39:30]CreateOFDProtocolMessage [02:39:30]wFMCommunicate request_size=4 [02:39:30]MH_SAM_APDU [02:39:30]CAPDU: 80 11 00 00 [02:39:30]Write to MH i2c: E2 08 00 A2 40 80 11 00 00 00 00 00 00 5C [02:39:30]Write i2c OK [02:39:30]MH_I2C_Read... [02:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:39:30]Read from MH i2c: E2 [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: E2 17 00 [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: E2 17 00 A2 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A7 [02:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [02:39:30]wFMCommunicate OK [02:39:30]CreateOFDProtocolMessage done [02:39:30]OFDSenderStorePacket 49745 [02:39:30]StoreOFDPacket docnum=49745 [02:39:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 D1 69 1F 01 4E 96 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E7 5E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C2 00 00 35 04 06 00 31 2E 89 FC A2 D5 CE 4F F6 CA A4 49 64 B2 [02:39:30]CheckFolder [02:39:30]dirname=/storage/ofd_packets [02:39:30]CheckFolder done [02:39:30]ProducePacketName [02:39:30]name=ofd_packets/00049745 [02:39:30]NVStorageSaveData ofd_packets/00049745 [02:39:30]File name is /storage/ofd_packets/00049745 [02:39:30]Write 325 bytes [02:39:30]NVStorageSaveData done [02:39:30]OFDSenderStorePacket done [02:39:30]KKMCreateOFDPacket done [02:39:30]NVStorageSaveData kkm_last_timestamp [02:39:30]File name is /storage/kkm_last_timestamp [02:39:30]Write 4 bytes [02:39:30]NVStorageSaveData done [02:39:30]ExternCall_PrintAddStr [02:39:30]wPrintStart [02:39:30]Write to MH i2c: 01 00 00 A3 40 E3 [02:39:30]Write i2c OK [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: 01 [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: 01 07 00 [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: 01 07 00 A3 40 00 00 00 00 00 FF 0F F8 [02:39:30]RasterBufferAndPrint [02:39:30]line Счет N : (3)189924 [02:39:30]line ИНН: 02508201610067 [02:39:30]line Контрольно-Кассовый Чек [02:39:30]line ПРОДАЖА [02:39:30]line Товар: 4700001061104 [02:39:30]line Коньяк Семетей 0,2л [02:39:30]line 1.000 * 270.00 [02:39:30]line = 270.00 [02:39:30]line НДС 12% НСП 1% [02:39:30]line > о реализуемом товаре [02:39:30]line ИТОГО: 270.00 [02:39:30]line НСП 1% : 2.39 [02:39:30]line НДС 12% : 28.67 [02:39:30]line Наличными: 270.00 [02:39:30]line Безнал.: 0.00 [02:39:30]line Место: АЗС № 95 "Партнер Нефть" [02:39:30]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [02:39:30]line СНО: Общий режим [02:39:30]line Чек 11 18.08.2024 02:39 [02:39:30]line Смена: 466 ФФД: 1.0 [02:39:30]line ЗНМ: 0300000078 [02:39:30]line РНМ: 0000000000092546 [02:39:30]line Версия ККМ: 001 [02:39:30]line ФМ: 0000000000871800 [02:39:30]line ФД: 49745 [02:39:30]line ФПД: 54075953291989 [02:39:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T023935&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49745&fm=54075953291989&tin=02508201610067®Number=0000000000092546&sum=27000 [02:39:30]OFD Sender: Processing packet 49745 [packets to send 21, broken 20] [02:39:30]ProducePacketName [02:39:30]name=ofd_packets/00049745 [02:39:30]OFD Sender: To server: pG, [02:39:30]CommunicateWithHost lk.salyk.kg:30040 [02:39:30]ConnectInit lk.salyk.kg [02:39:30]line 0 [02:39:30]written 0, free lines is 4095 [02:39:30]Connected sock=11 [02:39:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 D1 69 1F 01 4E 96 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E7 5E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C2 00 00 35 04 06 00 31 2E 89 FC A2 D5 CE 4F F6 CA A4 49 64 B2 [02:39:30]Write to MH i2c: 01 00 00 CB 40 0B [02:39:30]Write i2c OK [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: 01 [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: 01 07 00 [02:39:30]MH_I2C_Read... [02:39:30]Read from MH i2c: 01 07 00 CB 40 00 00 00 00 00 F7 0C 15 [02:39:30]RasterBufferAndPrint [02:39:30]line [02:39:30]line [02:39:30]line [02:39:30]line [02:39:30]line [02:39:30]written 0, free lines is 3326 [02:39:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EF 2A 47 00 EC 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C2 00 00 F4 03 04 00 21 0A C1 66 B6 04 01 00 00 42 D5 3F D9 1A 85 2A 6D [02:39:30]CommunicateWithHost err = 0 [02:39:30]CheckOFDResponse [02:39:30]1017 (14) - 77093643461234 [02:39:30]1041 (16) - 0000000000871800 [02:39:30]1040 (4) - 49745 [02:39:30]1012 (4) - 17.08.2024 20:37 [02:39:30]1206 (1) - 0 [02:39:30]OFD Sender: Remove packet 49745 [02:39:30]ProducePacketName [02:39:30]name=ofd_packets/00049745 [02:39:30]NVStorageDeleteData [02:39:31]MH_Cut [02:39:31]Write to MH i2c: D1 01 00 D2 40 01 E4 [02:39:31]Write i2c OK [02:39:31]MH_I2C_Read... [02:39:31]Read from MH i2c: D1 [02:39:31]MH_I2C_Read... [02:39:31]Read from MH i2c: D1 01 00 [02:39:31]MH_I2C_Read... [02:39:31]Read from MH i2c: D1 01 00 D2 40 00 E3 [02:39:31]Write to MH i2c: 01 00 00 D3 40 13 [02:39:31]Write i2c OK [02:39:31]MH_I2C_Read... [02:39:31]OFD Sender: No OFD packet to send [02:39:31]*** Cut start [02:39:31]*** Purtial cut [02:39:31]*** CUTSNS_PIN = 0 [02:39:31]*** Stage 1: CUTSNS_PIN = 1 [02:39:33]Read from MH i2c: 01 [02:39:33]MH_I2C_Read... [02:39:33]*** Stop cut motor [02:39:33]*** Cut end [02:39:33]Read from MH i2c: 01 07 00 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: 01 07 00 D3 40 00 00 00 00 00 FF 0F 28 [02:39:33]process_action close_receipt done [02:39:33]requested_data is exist [02:39:33]produce_requested_data [02:39:33]requested_item fm.sn is exist - process it [02:39:33]wFMCommunicate request_size=4 [02:39:33]MH_SAM_APDU [02:39:33]CAPDU: 80 11 00 00 [02:39:33]Write to MH i2c: E2 08 00 D4 40 80 11 00 00 00 00 00 00 8E [02:39:33]Write i2c OK [02:39:33]MH_I2C_Read... [02:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:39:33]Read from MH i2c: E2 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: E2 17 00 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: E2 17 00 D4 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D9 [02:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [02:39:33]wFMCommunicate OK [02:39:33]requested_item fd.num is exist - process it [02:39:33]SAM_PROTO_GetFieldsCounters [02:39:33]wFMCommunicate request_size=4 [02:39:33]MH_SAM_APDU [02:39:33]CAPDU: 80 13 00 00 [02:39:33]Write to MH i2c: E2 08 00 D5 40 80 13 00 00 00 00 00 00 91 [02:39:33]Write i2c OK [02:39:33]MH_I2C_Read... [02:39:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:39:33]Read from MH i2c: E2 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: E2 62 00 [02:39:33]MH_I2C_Read... [02:39:33]Read from MH i2c: E2 62 00 D5 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 51 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [02:39: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 51 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:39:34]wFMCommunicate OK [02:39:34]SAM_PROTO_GetFieldsCounters done [02:39:34]requested_item shift.num is exist - process it [02:39:34]requested_item shift.opened is exist - process it [02:39:34]req_shift_opened [02:39:34]FM_GetShiftState [02:39:34]SAM_PROTO_GetShiftState [02:39:34]wFMCommunicate request_size=4 [02:39:34]MH_SAM_APDU [02:39:34]CAPDU: 80 13 01 00 [02:39:34]Write to MH i2c: E2 08 00 D6 40 80 13 01 00 00 00 00 00 93 [02:39:34]Write i2c OK [02:39:34]MH_I2C_Read... [02:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:39:34]Read from MH i2c: E2 [02:39:34]MH_I2C_Read... [02:39:34]Read from MH i2c: E2 0E 00 [02:39:34]MH_I2C_Read... [02:39:34]Read from MH i2c: E2 0E 00 D6 40 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B0 [02:39:34]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [02:39:34]wFMCommunicate OK [02:39:34]SAM_PROTO_GetShiftState done [02:39:34]FM_GetShiftState done [02:39:34]req_shift_opened done [02:39:34]requested_item shift.open_date is exist - process it [02:39:34]req_shift_open_date [02:39:34]req_shift_open_date done [02:39:34]produce_requested_data done [02:39:34]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49745,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [02:39:34]process_action_free close_receipt [02:39:34]json_value_free [02:39:34]json_value_free done [02:39:34]process_json_proto returns [02:39:34]Send response to host [02:39:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49745,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [02:39:34]free response buf [02:39:34]execute_script done [02:39:34]execute_script returns [02:39:34]free content buf [02:39:34]Sock 7.Close socket [02:39:34]Sock 7.Thread stoped [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:40:58]accept exits with 9 [02:40:58]New connection [02:40:58]New thread 3066944868 created [02:40:58]Thread 3066801508 joined [02:40:58]Waiting for new connection... [02:40:58] Sock 9.Parse request [02:40:58]Sock 9.Check first char [02:40:58]Sock 9.First char is OK [02:40:58]request: POST /json_proto HTTP/1.0 [02:40:58]Method: POST [02:40:58]URL: /json_proto [02:40:58]Method is POST - this is cgi request [02:40:58]url: /json_proto [02:40:58]query_string will be loaded in cgi processing [02:40:58]execute_cgi json_proto POST (null) [02:40:58]execute_cgi path=json_proto method=POST [02:40:58]POST find Content-Length [02:40:58]Host: 172.17.46.196:8080 [02:40:58]Content-Length: 689 [02:40:58]Content-Type: application/json [02:40:58] [02:40:58]POST finish read [02:40:58]Found Content-Length = 689 [02:40:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189925", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:40:58]execute_script... [02:40:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189925", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:40:58]POST & json_proto [02:40:58]process_json_proto [02:40:58]json parsed OK: [02:40:58]protocol is kg_v1.0 [02:40:58]action value=close_receipt [02:40:58]process_action close_receipt [02:40:58]cmd_close_receipt [02:40:58]MH_GetDate [02:40:58]Write to MH i2c: F0 00 00 D7 40 06 [02:40:58]Write i2c OK [02:40:58]MH_I2C_Read... [02:40:58]Read from MH i2c: F0 [02:40:58]MH_I2C_Read... [02:40:58]Read from MH i2c: F0 09 00 [02:40:58]MH_I2C_Read... [02:40:58]Read from MH i2c: F0 09 00 D7 40 00 41 5F C1 66 07 E8 5D 66 88 [02:40:58]GetLastDocTimeStamp 1723948775 [02:40:58]current date 1723948865 [02:40:58]FM_GetShiftState [02:40:58]SAM_PROTO_GetShiftState [02:40:58]wFMCommunicate request_size=4 [02:40:58]MH_SAM_APDU [02:40:58]CAPDU: 80 13 01 00 [02:40:58]Write to MH i2c: E2 08 00 D8 40 80 13 01 00 00 00 00 00 95 [02:40:58]Write i2c OK [02:40:58]MH_I2C_Read... [02:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:40:58]Read from MH i2c: E2 [02:40:58]MH_I2C_Read... [02:40:58]Read from MH i2c: E2 0E 00 [02:40:58]MH_I2C_Read... [02:40:58]Read from MH i2c: E2 0E 00 D8 40 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B2 [02:40:58]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [02:40:58]wFMCommunicate OK [02:40:58]SAM_PROTO_GetShiftState done [02:40:58]FM_GetShiftState done [02:40:58]opened in 1723939759 [02:40:58]opened+sec_in_day 1724026159 [02:40:58]quantity*price = 10000 [02:40:58]sum+1 = 10001 [02:40:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 12 18.08.2024 02:41 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49746 ФПД: 83850488236038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T024105&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49746&fm=83850488236038&tin=02508201610067®Number=0000000000092546&sum=10000 0 [02:40:59]StoreToDocumentArchive [02:40:59]shift 466 fd 49746 [02:40:59]save to /storage/0466/doc_00049746 [02:40:59]save last doc name /storage/0466/doc_00049746 to /storage/kkm_last_doc_name [02:40:59]save OK [02:40:59]Clear old archive folders... [02:40:59]ProcessDocumentItem done err = 0, tmpTLVsize=293 [02:40:59]tlvbuf is 018EEAD0 [02:40:59]SAM_PROTO_ClearQueue [02:40:59]wFMCommunicate request_size=4 [02:40:59]MH_SAM_APDU [02:40:59]CAPDU: 80 09 00 00 [02:40:59]Write to MH i2c: E2 08 00 E5 40 80 09 00 00 00 00 00 00 97 [02:40:59]Write i2c OK [02:40:59]MH_I2C_Read... [02:40:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:40:59]Read from MH i2c: E2 [02:40:59]MH_I2C_Read... [02:40:59]Read from MH i2c: E2 03 00 [02:40:59]MH_I2C_Read... [02:40:59]Read from MH i2c: E2 03 00 E5 40 00 90 00 99 [02:40:59]RAPDU: 90 00 [02:40:59]wFMCommunicate OK [02:40:59]SAM_PROTO_ClearQueue done [02:40:59]KKMCreateOFDPacket [02:40:59]OFDProtocolAddRootSTLVToBuf [02:40:59]FM_MakeSignedData [02:40:59]FM_MakeSignedData [02:40:59]SAM_PROTO_SignData [02:40:59]wFMCommunicate request_size=4 [02:40:59]MH_SAM_APDU [02:40:59]CAPDU: 80 0D 01 02 [02:40:59]Write to MH i2c: E2 08 00 E6 40 80 0D 01 02 00 00 00 00 9F [02:40:59]Write i2c OK [02:40:59]MH_I2C_Read... [02:40:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:40:59]Read from MH i2c: E2 [02:40:59]MH_I2C_Read... [02:40:59]Read from MH i2c: E2 03 00 [02:40:59]MH_I2C_Read... [02:40:59]Read from MH i2c: E2 03 00 E6 40 00 90 00 9A [02:40:59]RAPDU: 90 00 [02:40:59]wFMCommunicate OK [02:40:59]wFMCommunicate request_size=255 [02:40:59]MH_SAM_APDU [02:40:59]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 41 5F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [02:40:59]Write to MH i2c: E2 02 01 E7 40 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 41 5F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 FE [02:40:59]Write i2c OK [02:40:59]MH_I2C_Read... [02:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:40:59]Read from MH i2c: E2 [02:40:59]MH_I2C_Read... [02:40:59]Read from MH i2c: E2 03 00 [02:40:59]MH_I2C_Read... [02:40:59]Read from MH i2c: E2 03 00 E7 40 00 90 00 9B [02:40:59]RAPDU: 90 00 [02:40:59]wFMCommunicate OK [02:40:59]wFMCommunicate request_size=52 [02:40:59]MH_SAM_APDU [02:40:59]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C2 00 00 35 04 06 00 4C 42 F6 90 C8 06 [02:40:59]Write to MH i2c: E2 37 00 E8 40 80 0D 02 02 2F 00 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C2 00 00 35 04 06 00 4C 42 F6 90 C8 06 00 00 54 [02:40:59]Write i2c OK [02:40:59]MH_I2C_Read... [02:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:00]Read from MH i2c: E2 [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: E2 03 00 [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: E2 03 00 E8 40 00 90 00 9C [02:41:00]RAPDU: 90 00 [02:41:00]wFMCommunicate OK [02:41:00]wFMCommunicate request_size=4 [02:41:00]MH_SAM_APDU [02:41:00]CAPDU: 80 0D 03 02 [02:41:00]Write to MH i2c: E2 08 00 E9 40 80 0D 03 02 00 00 00 00 A4 [02:41:00]Write i2c OK [02:41:00]MH_I2C_Read... [02:41:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:41:00]Read from MH i2c: E2 [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: E2 0B 00 [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: E2 0B 00 E9 40 00 DB DB 33 E4 CC B9 30 7D 90 00 A4 [02:41:00]RAPDU: DB DB 33 E4 CC B9 30 7D 90 00 [02:41:00]wFMCommunicate OK [02:41:00]SAM_PROTO_SignData done [02:41:00]FM_MakeSignedData done [02:41:00]CreateOFDProtocolMessage [02:41:00]wFMCommunicate request_size=4 [02:41:00]MH_SAM_APDU [02:41:00]CAPDU: 80 11 00 00 [02:41:00]Write to MH i2c: E2 08 00 EA 40 80 11 00 00 00 00 00 00 A4 [02:41:00]Write i2c OK [02:41:00]MH_I2C_Read... [02:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:00]Read from MH i2c: E2 [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: E2 17 00 [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: E2 17 00 EA 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EF [02:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [02:41:00]wFMCommunicate OK [02:41:00]CreateOFDProtocolMessage done [02:41:00]OFDSenderStorePacket 49746 [02:41:00]StoreOFDPacket docnum=49746 [02:41:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 51 16 31 01 37 42 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 41 5F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C2 00 00 35 04 06 00 4C 42 F6 90 C8 06 DB DB 33 E4 CC B9 30 7D [02:41:00]CheckFolder [02:41:00]dirname=/storage/ofd_packets [02:41:00]CheckFolder done [02:41:00]ProducePacketName [02:41:00]name=ofd_packets/00049746 [02:41:00]NVStorageSaveData ofd_packets/00049746 [02:41:00]File name is /storage/ofd_packets/00049746 [02:41:00]Write 343 bytes [02:41:00]NVStorageSaveData done [02:41:00]OFDSenderStorePacket done [02:41:00]KKMCreateOFDPacket done [02:41:00]NVStorageSaveData kkm_last_timestamp [02:41:00]File name is /storage/kkm_last_timestamp [02:41:00]Write 4 bytes [02:41:00]NVStorageSaveData done [02:41:00]ExternCall_PrintAddStr [02:41:00]wPrintStart [02:41:00]Write to MH i2c: 01 00 00 EB 40 2B [02:41:00]Write i2c OK [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: 01 [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: 01 07 00 [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: 01 07 00 EB 40 00 00 00 00 00 FF 0F 40 [02:41:00]RasterBufferAndPrint [02:41:00]line Счет N : (3)189925 [02:41:00]line ИНН: 02508201610067 [02:41:00]line Контрольно-Кассовый Чек [02:41:00]line ПРОДАЖА [02:41:00]line Товар: 4870002326172 [02:41:00]line Вода ASU пит н.газ лимон ПЭТ 1л [02:41:00]line 1.000 * 100.00 [02:41:00]line = 100.00 [02:41:00]line НДС 12% НСП 1% [02:41:00]line > о реализуемом товаре [02:41:00]line ИТОГО: 100.00 [02:41:00]line НСП 1% : 0.88 [02:41:00]line НДС 12% : 10.62 [02:41:00]line Наличными: 100.00 [02:41:00]line Безнал.: 0.00 [02:41:00]line Место: АЗС № 95 "Партнер Нефть" [02:41:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [02:41:00]line СНО: Общий режим [02:41:00]line Чек 12 18.08.2024 02:41 [02:41:00]line Смена: 466 ФФД: 1.0 [02:41:00]line ЗНМ: 0300000078 [02:41:00]line РНМ: 0000000000092546 [02:41:00]line Версия ККМ: 001 [02:41:00]line ФМ: 0000000000871800 [02:41:00]line ФД: 49746 [02:41:00]line ФПД: 83850488236038 [02:41:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T024105&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49746&fm=83850488236038&tin=02508201610067®Number=0000000000092546&sum=10000 [02:41:00]line 0 [02:41:00]OFD Sender: Processing packet 49746 [packets to send 21, broken 20] [02:41:00]ProducePacketName [02:41:00]name=ofd_packets/00049746 [02:41:00]OFD Sender: To server: pG, [02:41:00]CommunicateWithHost lk.salyk.kg:30040 [02:41:00]ConnectInit lk.salyk.kg [02:41:00]written 0, free lines is 4095 [02:41:00]Connected sock=10 [02:41:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 51 16 31 01 37 42 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 41 5F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C2 00 00 35 04 06 00 4C 42 F6 90 C8 06 DB DB 33 E4 CC B9 30 7D [02:41:00]Write to MH i2c: 01 00 00 14 41 55 [02:41:00]Write i2c OK [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: 01 [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: 01 07 00 [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: 01 07 00 14 41 00 00 00 00 00 D1 0C 39 [02:41:00]RasterBufferAndPrint [02:41:00]line [02:41:00]line [02:41:00]line [02:41:00]line [02:41:00]line [02:41:00]written 0, free lines is 3287 [02:41:00]MH_Cut [02:41:00]Write to MH i2c: D1 01 00 1B 41 01 2E [02:41:00]Write i2c OK [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: D1 [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: D1 01 00 [02:41:00]MH_I2C_Read... [02:41:00]Read from MH i2c: D1 01 00 1B 41 00 2D [02:41:00]Write to MH i2c: 01 00 00 1C 41 5D [02:41:00]Write i2c OK [02:41:00]MH_I2C_Read... [02:41:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4E 84 47 00 BE 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C2 00 00 F4 03 04 00 7B 0A C1 66 B6 04 01 00 00 18 4F EB 3E F0 D0 F8 9E [02:41:00]CommunicateWithHost err = 0 [02:41:00]CheckOFDResponse [02:41:00]1017 (14) - 77093643461234 [02:41:00]1041 (16) - 0000000000871800 [02:41:00]1040 (4) - 49746 [02:41:00]1012 (4) - 17.08.2024 20:39 [02:41:00]1206 (1) - 0 [02:41:00]OFD Sender: Remove packet 49746 [02:41:00]ProducePacketName [02:41:00]name=ofd_packets/00049746 [02:41:00]NVStorageDeleteData [02:41:01]OFD Sender: No OFD packet to send [02:41:01]*** Cut start [02:41:01]*** Purtial cut [02:41:01]*** Stage 1: CUTSNS_PIN = 1 [02:41:01]Read from MH i2c: 01 [02:41:01]MH_I2C_Read... [02:41:01]*** Stop cut motor [02:41:01]*** Cut end [02:41:01]Read from MH i2c: 01 07 00 [02:41:01]MH_I2C_Read... [02:41:01]Read from MH i2c: 01 07 00 1C 41 00 00 00 00 00 FF 0F 72 [02:41:01]process_action close_receipt done [02:41:01]requested_data is exist [02:41:01]produce_requested_data [02:41:01]requested_item fm.sn is exist - process it [02:41:01]wFMCommunicate request_size=4 [02:41:01]MH_SAM_APDU [02:41:01]CAPDU: 80 11 00 00 [02:41:01]Write to MH i2c: E2 08 00 1D 41 80 11 00 00 00 00 00 00 D8 [02:41:01]Write i2c OK [02:41:01]MH_I2C_Read... [02:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:01]Read from MH i2c: E2 [02:41:01]MH_I2C_Read... [02:41:01]Read from MH i2c: E2 17 00 [02:41:01]MH_I2C_Read... [02:41:01]Read from MH i2c: E2 17 00 1D 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 23 [02:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [02:41:01]wFMCommunicate OK [02:41:01]requested_item fd.num is exist - process it [02:41:01]SAM_PROTO_GetFieldsCounters [02:41:01]wFMCommunicate request_size=4 [02:41:01]MH_SAM_APDU [02:41:01]CAPDU: 80 13 00 00 [02:41:01]Write to MH i2c: E2 08 00 1E 41 80 13 00 00 00 00 00 00 DB [02:41:01]Write i2c OK [02:41:01]MH_I2C_Read... [02:41:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:41:01]Read from MH i2c: E2 [02:41:01]MH_I2C_Read... [02:41:01]Read from MH i2c: E2 62 00 [02:41:01]MH_I2C_Read... [02:41:01]Read from MH i2c: E2 62 00 1E 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 52 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [02:41: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 52 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:41:01]wFMCommunicate OK [02:41:01]SAM_PROTO_GetFieldsCounters done [02:41:01]requested_item shift.num is exist - process it [02:41:01]requested_item shift.opened is exist - process it [02:41:01]req_shift_opened [02:41:01]FM_GetShiftState [02:41:01]SAM_PROTO_GetShiftState [02:41:01]wFMCommunicate request_size=4 [02:41:01]MH_SAM_APDU [02:41:01]CAPDU: 80 13 01 00 [02:41:01]Write to MH i2c: E2 08 00 1F 41 80 13 01 00 00 00 00 00 DD [02:41:01]Write i2c OK [02:41:01]MH_I2C_Read... [02:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:01]Read from MH i2c: E2 [02:41:01]MH_I2C_Read... [02:41:01]Read from MH i2c: E2 0E 00 [02:41:01]MH_I2C_Read... [02:41:01]Read from MH i2c: E2 0E 00 1F 41 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 FA [02:41:01]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [02:41:01]wFMCommunicate OK [02:41:01]SAM_PROTO_GetShiftState done [02:41:01]FM_GetShiftState done [02:41:01]req_shift_opened done [02:41:01]requested_item shift.open_date is exist - process it [02:41:01]req_shift_open_date [02:41:01]req_shift_open_date done [02:41:01]produce_requested_data done [02:41:01]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49746,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [02:41:01]process_action_free close_receipt [02:41:01]json_value_free [02:41:01]json_value_free done [02:41:01]process_json_proto returns [02:41:01]Send response to host [02:41:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49746,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [02:41:01]free response buf [02:41:01]execute_script done [02:41:01]execute_script returns [02:41:01]free content buf [02:41:01]Sock 9.Close socket [02:41:01]Sock 9.Thread stoped [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50: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: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:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55: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: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:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send