[03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:37]recv_with_timeout no data received [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:24]recv_with_timeout no data received [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:09]recv_with_timeout no data received [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:24]recv_with_timeout no data received [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:32]recv_with_timeout no data received [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:06]recv_with_timeout no data received [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]recv_with_timeout no data received [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:08]recv_with_timeout no data received [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:49]recv_with_timeout no data received [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:04]recv_with_timeout no data received [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:09]recv_with_timeout no data received [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:26]recv_with_timeout no data received [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:30]recv_with_timeout no data received [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:55]recv_with_timeout no data received [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:03]recv_with_timeout no data received [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:52]recv_with_timeout no data received [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:15]recv_with_timeout no data received [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:22]recv_with_timeout no data received [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:38]recv_with_timeout no data received [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]recv_with_timeout no data received [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:50]recv_with_timeout no data received [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:42]recv_with_timeout no data received [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:31]recv_with_timeout no data received [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:42]recv_with_timeout no data received [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:09]recv_with_timeout no data received [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:19]recv_with_timeout no data received [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:17]recv_with_timeout no data received [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:35]accept exits with 10 [04:00:35]New connection [04:00:35]New thread 3067424100 created [04:00:35]Thread 3067280740 joined [04:00:35]Waiting for new connection... [04:00:35] Sock 10.Parse request [04:00:35]Sock 10.Check first char [04:00:35]Sock 10.First char is OK [04:00:35]request: POST /json_proto HTTP/1.0 [04:00:35]Method: POST [04:00:35]URL: /json_proto [04:00:35]Method is POST - this is cgi request [04:00:35]url: /json_proto [04:00:35]query_string will be loaded in cgi processing [04:00:35]execute_cgi json_proto POST (null) [04:00:35]execute_cgi path=json_proto method=POST [04:00:35]POST find Content-Length [04:00:35]Host: 172.17.51.67:8080 [04:00:35]Content-Length: 678 [04:00:35]Content-Type: application/json [04:00:35] [04:00:35]POST finish read [04:00:35]Found Content-Length = 678 [04:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 13.640, "sum" : 912.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 912.00, "total" : 912.00, "payments": [ { "type": 0, "sum" : 912.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:00:35]execute_script... [04:00:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 13.640, "sum" : 912.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 912.00, "total" : 912.00, "payments": [ { "type": 0, "sum" : 912.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:00:35]POST & json_proto [04:00:35]process_json_proto [04:00:35]json parsed OK: [04:00:35]protocol is kg_v1.0 [04:00:35]action value=close_receipt [04:00:35]process_action close_receipt [04:00:35]cmd_close_receipt [04:00:35]MH_GetDate [04:00:35]Write to MH i2c: F0 00 00 D3 04 C6 [04:00:35]Write i2c OK [04:00:35]MH_I2C_Read... [04:00:35]Read from MH i2c: F0 [04:00:35]MH_I2C_Read... [04:00:35]Read from MH i2c: F0 09 00 [04:00:35]MH_I2C_Read... [04:00:35]Read from MH i2c: F0 09 00 D3 04 00 E5 74 18 67 1E EF FA 64 12 [04:00:35]GetLastDocTimeStamp 1729650954 [04:00:35]current date 1729656037 [04:00:35]FM_GetShiftState [04:00:35]SAM_PROTO_GetShiftState [04:00:35]wFMCommunicate request_size=4 [04:00:35]MH_SAM_APDU [04:00:35]CAPDU: 80 13 01 00 [04:00:35]Write to MH i2c: E2 08 00 D4 04 80 13 01 00 00 00 00 00 55 [04:00:35]Write i2c OK [04:00:35]MH_I2C_Read... [04:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:35]Read from MH i2c: E2 [04:00:35]MH_I2C_Read... [04:00:35]Read from MH i2c: E2 0E 00 [04:00:35]MH_I2C_Read... [04:00:35]Read from MH i2c: E2 0E 00 D4 04 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 8E [04:00:35]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [04:00:35]wFMCommunicate OK [04:00:35]SAM_PROTO_GetShiftState done [04:00:35]FM_GetShiftState done [04:00:35]opened in 1729642861 [04:00:35]opened+sec_in_day 1729729261 [04:00:35]quantity*price = 91251 [04:00:35]sum+1 = 91253 [04:00:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 912.00 Внесено: 912.00 СДАЧА: 0.00 НСП 1% : 8.07 НДС 12% : 96.90 Наличными: 912.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 12 23.10.2024 04:00 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103600 ФПД: 261367508606467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T040037&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103600&fm=261367508606467&tin=02508201610067®Number=0000000000091754&sum=91200 [04:00:37]StoreToDocumentArchive [04:00:37]shift 582 fd 103600 [04:00:37]save to /storage/0582/doc_00103600 [04:00:37]save last doc name /storage/0582/doc_00103600 to /storage/kkm_last_doc_name [04:00:37]save OK [04:00:37]Clear old archive folders... [04:00:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:00:37]tlvbuf is 002B3960 [04:00:37]SAM_PROTO_ClearQueue [04:00:37]wFMCommunicate request_size=4 [04:00:37]MH_SAM_APDU [04:00:37]CAPDU: 80 09 00 00 [04:00:37]Write to MH i2c: E2 08 00 E1 04 80 09 00 00 00 00 00 00 57 [04:00:37]Write i2c OK [04:00:37]MH_I2C_Read... [04:00:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:00:37]Read from MH i2c: E2 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: E2 03 00 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [04:00:37]RAPDU: 90 00 [04:00:37]wFMCommunicate OK [04:00:37]SAM_PROTO_ClearQueue done [04:00:37]KKMCreateOFDPacket [04:00:37]OFDProtocolAddRootSTLVToBuf [04:00:37]FM_MakeSignedData [04:00:37]FM_MakeSignedData [04:00:37]SAM_PROTO_SignData [04:00:37]wFMCommunicate request_size=4 [04:00:37]MH_SAM_APDU [04:00:37]CAPDU: 80 0D 01 02 [04:00:37]Write to MH i2c: E2 08 00 E2 04 80 0D 01 02 00 00 00 00 5F [04:00:37]Write i2c OK [04:00:37]MH_I2C_Read... [04:00:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:00:37]Read from MH i2c: E2 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: E2 03 00 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: E2 03 00 E2 04 00 90 00 5A [04:00:37]RAPDU: 90 00 [04:00:37]wFMCommunicate OK [04:00:37]wFMCommunicate request_size=255 [04:00:37]MH_SAM_APDU [04:00:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 48 35 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 74 64 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 64 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 25 00 00 00 00 07 04 06 00 40 64 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 E5 74 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B0 94 01 00 35 04 06 00 ED [04:00:37]Write to MH i2c: E2 02 01 E3 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 48 35 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 74 64 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 64 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 25 00 00 00 00 07 04 06 00 40 64 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 E5 74 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B0 94 01 00 35 04 06 00 ED 00 00 C6 [04:00:37]Write i2c OK [04:00:37]MH_I2C_Read... [04:00:37]OFD Sender: No OFD packet to send [04:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:00:37]Read from MH i2c: E2 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: E2 03 00 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [04:00:37]RAPDU: 90 00 [04:00:37]wFMCommunicate OK [04:00:37]wFMCommunicate request_size=10 [04:00:37]MH_SAM_APDU [04:00:37]CAPDU: 80 0D 02 02 05 B6 5D 81 9E 03 [04:00:37]Write to MH i2c: E2 0D 00 E4 04 80 0D 02 02 05 00 B6 5D 81 9E 03 00 00 A1 [04:00:37]Write i2c OK [04:00:37]MH_I2C_Read... [04:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:00:37]Read from MH i2c: E2 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: E2 03 00 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: E2 03 00 E4 04 00 90 00 5C [04:00:37]RAPDU: 90 00 [04:00:37]wFMCommunicate OK [04:00:37]wFMCommunicate request_size=4 [04:00:37]MH_SAM_APDU [04:00:37]CAPDU: 80 0D 03 02 [04:00:37]Write to MH i2c: E2 08 00 E5 04 80 0D 03 02 00 00 00 00 64 [04:00:37]Write i2c OK [04:00:37]MH_I2C_Read... [04:00:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:00:37]Read from MH i2c: E2 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: E2 0B 00 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: E2 0B 00 E5 04 00 7E BE E7 7F 4A BE 2B 91 90 00 CB [04:00:37]RAPDU: 7E BE E7 7F 4A BE 2B 91 90 00 [04:00:37]wFMCommunicate OK [04:00:37]SAM_PROTO_SignData done [04:00:37]FM_MakeSignedData done [04:00:37]CreateOFDProtocolMessage [04:00:37]wFMCommunicate request_size=4 [04:00:37]MH_SAM_APDU [04:00:37]CAPDU: 80 11 00 00 [04:00:37]Write to MH i2c: E2 08 00 E6 04 80 11 00 00 00 00 00 00 64 [04:00:37]Write i2c OK [04:00:37]MH_I2C_Read... [04:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:00:37]Read from MH i2c: E2 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: E2 17 00 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: E2 17 00 E6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 B1 [04:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [04:00:37]wFMCommunicate OK [04:00:37]CreateOFDProtocolMessage done [04:00:37]OFDSenderStorePacket 103600 [04:00:37]StoreOFDPacket docnum=103600 [04:00:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 47 E4 07 01 AB 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 48 35 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 74 64 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 64 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 25 00 00 00 00 07 04 06 00 40 64 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 E5 74 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B0 94 01 00 35 04 06 00 ED B6 5D 81 9E 03 7E BE E7 7F 4A BE 2B 91 [04:00:37]CheckFolder [04:00:37]dirname=/storage/ofd_packets [04:00:37]CheckFolder done [04:00:37]ProducePacketName [04:00:37]name=ofd_packets/00103600 [04:00:37]NVStorageSaveData ofd_packets/00103600 [04:00:37]File name is /storage/ofd_packets/00103600 [04:00:37]Write 301 bytes [04:00:37]NVStorageSaveData done [04:00:37]OFDSenderStorePacket done [04:00:37]KKMCreateOFDPacket done [04:00:37]NVStorageSaveData kkm_last_timestamp [04:00:37]File name is /storage/kkm_last_timestamp [04:00:37]Write 4 bytes [04:00:37]NVStorageSaveData done [04:00:37]ExternCall_PrintAddStr [04:00:37]wPrintStart [04:00:37]Write to MH i2c: 01 00 00 E7 04 EB [04:00:37]Write i2c OK [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: 01 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: 01 07 00 [04:00:37]MH_I2C_Read... [04:00:37]Read from MH i2c: 01 07 00 E7 04 00 00 00 00 00 FF 0F 00 [04:00:37]RasterBufferAndPrint [04:00:37]line Счет N : (1)317800 [04:00:37]line ИНН: 02508201610067 [04:00:37]line Контрольно-Кассовый Чек [04:00:37]line ПРОДАЖА [04:00:37]line ТРК (МРК, ГНК) : 63 [04:00:37]line Товар: 2710124130 [04:00:37]line Аи-92-К-4 [04:00:37]line 13.640 * 66.90 [04:00:37]line = 912.52 [04:00:37]line НДС 12% НСП 1% [04:00:37]line > о реализуемом товаре [04:00:37]line ОКРУГЛЕНИЕ: -0.52 [04:00:37]line ИТОГО: 912.00 [04:00:37]line Внесено: 912.00 [04:00:37]line СДАЧА: 0.00 [04:00:37]line НСП 1% : 8.07 [04:00:37]line НДС 12% : 96.90 [04:00:37]line Наличными: 912.00 [04:00:37]line Безнал.: 0.00 [04:00:37]line Место: АЗС № 145 "Партнер Нефть" [04:00:37]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [04:00:37]line СНО: Общий режим [04:00:37]line Чек 12 23.10.2024 04:00 [04:00:37]line Смена: 582 ФФД: 1.0 [04:00:37]line ЗНМ: 0300000095 [04:00:37]line РНМ: 0000000000091754 [04:00:37]line Версия ККМ: 001 [04:00:37]line ФМ: 0000000000871811 [04:00:37]line ФД: 103600 [04:00:37]line ФПД: 261367508606467 [04:00:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T040037&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103600&fm=261367508606467&tin=02508201610067®Number=0000000000091754&sum=91200 [04:00:37]written 0, free lines is 4095 [04:00:37]OFD Sender: Processing packet 103600 [packets to send 498, broken 497] [04:00:37]ProducePacketName [04:00:37]name=ofd_packets/00103600 [04:00:37]OFD Sender: To server: pG, [04:00:37]CommunicateWithHost lk.salyk.kg:30040 [04:00:37]ConnectInit lk.salyk.kg [04:00:38]Write to MH i2c: 01 00 00 11 05 16 [04:00:38]Write i2c OK [04:00:38]MH_I2C_Read... [04:00:38]Read from MH i2c: 01 [04:00:38]MH_I2C_Read... [04:00:38]Read from MH i2c: 01 07 00 [04:00:38]MH_I2C_Read... [04:00:38]Read from MH i2c: 01 07 00 11 05 00 00 00 00 00 BF 0C E8 [04:00:38]RasterBufferAndPrint [04:00:38]line [04:00:38]line [04:00:38]line [04:00:38]line [04:00:38]line [04:00:38]written 0, free lines is 3269 [04:00:38]MH_Cut [04:00:38]Write to MH i2c: D1 01 00 18 05 01 EF [04:00:38]Write i2c OK [04:00:38]MH_I2C_Read... [04:00:38]Read from MH i2c: D1 [04:00:38]MH_I2C_Read... [04:00:38]Read from MH i2c: D1 01 00 [04:00:38]MH_I2C_Read... [04:00:38]Read from MH i2c: D1 01 00 18 05 00 EE [04:00:38]Write to MH i2c: 01 00 00 19 05 1E [04:00:38]Write i2c OK [04:00:38]MH_I2C_Read... [04:00:38]*** Cut start [04:00:38]*** Partial cut [04:00:38]*** CUTSNS_PIN = 1 [04:00:38]*** CUTSNS_PIN = 0 [04:00:39]*** Brake cut motor [04:00:39]Read from MH i2c: 01 [04:00:39]MH_I2C_Read... [04:00:39]*** Stop cut motor [04:00:39]*** Cut end [04:00:39]Read from MH i2c: 01 07 00 [04:00:39]MH_I2C_Read... [04:00:39]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 FF 0F 33 [04:00:39]process_action close_receipt done [04:00:39]requested_data is exist [04:00:39]produce_requested_data [04:00:39]requested_item fm.sn is exist - process it [04:00:39]wFMCommunicate request_size=4 [04:00:39]MH_SAM_APDU [04:00:39]CAPDU: 80 11 00 00 [04:00:39]Write to MH i2c: E2 08 00 1A 05 80 11 00 00 00 00 00 00 99 [04:00:39]Write i2c OK [04:00:39]MH_I2C_Read... [04:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:00:39]Read from MH i2c: E2 [04:00:39]MH_I2C_Read... [04:00:39]Read from MH i2c: E2 17 00 [04:00:39]MH_I2C_Read... [04:00:39]Read from MH i2c: E2 17 00 1A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 E6 [04:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [04:00:39]wFMCommunicate OK [04:00:39]requested_item fd.num is exist - process it [04:00:39]SAM_PROTO_GetFieldsCounters [04:00:39]wFMCommunicate request_size=4 [04:00:39]MH_SAM_APDU [04:00:39]CAPDU: 80 13 00 00 [04:00:39]Write to MH i2c: E2 08 00 1B 05 80 13 00 00 00 00 00 00 9C [04:00:39]Write i2c OK [04:00:39]MH_I2C_Read... [04:00:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:00:39]Read from MH i2c: E2 [04:00:39]MH_I2C_Read... [04:00:39]Read from MH i2c: E2 62 00 [04:00:39]MH_I2C_Read... [04:00:39]Read from MH i2c: E2 62 00 1B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B0 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [04:00:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B0 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:00:39]wFMCommunicate OK [04:00:39]SAM_PROTO_GetFieldsCounters done [04:00:39]requested_item shift.num is exist - process it [04:00:39]requested_item shift.opened is exist - process it [04:00:39]req_shift_opened [04:00:39]FM_GetShiftState [04:00:39]SAM_PROTO_GetShiftState [04:00:39]wFMCommunicate request_size=4 [04:00:39]MH_SAM_APDU [04:00:39]CAPDU: 80 13 01 00 [04:00:39]Write to MH i2c: E2 08 00 1C 05 80 13 01 00 00 00 00 00 9E [04:00:39]Write i2c OK [04:00:39]MH_I2C_Read... [04:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:39]Read from MH i2c: E2 [04:00:39]MH_I2C_Read... [04:00:39]Read from MH i2c: E2 0E 00 [04:00:39]MH_I2C_Read... [04:00:39]Read from MH i2c: E2 0E 00 1C 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D7 [04:00:39]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [04:00:39]wFMCommunicate OK [04:00:39]SAM_PROTO_GetShiftState done [04:00:39]FM_GetShiftState done [04:00:39]req_shift_opened done [04:00:39]requested_item shift.open_date is exist - process it [04:00:39]req_shift_open_date [04:00:39]req_shift_open_date done [04:00:39]produce_requested_data done [04:00:39]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103600,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [04:00:39]process_action_free close_receipt [04:00:39]json_value_free [04:00:39]json_value_free done [04:00:39]process_json_proto returns [04:00:39]Send response to host [04:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103600,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [04:00:39]free response buf [04:00:39]execute_script done [04:00:39]execute_script returns [04:00:39]free content buf [04:00:39]Sock 10.Close socket [04:00:39]Sock 10.Thread stoped [04:00:42]ConnectInit Can't take IP for lk.salyk.kg [04:00:42]CommunicateWithHost connect error [04:00:42]CommunicateWithHost err = -1 [04:00:42]OFD Sender: Server communicate error [04:00:47]OFD Sender: Processing packet 103600 [packets to send 498, broken 497] [04:00:47]ProducePacketName [04:00:47]name=ofd_packets/00103600 [04:00:47]OFD Sender: To server: pG, [04:00:47]CommunicateWithHost lk.salyk.kg:30040 [04:00:47]ConnectInit lk.salyk.kg [04:00:48]Connected sock=8 [04:00: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 31 31 0F 01 00 00 47 E4 07 01 AB 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 48 35 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 74 64 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 64 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 25 00 00 00 00 07 04 06 00 40 64 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 E5 74 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B0 94 01 00 35 04 06 00 ED B6 5D 81 9E 03 7E BE E7 7F 4A BE 2B 91 [04:00: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 31 31 4F 00 00 00 F2 3B 47 00 B9 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B0 94 01 00 F4 03 04 00 06 1C 18 67 B6 04 01 00 00 3A 08 E0 08 C8 6E 4B 2B [04:00:48]CommunicateWithHost err = 0 [04:00:48]CheckOFDResponse [04:00:48]1017 (14) - 77093643461234 [04:00:48]1041 (16) - 0000000000871811 [04:00:48]1040 (4) - 103600 [04:00:48]1012 (4) - 22.10.2024 21:41 [04:00:48]1206 (1) - 0 [04:00:48]OFD Sender: Remove packet 103600 [04:00:48]ProducePacketName [04:00:48]name=ofd_packets/00103600 [04:00:48]NVStorageDeleteData [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:56]recv_with_timeout no data received [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:55]recv_with_timeout no data received [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:12]recv_with_timeout no data received [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:56]recv_with_timeout no data received [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:12]recv_with_timeout no data received [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:23]recv_with_timeout no data received [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:22]recv_with_timeout no data received [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:07:56]recv_with_timeout no data received [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:24]recv_with_timeout no data received [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:30]recv_with_timeout no data received [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:11]recv_with_timeout no data received [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:48]recv_with_timeout no data received [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:49]recv_with_timeout no data received [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:06]recv_with_timeout no data received [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:23]recv_with_timeout no data received [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]recv_with_timeout no data received [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:31]recv_with_timeout no data received [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:44]recv_with_timeout no data received [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:54]recv_with_timeout no data received [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]recv_with_timeout no data received [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]recv_with_timeout no data received [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:04]recv_with_timeout no data received [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:28]recv_with_timeout no data received [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:31]recv_with_timeout no data received [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]recv_with_timeout no data received [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:56]recv_with_timeout no data received [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:51]recv_with_timeout no data received [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:45]accept exits with 9 [04:42:45]New connection [04:42:45]New thread 3067280740 created [04:42:45]Thread 3067424100 joined [04:42:45]Waiting for new connection... [04:42:45] Sock 9.Parse request [04:42:45]Sock 9.Check first char [04:42:45]Sock 9.First char is OK [04:42:45]request: POST /json_proto HTTP/1.0 [04:42:45]Method: POST [04:42:45]URL: /json_proto [04:42:45]Method is POST - this is cgi request [04:42:45]url: /json_proto [04:42:45]query_string will be loaded in cgi processing [04:42:45]execute_cgi json_proto POST (null) [04:42:45]execute_cgi path=json_proto method=POST [04:42:45]POST find Content-Length [04:42:45]Host: 172.17.51.67:8080 [04:42:45]Content-Length: 840 [04:42:45]Content-Type: application/json [04:42:45] [04:42:45]POST finish read [04:42:45]Found Content-Length = 840 [04:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:42:45]execute_script... [04:42:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:42:45]POST & json_proto [04:42:45]process_json_proto [04:42:45]json parsed OK: [04:42:45]protocol is kg_v1.0 [04:42:45]action value=close_receipt [04:42:45]process_action close_receipt [04:42:45]cmd_close_receipt [04:42:45]MH_GetDate [04:42:45]Write to MH i2c: F0 00 00 1D 05 11 [04:42:45]Write i2c OK [04:42:45]MH_I2C_Read... [04:42:45]Read from MH i2c: F0 [04:42:45]MH_I2C_Read... [04:42:45]Read from MH i2c: F0 09 00 [04:42:45]MH_I2C_Read... [04:42:45]Read from MH i2c: F0 09 00 1D 05 00 C7 7E 18 67 1E EF FA 64 49 [04:42:45]GetLastDocTimeStamp 1729656037 [04:42:45]current date 1729658567 [04:42:45]FM_GetShiftState [04:42:45]SAM_PROTO_GetShiftState [04:42:45]wFMCommunicate request_size=4 [04:42:45]MH_SAM_APDU [04:42:45]CAPDU: 80 13 01 00 [04:42:45]Write to MH i2c: E2 08 00 1E 05 80 13 01 00 00 00 00 00 A0 [04:42:45]Write i2c OK [04:42:45]MH_I2C_Read... [04:42:45]recv_with_timeout no data received [04:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:42:46]Read from MH i2c: E2 [04:42:46]MH_I2C_Read... [04:42:46]Read from MH i2c: E2 0E 00 [04:42:46]MH_I2C_Read... [04:42:46]Read from MH i2c: E2 0E 00 1E 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D9 [04:42:46]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [04:42:46]wFMCommunicate OK [04:42:46]SAM_PROTO_GetShiftState done [04:42:46]FM_GetShiftState done [04:42:46]opened in 1729642861 [04:42:46]opened+sec_in_day 1729729261 [04:42:46]quantity*price = 50041 [04:42:46]sum+1 = 50042 [04:42:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 13 23.10.2024 04:42 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103601 ФПД: 264927461783250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T044247&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103601&fm=264927461783250&tin=02508201610067®Number=0000000000091754&sum=50041 [04:42:47]StoreToDocumentArchive [04:42:47]shift 582 fd 103601 [04:42:47]save to /storage/0582/doc_00103601 [04:42:47]save last doc name /storage/0582/doc_00103601 to /storage/kkm_last_doc_name [04:42:47]save OK [04:42:47]Clear old archive folders... [04:42:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:42:47]tlvbuf is 002B6290 [04:42:47]SAM_PROTO_ClearQueue [04:42:47]wFMCommunicate request_size=4 [04:42:47]MH_SAM_APDU [04:42:47]CAPDU: 80 09 00 00 [04:42:47]Write to MH i2c: E2 08 00 2B 05 80 09 00 00 00 00 00 00 A2 [04:42:47]Write i2c OK [04:42:47]MH_I2C_Read... [04:42:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:42:47]Read from MH i2c: E2 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: E2 03 00 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: E2 03 00 2B 05 00 90 00 A4 [04:42:47]RAPDU: 90 00 [04:42:47]wFMCommunicate OK [04:42:47]SAM_PROTO_ClearQueue done [04:42:47]KKMCreateOFDPacket [04:42:47]OFDProtocolAddRootSTLVToBuf [04:42:47]FM_MakeSignedData [04:42:47]FM_MakeSignedData [04:42:47]SAM_PROTO_SignData [04:42:47]wFMCommunicate request_size=4 [04:42:47]MH_SAM_APDU [04:42:47]CAPDU: 80 0D 01 02 [04:42:47]Write to MH i2c: E2 08 00 2C 05 80 0D 01 02 00 00 00 00 AA [04:42:47]Write i2c OK [04:42:47]MH_I2C_Read... [04:42:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:42:47]Read from MH i2c: E2 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: E2 03 00 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: E2 03 00 2C 05 00 90 00 A5 [04:42:47]RAPDU: 90 00 [04:42:47]wFMCommunicate OK [04:42:47]wFMCommunicate request_size=255 [04:42:47]MH_SAM_APDU [04:42:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C7 7E 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B1 94 01 00 35 04 06 00 F0 [04:42:47]Write to MH i2c: E2 02 01 2D 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C7 7E 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B1 94 01 00 35 04 06 00 F0 00 00 D4 [04:42:47]Write i2c OK [04:42:47]MH_I2C_Read... [04:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:47]Read from MH i2c: E2 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: E2 03 00 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: E2 03 00 2D 05 00 90 00 A6 [04:42:47]RAPDU: 90 00 [04:42:47]wFMCommunicate OK [04:42:47]wFMCommunicate request_size=10 [04:42:47]MH_SAM_APDU [04:42:47]CAPDU: 80 0D 02 02 05 F3 3B 40 36 D2 [04:42:47]Write to MH i2c: E2 0D 00 2E 05 80 0D 02 02 05 00 F3 3B 40 36 D2 00 00 2D [04:42:47]Write i2c OK [04:42:47]MH_I2C_Read... [04:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:47]Read from MH i2c: E2 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: E2 03 00 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: E2 03 00 2E 05 00 90 00 A7 [04:42:47]RAPDU: 90 00 [04:42:47]wFMCommunicate OK [04:42:47]wFMCommunicate request_size=4 [04:42:47]MH_SAM_APDU [04:42:47]CAPDU: 80 0D 03 02 [04:42:47]Write to MH i2c: E2 08 00 2F 05 80 0D 03 02 00 00 00 00 AF [04:42:47]Write i2c OK [04:42:47]MH_I2C_Read... [04:42:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:42:47]Read from MH i2c: E2 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: E2 0B 00 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: E2 0B 00 2F 05 00 CE 29 D5 DD 62 32 1A 59 90 00 60 [04:42:47]RAPDU: CE 29 D5 DD 62 32 1A 59 90 00 [04:42:47]wFMCommunicate OK [04:42:47]SAM_PROTO_SignData done [04:42:47]FM_MakeSignedData done [04:42:47]CreateOFDProtocolMessage [04:42:47]wFMCommunicate request_size=4 [04:42:47]MH_SAM_APDU [04:42:47]CAPDU: 80 11 00 00 [04:42:47]Write to MH i2c: E2 08 00 30 05 80 11 00 00 00 00 00 00 AF [04:42:47]Write i2c OK [04:42:47]MH_I2C_Read... [04:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:42:47]Read from MH i2c: E2 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: E2 17 00 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: E2 17 00 30 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 FC [04:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [04:42:47]wFMCommunicate OK [04:42:47]CreateOFDProtocolMessage done [04:42:47]OFDSenderStorePacket 103601 [04:42:47]StoreOFDPacket docnum=103601 [04:42:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 1D F3 07 01 A0 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C7 7E 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B1 94 01 00 35 04 06 00 F0 F3 3B 40 36 D2 CE 29 D5 DD 62 32 1A 59 [04:42:47]CheckFolder [04:42:47]dirname=/storage/ofd_packets [04:42:47]CheckFolder done [04:42:47]ProducePacketName [04:42:47]name=ofd_packets/00103601 [04:42:47]NVStorageSaveData ofd_packets/00103601 [04:42:47]File name is /storage/ofd_packets/00103601 [04:42:47]Write 301 bytes [04:42:47]NVStorageSaveData done [04:42:47]OFDSenderStorePacket done [04:42:47]KKMCreateOFDPacket done [04:42:47]NVStorageSaveData kkm_last_timestamp [04:42:47]File name is /storage/kkm_last_timestamp [04:42:47]Write 4 bytes [04:42:47]NVStorageSaveData done [04:42:47]ExternCall_PrintAddStr [04:42:47]wPrintStart [04:42:47]Write to MH i2c: 01 00 00 31 05 36 [04:42:47]Write i2c OK [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: 01 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: 01 07 00 [04:42:47]MH_I2C_Read... [04:42:47]Read from MH i2c: 01 07 00 31 05 00 00 00 00 00 FF 0F 4B [04:42:47]RasterBufferAndPrint [04:42:47]line Счет N : (1)317801 [04:42:47]line ИНН: 02508201610067 [04:42:47]line Контрольно-Кассовый Чек [04:42:47]line ПРОДАЖА [04:42:47]line ТРК (МРК, ГНК) : 43 [04:42:47]line Товар: 2710124130 [04:42:47]line Аи-92-К-4 [04:42:47]line 7.480 * 66.90 [04:42:47]line = 500.41 [04:42:47]line НДС 12% НСП 1% [04:42:47]line > о реализуемом товаре [04:42:47]line ИТОГО: 500.41 [04:42:47]line НСП 1% : 4.43 [04:42:47]line НДС 12% : 53.14 [04:42:47]line Наличными: 0.00 [04:42:47]line Безнал.: 500.41 [04:42:47]line Место: АЗС № 145 "Партнер Нефть" [04:42:47]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [04:42:47]line СНО: Общий режим [04:42:47]line Чек 13 23.10.2024 04:42 [04:42:47]line Смена: 582 ФФД: 1.0 [04:42:47]line ЗНМ: 0300000095 [04:42:47]line РНМ: 0000000000091754 [04:42:47]line Версия ККМ: 001 [04:42:47]line Платежная система: АКБ Кыргызстан [04:42:47]line ФМ: 0000000000871811 [04:42:47]line ФД: 103601 [04:42:47]line ФПД: 264927461783250 [04:42:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T044247&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103601&fm=264927461783250&tin=02508201610067®Number=0000000000091754&sum=50041 [04:42:47]written 0, free lines is 4095 [04:42:47]OFD Sender: Processing packet 103601 [packets to send 498, broken 497] [04:42:47]ProducePacketName [04:42:47]name=ofd_packets/00103601 [04:42:47]OFD Sender: To server: pG, [04:42:47]CommunicateWithHost lk.salyk.kg:30040 [04:42:47]ConnectInit lk.salyk.kg [04:42:48]Write to MH i2c: 01 00 00 5A 05 5F [04:42:48]Write i2c OK [04:42:48]MH_I2C_Read... [04:42:48]Read from MH i2c: 01 [04:42:48]MH_I2C_Read... [04:42:48]Read from MH i2c: 01 07 00 [04:42:48]MH_I2C_Read... [04:42:48]Read from MH i2c: 01 07 00 5A 05 00 00 00 00 00 D0 0C 42 [04:42:48]RasterBufferAndPrint [04:42:48]line [04:42:48]line [04:42:48]line [04:42:48]line [04:42:48]line [04:42:48]written 0, free lines is 3284 [04:42:48]MH_Cut [04:42:48]Write to MH i2c: D1 01 00 61 05 01 38 [04:42:48]Write i2c OK [04:42:48]MH_I2C_Read... [04:42:48]Read from MH i2c: D1 [04:42:48]MH_I2C_Read... [04:42:48]Read from MH i2c: D1 01 00 [04:42:48]MH_I2C_Read... [04:42:48]Read from MH i2c: D1 01 00 61 05 00 37 [04:42:48]Write to MH i2c: 01 00 00 62 05 67 [04:42:48]Write i2c OK [04:42:48]MH_I2C_Read... [04:42:48]Connected sock=8 [04:42: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 31 31 0F 01 00 00 1D F3 07 01 A0 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C7 7E 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B1 94 01 00 35 04 06 00 F0 F3 3B 40 36 D2 CE 29 D5 DD 62 32 1A 59 [04:42:48]*** Cut start [04:42:48]*** Partial cut [04:42:48]*** CUTSNS_PIN = 1 [04:42:49]*** CUTSNS_PIN = 0 [04:42: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 31 31 4F 00 00 00 6A 3A 47 00 4F 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 31 31 10 04 04 00 B1 94 01 00 F4 03 04 00 DE 25 18 67 B6 04 01 00 00 FA AB E0 5D AB 0A 2C 4C [04:42:49]CommunicateWithHost err = 0 [04:42:49]CheckOFDResponse [04:42:49]1017 (14) - 77093643461234 [04:42:49]1041 (16) - 0000000000871811 [04:42:49]1040 (4) - 103601 [04:42:49]1012 (4) - 22.10.2024 22:23 [04:42:49]1206 (1) - 0 [04:42:49]OFD Sender: Remove packet 103601 [04:42:49]ProducePacketName [04:42:49]name=ofd_packets/00103601 [04:42:49]NVStorageDeleteData [04:42:49]*** Brake cut motor [04:42:49]Read from MH i2c: 01 [04:42:49]MH_I2C_Read... [04:42:49]*** Stop cut motor [04:42:49]*** Cut end [04:42:49]Read from MH i2c: 01 07 00 [04:42:49]MH_I2C_Read... [04:42:49]Read from MH i2c: 01 07 00 62 05 00 00 00 00 00 FF 0F 7C [04:42:49]process_action close_receipt done [04:42:49]requested_data is exist [04:42:49]produce_requested_data [04:42:49]requested_item fm.sn is exist - process it [04:42:49]wFMCommunicate request_size=4 [04:42:49]MH_SAM_APDU [04:42:49]CAPDU: 80 11 00 00 [04:42:49]Write to MH i2c: E2 08 00 63 05 80 11 00 00 00 00 00 00 E2 [04:42:49]Write i2c OK [04:42:49]MH_I2C_Read... [04:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:42:49]Read from MH i2c: E2 [04:42:49]MH_I2C_Read... [04:42:49]Read from MH i2c: E2 17 00 [04:42:49]MH_I2C_Read... [04:42:49]Read from MH i2c: E2 17 00 63 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 2F [04:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [04:42:49]wFMCommunicate OK [04:42:49]requested_item fd.num is exist - process it [04:42:49]SAM_PROTO_GetFieldsCounters [04:42:49]wFMCommunicate request_size=4 [04:42:49]MH_SAM_APDU [04:42:49]CAPDU: 80 13 00 00 [04:42:49]Write to MH i2c: E2 08 00 64 05 80 13 00 00 00 00 00 00 E5 [04:42:49]Write i2c OK [04:42:49]MH_I2C_Read... [04:42:49]OFD Sender: No OFD packet to send [04:42:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:42:49]Read from MH i2c: E2 [04:42:49]MH_I2C_Read... [04:42:49]Read from MH i2c: E2 62 00 [04:42:49]MH_I2C_Read... [04:42:49]Read from MH i2c: E2 62 00 64 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B1 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [04:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B1 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:42:49]wFMCommunicate OK [04:42:49]SAM_PROTO_GetFieldsCounters done [04:42:49]requested_item shift.num is exist - process it [04:42:49]requested_item shift.opened is exist - process it [04:42:49]req_shift_opened [04:42:49]FM_GetShiftState [04:42:49]SAM_PROTO_GetShiftState [04:42:49]wFMCommunicate request_size=4 [04:42:49]MH_SAM_APDU [04:42:49]CAPDU: 80 13 01 00 [04:42:49]Write to MH i2c: E2 08 00 65 05 80 13 01 00 00 00 00 00 E7 [04:42:49]Write i2c OK [04:42:49]MH_I2C_Read... [04:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:42:49]Read from MH i2c: E2 [04:42:49]MH_I2C_Read... [04:42:49]Read from MH i2c: E2 0E 00 [04:42:49]MH_I2C_Read... [04:42:49]Read from MH i2c: E2 0E 00 65 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 20 [04:42:49]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [04:42:49]wFMCommunicate OK [04:42:49]SAM_PROTO_GetShiftState done [04:42:49]FM_GetShiftState done [04:42:49]req_shift_opened done [04:42:49]requested_item shift.open_date is exist - process it [04:42:49]req_shift_open_date [04:42:49]req_shift_open_date done [04:42:49]produce_requested_data done [04:42:49]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103601,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [04:42:49]process_action_free close_receipt [04:42:49]json_value_free [04:42:49]json_value_free done [04:42:49]process_json_proto returns [04:42:49]Send response to host [04:42:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103601,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [04:42:49]free response buf [04:42:49]execute_script done [04:42:49]execute_script returns [04:42:49]free content buf [04:42:49]Sock 9.Close socket [04:42:49]Sock 9.Thread stoped [04:42:54]OFD Sender: No OFD packet to send [04:42:56]recv_with_timeout no data received [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:07]recv_with_timeout no data received [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:17]recv_with_timeout no data received [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:24]recv_with_timeout no data received [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]recv_with_timeout no data received [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:24]recv_with_timeout no data received [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:03]recv_with_timeout no data received [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]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:52:58]recv_with_timeout no data received [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:30]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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:49]recv_with_timeout no data received [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:27]recv_with_timeout no data received [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]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:44]recv_with_timeout no data received [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:19]recv_with_timeout no data received [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:40]recv_with_timeout no data received [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:40]recv_with_timeout no data received [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:40]recv_with_timeout no data received [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:10]recv_with_timeout no data received [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:27]recv_with_timeout no data received [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:06]recv_with_timeout no data received [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:41]recv_with_timeout no data received [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:18]recv_with_timeout no data received [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:31]recv_with_timeout no data received [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:30]recv_with_timeout no data received [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:04]recv_with_timeout no data received [05:26:05]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]recv_with_timeout no data received [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:45]recv_with_timeout no data received [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:08]recv_with_timeout no data received [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:00]recv_with_timeout no data received [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:31]recv_with_timeout no data received [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:34:57]recv_with_timeout no data received [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:20]recv_with_timeout no data received [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:01]recv_with_timeout no data received [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:19]recv_with_timeout no data received [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]recv_with_timeout no data received [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:16]recv_with_timeout no data received [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:32]recv_with_timeout no data received [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:37]recv_with_timeout no data received [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:17]recv_with_timeout no data received [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:31]recv_with_timeout no data received [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]recv_with_timeout no data received [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:07]recv_with_timeout no data received [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:48]recv_with_timeout no data received [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:38]recv_with_timeout no data received [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:37]recv_with_timeout no data received [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:13]recv_with_timeout no data received [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:42]recv_with_timeout no data received [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:44]recv_with_timeout no data received [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:55]recv_with_timeout no data received [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:51]recv_with_timeout no data received [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:45]recv_with_timeout no data received [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:20:59]recv_with_timeout no data received [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:22]recv_with_timeout no data received [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:45]recv_with_timeout no data received [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:38]recv_with_timeout no data received [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:57]recv_with_timeout no data received [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:15]recv_with_timeout no data received [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:47]recv_with_timeout no data received [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:14]accept exits with 10 [06:32:14]New connection [06:32:14]New thread 3067424100 created [06:32:14]Thread 3067280740 joined [06:32:14]Waiting for new connection... [06:32:14] Sock 10.Parse request [06:32:14]Sock 10.Check first char [06:32:14]Sock 10.First char is OK [06:32:14]request: POST /json_proto HTTP/1.0 [06:32:14]Method: POST [06:32:14]URL: /json_proto [06:32:14]Method is POST - this is cgi request [06:32:14]url: /json_proto [06:32:14]query_string will be loaded in cgi processing [06:32:14]execute_cgi json_proto POST (null) [06:32:14]execute_cgi path=json_proto method=POST [06:32:14]POST find Content-Length [06:32:14]Host: 172.17.51.67:8080 [06:32:14]Content-Length: 678 [06:32:14]Content-Type: application/json [06:32:14] [06:32:14]POST finish read [06:32:14]Found Content-Length = 678 [06:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 12.790, "sum" : 855.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 855.00, "total" : 855.00, "payments": [ { "type": 0, "sum" : 855.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:32:14]execute_script... [06:32:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 12.790, "sum" : 855.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 855.00, "total" : 855.00, "payments": [ { "type": 0, "sum" : 855.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:32:14]POST & json_proto [06:32:14]process_json_proto [06:32:14]json parsed OK: [06:32:14]protocol is kg_v1.0 [06:32:14]action value=close_receipt [06:32:14]process_action close_receipt [06:32:14]cmd_close_receipt [06:32:14]MH_GetDate [06:32:14]Write to MH i2c: F0 00 00 66 05 5A [06:32:14]Write i2c OK [06:32:14]MH_I2C_Read... [06:32:14]Read from MH i2c: F0 [06:32:14]MH_I2C_Read... [06:32:14]Read from MH i2c: F0 09 00 [06:32:14]MH_I2C_Read... [06:32:14]Read from MH i2c: F0 09 00 66 05 00 70 98 18 67 1E EF FA 64 55 [06:32:14]GetLastDocTimeStamp 1729658567 [06:32:14]current date 1729665136 [06:32:14]FM_GetShiftState [06:32:14]SAM_PROTO_GetShiftState [06:32:14]wFMCommunicate request_size=4 [06:32:14]MH_SAM_APDU [06:32:14]CAPDU: 80 13 01 00 [06:32:14]Write to MH i2c: E2 08 00 67 05 80 13 01 00 00 00 00 00 E9 [06:32:14]Write i2c OK [06:32:14]MH_I2C_Read... [06:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:14]Read from MH i2c: E2 [06:32:14]MH_I2C_Read... [06:32:14]Read from MH i2c: E2 0E 00 [06:32:14]MH_I2C_Read... [06:32:14]Read from MH i2c: E2 0E 00 67 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 22 [06:32:14]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [06:32:14]wFMCommunicate OK [06:32:14]SAM_PROTO_GetShiftState done [06:32:14]FM_GetShiftState done [06:32:14]opened in 1729642861 [06:32:14]opened+sec_in_day 1729729261 [06:32:14]quantity*price = 85565 [06:32:14]sum+1 = 85566 [06:32:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 855.00 Внесено: 855.00 СДАЧА: 0.00 НСП 1% : 7.57 НДС 12% : 90.86 Наличными: 855.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 14 23.10.2024 06:32 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103602 ФПД: 142893117556678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T063216&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103602&fm=142893117556678&tin=02508201610067®Number=0000000000091754&sum=85500 [06:32:16]StoreToDocumentArchive [06:32:16]shift 582 fd 103602 [06:32:16]save to /storage/0582/doc_00103602 [06:32:16]save last doc name /storage/0582/doc_00103602 to /storage/kkm_last_doc_name [06:32:16]save OK [06:32:16]Clear old archive folders... [06:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:32:16]tlvbuf is 002C9220 [06:32:16]SAM_PROTO_ClearQueue [06:32:16]wFMCommunicate request_size=4 [06:32:16]MH_SAM_APDU [06:32:16]CAPDU: 80 09 00 00 [06:32:16]Write to MH i2c: E2 08 00 74 05 80 09 00 00 00 00 00 00 EB [06:32:16]Write i2c OK [06:32:16]MH_I2C_Read... [06:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:32:16]Read from MH i2c: E2 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 03 00 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 03 00 74 05 00 90 00 ED [06:32:16]RAPDU: 90 00 [06:32:16]wFMCommunicate OK [06:32:16]SAM_PROTO_ClearQueue done [06:32:16]KKMCreateOFDPacket [06:32:16]OFDProtocolAddRootSTLVToBuf [06:32:16]FM_MakeSignedData [06:32:16]FM_MakeSignedData [06:32:16]SAM_PROTO_SignData [06:32:16]wFMCommunicate request_size=4 [06:32:16]MH_SAM_APDU [06:32:16]CAPDU: 80 0D 01 02 [06:32:16]Write to MH i2c: E2 08 00 75 05 80 0D 01 02 00 00 00 00 F3 [06:32:16]Write i2c OK [06:32:16]MH_I2C_Read... [06:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:32:16]Read from MH i2c: E2 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 03 00 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 03 00 75 05 00 90 00 EE [06:32:16]RAPDU: 90 00 [06:32:16]wFMCommunicate OK [06:32:16]wFMCommunicate request_size=255 [06:32:16]MH_SAM_APDU [06:32: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 F6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 70 98 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B2 94 01 00 35 04 06 00 81 [06:32:16]Write to MH i2c: E2 02 01 76 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 70 98 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B2 94 01 00 35 04 06 00 81 00 00 B7 [06:32:16]Write i2c OK [06:32:16]MH_I2C_Read... [06:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:16]Read from MH i2c: E2 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 03 00 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 03 00 76 05 00 90 00 EF [06:32:16]RAPDU: 90 00 [06:32:16]wFMCommunicate OK [06:32:16]wFMCommunicate request_size=10 [06:32:16]MH_SAM_APDU [06:32:16]CAPDU: 80 0D 02 02 05 F5 E5 83 47 C6 [06:32:16]Write to MH i2c: E2 0D 00 77 05 80 0D 02 02 05 00 F5 E5 83 47 C6 00 00 6A [06:32:16]Write i2c OK [06:32:16]MH_I2C_Read... [06:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:16]Read from MH i2c: E2 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 03 00 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 03 00 77 05 00 90 00 F0 [06:32:16]RAPDU: 90 00 [06:32:16]wFMCommunicate OK [06:32:16]wFMCommunicate request_size=4 [06:32:16]MH_SAM_APDU [06:32:16]CAPDU: 80 0D 03 02 [06:32:16]Write to MH i2c: E2 08 00 78 05 80 0D 03 02 00 00 00 00 F8 [06:32:16]Write i2c OK [06:32:16]MH_I2C_Read... [06:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:32:16]Read from MH i2c: E2 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 0B 00 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 0B 00 78 05 00 EE 5F 80 6C DE 58 8C 6F 90 00 63 [06:32:16]RAPDU: EE 5F 80 6C DE 58 8C 6F 90 00 [06:32:16]wFMCommunicate OK [06:32:16]SAM_PROTO_SignData done [06:32:16]FM_MakeSignedData done [06:32:16]CreateOFDProtocolMessage [06:32:16]wFMCommunicate request_size=4 [06:32:16]MH_SAM_APDU [06:32:16]CAPDU: 80 11 00 00 [06:32:16]Write to MH i2c: E2 08 00 79 05 80 11 00 00 00 00 00 00 F8 [06:32:16]Write i2c OK [06:32:16]MH_I2C_Read... [06:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:16]Read from MH i2c: E2 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 17 00 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 17 00 79 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 45 [06:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [06:32:16]wFMCommunicate OK [06:32:16]CreateOFDProtocolMessage done [06:32:16]OFDSenderStorePacket 103602 [06:32:16]StoreOFDPacket docnum=103602 [06:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 9C 2E 07 01 AD CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 70 98 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B2 94 01 00 35 04 06 00 81 F5 E5 83 47 C6 EE 5F 80 6C DE 58 8C 6F [06:32:16]CheckFolder [06:32:16]dirname=/storage/ofd_packets [06:32:16]CheckFolder done [06:32:16]ProducePacketName [06:32:16]name=ofd_packets/00103602 [06:32:16]NVStorageSaveData ofd_packets/00103602 [06:32:16]File name is /storage/ofd_packets/00103602 [06:32:16]Write 301 bytes [06:32:16]NVStorageSaveData done [06:32:16]OFDSenderStorePacket done [06:32:16]KKMCreateOFDPacket done [06:32:16]NVStorageSaveData kkm_last_timestamp [06:32:16]File name is /storage/kkm_last_timestamp [06:32:16]Write 4 bytes [06:32:16]NVStorageSaveData done [06:32:16]ExternCall_PrintAddStr [06:32:16]wPrintStart [06:32:16]Write to MH i2c: 01 00 00 7A 05 7F [06:32:16]Write i2c OK [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: 01 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: 01 07 00 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: 01 07 00 7A 05 00 00 00 00 00 FF 0F 94 [06:32:16]RasterBufferAndPrint [06:32:16]line Счет N : (1)317802 [06:32:16]line ИНН: 02508201610067 [06:32:16]line Контрольно-Кассовый Чек [06:32:16]line ПРОДАЖА [06:32:16]line ТРК (МРК, ГНК) : 33 [06:32:16]line Товар: 2710124130 [06:32:16]line Аи-92-К-4 [06:32:16]line 12.790 * 66.90 [06:32:16]line = 855.65 [06:32:16]line НДС 12% НСП 1% [06:32:16]line > о реализуемом товаре [06:32:16]line ОКРУГЛЕНИЕ: -0.65 [06:32:16]line ИТОГО: 855.00 [06:32:16]line Внесено: 855.00 [06:32:16]line СДАЧА: 0.00 [06:32:16]line НСП 1% : 7.57 [06:32:16]line НДС 12% : 90.86 [06:32:16]line Наличными: 855.00 [06:32:16]line Безнал.: 0.00 [06:32:16]line Место: АЗС № 145 "Партнер Нефть" [06:32:16]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [06:32:16]line СНО: Общий режим [06:32:16]line Чек 14 23.10.2024 06:32 [06:32:16]line Смена: 582 ФФД: 1.0 [06:32:16]line ЗНМ: 0300000095 [06:32:16]line РНМ: 0000000000091754 [06:32:16]line Версия ККМ: 001 [06:32:16]line ФМ: 0000000000871811 [06:32:16]line ФД: 103602 [06:32:16]line ФПД: 142893117556678 [06:32:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T063216&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103602&fm=142893117556678&tin=02508201610067®Number=0000000000091754&sum=85500 [06:32:16]written 0, free lines is 4095 [06:32:16]OFD Sender: Processing packet 103602 [packets to send 498, broken 497] [06:32:16]ProducePacketName [06:32:16]name=ofd_packets/00103602 [06:32:16]OFD Sender: To server: pG, [06:32:16]CommunicateWithHost lk.salyk.kg:30040 [06:32:16]ConnectInit lk.salyk.kg [06:32:17]Write to MH i2c: 01 00 00 A4 05 A9 [06:32:17]Write i2c OK [06:32:17]MH_I2C_Read... [06:32:17]Read from MH i2c: 01 [06:32:17]MH_I2C_Read... [06:32:17]Read from MH i2c: 01 07 00 [06:32:17]MH_I2C_Read... [06:32:17]Read from MH i2c: 01 07 00 A4 05 00 00 00 00 00 D0 0C 8C [06:32:17]RasterBufferAndPrint [06:32:17]line [06:32:17]line [06:32:17]line [06:32:17]line [06:32:17]line [06:32:17]written 0, free lines is 3287 [06:32:17]MH_Cut [06:32:17]Write to MH i2c: D1 01 00 AB 05 01 82 [06:32:17]Write i2c OK [06:32:17]MH_I2C_Read... [06:32:17]Read from MH i2c: D1 [06:32:17]MH_I2C_Read... [06:32:17]Read from MH i2c: D1 01 00 [06:32:17]MH_I2C_Read... [06:32:17]Read from MH i2c: D1 01 00 AB 05 00 81 [06:32:17]Write to MH i2c: 01 00 00 AC 05 B1 [06:32:17]Write i2c OK [06:32:17]MH_I2C_Read... [06:32:17]Connected sock=9 [06:32: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 31 31 0F 01 00 00 9C 2E 07 01 AD CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 70 98 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B2 94 01 00 35 04 06 00 81 F5 E5 83 47 C6 EE 5F 80 6C DE 58 8C 6F [06:32:18]*** Cut start [06:32:18]*** Partial cut [06:32:18]*** CUTSNS_PIN = 1 [06:32:18]*** CUTSNS_PIN = 0 [06:32:18]*** Brake cut motor [06:32:18]Read from MH i2c: 01 [06:32:18]MH_I2C_Read... [06:32:18]*** Stop cut motor [06:32:18]*** Cut end [06:32:18]Read from MH i2c: 01 07 00 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: 01 07 00 AC 05 00 00 00 00 00 FF 0F C6 [06:32:18]process_action close_receipt done [06:32:18]requested_data is exist [06:32:18]produce_requested_data [06:32:18]requested_item fm.sn is exist - process it [06:32:18]wFMCommunicate request_size=4 [06:32:18]MH_SAM_APDU [06:32:18]CAPDU: 80 11 00 00 [06:32:18]Write to MH i2c: E2 08 00 AD 05 80 11 00 00 00 00 00 00 2C [06:32:18]Write i2c OK [06:32:18]MH_I2C_Read... [06:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:18]Read from MH i2c: E2 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: E2 17 00 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: E2 17 00 AD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 79 [06:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [06:32:18]wFMCommunicate OK [06:32:18]requested_item fd.num is exist - process it [06:32:18]SAM_PROTO_GetFieldsCounters [06:32:18]wFMCommunicate request_size=4 [06:32:18]MH_SAM_APDU [06:32:18]CAPDU: 80 13 00 00 [06:32:18]Write to MH i2c: E2 08 00 AE 05 80 13 00 00 00 00 00 00 2F [06:32:18]Write i2c OK [06:32:18]MH_I2C_Read... [06:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:32:19]Read from MH i2c: E2 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 62 00 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 62 00 AE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B2 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [06:32:19]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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B2 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:32:19]wFMCommunicate OK [06:32:19]SAM_PROTO_GetFieldsCounters done [06:32:19]requested_item shift.num is exist - process it [06:32:19]requested_item shift.opened is exist - process it [06:32:19]req_shift_opened [06:32:19]FM_GetShiftState [06:32:19]SAM_PROTO_GetShiftState [06:32:19]wFMCommunicate request_size=4 [06:32:19]MH_SAM_APDU [06:32:19]CAPDU: 80 13 01 00 [06:32:19]Write to MH i2c: E2 08 00 AF 05 80 13 01 00 00 00 00 00 31 [06:32:19]Write i2c OK [06:32:19]MH_I2C_Read... [06:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:19]Read from MH i2c: E2 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 0E 00 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 0E 00 AF 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 6A [06:32:19]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [06:32:19]wFMCommunicate OK [06:32:19]SAM_PROTO_GetShiftState done [06:32:19]FM_GetShiftState done [06:32:19]req_shift_opened done [06:32:19]requested_item shift.open_date is exist - process it [06:32:19]req_shift_open_date [06:32:19]req_shift_open_date done [06:32:19]produce_requested_data done [06:32:19]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103602,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [06:32:19]process_action_free close_receipt [06:32:19]json_value_free [06:32:19]json_value_free done [06:32:19]process_json_proto returns [06:32:19]Send response to host [06:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103602,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [06:32:19]free response buf [06:32:19]execute_script done [06:32:19]execute_script returns [06:32:19]free content buf [06:32:19]Sock 10.Close socket [06:32:19]Sock 10.Thread stoped [06:32:22]recv_with_timeout no data received [06:32:22]CommunicateWithHost answer receiving error [06:32:22]CommunicateWithHost err = -3 [06:32:22]OFD Sender: Server communicate error [06:32:27]OFD Sender: Processing packet 103602 [packets to send 498, broken 497] [06:32:27]ProducePacketName [06:32:27]name=ofd_packets/00103602 [06:32:27]OFD Sender: To server: pG, [06:32:27]CommunicateWithHost lk.salyk.kg:30040 [06:32:27]ConnectInit lk.salyk.kg [06:32:29]Connected sock=9 [06:32: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 31 31 0F 01 00 00 9C 2E 07 01 AD CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 70 98 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B2 94 01 00 35 04 06 00 81 F5 E5 83 47 C6 EE 5F 80 6C DE 58 8C 6F [06:32: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 31 31 4F 00 00 00 51 80 47 00 37 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 31 31 10 04 04 00 B2 94 01 00 F4 03 04 00 93 3F 18 67 B6 04 01 00 00 8C 2F 8A 97 8B EC 72 0F [06:32:30]CommunicateWithHost err = 0 [06:32:30]CheckOFDResponse [06:32:30]1017 (14) - 77093643461234 [06:32:30]1041 (16) - 0000000000871811 [06:32:30]1040 (4) - 103602 [06:32:30]1012 (4) - 23.10.2024 00:13 [06:32:30]1206 (1) - 0 [06:32:30]OFD Sender: Remove packet 103602 [06:32:30]ProducePacketName [06:32:30]name=ofd_packets/00103602 [06:32:30]NVStorageDeleteData [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:47]recv_with_timeout no data received [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:23]recv_with_timeout no data received [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:54]recv_with_timeout no data received [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]recv_with_timeout no data received [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:35]recv_with_timeout no data received [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:49]recv_with_timeout no data received [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:37]recv_with_timeout no data received [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:17]recv_with_timeout no data received [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:08]recv_with_timeout no data received [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:37]recv_with_timeout no data received [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:31]recv_with_timeout no data received [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:42]recv_with_timeout no data received [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:42]recv_with_timeout no data received [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:00]recv_with_timeout no data received [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:50]accept exits with 8 [07:00:50]New connection [07:00:50]New thread 3067280740 created [07:00:50]Thread 3067424100 joined [07:00:50]Waiting for new connection... [07:00:50] Sock 8.Parse request [07:00:50]Sock 8.Check first char [07:00:50]Sock 8.First char is OK [07:00:50]request: POST /json_proto HTTP/1.0 [07:00:50]Method: POST [07:00:50]URL: /json_proto [07:00:50]Method is POST - this is cgi request [07:00:50]url: /json_proto [07:00:50]query_string will be loaded in cgi processing [07:00:50]execute_cgi json_proto POST (null) [07:00:50]execute_cgi path=json_proto method=POST [07:00:50]POST find Content-Length [07:00:50]Host: 172.17.51.67:8080 [07:00:50]Content-Length: 677 [07:00:50]Content-Type: application/json [07:00:50] [07:00:50]POST finish read [07:00:50]Found Content-Length = 677 [07:00:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:00:50]execute_script... [07:00:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:00:50]POST & json_proto [07:00:50]process_json_proto [07:00:50]json parsed OK: [07:00:50]protocol is kg_v1.0 [07:00:50]action value=close_receipt [07:00:50]process_action close_receipt [07:00:50]cmd_close_receipt [07:00:50]MH_GetDate [07:00:50]Write to MH i2c: F0 00 00 B0 05 A4 [07:00:50]Write i2c OK [07:00:50]MH_I2C_Read... [07:00:50]Read from MH i2c: F0 [07:00:50]MH_I2C_Read... [07:00:50]Read from MH i2c: F0 09 00 [07:00:50]MH_I2C_Read... [07:00:50]Read from MH i2c: F0 09 00 B0 05 00 23 9F 18 67 1E EF FA 64 59 [07:00:50]GetLastDocTimeStamp 1729665136 [07:00:50]current date 1729666851 [07:00:50]FM_GetShiftState [07:00:50]SAM_PROTO_GetShiftState [07:00:50]wFMCommunicate request_size=4 [07:00:50]MH_SAM_APDU [07:00:50]CAPDU: 80 13 01 00 [07:00:50]Write to MH i2c: E2 08 00 B1 05 80 13 01 00 00 00 00 00 33 [07:00:50]Write i2c OK [07:00:50]MH_I2C_Read... [07:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:50]Read from MH i2c: E2 [07:00:50]MH_I2C_Read... [07:00:50]Read from MH i2c: E2 0E 00 [07:00:50]MH_I2C_Read... [07:00:50]Read from MH i2c: E2 0E 00 B1 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 6C [07:00:50]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:00:50]wFMCommunicate OK [07:00:50]SAM_PROTO_GetShiftState done [07:00:50]FM_GetShiftState done [07:00:50]opened in 1729642861 [07:00:50]opened+sec_in_day 1729729261 [07:00:50]quantity*price = 32045 [07:00:50]sum+1 = 32046 [07:00:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 15 23.10.2024 07:00 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103603 ФПД: 120927590881644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T070051&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103603&fm=120927590881644&tin=02508201610067®Number=0000000000091754&sum=32000 [07:00:51]StoreToDocumentArchive [07:00:51]shift 582 fd 103603 [07:00:51]save to /storage/0582/doc_00103603 [07:00:51]save last doc name /storage/0582/doc_00103603 to /storage/kkm_last_doc_name [07:00:51]save OK [07:00:51]Clear old archive folders... [07:00:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:00:51]tlvbuf is 002C7720 [07:00:51]SAM_PROTO_ClearQueue [07:00:51]wFMCommunicate request_size=4 [07:00:51]MH_SAM_APDU [07:00:51]CAPDU: 80 09 00 00 [07:00:51]Write to MH i2c: E2 08 00 BE 05 80 09 00 00 00 00 00 00 35 [07:00:51]Write i2c OK [07:00:51]MH_I2C_Read... [07:00:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:00:51]Read from MH i2c: E2 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: E2 03 00 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: E2 03 00 BE 05 00 90 00 37 [07:00:51]RAPDU: 90 00 [07:00:51]wFMCommunicate OK [07:00:51]SAM_PROTO_ClearQueue done [07:00:51]KKMCreateOFDPacket [07:00:51]OFDProtocolAddRootSTLVToBuf [07:00:51]FM_MakeSignedData [07:00:51]FM_MakeSignedData [07:00:51]SAM_PROTO_SignData [07:00:51]wFMCommunicate request_size=4 [07:00:51]MH_SAM_APDU [07:00:51]CAPDU: 80 0D 01 02 [07:00:51]Write to MH i2c: E2 08 00 BF 05 80 0D 01 02 00 00 00 00 3D [07:00:51]Write i2c OK [07:00:51]MH_I2C_Read... [07:00:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:00:51]Read from MH i2c: E2 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: E2 03 00 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: E2 03 00 BF 05 00 90 00 38 [07:00:51]RAPDU: 90 00 [07:00:51]wFMCommunicate OK [07:00:51]wFMCommunicate request_size=255 [07:00:51]MH_SAM_APDU [07:00:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 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 4B 0D 00 00 00 00 07 04 06 00 00 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 0F 00 00 00 F4 03 04 00 23 9F 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B3 94 01 00 35 04 06 00 6D [07:00:51]Write to MH i2c: E2 02 01 C0 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 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 4B 0D 00 00 00 00 07 04 06 00 00 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 0F 00 00 00 F4 03 04 00 23 9F 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B3 94 01 00 35 04 06 00 6D 00 00 AB [07:00:51]Write i2c OK [07:00:51]MH_I2C_Read... [07:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:51]Read from MH i2c: E2 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: E2 03 00 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: E2 03 00 C0 05 00 90 00 39 [07:00:51]RAPDU: 90 00 [07:00:51]wFMCommunicate OK [07:00:51]wFMCommunicate request_size=10 [07:00:51]MH_SAM_APDU [07:00:51]CAPDU: 80 0D 02 02 05 FB A6 19 19 6C [07:00:51]Write to MH i2c: E2 0D 00 C1 05 80 0D 02 02 05 00 FB A6 19 19 6C 00 00 89 [07:00:51]Write i2c OK [07:00:51]MH_I2C_Read... [07:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:51]Read from MH i2c: E2 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: E2 03 00 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: E2 03 00 C1 05 00 90 00 3A [07:00:51]RAPDU: 90 00 [07:00:51]wFMCommunicate OK [07:00:51]wFMCommunicate request_size=4 [07:00:51]MH_SAM_APDU [07:00:51]CAPDU: 80 0D 03 02 [07:00:51]Write to MH i2c: E2 08 00 C2 05 80 0D 03 02 00 00 00 00 42 [07:00:51]Write i2c OK [07:00:51]MH_I2C_Read... [07:00:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:00:51]Read from MH i2c: E2 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: E2 0B 00 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: E2 0B 00 C2 05 00 8A EB 47 BE 7B F3 CF A5 90 00 9F [07:00:51]RAPDU: 8A EB 47 BE 7B F3 CF A5 90 00 [07:00:51]wFMCommunicate OK [07:00:51]SAM_PROTO_SignData done [07:00:51]FM_MakeSignedData done [07:00:51]CreateOFDProtocolMessage [07:00:51]wFMCommunicate request_size=4 [07:00:51]MH_SAM_APDU [07:00:51]CAPDU: 80 11 00 00 [07:00:51]Write to MH i2c: E2 08 00 C3 05 80 11 00 00 00 00 00 00 42 [07:00:51]Write i2c OK [07:00:51]MH_I2C_Read... [07:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:51]Read from MH i2c: E2 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: E2 17 00 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: E2 17 00 C3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 8F [07:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:00:51]wFMCommunicate OK [07:00:51]CreateOFDProtocolMessage done [07:00:51]OFDSenderStorePacket 103603 [07:00:51]StoreOFDPacket docnum=103603 [07:00:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 78 66 07 01 27 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 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 4B 0D 00 00 00 00 07 04 06 00 00 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 0F 00 00 00 F4 03 04 00 23 9F 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B3 94 01 00 35 04 06 00 6D FB A6 19 19 6C 8A EB 47 BE 7B F3 CF A5 [07:00:51]CheckFolder [07:00:51]dirname=/storage/ofd_packets [07:00:51]CheckFolder done [07:00:51]ProducePacketName [07:00:51]name=ofd_packets/00103603 [07:00:51]NVStorageSaveData ofd_packets/00103603 [07:00:51]File name is /storage/ofd_packets/00103603 [07:00:51]Write 301 bytes [07:00:51]NVStorageSaveData done [07:00:51]OFDSenderStorePacket done [07:00:51]KKMCreateOFDPacket done [07:00:51]NVStorageSaveData kkm_last_timestamp [07:00:51]File name is /storage/kkm_last_timestamp [07:00:51]Write 4 bytes [07:00:51]NVStorageSaveData done [07:00:51]ExternCall_PrintAddStr [07:00:51]wPrintStart [07:00:51]Write to MH i2c: 01 00 00 C4 05 C9 [07:00:51]Write i2c OK [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: 01 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: 01 07 00 [07:00:51]MH_I2C_Read... [07:00:51]Read from MH i2c: 01 07 00 C4 05 00 00 00 00 00 FF 0F DE [07:00:51]RasterBufferAndPrint [07:00:51]line Счет N : (1)317803 [07:00:51]line ИНН: 02508201610067 [07:00:51]line Контрольно-Кассовый Чек [07:00:51]line ПРОДАЖА [07:00:51]line ТРК (МРК, ГНК) : 53 [07:00:51]line Товар: 2710124130 [07:00:51]line Аи-92-К-4 [07:00:51]line 4.790 * 66.90 [07:00:51]line = 320.45 [07:00:51]line НДС 12% НСП 1% [07:00:51]line > о реализуемом товаре [07:00:51]line ОКРУГЛЕНИЕ: -0.45 [07:00:51]line ИТОГО: 320.00 [07:00:51]line Внесено: 320.00 [07:00:51]line СДАЧА: 0.00 [07:00:51]line НСП 1% : 2.84 [07:00:51]line НДС 12% : 34.03 [07:00:51]line Наличными: 320.00 [07:00:51]line Безнал.: 0.00 [07:00:51]line Место: АЗС № 145 "Партнер Нефть" [07:00:51]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [07:00:51]line СНО: Общий режим [07:00:51]line Чек 15 23.10.2024 07:00 [07:00:51]line Смена: 582 ФФД: 1.0 [07:00:51]line ЗНМ: 0300000095 [07:00:51]line РНМ: 0000000000091754 [07:00:51]line Версия ККМ: 001 [07:00:51]line ФМ: 0000000000871811 [07:00:51]line ФД: 103603 [07:00:51]line ФПД: 120927590881644 [07:00:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T070051&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103603&fm=120927590881644&tin=02508201610067®Number=0000000000091754&sum=32000 [07:00:51]written 0, free lines is 4095 [07:00:51]OFD Sender: Processing packet 103603 [packets to send 498, broken 497] [07:00:51]ProducePacketName [07:00:51]name=ofd_packets/00103603 [07:00:51]OFD Sender: To server: pG, [07:00:51]CommunicateWithHost lk.salyk.kg:30040 [07:00:51]ConnectInit lk.salyk.kg [07:00:52]Write to MH i2c: 01 00 00 EE 05 F3 [07:00:52]Write i2c OK [07:00:52]MH_I2C_Read... [07:00:52]Read from MH i2c: 01 [07:00:52]MH_I2C_Read... [07:00:52]Read from MH i2c: 01 07 00 [07:00:52]MH_I2C_Read... [07:00:52]Read from MH i2c: 01 07 00 EE 05 00 00 00 00 00 C8 0C CE [07:00:52]RasterBufferAndPrint [07:00:52]line [07:00:52]line [07:00:52]line [07:00:52]line [07:00:52]line [07:00:52]written 0, free lines is 3279 [07:00:52]MH_Cut [07:00:52]Write to MH i2c: D1 01 00 F5 05 01 CC [07:00:52]Write i2c OK [07:00:52]MH_I2C_Read... [07:00:52]Read from MH i2c: D1 [07:00:52]MH_I2C_Read... [07:00:52]Read from MH i2c: D1 01 00 [07:00:52]MH_I2C_Read... [07:00:52]Read from MH i2c: D1 01 00 F5 05 00 CB [07:00:52]Write to MH i2c: 01 00 00 F6 05 FB [07:00:52]Write i2c OK [07:00:52]MH_I2C_Read... [07:00:52]Connected sock=9 [07:00: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 31 31 0F 01 00 00 78 66 07 01 27 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 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 4B 0D 00 00 00 00 07 04 06 00 00 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 0F 00 00 00 F4 03 04 00 23 9F 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B3 94 01 00 35 04 06 00 6D FB A6 19 19 6C 8A EB 47 BE 7B F3 CF A5 [07:00: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 31 31 4F 00 00 00 09 0C 47 00 F1 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 31 31 10 04 04 00 B3 94 01 00 F4 03 04 00 3A 46 18 67 B6 04 01 00 00 2F C1 1F 28 29 A3 55 15 [07:00:52]CommunicateWithHost err = 0 [07:00:52]CheckOFDResponse [07:00:52]1017 (14) - 77093643461234 [07:00:52]1041 (16) - 0000000000871811 [07:00:52]1040 (4) - 103603 [07:00:52]1012 (4) - 23.10.2024 00:41 [07:00:52]1206 (1) - 0 [07:00:52]OFD Sender: Remove packet 103603 [07:00:52]ProducePacketName [07:00:52]name=ofd_packets/00103603 [07:00:52]NVStorageDeleteData [07:00:53]*** Cut start [07:00:53]*** Partial cut [07:00:53]*** CUTSNS_PIN = 1 [07:00:53]*** CUTSNS_PIN = 0 [07:00:53]OFD Sender: No OFD packet to send [07:00:53]*** Brake cut motor [07:00:53]Read from MH i2c: 01 [07:00:53]MH_I2C_Read... [07:00:53]*** Stop cut motor [07:00:53]*** Cut end [07:00:53]Read from MH i2c: 01 07 00 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: 01 07 00 F6 05 00 00 00 00 00 FF 0F 10 [07:00:53]process_action close_receipt done [07:00:53]requested_data is exist [07:00:53]produce_requested_data [07:00:53]requested_item fm.sn is exist - process it [07:00:53]wFMCommunicate request_size=4 [07:00:53]MH_SAM_APDU [07:00:53]CAPDU: 80 11 00 00 [07:00:53]Write to MH i2c: E2 08 00 F7 05 80 11 00 00 00 00 00 00 76 [07:00:53]Write i2c OK [07:00:53]MH_I2C_Read... [07:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:53]Read from MH i2c: E2 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: E2 17 00 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: E2 17 00 F7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 C3 [07:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:00:53]wFMCommunicate OK [07:00:53]requested_item fd.num is exist - process it [07:00:53]SAM_PROTO_GetFieldsCounters [07:00:53]wFMCommunicate request_size=4 [07:00:53]MH_SAM_APDU [07:00:53]CAPDU: 80 13 00 00 [07:00:53]Write to MH i2c: E2 08 00 F8 05 80 13 00 00 00 00 00 00 79 [07:00:53]Write i2c OK [07:00:53]MH_I2C_Read... [07:00:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:00:53]Read from MH i2c: E2 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: E2 62 00 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: E2 62 00 F8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B3 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [07:00: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B3 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:00:53]wFMCommunicate OK [07:00:53]SAM_PROTO_GetFieldsCounters done [07:00:53]requested_item shift.num is exist - process it [07:00:53]requested_item shift.opened is exist - process it [07:00:53]req_shift_opened [07:00:53]FM_GetShiftState [07:00:53]SAM_PROTO_GetShiftState [07:00:53]wFMCommunicate request_size=4 [07:00:53]MH_SAM_APDU [07:00:53]CAPDU: 80 13 01 00 [07:00:53]Write to MH i2c: E2 08 00 F9 05 80 13 01 00 00 00 00 00 7B [07:00:53]Write i2c OK [07:00:53]MH_I2C_Read... [07:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:53]Read from MH i2c: E2 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: E2 0E 00 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: E2 0E 00 F9 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B4 [07:00:53]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:00:53]wFMCommunicate OK [07:00:53]SAM_PROTO_GetShiftState done [07:00:53]FM_GetShiftState done [07:00:53]req_shift_opened done [07:00:53]requested_item shift.open_date is exist - process it [07:00:53]req_shift_open_date [07:00:53]req_shift_open_date done [07:00:53]produce_requested_data done [07:00:53]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103603,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [07:00:53]process_action_free close_receipt [07:00:53]json_value_free [07:00:53]json_value_free done [07:00:53]process_json_proto returns [07:00:53]Send response to host [07:00:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103603,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [07:00:53]free response buf [07:00:53]execute_script done [07:00:53]execute_script returns [07:00:53]free content buf [07:00:53]Sock 8.Close socket [07:00:53]Sock 8.Thread stoped [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:11]recv_with_timeout no data received [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:41]accept exits with 10 [07:01:41]New connection [07:01:41]New thread 3067424100 created [07:01:41]Thread 3067280740 joined [07:01:41]Waiting for new connection... [07:01:41] Sock 10.Parse request [07:01:41]Sock 10.Check first char [07:01:41]Sock 10.First char is OK [07:01:41]request: POST /json_proto HTTP/1.0 [07:01:41]Method: POST [07:01:41]URL: /json_proto [07:01:41]Method is POST - this is cgi request [07:01:41]url: /json_proto [07:01:41]query_string will be loaded in cgi processing [07:01:41]execute_cgi json_proto POST (null) [07:01:41]execute_cgi path=json_proto method=POST [07:01:41]POST find Content-Length [07:01:41]Host: 172.17.51.67:8080 [07:01:41]Content-Length: 677 [07:01:41]Content-Type: application/json [07:01:41] [07:01:41]POST finish read [07:01:41]Found Content-Length = 677 [07:01:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:41]execute_script... [07:01:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:41]POST & json_proto [07:01:41]process_json_proto [07:01:41]json parsed OK: [07:01:41]protocol is kg_v1.0 [07:01:41]action value=close_receipt [07:01:41]process_action close_receipt [07:01:41]cmd_close_receipt [07:01:41]MH_GetDate [07:01:41]Write to MH i2c: F0 00 00 FA 05 EE [07:01:41]Write i2c OK [07:01:41]MH_I2C_Read... [07:01:41]Read from MH i2c: F0 [07:01:41]MH_I2C_Read... [07:01:41]Read from MH i2c: F0 09 00 [07:01:41]MH_I2C_Read... [07:01:41]Read from MH i2c: F0 09 00 FA 05 00 57 9F 18 67 1E EF FA 64 D7 [07:01:41]GetLastDocTimeStamp 1729666851 [07:01:41]current date 1729666903 [07:01:41]FM_GetShiftState [07:01:41]SAM_PROTO_GetShiftState [07:01:41]wFMCommunicate request_size=4 [07:01:41]MH_SAM_APDU [07:01:41]CAPDU: 80 13 01 00 [07:01:41]Write to MH i2c: E2 08 00 FB 05 80 13 01 00 00 00 00 00 7D [07:01:41]Write i2c OK [07:01:41]MH_I2C_Read... [07:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:41]Read from MH i2c: E2 [07:01:41]MH_I2C_Read... [07:01:41]Read from MH i2c: E2 0E 00 [07:01:41]MH_I2C_Read... [07:01:41]Read from MH i2c: E2 0E 00 FB 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B6 [07:01:41]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:01:41]wFMCommunicate OK [07:01:41]SAM_PROTO_GetShiftState done [07:01:41]FM_GetShiftState done [07:01:41]opened in 1729642861 [07:01:41]opened+sec_in_day 1729729261 [07:01:41]quantity*price = 50041 [07:01:41]sum+1 = 50042 [07:01:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 16 23.10.2024 07:01 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103604 ФПД: 26397475567444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T070143&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103604&fm=26397475567444&tin=02508201610067®Number=0000000000091754&sum=50000 [07:01:43]StoreToDocumentArchive [07:01:43]shift 582 fd 103604 [07:01:43]save to /storage/0582/doc_00103604 [07:01:43]save last doc name /storage/0582/doc_00103604 to /storage/kkm_last_doc_name [07:01:43]save OK [07:01:43]Clear old archive folders... [07:01:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:01:43]tlvbuf is 002A0640 [07:01:43]SAM_PROTO_ClearQueue [07:01:43]wFMCommunicate request_size=4 [07:01:43]MH_SAM_APDU [07:01:43]CAPDU: 80 09 00 00 [07:01:43]Write to MH i2c: E2 08 00 08 06 80 09 00 00 00 00 00 00 80 [07:01:43]Write i2c OK [07:01:43]MH_I2C_Read... [07:01:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:43]Read from MH i2c: E2 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: E2 03 00 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: E2 03 00 08 06 00 90 00 82 [07:01:43]RAPDU: 90 00 [07:01:43]wFMCommunicate OK [07:01:43]SAM_PROTO_ClearQueue done [07:01:43]KKMCreateOFDPacket [07:01:43]OFDProtocolAddRootSTLVToBuf [07:01:43]FM_MakeSignedData [07:01:43]FM_MakeSignedData [07:01:43]SAM_PROTO_SignData [07:01:43]wFMCommunicate request_size=4 [07:01:43]MH_SAM_APDU [07:01:43]CAPDU: 80 0D 01 02 [07:01:43]Write to MH i2c: E2 08 00 09 06 80 0D 01 02 00 00 00 00 88 [07:01:43]Write i2c OK [07:01:43]MH_I2C_Read... [07:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:43]Read from MH i2c: E2 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: E2 03 00 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: E2 03 00 09 06 00 90 00 83 [07:01:43]RAPDU: 90 00 [07:01:43]wFMCommunicate OK [07:01:43]wFMCommunicate request_size=255 [07:01:43]MH_SAM_APDU [07:01: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 57 9F 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B4 94 01 00 35 04 06 00 18 [07:01:43]Write to MH i2c: E2 02 01 0A 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 57 9F 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B4 94 01 00 35 04 06 00 18 00 00 3F [07:01:43]Write i2c OK [07:01:43]MH_I2C_Read... [07:01:43]OFD Sender: No OFD packet to send [07:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:43]Read from MH i2c: E2 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: E2 03 00 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: E2 03 00 0A 06 00 90 00 84 [07:01:43]RAPDU: 90 00 [07:01:43]wFMCommunicate OK [07:01:43]wFMCommunicate request_size=10 [07:01:43]MH_SAM_APDU [07:01:43]CAPDU: 80 0D 02 02 05 02 24 27 77 54 [07:01:43]Write to MH i2c: E2 0D 00 0B 06 80 0D 02 02 05 00 02 24 27 77 54 00 00 AD [07:01:43]Write i2c OK [07:01:43]MH_I2C_Read... [07:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:43]Read from MH i2c: E2 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: E2 03 00 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: E2 03 00 0B 06 00 90 00 85 [07:01:43]RAPDU: 90 00 [07:01:43]wFMCommunicate OK [07:01:43]wFMCommunicate request_size=4 [07:01:43]MH_SAM_APDU [07:01:43]CAPDU: 80 0D 03 02 [07:01:43]Write to MH i2c: E2 08 00 0C 06 80 0D 03 02 00 00 00 00 8D [07:01:43]Write i2c OK [07:01:43]MH_I2C_Read... [07:01:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:43]Read from MH i2c: E2 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: E2 0B 00 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: E2 0B 00 0C 06 00 78 24 44 34 FE 50 7A 33 90 00 9D [07:01:43]RAPDU: 78 24 44 34 FE 50 7A 33 90 00 [07:01:43]wFMCommunicate OK [07:01:43]SAM_PROTO_SignData done [07:01:43]FM_MakeSignedData done [07:01:43]CreateOFDProtocolMessage [07:01:43]wFMCommunicate request_size=4 [07:01:43]MH_SAM_APDU [07:01:43]CAPDU: 80 11 00 00 [07:01:43]Write to MH i2c: E2 08 00 0D 06 80 11 00 00 00 00 00 00 8D [07:01:43]Write i2c OK [07:01:43]MH_I2C_Read... [07:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:43]Read from MH i2c: E2 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: E2 17 00 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: E2 17 00 0D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 DA [07:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:01:43]wFMCommunicate OK [07:01:43]CreateOFDProtocolMessage done [07:01:43]OFDSenderStorePacket 103604 [07:01:43]StoreOFDPacket docnum=103604 [07:01:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 BC E6 07 01 9A 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 57 9F 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B4 94 01 00 35 04 06 00 18 02 24 27 77 54 78 24 44 34 FE 50 7A 33 [07:01:43]CheckFolder [07:01:43]dirname=/storage/ofd_packets [07:01:43]CheckFolder done [07:01:43]ProducePacketName [07:01:43]name=ofd_packets/00103604 [07:01:43]NVStorageSaveData ofd_packets/00103604 [07:01:43]File name is /storage/ofd_packets/00103604 [07:01:43]Write 301 bytes [07:01:43]NVStorageSaveData done [07:01:43]OFDSenderStorePacket done [07:01:43]KKMCreateOFDPacket done [07:01:43]NVStorageSaveData kkm_last_timestamp [07:01:43]File name is /storage/kkm_last_timestamp [07:01:43]Write 4 bytes [07:01:43]NVStorageSaveData done [07:01:43]ExternCall_PrintAddStr [07:01:43]wPrintStart [07:01:43]Write to MH i2c: 01 00 00 0E 06 14 [07:01:43]Write i2c OK [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: 01 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: 01 07 00 [07:01:43]MH_I2C_Read... [07:01:43]Read from MH i2c: 01 07 00 0E 06 00 00 00 00 00 FF 0F 29 [07:01:43]RasterBufferAndPrint [07:01:43]line Счет N : (1)317804 [07:01:43]line ИНН: 02508201610067 [07:01:43]line Контрольно-Кассовый Чек [07:01:43]line ПРОДАЖА [07:01:43]line ТРК (МРК, ГНК) : 33 [07:01:43]line Товар: 2710124130 [07:01:43]line Аи-92-К-4 [07:01:43]line 7.480 * 66.90 [07:01:43]line = 500.41 [07:01:43]line НДС 12% НСП 1% [07:01:43]line > о реализуемом товаре [07:01:43]line ОКРУГЛЕНИЕ: -0.41 [07:01:43]line ИТОГО: 500.00 [07:01:43]line Внесено: 500.00 [07:01:43]line СДАЧА: 0.00 [07:01:43]line НСП 1% : 4.43 [07:01:43]line НДС 12% : 53.14 [07:01:43]line Наличными: 500.00 [07:01:43]line Безнал.: 0.00 [07:01:43]line Место: АЗС № 145 "Партнер Нефть" [07:01:43]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [07:01:43]line СНО: Общий режим [07:01:43]line Чек 16 23.10.2024 07:01 [07:01:43]line Смена: 582 ФФД: 1.0 [07:01:43]line ЗНМ: 0300000095 [07:01:43]line РНМ: 0000000000091754 [07:01:43]line Версия ККМ: 001 [07:01:43]line ФМ: 0000000000871811 [07:01:43]line ФД: 103604 [07:01:43]line ФПД: 26397475567444 [07:01:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T070143&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103604&fm=26397475567444&tin=02508201610067®Number=0000000000091754&sum=50000 [07:01:43]written 0, free lines is 4095 [07:01:43]OFD Sender: Processing packet 103604 [packets to send 498, broken 497] [07:01:43]ProducePacketName [07:01:43]name=ofd_packets/00103604 [07:01:43]OFD Sender: To server: pG, [07:01:43]CommunicateWithHost lk.salyk.kg:30040 [07:01:43]ConnectInit lk.salyk.kg [07:01:44]Write to MH i2c: 01 00 00 38 06 3E [07:01:44]Write i2c OK [07:01:44]MH_I2C_Read... [07:01:44]Read from MH i2c: 01 [07:01:44]MH_I2C_Read... [07:01:44]Read from MH i2c: 01 07 00 [07:01:44]MH_I2C_Read... [07:01:44]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 C6 0C 17 [07:01:44]RasterBufferAndPrint [07:01:44]line [07:01:44]line [07:01:44]line [07:01:44]line [07:01:44]line [07:01:44]written 0, free lines is 3276 [07:01:44]MH_Cut [07:01:44]Write to MH i2c: D1 01 00 3F 06 01 17 [07:01:44]Write i2c OK [07:01:44]MH_I2C_Read... [07:01:44]Read from MH i2c: D1 [07:01:44]MH_I2C_Read... [07:01:44]Read from MH i2c: D1 01 00 [07:01:44]MH_I2C_Read... [07:01:44]Read from MH i2c: D1 01 00 3F 06 00 16 [07:01:44]Write to MH i2c: 01 00 00 40 06 46 [07:01:44]Write i2c OK [07:01:44]MH_I2C_Read... [07:01:44]*** Cut start [07:01:44]*** Partial cut [07:01:44]*** CUTSNS_PIN = 1 [07:01:44]*** CUTSNS_PIN = 0 [07:01:45]*** Brake cut motor [07:01:45]Read from MH i2c: 01 [07:01:45]MH_I2C_Read... [07:01:45]*** Stop cut motor [07:01:45]*** Cut end [07:01:45]Read from MH i2c: 01 07 00 [07:01:45]MH_I2C_Read... [07:01:45]Read from MH i2c: 01 07 00 40 06 00 00 00 00 00 FF 0F 5B [07:01:45]process_action close_receipt done [07:01:45]requested_data is exist [07:01:45]produce_requested_data [07:01:45]requested_item fm.sn is exist - process it [07:01:45]wFMCommunicate request_size=4 [07:01:45]MH_SAM_APDU [07:01:45]CAPDU: 80 11 00 00 [07:01:45]Write to MH i2c: E2 08 00 41 06 80 11 00 00 00 00 00 00 C1 [07:01:45]Write i2c OK [07:01:45]MH_I2C_Read... [07:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:45]Read from MH i2c: E2 [07:01:45]MH_I2C_Read... [07:01:45]Read from MH i2c: E2 17 00 [07:01:45]MH_I2C_Read... [07:01:45]Read from MH i2c: E2 17 00 41 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 0E [07:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:01:45]wFMCommunicate OK [07:01:45]requested_item fd.num is exist - process it [07:01:45]SAM_PROTO_GetFieldsCounters [07:01:45]wFMCommunicate request_size=4 [07:01:45]MH_SAM_APDU [07:01:45]CAPDU: 80 13 00 00 [07:01:45]Write to MH i2c: E2 08 00 42 06 80 13 00 00 00 00 00 00 C4 [07:01:45]Write i2c OK [07:01:45]MH_I2C_Read... [07:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:45]Read from MH i2c: E2 [07:01:45]MH_I2C_Read... [07:01:45]Read from MH i2c: E2 62 00 [07:01:45]MH_I2C_Read... [07:01:45]Read from MH i2c: E2 62 00 42 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B4 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [07:01: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B4 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:01:45]wFMCommunicate OK [07:01:45]SAM_PROTO_GetFieldsCounters done [07:01:45]requested_item shift.num is exist - process it [07:01:45]requested_item shift.opened is exist - process it [07:01:45]req_shift_opened [07:01:45]FM_GetShiftState [07:01:45]SAM_PROTO_GetShiftState [07:01:45]wFMCommunicate request_size=4 [07:01:45]MH_SAM_APDU [07:01:45]CAPDU: 80 13 01 00 [07:01:45]Write to MH i2c: E2 08 00 43 06 80 13 01 00 00 00 00 00 C6 [07:01:45]Write i2c OK [07:01:45]MH_I2C_Read... [07:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:45]Read from MH i2c: E2 [07:01:45]MH_I2C_Read... [07:01:45]Read from MH i2c: E2 0E 00 [07:01:45]MH_I2C_Read... [07:01:45]Read from MH i2c: E2 0E 00 43 06 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 FF [07:01:45]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:01:45]wFMCommunicate OK [07:01:45]SAM_PROTO_GetShiftState done [07:01:45]FM_GetShiftState done [07:01:45]req_shift_opened done [07:01:45]requested_item shift.open_date is exist - process it [07:01:45]req_shift_open_date [07:01:45]req_shift_open_date done [07:01:45]produce_requested_data done [07:01:45]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103604,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [07:01:45]process_action_free close_receipt [07:01:45]json_value_free [07:01:45]json_value_free done [07:01:45]process_json_proto returns [07:01:45]Send response to host [07:01:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103604,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [07:01:45]free response buf [07:01:45]execute_script done [07:01:45]execute_script returns [07:01:45]free content buf [07:01:45]Sock 10.Close socket [07:01:45]Sock 10.Thread stoped [07:01:48]ConnectInit Can't take IP for lk.salyk.kg [07:01:48]CommunicateWithHost connect error [07:01:48]CommunicateWithHost err = -1 [07:01:48]OFD Sender: Server communicate error [07:01:53]OFD Sender: Processing packet 103604 [packets to send 498, broken 497] [07:01:53]ProducePacketName [07:01:53]name=ofd_packets/00103604 [07:01:53]OFD Sender: To server: pG, [07:01:53]CommunicateWithHost lk.salyk.kg:30040 [07:01:53]ConnectInit lk.salyk.kg [07:01:58]ConnectInit Can't take IP for lk.salyk.kg [07:01:58]CommunicateWithHost connect error [07:01:58]CommunicateWithHost err = -1 [07:01:58]OFD Sender: Server communicate error [07:02:03]OFD Sender: Processing packet 103604 [packets to send 498, broken 497] [07:02:03]ProducePacketName [07:02:03]name=ofd_packets/00103604 [07:02:03]OFD Sender: To server: pG, [07:02:03]CommunicateWithHost lk.salyk.kg:30040 [07:02:03]ConnectInit lk.salyk.kg [07:02:04]Connected sock=10 [07:02: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 31 31 0F 01 00 00 BC E6 07 01 9A 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 57 9F 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B4 94 01 00 35 04 06 00 18 02 24 27 77 54 78 24 44 34 FE 50 7A 33 [07:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 4F 00 00 00 F6 14 47 00 D7 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 31 31 10 04 04 00 B4 94 01 00 F4 03 04 00 83 46 18 67 B6 04 01 00 00 9C DC 77 4C 53 8C F1 A6 [07:02:05]CommunicateWithHost err = 0 [07:02:05]CheckOFDResponse [07:02:05]1017 (14) - 77093643461234 [07:02:05]1041 (16) - 0000000000871811 [07:02:05]1040 (4) - 103604 [07:02:05]1012 (4) - 23.10.2024 00:42 [07:02:05]1206 (1) - 0 [07:02:05]OFD Sender: Remove packet 103604 [07:02:05]ProducePacketName [07:02:05]name=ofd_packets/00103604 [07:02:05]NVStorageDeleteData [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:26]recv_with_timeout no data received [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:44]recv_with_timeout no data received [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:20]recv_with_timeout no data received [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:38]recv_with_timeout no data received [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]recv_with_timeout no data received [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:00]recv_with_timeout no data received [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:20]recv_with_timeout no data received [07:06:21]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:11]recv_with_timeout no data received [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:46]recv_with_timeout no data received [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:56]recv_with_timeout no data received [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:09]recv_with_timeout no data received [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:26]recv_with_timeout no data received [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:05]accept exits with 9 [07:13:05]New connection [07:13:05]New thread 3067280740 created [07:13:05]Thread 3067424100 joined [07:13:05]Waiting for new connection... [07:13:05] Sock 9.Parse request [07:13:05]Sock 9.Check first char [07:13:05]Sock 9.First char is OK [07:13:05]request: POST /json_proto HTTP/1.0 [07:13:05]Method: POST [07:13:05]URL: /json_proto [07:13:05]Method is POST - this is cgi request [07:13:05]url: /json_proto [07:13:05]query_string will be loaded in cgi processing [07:13:05]execute_cgi json_proto POST (null) [07:13:05]execute_cgi path=json_proto method=POST [07:13:05]POST find Content-Length [07:13:05]Host: 172.17.51.67:8080 [07:13:05]Content-Length: 679 [07:13:05]Content-Type: application/json [07:13:05] [07:13:05]POST finish read [07:13:05]Found Content-Length = 679 [07:13:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 75.20, "quantity" : 19.950, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:05]execute_script... [07:13:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 75.20, "quantity" : 19.950, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:05]POST & json_proto [07:13:05]process_json_proto [07:13:05]json parsed OK: [07:13:05]protocol is kg_v1.0 [07:13:05]action value=close_receipt [07:13:05]process_action close_receipt [07:13:05]cmd_close_receipt [07:13:05]MH_GetDate [07:13:05]Write to MH i2c: F0 00 00 44 06 39 [07:13:05]Write i2c OK [07:13:05]MH_I2C_Read... [07:13:05]Read from MH i2c: F0 [07:13:05]MH_I2C_Read... [07:13:05]Read from MH i2c: F0 09 00 [07:13:05]MH_I2C_Read... [07:13:05]Read from MH i2c: F0 09 00 44 06 00 03 A2 18 67 1E EF FA 64 D1 [07:13:05]GetLastDocTimeStamp 1729666903 [07:13:05]current date 1729667587 [07:13:05]FM_GetShiftState [07:13:05]SAM_PROTO_GetShiftState [07:13:05]wFMCommunicate request_size=4 [07:13:05]MH_SAM_APDU [07:13:05]CAPDU: 80 13 01 00 [07:13:05]Write to MH i2c: E2 08 00 45 06 80 13 01 00 00 00 00 00 C8 [07:13:05]Write i2c OK [07:13:05]MH_I2C_Read... [07:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:05]Read from MH i2c: E2 [07:13:05]MH_I2C_Read... [07:13:05]Read from MH i2c: E2 0E 00 [07:13:05]MH_I2C_Read... [07:13:05]Read from MH i2c: E2 0E 00 45 06 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 01 [07:13:05]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:13:05]wFMCommunicate OK [07:13:05]SAM_PROTO_GetShiftState done [07:13:05]FM_GetShiftState done [07:13:05]opened in 1729642861 [07:13:05]opened+sec_in_day 1729729261 [07:13:05]quantity*price = 150024 [07:13:05]sum+1 = 150025 [07:13:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 17 23.10.2024 07:13 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103605 ФПД: 99356557060998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071307&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103605&fm=99356557060998&tin=02508201610067®Number=0000000000091754&sum=150000 [07:13:06]StoreToDocumentArchive [07:13:06]shift 582 fd 103605 [07:13:06]save to /storage/0582/doc_00103605 [07:13:06]save last doc name /storage/0582/doc_00103605 to /storage/kkm_last_doc_name [07:13:06]save OK [07:13:06]Clear old archive folders... [07:13:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:13:06]tlvbuf is 0029FBE0 [07:13:06]SAM_PROTO_ClearQueue [07:13:06]wFMCommunicate request_size=4 [07:13:06]MH_SAM_APDU [07:13:06]CAPDU: 80 09 00 00 [07:13:06]Write to MH i2c: E2 08 00 52 06 80 09 00 00 00 00 00 00 CA [07:13:06]Write i2c OK [07:13:06]MH_I2C_Read... [07:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:07]Read from MH i2c: E2 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 03 00 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 03 00 52 06 00 90 00 CC [07:13:07]RAPDU: 90 00 [07:13:07]wFMCommunicate OK [07:13:07]SAM_PROTO_ClearQueue done [07:13:07]KKMCreateOFDPacket [07:13:07]OFDProtocolAddRootSTLVToBuf [07:13:07]FM_MakeSignedData [07:13:07]FM_MakeSignedData [07:13:07]SAM_PROTO_SignData [07:13:07]wFMCommunicate request_size=4 [07:13:07]MH_SAM_APDU [07:13:07]CAPDU: 80 0D 01 02 [07:13:07]Write to MH i2c: E2 08 00 53 06 80 0D 01 02 00 00 00 00 D2 [07:13:07]Write i2c OK [07:13:07]MH_I2C_Read... [07:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:07]Read from MH i2c: E2 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 03 00 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 03 00 53 06 00 90 00 CD [07:13:07]RAPDU: 90 00 [07:13:07]wFMCommunicate OK [07:13:07]wFMCommunicate request_size=255 [07:13:07]MH_SAM_APDU [07:13:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 03 A2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B5 94 01 00 35 04 06 00 5A 5D 40 4A [07:13:07]Write to MH i2c: E2 02 01 54 06 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 34 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 03 A2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B5 94 01 00 35 04 06 00 5A 5D 40 4A 00 00 62 [07:13:07]Write i2c OK [07:13:07]MH_I2C_Read... [07:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:07]Read from MH i2c: E2 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 03 00 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 03 00 54 06 00 90 00 CE [07:13:07]RAPDU: 90 00 [07:13:07]wFMCommunicate OK [07:13:07]wFMCommunicate request_size=7 [07:13:07]MH_SAM_APDU [07:13:07]CAPDU: 80 0D 02 02 02 2B 86 [07:13:07]Write to MH i2c: E2 0A 00 55 06 80 0D 02 02 02 00 2B 86 00 00 8A [07:13:07]Write i2c OK [07:13:07]MH_I2C_Read... [07:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:07]Read from MH i2c: E2 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 03 00 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 03 00 55 06 00 90 00 CF [07:13:07]RAPDU: 90 00 [07:13:07]wFMCommunicate OK [07:13:07]wFMCommunicate request_size=4 [07:13:07]MH_SAM_APDU [07:13:07]CAPDU: 80 0D 03 02 [07:13:07]Write to MH i2c: E2 08 00 56 06 80 0D 03 02 00 00 00 00 D7 [07:13:07]Write i2c OK [07:13:07]MH_I2C_Read... [07:13:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:07]Read from MH i2c: E2 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 0B 00 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 0B 00 56 06 00 65 D0 28 0A 55 FF E9 64 90 00 E0 [07:13:07]RAPDU: 65 D0 28 0A 55 FF E9 64 90 00 [07:13:07]wFMCommunicate OK [07:13:07]SAM_PROTO_SignData done [07:13:07]FM_MakeSignedData done [07:13:07]CreateOFDProtocolMessage [07:13:07]wFMCommunicate request_size=4 [07:13:07]MH_SAM_APDU [07:13:07]CAPDU: 80 11 00 00 [07:13:07]Write to MH i2c: E2 08 00 57 06 80 11 00 00 00 00 00 00 D7 [07:13:07]Write i2c OK [07:13:07]MH_I2C_Read... [07:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:07]Read from MH i2c: E2 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 17 00 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 17 00 57 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 24 [07:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:13:07]wFMCommunicate OK [07:13:07]CreateOFDProtocolMessage done [07:13:07]OFDSenderStorePacket 103605 [07:13:07]StoreOFDPacket docnum=103605 [07:41:57]ConnectInit Can't connect to host [07:41:59]ConnectInit Can't take IP for lk.salyk.kg [07:41:59]CommunicateWithHost connect error [07:41:59]CommunicateWithHost err = -1 [07:41:59]OFD Sender: Server communicate error [07:42:02]accept exits with 9 [07:42:02]New connection [07:42:02]New thread 3067231588 created [07:42:02]Waiting for new connection... [07:42:02] Sock 9.Parse request [07:42:02]Sock 9.Check first char [07:42:02]Sock 9.First char is OK [07:42:02]request: POST /json_proto HTTP/1.0 [07:42:02]Method: POST [07:42:02]URL: /json_proto [07:42:02]Method is POST - this is cgi request [07:42:02]url: /json_proto [07:42:02]query_string will be loaded in cgi processing [07:42:02]execute_cgi json_proto POST (null) [07:42:02]execute_cgi path=json_proto method=POST [07:42:02]POST find Content-Length [07:42:02]Host: 172.17.51.67:8080 [07:42:02]Content-Length: 215 [07:42:02]Content-Type: application/json [07:42:02] [07:42:02]POST finish read [07:42:02]Found Content-Length = 215 [07:42:02]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" ] } } [07:42:02]execute_script... [07:42:02]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" ] } } [07:42:02]POST & json_proto [07:42:02]process_json_proto [07:42:02]json parsed OK: [07:42:02]protocol is kg_v1.0 [07:42:02]action value=get_value [07:42:02]process_action get_value [07:42:02]cmd_get_value [07:42:02]process_action get_value done [07:42:02]requested_data is exist [07:42:02]produce_requested_data [07:42:02]requested_item kkm.sn is exist - process it [07:42:02]requested_item kkm.ver is exist - process it [07:42:02]requested_item fm.sn is exist - process it [07:42:02]wFMCommunicate request_size=4 [07:42:02]MH_SAM_APDU [07:42:02]CAPDU: 80 11 00 00 [07:42:02]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [07:42:02]Write i2c OK [07:42:02]MH_I2C_Read... [07:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:02]Read from MH i2c: E2 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 17 00 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D7 [07:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:42:02]wFMCommunicate OK [07:42:02]requested_item fd.num is exist - process it [07:42:02]SAM_PROTO_GetFieldsCounters [07:42:02]wFMCommunicate request_size=4 [07:42:02]MH_SAM_APDU [07:42:02]CAPDU: 80 13 00 00 [07:42:02]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [07:42:02]Write i2c OK [07:42:02]MH_I2C_Read... [07:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:02]Read from MH i2c: E2 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 62 00 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B5 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [07:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B5 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:02]wFMCommunicate OK [07:42:02]SAM_PROTO_GetFieldsCounters done [07:42:02]requested_item shift.num is exist - process it [07:42:02]requested_item shift.opened is exist - process it [07:42:02]req_shift_opened [07:42:02]FM_GetShiftState [07:42:02]SAM_PROTO_GetShiftState [07:42:02]wFMCommunicate request_size=4 [07:42:02]MH_SAM_APDU [07:42:02]CAPDU: 80 13 01 00 [07:42:02]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [07:42:02]Write i2c OK [07:42:02]MH_I2C_Read... [07:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:02]Read from MH i2c: E2 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 0E 00 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 C8 [07:42:02]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:42:02]wFMCommunicate OK [07:42:02]SAM_PROTO_GetShiftState done [07:42:02]FM_GetShiftState done [07:42:02]req_shift_opened done [07:42:02]requested_item shift.open_date is exist - process it [07:42:02]req_shift_open_date [07:42:02]req_shift_open_date done [07:42:02]produce_requested_data done [07:42:02]produce_requested_data return {"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103605,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [07:42:02]process_action_free get_value [07:42:02]json_value_free [07:42:02]json_value_free done [07:42:02]process_json_proto returns [07:42:02]Send response to host [07:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103605,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [07:42:02]free response buf [07:42:02]execute_script done [07:42:02]execute_script returns [07:42:02]free content buf [07:42:02]Sock 9.Close socket [07:42:02]Sock 9.Thread stoped [07:42:04]OFD Sender: Processing packet 103605 [packets to send 498, broken 497] [07:42:04]ProducePacketName [07:42:04]name=ofd_packets/00103605 [07:42:04]OFD Sender: To server: pG, [07:42:04]CommunicateWithHost lk.salyk.kg:30040 [07:42:04]ConnectInit lk.salyk.kg [07:42:04]Connected sock=9 [07: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 31 31 0C 01 00 00 3A 18 04 01 40 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 03 A2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B5 94 01 00 35 04 06 00 5A 5D 40 4A 2B 86 65 D0 28 0A 55 FF E9 64 [07:42: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 31 31 4F 00 00 00 06 66 47 00 CC 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 31 31 10 04 04 00 B5 94 01 00 F4 03 04 00 E1 4F 18 67 B6 04 01 00 00 A4 B8 4C 98 77 21 12 03 [07:42:06]CommunicateWithHost err = 0 [07:42:06]CheckOFDResponse [07:42:06]1017 (14) - 77093643461234 [07:42:06]1041 (16) - 0000000000871811 [07:42:06]1040 (4) - 103605 [07:42:06]1012 (4) - 23.10.2024 01:22 [07:42:06]1206 (1) - 0 [07:42:06]OFD Sender: Remove packet 103605 [07:42:06]ProducePacketName [07:42:06]name=ofd_packets/00103605 [07:42:06]NVStorageDeleteData [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:14]accept exits with 10 [07:42:14]New connection [07:42:14]New thread 3067088228 created [07:42:14]Thread 3067231588 joined [07:42:14]Waiting for new connection... [07:42:14] Sock 10.Parse request [07:42:14]Sock 10.Check first char [07:42:14]Sock 10.First char is OK [07:42:14]request: POST /json_proto HTTP/1.0 [07:42:14]Method: POST [07:42:14]URL: /json_proto [07:42:14]Method is POST - this is cgi request [07:42:14]url: /json_proto [07:42:14]query_string will be loaded in cgi processing [07:42:14]execute_cgi json_proto POST (null) [07:42:14]execute_cgi path=json_proto method=POST [07:42:14]POST find Content-Length [07:42:14]Host: 172.17.51.67:8080 [07:42:14]Content-Length: 331 [07:42:14]Content-Type: application/json [07:42:14] [07:42:14]POST finish read [07:42:14]Found Content-Length = 331 [07:42:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:42:14]execute_script... [07:42:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:42:14]POST & json_proto [07:42:14]process_json_proto [07:42:14]json parsed OK: [07:42:14]protocol is kg_v1.0 [07:42:14]action value=get_value [07:42:14]process_action get_value [07:42:14]cmd_get_value [07:42:14]process_action get_value done [07:42:14]requested_data is exist [07:42:14]produce_requested_data [07:42:14]requested_item fm.sale.total is exist - process it [07:42:14]SAM_PROTO_GetFMData [07:42:14]wFMCommunicate request_size=4 [07:42:14]MH_SAM_APDU [07:42:14]CAPDU: 80 13 03 00 [07:42:14]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [07:42:14]Write i2c OK [07:42:14]MH_I2C_Read... [07:42:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:42:14]Read from MH i2c: E2 [07:42:14]MH_I2C_Read... [07:42:14]Read from MH i2c: E2 FD 00 [07:42:14]MH_I2C_Read... [07:42:14]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 29 90 01 00 69 04 A3 00 6F 04 04 00 BD 8F 01 00 B1 04 05 00 38 28 F7 F8 01 70 04 05 00 F0 E4 41 8D 01 72 04 04 00 48 43 B5 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 75 FA A3 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CD 41 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 9E [07:42:14]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 29 90 01 00 69 04 A3 00 6F 04 04 00 BD 8F 01 00 B1 04 05 00 38 28 F7 F8 01 70 04 05 00 F0 E4 41 8D 01 72 04 04 00 48 43 B5 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 75 FA A3 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CD 41 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [07:42:14]wFMCommunicate OK [07:42:14]wFMCommunicate request_size=4 [07:42:14]MH_SAM_APDU [07:42:14]CAPDU: 80 17 00 00 [07:42:14]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [07:42:14]Write i2c OK [07:42:14]MH_I2C_Read... [07:42:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:42:15]Read from MH i2c: E2 [07:42:15]MH_I2C_Read... [07:42:15]Read from MH i2c: E2 FD 00 [07:42:15]MH_I2C_Read... [07:42:15]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [07:42:15]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:42:15]wFMCommunicate OK [07:42:15]wFMCommunicate request_size=4 [07:42:15]MH_SAM_APDU [07:42:15]CAPDU: 80 17 00 00 [07:42:15]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [07:42:15]Write i2c OK [07:42:15]MH_I2C_Read... [07:42:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:42:15]Read from MH i2c: E2 [07:42:15]MH_I2C_Read... [07:42:15]Read from MH i2c: E2 FD 00 [07:42:15]MH_I2C_Read... [07:42:15]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [07:42:15]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:42:15]wFMCommunicate OK [07:42:15]wFMCommunicate request_size=4 [07:42:15]MH_SAM_APDU [07:42:15]CAPDU: 80 17 00 00 [07:42:15]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [07:42:15]Write i2c OK [07:42:15]MH_I2C_Read... [07:42:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:42:15]Read from MH i2c: E2 [07:42:15]MH_I2C_Read... [07:42:15]Read from MH i2c: E2 FD 00 [07:42:15]MH_I2C_Read... [07:42:15]Read from MH i2c: E2 FD 00 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [07:42:15]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:42:15]wFMCommunicate OK [07:42:15]wFMCommunicate request_size=4 [07:42:15]MH_SAM_APDU [07:42:15]CAPDU: 80 17 00 00 [07:42:15]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [07:42:15]Write i2c OK [07:42:15]MH_I2C_Read... [07:42:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [07:42:15]Read from MH i2c: E2 [07:42:15]MH_I2C_Read... [07:42:15]Read from MH i2c: E2 E4 00 [07:42:15]MH_I2C_Read... [07:42:15]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [07:42:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [07:42:16]wFMCommunicate OK [07:42:16]SAM_PROTO_GetFMData done [07:42:16]requested_item fm.sale_refund.total is exist - process it [07:42:16]requested_item fm.buy.total is exist - process it [07:42:16]requested_item shift.sale.total is exist - process it [07:42:16]SAM_PROTO_GetShiftData [07:42:16]wFMCommunicate request_size=4 [07:42:16]MH_SAM_APDU [07:42:16]CAPDU: 80 13 02 00 [07:42:16]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [07:42:16]Write i2c OK [07:42:16]MH_I2C_Read... [07:42:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:42:16]Read from MH i2c: E2 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: E2 FD 00 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 11 00 00 00 69 04 9A 00 6F 04 04 00 11 00 00 00 B1 04 03 00 FD 67 14 70 04 03 00 84 A4 13 72 04 02 00 79 C3 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 FD 2A 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 40 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 FE [07:42:16]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 11 00 00 00 69 04 9A 00 6F 04 04 00 11 00 00 00 B1 04 03 00 FD 67 14 70 04 03 00 84 A4 13 72 04 02 00 79 C3 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 FD 2A 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 40 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [07:42:16]wFMCommunicate OK [07:42:16]wFMCommunicate request_size=4 [07:42:16]MH_SAM_APDU [07:42:16]CAPDU: 80 17 00 00 [07:42:16]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [07:42:16]Write i2c OK [07:42:16]MH_I2C_Read... [07:42:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:42:16]Read from MH i2c: E2 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: E2 FD 00 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 AB [07:42:16]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 [07:42:16]wFMCommunicate OK [07:42:16]wFMCommunicate request_size=4 [07:42:16]MH_SAM_APDU [07:42:16]CAPDU: 80 17 00 00 [07:42:16]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [07:42:16]Write i2c OK [07:42:16]MH_I2C_Read... [07:42:16]OFD Sender: No OFD packet to send [07:42:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:42:16]Read from MH i2c: E2 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: E2 FD 00 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 5E [07:42:17]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [07:42:17]wFMCommunicate OK [07:42:17]wFMCommunicate request_size=4 [07:42:17]MH_SAM_APDU [07:42:17]CAPDU: 80 17 00 00 [07:42:17]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [07:42:17]Write i2c OK [07:42:17]MH_I2C_Read... [07:42:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:42:17]Read from MH i2c: E2 [07:42:17]MH_I2C_Read... [07:42:17]Read from MH i2c: E2 FD 00 [07:42:17]MH_I2C_Read... [07:42:17]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 10 [07:42:17]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [07:42:17]wFMCommunicate OK [07:42:17]wFMCommunicate request_size=4 [07:42:17]MH_SAM_APDU [07:42:17]CAPDU: 80 17 00 00 [07:42:17]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [07:42:17]Write i2c OK [07:42:17]MH_I2C_Read... [07:42:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [07:42:17]Read from MH i2c: E2 [07:42:17]MH_I2C_Read... [07:42:17]Read from MH i2c: E2 CA 00 [07:42:17]MH_I2C_Read... [07:42:17]Read from MH i2c: E2 CA 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [07:42:17]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:42:17]wFMCommunicate OK [07:42:17]SAM_PROTO_GetShiftData done [07:42:17]requested_item shift.sale.total_cash is exist - process it [07:42:17]requested_item shift.sale_refund.total is exist - process it [07:42:17]requested_item shift.sale_refund.total_cash is exist - process it [07:42:17]requested_item shift.buy.total is exist - process it [07:42:17]requested_item shift.buy.total_cash is exist - process it [07:42:17]produce_requested_data done [07:42:17]produce_requested_data return {"fm.sale.total":84719145.52,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":13373.41,"shift.sale.total_cash":12873.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} [07:42:17]process_action_free get_value [07:42:17]json_value_free [07:42:17]json_value_free done [07:42:17]process_json_proto returns [07:42:17]Send response to host [07:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84719145.52,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":13373.41,"shift.sale.total_cash":12873.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}}} [07:42:17]free response buf [07:42:17]execute_script done [07:42:17]execute_script returns [07:42:17]free content buf [07:42:17]Sock 10.Close socket [07:42:17]Sock 10.Thread stoped [07:42:20]accept exits with 7 [07:42:20]New connection [07:42:20]New thread 3067231588 created [07:42:20]Thread 3067088228 joined [07:42:20]Waiting for new connection... [07:42:20] Sock 7.Parse request [07:42:20]Sock 7.Check first char [07:42:20]Sock 7.First char is OK [07:42:20]request: POST /json_proto HTTP/1.0 [07:42:20]Method: POST [07:42:20]URL: /json_proto [07:42:20]Method is POST - this is cgi request [07:42:20]url: /json_proto [07:42:20]query_string will be loaded in cgi processing [07:42:20]execute_cgi json_proto POST (null) [07:42:20]execute_cgi path=json_proto method=POST [07:42:20]POST find Content-Length [07:42:20]Host: 172.17.51.67:8080 [07:42:20]Content-Length: 677 [07:42:20]Content-Type: application/json [07:42:20] [07:42:20]POST finish read [07:42:20]Found Content-Length = 677 [07:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:20]execute_script... [07:42:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:20]POST & json_proto [07:42:20]process_json_proto [07:42:20]json parsed OK: [07:42:20]protocol is kg_v1.0 [07:42:20]action value=close_receipt [07:42:20]process_action close_receipt [07:42:20]cmd_close_receipt [07:42:20]MH_GetDate [07:42:20]Write to MH i2c: F0 00 00 1D 00 0C [07:42:20]Write i2c OK [07:42:20]MH_I2C_Read... [07:42:20]Read from MH i2c: F0 [07:42:20]MH_I2C_Read... [07:42:20]Read from MH i2c: F0 09 00 [07:42:20]MH_I2C_Read... [07:42:20]Read from MH i2c: F0 09 00 1D 00 00 DD A8 18 67 1E EF FA 64 84 [07:42:20]GetLastDocTimeStamp 1729667587 [07:42:20]current date 1729669341 [07:42:20]FM_GetShiftState [07:42:20]SAM_PROTO_GetShiftState [07:42:20]wFMCommunicate request_size=4 [07:42:20]MH_SAM_APDU [07:42:20]CAPDU: 80 13 01 00 [07:42:20]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [07:42:20]Write i2c OK [07:42:20]MH_I2C_Read... [07:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:20]Read from MH i2c: E2 [07:42:20]MH_I2C_Read... [07:42:20]Read from MH i2c: E2 0E 00 [07:42:20]MH_I2C_Read... [07:42:20]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D4 [07:42:20]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:42:20]wFMCommunicate OK [07:42:20]SAM_PROTO_GetShiftState done [07:42:20]FM_GetShiftState done [07:42:20]opened in 1729642861 [07:42:20]opened+sec_in_day 1729729261 [07:42:20]quantity*price = 30038 [07:42:20]sum+1 = 30039 [07:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 18 23.10.2024 07:42 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103606 ФПД: 153115428716575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074221&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103606&fm=153115428716575&tin=02508201610067®Number=0000000000091754&sum=30000 [07:42:22]StoreToDocumentArchive [07:42:22]shift 582 fd 103606 [07:42:22]save to /storage/0582/doc_00103606 [07:42:22]save last doc name /storage/0582/doc_00103606 to /storage/kkm_last_doc_name [07:42:22]save OK [07:42:22]Clear old archive folders... [07:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:42:22]tlvbuf is 00C9EBA0 [07:42:22]SAM_PROTO_ClearQueue [07:42:22]wFMCommunicate request_size=4 [07:42:22]MH_SAM_APDU [07:42:22]CAPDU: 80 09 00 00 [07:42:22]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [07:42:22]Write i2c OK [07:42:22]MH_I2C_Read... [07:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:22]Read from MH i2c: E2 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 03 00 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [07:42:22]RAPDU: 90 00 [07:42:22]wFMCommunicate OK [07:42:22]SAM_PROTO_ClearQueue done [07:42:22]KKMCreateOFDPacket [07:42:22]OFDProtocolAddRootSTLVToBuf [07:42:22]FM_MakeSignedData [07:42:22]FM_MakeSignedData [07:42:22]SAM_PROTO_SignData [07:42:22]wFMCommunicate request_size=4 [07:42:22]MH_SAM_APDU [07:42:22]CAPDU: 80 0D 01 02 [07:42:22]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [07:42:22]Write i2c OK [07:42:22]MH_I2C_Read... [07:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:22]Read from MH i2c: E2 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 03 00 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [07:42:22]RAPDU: 90 00 [07:42:22]wFMCommunicate OK [07:42:22]wFMCommunicate request_size=255 [07:42:22]MH_SAM_APDU [07:42:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 DD A8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B6 94 01 00 35 04 06 00 8B [07:42:22]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 DD A8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B6 94 01 00 35 04 06 00 8B 00 00 56 [07:42:22]Write i2c OK [07:42:22]MH_I2C_Read... [07:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:22]Read from MH i2c: E2 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 03 00 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [07:42:22]RAPDU: 90 00 [07:42:22]wFMCommunicate OK [07:42:22]wFMCommunicate request_size=10 [07:42:22]MH_SAM_APDU [07:42:22]CAPDU: 80 0D 02 02 05 41 F6 BD 00 1F [07:42:22]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 41 F6 BD 00 1F 00 00 C5 [07:42:22]Write i2c OK [07:42:22]MH_I2C_Read... [07:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:22]Read from MH i2c: E2 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 03 00 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [07:42:22]RAPDU: 90 00 [07:42:22]wFMCommunicate OK [07:42:22]wFMCommunicate request_size=4 [07:42:22]MH_SAM_APDU [07:42:22]CAPDU: 80 0D 03 02 [07:42:22]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [07:42:22]Write i2c OK [07:42:22]MH_I2C_Read... [07:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:22]Read from MH i2c: E2 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 0B 00 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 0B 00 2F 00 00 D6 B6 8D A1 06 C8 B6 67 90 00 50 [07:42:22]RAPDU: D6 B6 8D A1 06 C8 B6 67 90 00 [07:42:22]wFMCommunicate OK [07:42:22]SAM_PROTO_SignData done [07:42:22]FM_MakeSignedData done [07:42:22]CreateOFDProtocolMessage [07:42:22]wFMCommunicate request_size=4 [07:42:22]MH_SAM_APDU [07:42:22]CAPDU: 80 11 00 00 [07:42:22]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [07:42:22]Write i2c OK [07:42:22]MH_I2C_Read... [07:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:22]Read from MH i2c: E2 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 17 00 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 F7 [07:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:42:22]wFMCommunicate OK [07:42:22]CreateOFDProtocolMessage done [07:42:22]OFDSenderStorePacket 103606 [07:42:22]StoreOFDPacket docnum=103606 [07:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 CF 81 07 01 0E 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 DD A8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B6 94 01 00 35 04 06 00 8B 41 F6 BD 00 1F D6 B6 8D A1 06 C8 B6 67 [07:42:22]CheckFolder [07:42:22]dirname=/storage/ofd_packets [07:42:22]CheckFolder done [07:42:22]ProducePacketName [07:42:22]name=ofd_packets/00103606 [07:42:22]NVStorageSaveData ofd_packets/00103606 [07:42:22]File name is /storage/ofd_packets/00103606 [07:42:22]Write 301 bytes [07:42:22]NVStorageSaveData done [07:42:22]OFDSenderStorePacket done [07:42:22]KKMCreateOFDPacket done [07:42:22]NVStorageSaveData kkm_last_timestamp [07:42:22]File name is /storage/kkm_last_timestamp [07:42:22]Write 4 bytes [07:42:22]NVStorageSaveData done [07:42:22]ExternCall_PrintAddStr [07:42:22]wPrintStart [07:42:22]Write to MH i2c: 01 00 00 31 00 31 [07:42:22]Write i2c OK [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: 01 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: 01 07 00 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [07:42:22]RasterBufferAndPrint [07:42:22]line Счет N : (1)317806 [07:42:22]line ИНН: 02508201610067 [07:42:22]line Контрольно-Кассовый Чек [07:42:22]line ПРОДАЖА [07:42:22]line ТРК (МРК, ГНК) : 43 [07:42:22]line Товар: 2710124130 [07:42:22]line Аи-92-К-4 [07:42:22]line 4.490 * 66.90 [07:42:22]line = 300.38 [07:42:22]line НДС 12% НСП 1% [07:42:22]line > о реализуемом товаре [07:42:22]line ОКРУГЛЕНИЕ: -0.38 [07:42:22]line ИТОГО: 300.00 [07:42:22]line Внесено: 300.00 [07:42:22]line СДАЧА: 0.00 [07:42:22]line НСП 1% : 2.66 [07:42:22]line НДС 12% : 31.90 [07:42:22]line Наличными: 300.00 [07:42:22]line Безнал.: 0.00 [07:42:22]line Место: АЗС № 145 "Партнер Нефть" [07:42:22]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [07:42:22]line СНО: Общий режим [07:42:22]line Чек 18 23.10.2024 07:42 [07:42:22]line Смена: 582 ФФД: 1.0 [07:42:22]line ЗНМ: 0300000095 [07:42:22]line РНМ: 0000000000091754 [07:42:22]line Версия ККМ: 001 [07:42:22]line ФМ: 0000000000871811 [07:42:22]line ФД: 103606 [07:42:22]line ФПД: 153115428716575 [07:42:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074221&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103606&fm=153115428716575&tin=02508201610067®Number=0000000000091754&sum=30000 [07:42:22]written 0, free lines is 4095 [07:42:22]OFD Sender: Processing packet 103606 [packets to send 498, broken 497] [07:42:22]ProducePacketName [07:42:22]name=ofd_packets/00103606 [07:42:22]OFD Sender: To server: pG, [07:42:22]CommunicateWithHost lk.salyk.kg:30040 [07:42:22]ConnectInit lk.salyk.kg [07:42:23]Write to MH i2c: 01 00 00 5B 00 5B [07:42:23]Write i2c OK [07:42:23]MH_I2C_Read... [07:42:23]Read from MH i2c: 01 [07:42:23]MH_I2C_Read... [07:42:23]Read from MH i2c: 01 07 00 [07:42:23]MH_I2C_Read... [07:42:23]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 CD 0C 3B [07:42:23]RasterBufferAndPrint [07:42:23]line [07:42:23]line [07:42:23]line [07:42:23]line [07:42:23]line [07:42:23]written 0, free lines is 3293 [07:42:23]MH_Cut [07:42:23]Write to MH i2c: D1 01 00 62 00 01 34 [07:42:23]Write i2c OK [07:42:23]MH_I2C_Read... [07:42:23]Read from MH i2c: D1 [07:42:23]MH_I2C_Read... [07:42:23]Read from MH i2c: D1 01 00 [07:42:23]MH_I2C_Read... [07:42:23]Read from MH i2c: D1 01 00 62 00 00 33 [07:42:23]Write to MH i2c: 01 00 00 63 00 63 [07:42:23]Write i2c OK [07:42:23]MH_I2C_Read... [07:42:23]Connected sock=10 [07:42: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 31 31 0F 01 00 00 CF 81 07 01 0E 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 DD A8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B6 94 01 00 35 04 06 00 8B 41 F6 BD 00 1F D6 B6 8D A1 06 C8 B6 67 [07:42: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 31 31 4F 00 00 00 DB 3F 47 00 22 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 31 31 10 04 04 00 B6 94 01 00 F4 03 04 00 F3 4F 18 67 B6 04 01 00 00 A8 4A 7B 0D 9F 39 83 5C [07:42:23]CommunicateWithHost err = 0 [07:42:23]CheckOFDResponse [07:42:23]1017 (14) - 77093643461234 [07:42:23]1041 (16) - 0000000000871811 [07:42:23]1040 (4) - 103606 [07:42:23]1012 (4) - 23.10.2024 01:22 [07:42:23]1206 (1) - 0 [07:42:23]OFD Sender: Remove packet 103606 [07:42:23]ProducePacketName [07:42:23]name=ofd_packets/00103606 [07:42:23]NVStorageDeleteData [07:42:23]*** Cut start [07:42:23]*** Partial cut [07:42:23]*** CUTSNS_PIN = 1 [07:42:23]*** CUTSNS_PIN = 0 [07:42:24]*** Brake cut motor [07:42:24]OFD Sender: No OFD packet to send [07:42:24]Read from MH i2c: 01 [07:42:24]MH_I2C_Read... [07:42:24]*** Stop cut motor [07:42:24]*** Cut end [07:42:24]Read from MH i2c: 01 07 00 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [07:42:24]process_action close_receipt done [07:42:24]requested_data is exist [07:42:24]produce_requested_data [07:42:24]requested_item fm.sn is exist - process it [07:42:24]wFMCommunicate request_size=4 [07:42:24]MH_SAM_APDU [07:42:24]CAPDU: 80 11 00 00 [07:42:24]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [07:42:24]Write i2c OK [07:42:24]MH_I2C_Read... [07:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:24]Read from MH i2c: E2 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: E2 17 00 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 2B [07:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:42:24]wFMCommunicate OK [07:42:24]requested_item fd.num is exist - process it [07:42:24]SAM_PROTO_GetFieldsCounters [07:42:24]wFMCommunicate request_size=4 [07:42:24]MH_SAM_APDU [07:42:24]CAPDU: 80 13 00 00 [07:42:24]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [07:42:24]Write i2c OK [07:42:24]MH_I2C_Read... [07:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:24]Read from MH i2c: E2 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: E2 62 00 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B6 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [07:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B6 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:24]wFMCommunicate OK [07:42:24]SAM_PROTO_GetFieldsCounters done [07:42:24]requested_item shift.num is exist - process it [07:42:24]requested_item shift.opened is exist - process it [07:42:24]req_shift_opened [07:42:24]FM_GetShiftState [07:42:24]SAM_PROTO_GetShiftState [07:42:24]wFMCommunicate request_size=4 [07:42:24]MH_SAM_APDU [07:42:24]CAPDU: 80 13 01 00 [07:42:24]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [07:42:24]Write i2c OK [07:42:24]MH_I2C_Read... [07:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:24]Read from MH i2c: E2 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: E2 0E 00 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 1C [07:42:24]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:42:24]wFMCommunicate OK [07:42:24]SAM_PROTO_GetShiftState done [07:42:24]FM_GetShiftState done [07:42:24]req_shift_opened done [07:42:24]requested_item shift.open_date is exist - process it [07:42:24]req_shift_open_date [07:42:24]req_shift_open_date done [07:42:24]produce_requested_data done [07:42:24]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103606,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [07:42:24]process_action_free close_receipt [07:42:24]json_value_free [07:42:24]json_value_free done [07:42:24]process_json_proto returns [07:42:24]Send response to host [07:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103606,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [07:42:24]free response buf [07:42:24]execute_script done [07:42:24]execute_script returns [07:42:24]free content buf [07:42:24]Sock 7.Close socket [07:42:24]Sock 7.Thread stoped [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:37]recv_with_timeout no data received [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:57]recv_with_timeout no data received [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:11]accept exits with 9 [07:43:11]New connection [07:43:11]New thread 3067088228 created [07:43:11]Thread 3067231588 joined [07:43:11]Waiting for new connection... [07:43:11] Sock 9.Parse request [07:43:11]Sock 9.Check first char [07:43:11]Sock 9.First char is OK [07:43:11]request: POST /json_proto HTTP/1.0 [07:43:11]Method: POST [07:43:11]URL: /json_proto [07:43:11]Method is POST - this is cgi request [07:43:11]url: /json_proto [07:43:11]query_string will be loaded in cgi processing [07:43:11]execute_cgi json_proto POST (null) [07:43:11]execute_cgi path=json_proto method=POST [07:43:11]POST find Content-Length [07:43:11]Host: 172.17.51.67:8080 [07:43:11]Content-Length: 843 [07:43:11]Content-Type: application/json [07:43:11] [07:43:11]POST finish read [07:43:11]Found Content-Length = 843 [07:43:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:11]execute_script... [07:43: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)317809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:11]POST & json_proto [07:43:11]process_json_proto [07:43:11]json parsed OK: [07:43:11]protocol is kg_v1.0 [07:43:11]action value=close_receipt [07:43:11]process_action close_receipt [07:43:11]cmd_close_receipt [07:43:11]MH_GetDate [07:43:11]Write to MH i2c: F0 00 00 67 00 56 [07:43:11]Write i2c OK [07:43:11]MH_I2C_Read... [07:43:11]Read from MH i2c: F0 [07:43:11]MH_I2C_Read... [07:43:11]Read from MH i2c: F0 09 00 [07:43:11]MH_I2C_Read... [07:43:11]Read from MH i2c: F0 09 00 67 00 00 0F A9 18 67 1E EF FA 64 01 [07:43:11]GetLastDocTimeStamp 1729669341 [07:43:11]current date 1729669391 [07:43:11]FM_GetShiftState [07:43:11]SAM_PROTO_GetShiftState [07:43:11]wFMCommunicate request_size=4 [07:43:11]MH_SAM_APDU [07:43:11]CAPDU: 80 13 01 00 [07:43:11]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [07:43:11]Write i2c OK [07:43:11]MH_I2C_Read... [07:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:11]Read from MH i2c: E2 [07:43:11]MH_I2C_Read... [07:43:11]Read from MH i2c: E2 0E 00 [07:43:11]MH_I2C_Read... [07:43:11]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 1E [07:43:11]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:43:11]wFMCommunicate OK [07:43:11]SAM_PROTO_GetShiftState done [07:43:11]FM_GetShiftState done [07:43:11]opened in 1729642861 [07:43:11]opened+sec_in_day 1729729261 [07:43:11]quantity*price = 100015 [07:43:11]sum+1 = 100017 [07:43:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 19 23.10.2024 07:43 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103607 ФПД: 236801853397325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074311&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103607&fm=236801853397325&tin=02508201610067®Number=0000000000091754&sum=100016 [07:43:12]StoreToDocumentArchive [07:43:12]shift 582 fd 103607 [07:43:12]save to /storage/0582/doc_00103607 [07:43:12]save last doc name /storage/0582/doc_00103607 to /storage/kkm_last_doc_name [07:43:12]save OK [07:43:12]Clear old archive folders... [07:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:43:12]tlvbuf is 00CA4640 [07:43:12]SAM_PROTO_ClearQueue [07:43:12]wFMCommunicate request_size=4 [07:43:12]MH_SAM_APDU [07:43:12]CAPDU: 80 09 00 00 [07:43:12]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [07:43:12]Write i2c OK [07:43:12]MH_I2C_Read... [07:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:12]Read from MH i2c: E2 [07:43:12]MH_I2C_Read... [07:43:12]Read from MH i2c: E2 03 00 [07:43:12]MH_I2C_Read... [07:43:12]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [07:43:12]RAPDU: 90 00 [07:43:12]wFMCommunicate OK [07:43:12]SAM_PROTO_ClearQueue done [07:43:12]KKMCreateOFDPacket [07:43:12]OFDProtocolAddRootSTLVToBuf [07:43:12]FM_MakeSignedData [07:43:12]FM_MakeSignedData [07:43:12]SAM_PROTO_SignData [07:43:12]wFMCommunicate request_size=4 [07:43:12]MH_SAM_APDU [07:43:12]CAPDU: 80 0D 01 02 [07:43:12]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [07:43:12]Write i2c OK [07:43:12]MH_I2C_Read... [07:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:12]Read from MH i2c: E2 [07:43:12]MH_I2C_Read... [07:43:12]Read from MH i2c: E2 03 00 [07:43:12]MH_I2C_Read... [07:43:12]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [07:43:12]RAPDU: 90 00 [07:43:12]wFMCommunicate OK [07:43:12]wFMCommunicate request_size=255 [07:43:12]MH_SAM_APDU [07:43:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 0F A9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B7 94 01 00 35 04 06 00 D7 [07:43:12]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 0F A9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B7 94 01 00 35 04 06 00 D7 00 00 47 [07:43:12]Write i2c OK [07:43:12]MH_I2C_Read... [07:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:12]Read from MH i2c: E2 [07:43:12]MH_I2C_Read... [07:43:12]Read from MH i2c: E2 03 00 [07:43:12]MH_I2C_Read... [07:43:12]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [07:43:12]RAPDU: 90 00 [07:43:12]wFMCommunicate OK [07:43:12]wFMCommunicate request_size=10 [07:43:12]MH_SAM_APDU [07:43:12]CAPDU: 80 0D 02 02 05 5E BA 5A 99 4D [07:43:12]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 5E BA 5A 99 4D 00 00 54 [07:43:12]Write i2c OK [07:43:12]MH_I2C_Read... [07:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:13]Read from MH i2c: E2 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 03 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [07:43:13]RAPDU: 90 00 [07:43:13]wFMCommunicate OK [07:43:13]wFMCommunicate request_size=4 [07:43:13]MH_SAM_APDU [07:43:13]CAPDU: 80 0D 03 02 [07:43:13]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:13]Read from MH i2c: E2 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 0B 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 0B 00 79 00 00 C5 03 32 B3 DD 3B CD 01 90 00 88 [07:43:13]RAPDU: C5 03 32 B3 DD 3B CD 01 90 00 [07:43:13]wFMCommunicate OK [07:43:13]SAM_PROTO_SignData done [07:43:13]FM_MakeSignedData done [07:43:13]CreateOFDProtocolMessage [07:43:13]wFMCommunicate request_size=4 [07:43:13]MH_SAM_APDU [07:43:13]CAPDU: 80 11 00 00 [07:43:13]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:13]Read from MH i2c: E2 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 17 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 41 [07:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:43:13]wFMCommunicate OK [07:43:13]CreateOFDProtocolMessage done [07:43:13]OFDSenderStorePacket 103607 [07:43:13]StoreOFDPacket docnum=103607 [07:43:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 5C 1B 07 01 AF 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 0F A9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B7 94 01 00 35 04 06 00 D7 5E BA 5A 99 4D C5 03 32 B3 DD 3B CD 01 [07:43:13]CheckFolder [07:43:13]dirname=/storage/ofd_packets [07:43:13]CheckFolder done [07:43:13]ProducePacketName [07:43:13]name=ofd_packets/00103607 [07:43:13]NVStorageSaveData ofd_packets/00103607 [07:43:13]File name is /storage/ofd_packets/00103607 [07:43:13]Write 301 bytes [07:43:13]NVStorageSaveData done [07:43:13]OFDSenderStorePacket done [07:43:13]KKMCreateOFDPacket done [07:43:13]NVStorageSaveData kkm_last_timestamp [07:43:13]File name is /storage/kkm_last_timestamp [07:43:13]Write 4 bytes [07:43:13]NVStorageSaveData done [07:43:13]ExternCall_PrintAddStr [07:43:13]wPrintStart [07:43:13]Write to MH i2c: 01 00 00 7B 00 7B [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: 01 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: 01 07 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [07:43:13]RasterBufferAndPrint [07:43:13]line Счет N : (1)317809 [07:43:13]line ИНН: 02508201610067 [07:43:13]line Контрольно-Кассовый Чек [07:43:13]line ПРОДАЖА [07:43:13]line ТРК (МРК, ГНК) : 43 [07:43:13]line Товар: 2710124130 [07:43:13]line Аи-92-К-4 [07:43:13]line 14.950 * 66.90 [07:43:13]line = 1000.16 [07:43:13]line НДС 12% НСП 1% [07:43:13]line > о реализуемом товаре [07:43:13]line ИТОГО: 1000.16 [07:43:13]line НСП 1% : 8.85 [07:43:13]line НДС 12% : 106.21 [07:43:13]line Наличными: 0.00 [07:43:13]line Безнал.: 1000.16 [07:43:13]line Место: АЗС № 145 "Партнер Нефть" [07:43:13]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [07:43:13]line СНО: Общий режим [07:43:13]line Чек 19 23.10.2024 07:43 [07:43:13]line Смена: 582 ФФД: 1.0 [07:43:13]line ЗНМ: 0300000095 [07:43:13]line РНМ: 0000000000091754 [07:43:13]line Версия ККМ: 001 [07:43:13]line Платежная система: АКБ Кыргызстан [07:43:13]line ФМ: 0000000000871811 [07:43:13]line ФД: 103607 [07:43:13]line ФПД: 236801853397325 [07:43:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T074311&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103607&fm=236801853397325&tin=02508201610067®Number=0000000000091754&sum=100016 [07:43:13]written 0, free lines is 4095 [07:43:13]OFD Sender: Processing packet 103607 [packets to send 498, broken 497] [07:43:13]ProducePacketName [07:43:13]name=ofd_packets/00103607 [07:43:13]OFD Sender: To server: pG, [07:43:13]CommunicateWithHost lk.salyk.kg:30040 [07:43:13]ConnectInit lk.salyk.kg [07:43:13]Write to MH i2c: 01 00 00 A4 00 A4 [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: 01 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: 01 07 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 DB 0C 92 [07:43:13]RasterBufferAndPrint [07:43:13]line [07:43:13]line [07:43:13]line [07:43:13]line [07:43:13]line [07:43:13]written 0, free lines is 3297 [07:43:13]MH_Cut [07:43:13]Write to MH i2c: D1 01 00 AB 00 01 7D [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: D1 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: D1 01 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: D1 01 00 AB 00 00 7C [07:43:13]Write to MH i2c: 01 00 00 AC 00 AC [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:14]*** Cut start [07:43:14]*** Partial cut [07:43:14]*** CUTSNS_PIN = 1 [07:43:14]*** CUTSNS_PIN = 0 [07:43:14]*** Brake cut motor [07:43:15]Read from MH i2c: 01 [07:43:15]MH_I2C_Read... [07:43:15]*** Stop cut motor [07:43:15]*** Cut end [07:43:15]Read from MH i2c: 01 07 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [07:43:15]process_action close_receipt done [07:43:15]requested_data is exist [07:43:15]produce_requested_data [07:43:15]requested_item fm.sn is exist - process it [07:43:15]wFMCommunicate request_size=4 [07:43:15]MH_SAM_APDU [07:43:15]CAPDU: 80 11 00 00 [07:43:15]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:15]Read from MH i2c: E2 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 17 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 74 [07:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:43:15]wFMCommunicate OK [07:43:15]requested_item fd.num is exist - process it [07:43:15]SAM_PROTO_GetFieldsCounters [07:43:15]wFMCommunicate request_size=4 [07:43:15]MH_SAM_APDU [07:43:15]CAPDU: 80 13 00 00 [07:43:15]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]Connected sock=11 [07:43: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 31 31 0F 01 00 00 5C 1B 07 01 AF 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 0F A9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B7 94 01 00 35 04 06 00 D7 5E BA 5A 99 4D C5 03 32 B3 DD 3B CD 01 [07:43:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:15]Read from MH i2c: E2 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 62 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 62 00 AE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [07:43: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:15]wFMCommunicate OK [07:43:15]SAM_PROTO_GetFieldsCounters done [07:43:15]requested_item shift.num is exist - process it [07:43:15]requested_item shift.opened is exist - process it [07:43:15]req_shift_opened [07:43:15]FM_GetShiftState [07:43:15]SAM_PROTO_GetShiftState [07:43:15]wFMCommunicate request_size=4 [07:43:15]MH_SAM_APDU [07:43:15]CAPDU: 80 13 01 00 [07:43:15]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:15]Read from MH i2c: E2 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 0E 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 65 [07:43:15]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:43:15]wFMCommunicate OK [07:43:15]SAM_PROTO_GetShiftState done [07:43:15]FM_GetShiftState done [07:43:15]req_shift_opened done [07:43:15]requested_item shift.open_date is exist - process it [07:43:15]req_shift_open_date [07:43:15]req_shift_open_date done [07:43:15]produce_requested_data done [07:43:15]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103607,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [07:43:15]process_action_free close_receipt [07:43:15]json_value_free [07:43:15]json_value_free done [07:43:15]process_json_proto returns [07:43:15]Send response to host [07:43:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103607,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [07:43:15]free response buf [07:43:15]execute_script done [07:43:15]execute_script returns [07:43:15]free content buf [07:43:15]Sock 9.Close socket [07:43:15]Sock 9.Thread stoped [07:43: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 31 31 4F 00 00 00 45 1F 47 00 87 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B7 94 01 00 F4 03 04 00 27 50 18 67 B6 04 01 00 00 F3 FE D5 F8 39 58 80 C5 [07:43:16]CommunicateWithHost err = 0 [07:43:16]CheckOFDResponse [07:43:16]1017 (14) - 77093643461234 [07:43:16]1041 (16) - 0000000000871811 [07:43:16]1040 (4) - 103607 [07:43:16]1012 (4) - 23.10.2024 01:23 [07:43:16]1206 (1) - 0 [07:43:16]OFD Sender: Remove packet 103607 [07:43:16]ProducePacketName [07:43:16]name=ofd_packets/00103607 [07:43:16]NVStorageDeleteData [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:34]recv_with_timeout no data received [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:45]recv_with_timeout no data received [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:10]recv_with_timeout no data received [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:21]recv_with_timeout no data received [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:40]recv_with_timeout no data received [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:54]recv_with_timeout no data received [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]recv_with_timeout no data received [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:19]recv_with_timeout no data received [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]recv_with_timeout no data received [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:49]recv_with_timeout no data received [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:08]recv_with_timeout no data received [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:19]recv_with_timeout no data received [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:53]recv_with_timeout no data received [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:44]recv_with_timeout no data received [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:01]accept exits with 10 [07:51:01]New connection [07:51:01]New thread 3067231588 created [07:51:01]Thread 3067088228 joined [07:51:01]Waiting for new connection... [07:51:01] Sock 10.Parse request [07:51:01]Sock 10.Check first char [07:51:01]Sock 10.First char is OK [07:51:01]request: POST /json_proto HTTP/1.0 [07:51:01]Method: POST [07:51:01]URL: /json_proto [07:51:01]Method is POST - this is cgi request [07:51:01]url: /json_proto [07:51:01]query_string will be loaded in cgi processing [07:51:01]execute_cgi json_proto POST (null) [07:51:01]execute_cgi path=json_proto method=POST [07:51:01]POST find Content-Length [07:51:01]Host: 172.17.51.67:8080 [07:51:01]Content-Length: 677 [07:51:01]Content-Type: application/json [07:51:01] [07:51:01]POST finish read [07:51:01]Found Content-Length = 677 [07:51:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:01]execute_script... [07:51:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:01]POST & json_proto [07:51:01]process_json_proto [07:51:01]json parsed OK: [07:51:01]protocol is kg_v1.0 [07:51:01]action value=close_receipt [07:51:01]process_action close_receipt [07:51:01]cmd_close_receipt [07:51:01]MH_GetDate [07:51:01]Write to MH i2c: F0 00 00 B0 00 9F [07:51:01]Write i2c OK [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: F0 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: F0 09 00 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: F0 09 00 B0 00 00 E5 AA 18 67 1E EF FA 64 21 [07:51:01]GetLastDocTimeStamp 1729669391 [07:51:01]current date 1729669861 [07:51:01]FM_GetShiftState [07:51:01]SAM_PROTO_GetShiftState [07:51:01]wFMCommunicate request_size=4 [07:51:01]MH_SAM_APDU [07:51:01]CAPDU: 80 13 01 00 [07:51:01]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [07:51:01]Write i2c OK [07:51:01]MH_I2C_Read... [07:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:01]Read from MH i2c: E2 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: E2 0E 00 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 67 [07:51:01]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:51:01]wFMCommunicate OK [07:51:01]SAM_PROTO_GetShiftState done [07:51:01]FM_GetShiftState done [07:51:01]opened in 1729642861 [07:51:01]opened+sec_in_day 1729729261 [07:51:01]quantity*price = 40006 [07:51:01]sum+1 = 40007 [07:51:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 20 23.10.2024 07:51 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103608 ФПД: 176109774487755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075101&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103608&fm=176109774487755&tin=02508201610067®Number=0000000000091754&sum=40000 [07:51:02]StoreToDocumentArchive [07:51:02]shift 582 fd 103608 [07:51:02]save to /storage/0582/doc_00103608 [07:51:02]save last doc name /storage/0582/doc_00103608 to /storage/kkm_last_doc_name [07:51:02]save OK [07:51:02]Clear old archive folders... [07:51:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:51:02]tlvbuf is 00CA5F50 [07:51:02]SAM_PROTO_ClearQueue [07:51:02]wFMCommunicate request_size=4 [07:51:02]MH_SAM_APDU [07:51:02]CAPDU: 80 09 00 00 [07:51:02]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [07:51:02]Write i2c OK [07:51:02]MH_I2C_Read... [07:51:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:02]Read from MH i2c: E2 [07:51:02]MH_I2C_Read... [07:51:02]Read from MH i2c: E2 03 00 [07:51:02]MH_I2C_Read... [07:51:02]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [07:51:02]RAPDU: 90 00 [07:51:02]wFMCommunicate OK [07:51:02]SAM_PROTO_ClearQueue done [07:51:02]KKMCreateOFDPacket [07:51:02]OFDProtocolAddRootSTLVToBuf [07:51:02]FM_MakeSignedData [07:51:02]FM_MakeSignedData [07:51:02]SAM_PROTO_SignData [07:51:02]wFMCommunicate request_size=4 [07:51:02]MH_SAM_APDU [07:51:02]CAPDU: 80 0D 01 02 [07:51:02]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [07:51:02]Write i2c OK [07:51:02]MH_I2C_Read... [07:51:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:02]Read from MH i2c: E2 [07:51:02]MH_I2C_Read... [07:51:02]Read from MH i2c: E2 03 00 [07:51:02]MH_I2C_Read... [07:51:02]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [07:51:02]RAPDU: 90 00 [07:51:02]wFMCommunicate OK [07:51:02]wFMCommunicate request_size=255 [07:51:02]MH_SAM_APDU [07:51:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E5 AA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B8 94 01 00 35 04 06 00 A0 [07:51:02]Write to MH i2c: E2 02 01 C0 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E5 AA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B8 94 01 00 35 04 06 00 A0 00 00 E7 [07:51:02]Write i2c OK [07:51:02]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 03 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [07:51:03]RAPDU: 90 00 [07:51:03]wFMCommunicate OK [07:51:03]wFMCommunicate request_size=10 [07:51:03]MH_SAM_APDU [07:51:03]CAPDU: 80 0D 02 02 05 2B C0 8C C0 CB [07:51:03]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 2B C0 8C C0 CB 00 00 47 [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 03 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [07:51:03]RAPDU: 90 00 [07:51:03]wFMCommunicate OK [07:51:03]wFMCommunicate request_size=4 [07:51:03]MH_SAM_APDU [07:51:03]CAPDU: 80 0D 03 02 [07:51:03]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 0B 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 0B 00 C2 00 00 4F 14 99 12 D5 AA 33 BE 90 00 BC [07:51:03]RAPDU: 4F 14 99 12 D5 AA 33 BE 90 00 [07:51:03]wFMCommunicate OK [07:51:03]SAM_PROTO_SignData done [07:51:03]FM_MakeSignedData done [07:51:03]CreateOFDProtocolMessage [07:51:03]wFMCommunicate request_size=4 [07:51:03]MH_SAM_APDU [07:51:03]CAPDU: 80 11 00 00 [07:51:03]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 17 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 8A [07:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:51:03]wFMCommunicate OK [07:51:03]CreateOFDProtocolMessage done [07:51:03]OFDSenderStorePacket 103608 [07:51:03]StoreOFDPacket docnum=103608 [07:51:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 9C E8 07 01 A4 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E5 AA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B8 94 01 00 35 04 06 00 A0 2B C0 8C C0 CB 4F 14 99 12 D5 AA 33 BE [07:51:03]CheckFolder [07:51:03]dirname=/storage/ofd_packets [07:51:03]CheckFolder done [07:51:03]ProducePacketName [07:51:03]name=ofd_packets/00103608 [07:51:03]NVStorageSaveData ofd_packets/00103608 [07:51:03]File name is /storage/ofd_packets/00103608 [07:51:03]Write 301 bytes [07:51:03]NVStorageSaveData done [07:51:03]OFDSenderStorePacket done [07:51:03]KKMCreateOFDPacket done [07:51:03]NVStorageSaveData kkm_last_timestamp [07:51:03]File name is /storage/kkm_last_timestamp [07:51:03]Write 4 bytes [07:51:03]NVStorageSaveData done [07:51:03]ExternCall_PrintAddStr [07:51:03]wPrintStart [07:51:03]Write to MH i2c: 01 00 00 C4 00 C4 [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: 01 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: 01 07 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [07:51:03]RasterBufferAndPrint [07:51:03]line Счет N : (1)317810 [07:51:03]line ИНН: 02508201610067 [07:51:03]line Контрольно-Кассовый Чек [07:51:03]line ПРОДАЖА [07:51:03]line ТРК (МРК, ГНК) : 43 [07:51:03]line Товар: 2710124130 [07:51:03]line Аи-92-К-4 [07:51:03]line 5.980 * 66.90 [07:51:03]line = 400.06 [07:51:03]line НДС 12% НСП 1% [07:51:03]line > о реализуемом товаре [07:51:03]line ОКРУГЛЕНИЕ: -0.06 [07:51:03]line ИТОГО: 400.00 [07:51:03]line Внесено: 400.00 [07:51:03]line СДАЧА: 0.00 [07:51:03]line НСП 1% : 3.54 [07:51:03]line НДС 12% : 42.48 [07:51:03]line Наличными: 400.00 [07:51:03]line Безнал.: 0.00 [07:51:03]line Место: АЗС № 145 "Партнер Нефть" [07:51:03]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [07:51:03]line СНО: Общий режим [07:51:03]line Чек 20 23.10.2024 07:51 [07:51:03]line Смена: 582 ФФД: 1.0 [07:51:03]line ЗНМ: 0300000095 [07:51:03]line РНМ: 0000000000091754 [07:51:03]line Версия ККМ: 001 [07:51:03]line ФМ: 0000000000871811 [07:51:03]line ФД: 103608 [07:51:03]line ФПД: 176109774487755 [07:51:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075101&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103608&fm=176109774487755&tin=02508201610067®Number=0000000000091754&sum=40000 [07:51:03]written 0, free lines is 4095 [07:51:03]OFD Sender: Processing packet 103608 [packets to send 498, broken 497] [07:51:03]ProducePacketName [07:51:03]name=ofd_packets/00103608 [07:51:03]OFD Sender: To server: pG, [07:51:03]CommunicateWithHost lk.salyk.kg:30040 [07:51:03]ConnectInit lk.salyk.kg [07:51:03]Write to MH i2c: 01 00 00 EE 00 EE [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: 01 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: 01 07 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 C2 0C C3 [07:51:03]RasterBufferAndPrint [07:51:03]line [07:51:03]line [07:51:03]line [07:51:03]line [07:51:03]line [07:51:03]written 0, free lines is 3272 [07:51:03]MH_Cut [07:51:03]Write to MH i2c: D1 01 00 F5 00 01 C7 [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: D1 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: D1 01 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: D1 01 00 F5 00 00 C6 [07:51:03]Write to MH i2c: 01 00 00 F6 00 F6 [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:04]Connected sock=9 [07:51: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 31 31 0F 01 00 00 9C E8 07 01 A4 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E5 AA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B8 94 01 00 35 04 06 00 A0 2B C0 8C C0 CB 4F 14 99 12 D5 AA 33 BE [07:51:04]*** Cut start [07:51:04]*** Partial cut [07:51:04]*** CUTSNS_PIN = 1 [07:51:04]*** CUTSNS_PIN = 0 [07:51:04]*** Brake cut motor [07:51:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 4F 00 00 00 0F 09 47 00 86 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 31 31 10 04 04 00 B8 94 01 00 F4 03 04 00 FD 51 18 67 B6 04 01 00 00 B3 84 64 BD BB 8E 42 C8 [07:51:05]CommunicateWithHost err = 0 [07:51:05]CheckOFDResponse [07:51:05]1017 (14) - 77093643461234 [07:51:05]1041 (16) - 0000000000871811 [07:51:05]1040 (4) - 103608 [07:51:05]1012 (4) - 23.10.2024 01:31 [07:51:05]1206 (1) - 0 [07:51:05]OFD Sender: Remove packet 103608 [07:51:05]ProducePacketName [07:51:05]name=ofd_packets/00103608 [07:51:05]NVStorageDeleteData [07:51:05]Read from MH i2c: 01 [07:51:05]MH_I2C_Read... [07:51:05]*** Stop cut motor [07:51:05]*** Cut end [07:51:05]Read from MH i2c: 01 07 00 [07:51:05]MH_I2C_Read... [07:51:05]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [07:51:05]process_action close_receipt done [07:51:05]requested_data is exist [07:51:05]produce_requested_data [07:51:05]requested_item fm.sn is exist - process it [07:51:05]wFMCommunicate request_size=4 [07:51:05]MH_SAM_APDU [07:51:05]CAPDU: 80 11 00 00 [07:51:05]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [07:51:05]Write i2c OK [07:51:05]MH_I2C_Read... [07:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:05]Read from MH i2c: E2 [07:51:05]MH_I2C_Read... [07:51:05]Read from MH i2c: E2 17 00 [07:51:05]MH_I2C_Read... [07:51:05]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 BE [07:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:51:05]wFMCommunicate OK [07:51:05]requested_item fd.num is exist - process it [07:51:05]SAM_PROTO_GetFieldsCounters [07:51:05]wFMCommunicate request_size=4 [07:51:05]MH_SAM_APDU [07:51:05]CAPDU: 80 13 00 00 [07:51:05]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [07:51:05]Write i2c OK [07:51:05]MH_I2C_Read... [07:51:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:05]Read from MH i2c: E2 [07:51:05]MH_I2C_Read... [07:51:05]Read from MH i2c: E2 62 00 [07:51:05]MH_I2C_Read... [07:51:05]Read from MH i2c: E2 62 00 F8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B8 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [07:51: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B8 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:05]wFMCommunicate OK [07:51:05]SAM_PROTO_GetFieldsCounters done [07:51:05]requested_item shift.num is exist - process it [07:51:05]requested_item shift.opened is exist - process it [07:51:05]req_shift_opened [07:51:05]FM_GetShiftState [07:51:05]SAM_PROTO_GetShiftState [07:51:05]wFMCommunicate request_size=4 [07:51:05]MH_SAM_APDU [07:51:05]CAPDU: 80 13 01 00 [07:51:05]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [07:51:05]Write i2c OK [07:51:05]MH_I2C_Read... [07:51:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:05]Read from MH i2c: E2 [07:51:05]MH_I2C_Read... [07:51:05]Read from MH i2c: E2 0E 00 [07:51:05]MH_I2C_Read... [07:51:05]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 AF [07:51:05]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:51:05]wFMCommunicate OK [07:51:05]SAM_PROTO_GetShiftState done [07:51:05]FM_GetShiftState done [07:51:05]req_shift_opened done [07:51:05]requested_item shift.open_date is exist - process it [07:51:05]req_shift_open_date [07:51:05]req_shift_open_date done [07:51:05]produce_requested_data done [07:51:05]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103608,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [07:51:05]process_action_free close_receipt [07:51:05]json_value_free [07:51:05]json_value_free done [07:51:05]process_json_proto returns [07:51:05]Send response to host [07:51:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103608,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [07:51:05]free response buf [07:51:05]execute_script done [07:51:05]execute_script returns [07:51:05]free content buf [07:51:05]Sock 10.Close socket [07:51:05]Sock 10.Thread stoped [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]recv_with_timeout no data received [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:36]recv_with_timeout no data received [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:45]accept exits with 7 [07:53:45]New connection [07:53:45]New thread 3067088228 created [07:53:45]Thread 3067231588 joined [07:53:45]Waiting for new connection... [07:53:45] Sock 7.Parse request [07:53:45]Sock 7.Check first char [07:53:45]Sock 7.First char is OK [07:53:45]request: POST /json_proto HTTP/1.0 [07:53:45]Method: POST [07:53:45]URL: /json_proto [07:53:45]Method is POST - this is cgi request [07:53:45]url: /json_proto [07:53:45]query_string will be loaded in cgi processing [07:53:45]execute_cgi json_proto POST (null) [07:53:45]execute_cgi path=json_proto method=POST [07:53:45]POST find Content-Length [07:53:45]Host: 172.17.51.67:8080 [07:53:45]Content-Length: 677 [07:53:45]Content-Type: application/json [07:53:45] [07:53:45]POST finish read [07:53:45]Found Content-Length = 677 [07:53:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:45]execute_script... [07:53:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:45]POST & json_proto [07:53:45]process_json_proto [07:53:45]json parsed OK: [07:53:45]protocol is kg_v1.0 [07:53:45]action value=close_receipt [07:53:45]process_action close_receipt [07:53:45]cmd_close_receipt [07:53:45]MH_GetDate [07:53:45]Write to MH i2c: F0 00 00 FA 00 E9 [07:53:45]Write i2c OK [07:53:45]MH_I2C_Read... [07:53:45]Read from MH i2c: F0 [07:53:45]MH_I2C_Read... [07:53:45]Read from MH i2c: F0 09 00 [07:53:45]MH_I2C_Read... [07:53:45]Read from MH i2c: F0 09 00 FA 00 00 89 AB 18 67 1E EF FA 64 10 [07:53:45]GetLastDocTimeStamp 1729669861 [07:53:45]current date 1729670025 [07:53:45]FM_GetShiftState [07:53:45]SAM_PROTO_GetShiftState [07:53:45]wFMCommunicate request_size=4 [07:53:45]MH_SAM_APDU [07:53:45]CAPDU: 80 13 01 00 [07:53:45]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [07:53:45]Write i2c OK [07:53:45]MH_I2C_Read... [07:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:45]Read from MH i2c: E2 [07:53:45]MH_I2C_Read... [07:53:45]Read from MH i2c: E2 0E 00 [07:53:45]MH_I2C_Read... [07:53:45]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B1 [07:53:45]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:53:45]wFMCommunicate OK [07:53:45]SAM_PROTO_GetShiftState done [07:53:45]FM_GetShiftState done [07:53:45]opened in 1729642861 [07:53:45]opened+sec_in_day 1729729261 [07:53:45]quantity*price = 30038 [07:53:45]sum+1 = 30039 [07:53:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 21 23.10.2024 07:53 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103609 ФПД: 246978803456293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075345&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103609&fm=246978803456293&tin=02508201610067®Number=0000000000091754&sum=30000 [07:53:46]StoreToDocumentArchive [07:53:46]shift 582 fd 103609 [07:53:46]save to /storage/0582/doc_00103609 [07:53:46]save last doc name /storage/0582/doc_00103609 to /storage/kkm_last_doc_name [07:53:46]save OK [07:53:46]Clear old archive folders... [07:53:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:53:46]tlvbuf is 00CBC9B0 [07:53:46]SAM_PROTO_ClearQueue [07:53:46]wFMCommunicate request_size=4 [07:53:46]MH_SAM_APDU [07:53:46]CAPDU: 80 09 00 00 [07:53:46]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [07:53:46]Write i2c OK [07:53:46]MH_I2C_Read... [07:53:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:46]Read from MH i2c: E2 [07:53:46]MH_I2C_Read... [07:53:46]Read from MH i2c: E2 03 00 [07:53:46]MH_I2C_Read... [07:53:46]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [07:53:46]RAPDU: 90 00 [07:53:46]wFMCommunicate OK [07:53:46]SAM_PROTO_ClearQueue done [07:53:46]KKMCreateOFDPacket [07:53:46]OFDProtocolAddRootSTLVToBuf [07:53:46]FM_MakeSignedData [07:53:46]FM_MakeSignedData [07:53:46]SAM_PROTO_SignData [07:53:46]wFMCommunicate request_size=4 [07:53:46]MH_SAM_APDU [07:53:46]CAPDU: 80 0D 01 02 [07:53:46]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [07:53:46]Write i2c OK [07:53:46]MH_I2C_Read... [07:53:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:46]Read from MH i2c: E2 [07:53:46]MH_I2C_Read... [07:53:46]Read from MH i2c: E2 03 00 [07:53:46]MH_I2C_Read... [07:53:46]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [07:53:46]RAPDU: 90 00 [07:53:46]wFMCommunicate OK [07:53:46]wFMCommunicate request_size=255 [07:53:46]MH_SAM_APDU [07:53:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 89 AB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B9 94 01 00 35 04 06 00 E0 [07:53:46]Write to MH i2c: E2 02 01 0A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 89 AB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B9 94 01 00 35 04 06 00 E0 00 00 3E [07:53:46]Write i2c OK [07:53:46]MH_I2C_Read... [07:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:47]Read from MH i2c: E2 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: E2 03 00 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [07:53:47]RAPDU: 90 00 [07:53:47]wFMCommunicate OK [07:53:47]wFMCommunicate request_size=10 [07:53:47]MH_SAM_APDU [07:53:47]CAPDU: 80 0D 02 02 05 A0 3B D8 D9 25 [07:53:47]Write to MH i2c: E2 0D 00 0B 01 80 0D 02 02 05 00 A0 3B D8 D9 25 00 00 41 [07:53:47]Write i2c OK [07:53:47]MH_I2C_Read... [07:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:47]Read from MH i2c: E2 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: E2 03 00 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [07:53:47]RAPDU: 90 00 [07:53:47]wFMCommunicate OK [07:53:47]wFMCommunicate request_size=4 [07:53:47]MH_SAM_APDU [07:53:47]CAPDU: 80 0D 03 02 [07:53:47]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [07:53:47]Write i2c OK [07:53:47]MH_I2C_Read... [07:53:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:47]Read from MH i2c: E2 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: E2 0B 00 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: E2 0B 00 0C 01 00 B4 23 CF 83 B1 F4 07 FF 90 00 5D [07:53:47]RAPDU: B4 23 CF 83 B1 F4 07 FF 90 00 [07:53:47]wFMCommunicate OK [07:53:47]SAM_PROTO_SignData done [07:53:47]FM_MakeSignedData done [07:53:47]CreateOFDProtocolMessage [07:53:47]wFMCommunicate request_size=4 [07:53:47]MH_SAM_APDU [07:53:47]CAPDU: 80 11 00 00 [07:53:47]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [07:53:47]Write i2c OK [07:53:47]MH_I2C_Read... [07:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:47]Read from MH i2c: E2 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: E2 17 00 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D5 [07:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:53:47]wFMCommunicate OK [07:53:47]CreateOFDProtocolMessage done [07:53:47]OFDSenderStorePacket 103609 [07:53:47]StoreOFDPacket docnum=103609 [07:53:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 D3 D6 07 01 43 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 89 AB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B9 94 01 00 35 04 06 00 E0 A0 3B D8 D9 25 B4 23 CF 83 B1 F4 07 FF [07:53:47]CheckFolder [07:53:47]dirname=/storage/ofd_packets [07:53:47]CheckFolder done [07:53:47]ProducePacketName [07:53:47]name=ofd_packets/00103609 [07:53:47]NVStorageSaveData ofd_packets/00103609 [07:53:47]File name is /storage/ofd_packets/00103609 [07:53:47]Write 301 bytes [07:53:47]NVStorageSaveData done [07:53:47]OFDSenderStorePacket done [07:53:47]KKMCreateOFDPacket done [07:53:47]NVStorageSaveData kkm_last_timestamp [07:53:47]File name is /storage/kkm_last_timestamp [07:53:47]Write 4 bytes [07:53:47]NVStorageSaveData done [07:53:47]ExternCall_PrintAddStr [07:53:47]wPrintStart [07:53:47]Write to MH i2c: 01 00 00 0E 01 0F [07:53:47]Write i2c OK [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: 01 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: 01 07 00 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [07:53:47]RasterBufferAndPrint [07:53:47]line Счет N : (1)317811 [07:53:47]line ИНН: 02508201610067 [07:53:47]line Контрольно-Кассовый Чек [07:53:47]line ПРОДАЖА [07:53:47]line ТРК (МРК, ГНК) : 43 [07:53:47]line Товар: 2710124130 [07:53:47]line Аи-92-К-4 [07:53:47]line 4.490 * 66.90 [07:53:47]line = 300.38 [07:53:47]line НДС 12% НСП 1% [07:53:47]line > о реализуемом товаре [07:53:47]line ОКРУГЛЕНИЕ: -0.38 [07:53:47]line ИТОГО: 300.00 [07:53:47]line Внесено: 300.00 [07:53:47]line СДАЧА: 0.00 [07:53:47]line НСП 1% : 2.66 [07:53:47]line НДС 12% : 31.90 [07:53:47]line Наличными: 300.00 [07:53:47]line Безнал.: 0.00 [07:53:47]line Место: АЗС № 145 "Партнер Нефть" [07:53:47]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [07:53:47]line СНО: Общий режим [07:53:47]line Чек 21 23.10.2024 07:53 [07:53:47]line Смена: 582 ФФД: 1.0 [07:53:47]line ЗНМ: 0300000095 [07:53:47]line РНМ: 0000000000091754 [07:53:47]line Версия ККМ: 001 [07:53:47]line ФМ: 0000000000871811 [07:53:47]line ФД: 103609 [07:53:47]line ФПД: 246978803456293 [07:53:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075345&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103609&fm=246978803456293&tin=02508201610067®Number=0000000000091754&sum=30000 [07:53:47]written 0, free lines is 4095 [07:53:47]OFD Sender: Processing packet 103609 [packets to send 498, broken 497] [07:53:47]ProducePacketName [07:53:47]name=ofd_packets/00103609 [07:53:47]OFD Sender: To server: pG, [07:53:47]CommunicateWithHost lk.salyk.kg:30040 [07:53:47]ConnectInit lk.salyk.kg [07:53:47]Write to MH i2c: 01 00 00 38 01 39 [07:53:47]Write i2c OK [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: 01 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: 01 07 00 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 C7 0C 13 [07:53:47]RasterBufferAndPrint [07:53:47]line [07:53:47]line [07:53:47]line [07:53:47]line [07:53:47]line [07:53:47]written 0, free lines is 3277 [07:53:47]MH_Cut [07:53:47]Write to MH i2c: D1 01 00 3F 01 01 12 [07:53:47]Write i2c OK [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: D1 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: D1 01 00 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: D1 01 00 3F 01 00 11 [07:53:47]Write to MH i2c: 01 00 00 40 01 41 [07:53:47]Write i2c OK [07:53:47]MH_I2C_Read... [07:53:47]Connected sock=9 [07:53: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 31 31 0F 01 00 00 D3 D6 07 01 43 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 89 AB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B9 94 01 00 35 04 06 00 E0 A0 3B D8 D9 25 B4 23 CF 83 B1 F4 07 FF [07:53: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 31 31 4F 00 00 00 C6 BB 47 00 2D BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 B9 94 01 00 F4 03 04 00 A0 52 18 67 B6 04 01 00 00 83 7B 96 02 22 F2 AB D9 [07:53:48]CommunicateWithHost err = 0 [07:53:48]CheckOFDResponse [07:53:48]1017 (14) - 77093643461234 [07:53:48]1041 (16) - 0000000000871811 [07:53:48]1040 (4) - 103609 [07:53:48]1012 (4) - 23.10.2024 01:34 [07:53:48]1206 (1) - 0 [07:53:48]OFD Sender: Remove packet 103609 [07:53:48]ProducePacketName [07:53:48]name=ofd_packets/00103609 [07:53:48]NVStorageDeleteData [07:53:48]*** Cut start [07:53:48]*** Partial cut [07:53:48]*** CUTSNS_PIN = 1 [07:53:48]*** CUTSNS_PIN = 0 [07:53:48]OFD Sender: No OFD packet to send [07:53:48]*** Brake cut motor [07:53:49]Read from MH i2c: 01 [07:53:49]MH_I2C_Read... [07:53:49]*** Stop cut motor [07:53:49]*** Cut end [07:53:49]Read from MH i2c: 01 07 00 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [07:53:49]process_action close_receipt done [07:53:49]requested_data is exist [07:53:49]produce_requested_data [07:53:49]requested_item fm.sn is exist - process it [07:53:49]wFMCommunicate request_size=4 [07:53:49]MH_SAM_APDU [07:53:49]CAPDU: 80 11 00 00 [07:53:49]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [07:53:49]Write i2c OK [07:53:49]MH_I2C_Read... [07:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:49]Read from MH i2c: E2 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: E2 17 00 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 09 [07:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:53:49]wFMCommunicate OK [07:53:49]requested_item fd.num is exist - process it [07:53:49]SAM_PROTO_GetFieldsCounters [07:53:49]wFMCommunicate request_size=4 [07:53:49]MH_SAM_APDU [07:53:49]CAPDU: 80 13 00 00 [07:53:49]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [07:53:49]Write i2c OK [07:53:49]MH_I2C_Read... [07:53:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:49]Read from MH i2c: E2 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: E2 62 00 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: E2 62 00 42 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B9 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [07:53: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 B9 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:53:49]wFMCommunicate OK [07:53:49]SAM_PROTO_GetFieldsCounters done [07:53:49]requested_item shift.num is exist - process it [07:53:49]requested_item shift.opened is exist - process it [07:53:49]req_shift_opened [07:53:49]FM_GetShiftState [07:53:49]SAM_PROTO_GetShiftState [07:53:49]wFMCommunicate request_size=4 [07:53:49]MH_SAM_APDU [07:53:49]CAPDU: 80 13 01 00 [07:53:49]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [07:53:49]Write i2c OK [07:53:49]MH_I2C_Read... [07:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:49]Read from MH i2c: E2 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: E2 0E 00 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 FA [07:53:49]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:53:49]wFMCommunicate OK [07:53:49]SAM_PROTO_GetShiftState done [07:53:49]FM_GetShiftState done [07:53:49]req_shift_opened done [07:53:49]requested_item shift.open_date is exist - process it [07:53:49]req_shift_open_date [07:53:49]req_shift_open_date done [07:53:49]produce_requested_data done [07:53:49]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103609,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [07:53:49]process_action_free close_receipt [07:53:49]json_value_free [07:53:49]json_value_free done [07:53:49]process_json_proto returns [07:53:49]Send response to host [07:53:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103609,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [07:53:49]free response buf [07:53:49]execute_script done [07:53:49]execute_script returns [07:53:49]free content buf [07:53:49]Sock 7.Close socket [07:53:49]Sock 7.Thread stoped [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]recv_with_timeout no data received [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:16]recv_with_timeout no data received [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:57]recv_with_timeout no data received [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:42]recv_with_timeout no data received [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:53]recv_with_timeout no data received [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:57]recv_with_timeout no data received [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:50]accept exits with 10 [07:59:50]New connection [07:59:50]New thread 3067231588 created [07:59:50]Thread 3067088228 joined [07:59:50]Waiting for new connection... [07:59:50] Sock 10.Parse request [07:59:50]Sock 10.Check first char [07:59:50]Sock 10.First char is OK [07:59:50]request: POST /json_proto HTTP/1.0 [07:59:50]Method: POST [07:59:50]URL: /json_proto [07:59:50]Method is POST - this is cgi request [07:59:50]url: /json_proto [07:59:50]query_string will be loaded in cgi processing [07:59:50]execute_cgi json_proto POST (null) [07:59:50]execute_cgi path=json_proto method=POST [07:59:50]POST find Content-Length [07:59:50]Host: 172.17.51.67:8080 [07:59:50]Content-Length: 837 [07:59:50]Content-Type: application/json [07:59:50] [07:59:50]POST finish read [07:59:50]Found Content-Length = 837 [07:59:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 75.20, "quantity" : 6.650, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:50]execute_script... [07:59:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 75.20, "quantity" : 6.650, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:50]POST & json_proto [07:59:50]process_json_proto [07:59:50]json parsed OK: [07:59:50]protocol is kg_v1.0 [07:59:50]action value=close_receipt [07:59:50]process_action close_receipt [07:59:50]cmd_close_receipt [07:59:50]MH_GetDate [07:59:50]Write to MH i2c: F0 00 00 44 01 34 [07:59:50]Write i2c OK [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: F0 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: F0 09 00 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: F0 09 00 44 01 00 F7 AC 18 67 1E EF FA 64 CA [07:59:50]GetLastDocTimeStamp 1729670025 [07:59:50]current date 1729670391 [07:59:50]FM_GetShiftState [07:59:50]SAM_PROTO_GetShiftState [07:59:50]wFMCommunicate request_size=4 [07:59:50]MH_SAM_APDU [07:59:50]CAPDU: 80 13 01 00 [07:59:50]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [07:59:50]Write i2c OK [07:59:50]MH_I2C_Read... [07:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:50]Read from MH i2c: E2 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 0E 00 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 FC [07:59:50]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:59:50]wFMCommunicate OK [07:59:50]SAM_PROTO_GetShiftState done [07:59:50]FM_GetShiftState done [07:59:50]opened in 1729642861 [07:59:50]opened+sec_in_day 1729729261 [07:59:50]quantity*price = 50008 [07:59:50]sum+1 = 50009 [07:59:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.08 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.08 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 22 23.10.2024 07:59 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103610 ФПД: 84540570186599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075951&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103610&fm=84540570186599&tin=02508201610067®Number=0000000000091754&sum=50008 [07:59:51]StoreToDocumentArchive [07:59:51]shift 582 fd 103610 [07:59:51]save to /storage/0582/doc_00103610 [07:59:51]save last doc name /storage/0582/doc_00103610 to /storage/kkm_last_doc_name [07:59:51]save OK [07:59:51]Clear old archive folders... [07:59:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:59:51]tlvbuf is 00CBC370 [07:59:51]SAM_PROTO_ClearQueue [07:59:51]wFMCommunicate request_size=4 [07:59:51]MH_SAM_APDU [07:59:51]CAPDU: 80 09 00 00 [07:59:51]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [07:59:51]Write i2c OK [07:59:51]MH_I2C_Read... [07:59:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:51]Read from MH i2c: E2 [07:59:51]MH_I2C_Read... [07:59:51]Read from MH i2c: E2 03 00 [07:59:51]MH_I2C_Read... [07:59:51]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [07:59:51]RAPDU: 90 00 [07:59:51]wFMCommunicate OK [07:59:51]SAM_PROTO_ClearQueue done [07:59:51]KKMCreateOFDPacket [07:59:51]OFDProtocolAddRootSTLVToBuf [07:59:51]FM_MakeSignedData [07:59:51]FM_MakeSignedData [07:59:51]SAM_PROTO_SignData [07:59:51]wFMCommunicate request_size=4 [07:59:51]MH_SAM_APDU [07:59:51]CAPDU: 80 0D 01 02 [07:59:51]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [07:59:51]Write i2c OK [07:59:51]MH_I2C_Read... [07:59:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:52]Read from MH i2c: E2 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [07:59:52]RAPDU: 90 00 [07:59:52]wFMCommunicate OK [07:59:52]wFMCommunicate request_size=255 [07:59:52]MH_SAM_APDU [07:59:52]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 34 FF 03 08 00 03 FA 19 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F7 AC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BA 94 01 00 35 04 06 00 4C E3 A2 A7 [07:59:52]Write to MH i2c: E2 02 01 54 01 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 34 FF 03 08 00 03 FA 19 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F7 AC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BA 94 01 00 35 04 06 00 4C E3 A2 A7 00 00 DA [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:52]Read from MH i2c: E2 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [07:59:52]RAPDU: 90 00 [07:59:52]wFMCommunicate OK [07:59:52]wFMCommunicate request_size=7 [07:59:52]MH_SAM_APDU [07:59:52]CAPDU: 80 0D 02 02 02 B3 67 [07:59:52]Write to MH i2c: E2 0A 00 55 01 80 0D 02 02 02 00 B3 67 00 00 EE [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:52]Read from MH i2c: E2 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [07:59:52]RAPDU: 90 00 [07:59:52]wFMCommunicate OK [07:59:52]wFMCommunicate request_size=4 [07:59:52]MH_SAM_APDU [07:59:52]CAPDU: 80 0D 03 02 [07:59:52]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:52]Read from MH i2c: E2 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 0B 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 0B 00 56 01 00 10 A9 88 78 4B AD 97 AF 90 00 CA [07:59:52]RAPDU: 10 A9 88 78 4B AD 97 AF 90 00 [07:59:52]wFMCommunicate OK [07:59:52]SAM_PROTO_SignData done [07:59:52]FM_MakeSignedData done [07:59:52]CreateOFDProtocolMessage [07:59:52]wFMCommunicate request_size=4 [07:59:52]MH_SAM_APDU [07:59:52]CAPDU: 80 11 00 00 [07:59:52]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:52]Read from MH i2c: E2 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 17 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 1F [07:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:59:52]wFMCommunicate OK [07:59:52]CreateOFDProtocolMessage done [07:59:52]OFDSenderStorePacket 103610 [07:59:52]StoreOFDPacket docnum=103610 [07:59:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0C 01 00 00 73 54 04 01 7B F9 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 34 FF 03 08 00 03 FA 19 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F7 AC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BA 94 01 00 35 04 06 00 4C E3 A2 A7 B3 67 10 A9 88 78 4B AD 97 AF [07:59:52]CheckFolder [07:59:52]dirname=/storage/ofd_packets [07:59:52]CheckFolder done [07:59:52]ProducePacketName [07:59:52]name=ofd_packets/00103610 [07:59:52]NVStorageSaveData ofd_packets/00103610 [07:59:52]File name is /storage/ofd_packets/00103610 [07:59:52]Write 298 bytes [07:59:52]NVStorageSaveData done [07:59:52]OFDSenderStorePacket done [07:59:52]KKMCreateOFDPacket done [07:59:52]NVStorageSaveData kkm_last_timestamp [07:59:52]File name is /storage/kkm_last_timestamp [07:59:52]Write 4 bytes [07:59:52]NVStorageSaveData done [07:59:52]ExternCall_PrintAddStr [07:59:52]wPrintStart [07:59:52]Write to MH i2c: 01 00 00 58 01 59 [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: 01 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: 01 07 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [07:59:52]RasterBufferAndPrint [07:59:52]line Счет N : (1)317813 [07:59:52]line ИНН: 02508201610067 [07:59:52]line Контрольно-Кассовый Чек [07:59:52]line ПРОДАЖА [07:59:52]line ТРК (МРК, ГНК) : 41 [07:59:52]line Товар: 2710194210 [07:59:52]line ДТ-К-4 [07:59:52]line 6.650 * 75.20 [07:59:52]line = 500.08 [07:59:52]line НДС 12% НСП 1% [07:59:52]line > о реализуемом товаре [07:59:52]line ИТОГО: 500.08 [07:59:52]line НСП 1% : 4.42 [07:59:52]line НДС 12% : 53.11 [07:59:52]line Наличными: 0.00 [07:59:52]line Безнал.: 500.08 [07:59:52]line Место: АЗС № 145 "Партнер Нефть" [07:59:52]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [07:59:52]line СНО: Общий режим [07:59:52]line Чек 22 23.10.2024 07:59 [07:59:52]line Смена: 582 ФФД: 1.0 [07:59:52]line ЗНМ: 0300000095 [07:59:52]line РНМ: 0000000000091754 [07:59:52]line Версия ККМ: 001 [07:59:52]line Платежная система: АКБ Кыргызстан [07:59:52]line ФМ: 0000000000871811 [07:59:52]line ФД: 103610 [07:59:52]line ФПД: 84540570186599 [07:59:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075951&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103610&fm=84540570186599&tin=02508201610067®Number=0000000000091754&sum=50008 [07:59:52]written 0, free lines is 4095 [07:59:52]OFD Sender: Processing packet 103610 [packets to send 498, broken 497] [07:59:52]ProducePacketName [07:59:52]name=ofd_packets/00103610 [07:59:52]OFD Sender: To server: pG, [07:59:52]CommunicateWithHost lk.salyk.kg:30040 [07:59:52]ConnectInit lk.salyk.kg [07:59:52]Write to MH i2c: 01 00 00 81 01 82 [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: 01 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: 01 07 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 E1 0C 76 [07:59:52]RasterBufferAndPrint [07:59:52]line [07:59:52]line [07:59:52]line [07:59:52]line [07:59:52]line [07:59:52]written 0, free lines is 3303 [07:59:52]MH_Cut [07:59:52]Write to MH i2c: D1 01 00 88 01 01 5B [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: D1 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: D1 01 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: D1 01 00 88 01 00 5A [07:59:52]Write to MH i2c: 01 00 00 89 01 8A [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:53]*** Cut start [07:59:53]*** Partial cut [07:59:53]*** CUTSNS_PIN = 1 [07:59:53]*** CUTSNS_PIN = 0 [07:59:53]*** Brake cut motor [07:59:54]Read from MH i2c: 01 [07:59:54]MH_I2C_Read... [07:59:54]*** Stop cut motor [07:59:54]*** Cut end [07:59:54]Read from MH i2c: 01 07 00 [07:59:54]MH_I2C_Read... [07:59:54]Read from MH i2c: 01 07 00 89 01 00 00 00 00 00 FF 0F 9F [07:59:54]process_action close_receipt done [07:59:54]requested_data is exist [07:59:54]produce_requested_data [07:59:54]requested_item fm.sn is exist - process it [07:59:54]wFMCommunicate request_size=4 [07:59:54]MH_SAM_APDU [07:59:54]CAPDU: 80 11 00 00 [07:59:54]Write to MH i2c: E2 08 00 8A 01 80 11 00 00 00 00 00 00 05 [07:59:54]Write i2c OK [07:59:54]MH_I2C_Read... [07:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:54]Read from MH i2c: E2 [07:59:54]MH_I2C_Read... [07:59:54]Read from MH i2c: E2 17 00 [07:59:54]MH_I2C_Read... [07:59:54]Read from MH i2c: E2 17 00 8A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 52 [07:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [07:59:54]wFMCommunicate OK [07:59:54]requested_item fd.num is exist - process it [07:59:54]SAM_PROTO_GetFieldsCounters [07:59:54]wFMCommunicate request_size=4 [07:59:54]MH_SAM_APDU [07:59:54]CAPDU: 80 13 00 00 [07:59:54]Write to MH i2c: E2 08 00 8B 01 80 13 00 00 00 00 00 00 08 [07:59:54]Write i2c OK [07:59:54]MH_I2C_Read... [07:59:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:54]Read from MH i2c: E2 [07:59:54]MH_I2C_Read... [07:59:54]Read from MH i2c: E2 62 00 [07:59:54]MH_I2C_Read... [07:59:54]Read from MH i2c: E2 62 00 8B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 BA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [07:59: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 BA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:59:54]wFMCommunicate OK [07:59:54]SAM_PROTO_GetFieldsCounters done [07:59:54]requested_item shift.num is exist - process it [07:59:54]requested_item shift.opened is exist - process it [07:59:54]req_shift_opened [07:59:54]FM_GetShiftState [07:59:54]SAM_PROTO_GetShiftState [07:59:54]wFMCommunicate request_size=4 [07:59:54]MH_SAM_APDU [07:59:54]CAPDU: 80 13 01 00 [07:59:54]Write to MH i2c: E2 08 00 8C 01 80 13 01 00 00 00 00 00 0A [07:59:54]Write i2c OK [07:59:54]MH_I2C_Read... [07:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:54]Read from MH i2c: E2 [07:59:54]MH_I2C_Read... [07:59:54]Read from MH i2c: E2 0E 00 [07:59:54]MH_I2C_Read... [07:59:54]Read from MH i2c: E2 0E 00 8C 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 43 [07:59:54]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [07:59:54]wFMCommunicate OK [07:59:54]SAM_PROTO_GetShiftState done [07:59:54]FM_GetShiftState done [07:59:54]req_shift_opened done [07:59:54]requested_item shift.open_date is exist - process it [07:59:54]req_shift_open_date [07:59:54]req_shift_open_date done [07:59:54]produce_requested_data done [07:59:54]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103610,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [07:59:54]process_action_free close_receipt [07:59:54]json_value_free [07:59:54]json_value_free done [07:59:54]process_json_proto returns [07:59:54]Send response to host [07:59:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103610,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [07:59:54]free response buf [07:59:54]execute_script done [07:59:54]execute_script returns [07:59:54]free content buf [07:59:54]Sock 10.Close socket [07:59:54]Sock 10.Thread stoped [07:59:57]ConnectInit Can't take IP for lk.salyk.kg [07:59:57]CommunicateWithHost connect error [07:59:57]CommunicateWithHost err = -1 [07:59:57]OFD Sender: Server communicate error [08:00:02]OFD Sender: Processing packet 103610 [packets to send 498, broken 497] [08:00:02]ProducePacketName [08:00:02]name=ofd_packets/00103610 [08:00:02]OFD Sender: To server: pG, [08:00:02]CommunicateWithHost lk.salyk.kg:30040 [08:00:02]ConnectInit lk.salyk.kg [08:00:07]ConnectInit Can't take IP for lk.salyk.kg [08:00:07]CommunicateWithHost connect error [08:00:07]CommunicateWithHost err = -1 [08:00:07]OFD Sender: Server communicate error [08:00:12]OFD Sender: Processing packet 103610 [packets to send 498, broken 497] [08:00:12]ProducePacketName [08:00:12]name=ofd_packets/00103610 [08:00:12]OFD Sender: To server: pG, [08:00:12]CommunicateWithHost lk.salyk.kg:30040 [08:00:12]ConnectInit lk.salyk.kg [08:00:17]ConnectInit Can't take IP for lk.salyk.kg [08:00:17]CommunicateWithHost connect error [08:00:17]CommunicateWithHost err = -1 [08:00:17]OFD Sender: Server communicate error [08:00:22]OFD Sender: Processing packet 103610 [packets to send 498, broken 497] [08:00:22]ProducePacketName [08:00:22]name=ofd_packets/00103610 [08:00:22]OFD Sender: To server: pG, [08:00:22]CommunicateWithHost lk.salyk.kg:30040 [08:00:22]ConnectInit lk.salyk.kg [08:00:25]Connected sock=10 [08:00: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 31 31 0C 01 00 00 73 54 04 01 7B F9 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 34 FF 03 08 00 03 FA 19 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F7 AC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BA 94 01 00 35 04 06 00 4C E3 A2 A7 B3 67 10 A9 88 78 4B AD 97 AF [08:00: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 31 31 4F 00 00 00 69 65 47 00 D5 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BA 94 01 00 F4 03 04 00 2E 54 18 67 B6 04 01 00 00 A7 AD 7A 97 EB D7 80 E0 [08:00:26]CommunicateWithHost err = 0 [08:00:26]CheckOFDResponse [08:00:26]1017 (14) - 77093643461234 [08:00:26]1041 (16) - 0000000000871811 [08:00:26]1040 (4) - 103610 [08:00:26]1012 (4) - 23.10.2024 01:41 [08:00:26]1206 (1) - 0 [08:00:26]OFD Sender: Remove packet 103610 [08:00:26]ProducePacketName [08:00:26]name=ofd_packets/00103610 [08:00:26]NVStorageDeleteData [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:51]recv_with_timeout no data received [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:04]recv_with_timeout no data received [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:17]recv_with_timeout no data received [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:24]recv_with_timeout no data received [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:49]recv_with_timeout no data received [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]recv_with_timeout no data received [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:35]recv_with_timeout no data received [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:25]recv_with_timeout no data received [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:02]recv_with_timeout no data received [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:04]recv_with_timeout no data received [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]recv_with_timeout no data received [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:19]recv_with_timeout no data received [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:36]recv_with_timeout no data received [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:06]recv_with_timeout no data received [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]recv_with_timeout no data received [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:43]recv_with_timeout no data received [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:57]recv_with_timeout no data received [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:26]recv_with_timeout no data received [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:36]recv_with_timeout no data received [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:13]accept exits with 9 [08:19:13]New connection [08:19:13]New thread 3067088228 created [08:19:13]Thread 3067231588 joined [08:19:13]Waiting for new connection... [08:19:13] Sock 9.Parse request [08:19:13]Sock 9.Check first char [08:19:13]Sock 9.First char is OK [08:19:13]request: POST /json_proto HTTP/1.0 [08:19:13]Method: POST [08:19:13]URL: /json_proto [08:19:13]Method is POST - this is cgi request [08:19:13]url: /json_proto [08:19:13]query_string will be loaded in cgi processing [08:19:13]execute_cgi json_proto POST (null) [08:19:13]execute_cgi path=json_proto method=POST [08:19:13]POST find Content-Length [08:19:13]Host: 172.17.51.67:8080 [08:19:13]Content-Length: 677 [08:19:13]Content-Type: application/json [08:19:13] [08:19:13]POST finish read [08:19:13]Found Content-Length = 677 [08:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:13]execute_script... [08:19:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:13]POST & json_proto [08:19:13]process_json_proto [08:19:13]json parsed OK: [08:19:13]protocol is kg_v1.0 [08:19:13]action value=close_receipt [08:19:13]process_action close_receipt [08:19:13]cmd_close_receipt [08:19:13]MH_GetDate [08:19:13]Write to MH i2c: F0 00 00 8D 01 7D [08:19:13]Write i2c OK [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: F0 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: F0 09 00 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: F0 09 00 8D 01 00 82 B1 18 67 1E EF FA 64 A3 [08:19:13]GetLastDocTimeStamp 1729670391 [08:19:13]current date 1729671554 [08:19:13]FM_GetShiftState [08:19:13]SAM_PROTO_GetShiftState [08:19:13]wFMCommunicate request_size=4 [08:19:13]MH_SAM_APDU [08:19:13]CAPDU: 80 13 01 00 [08:19:13]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [08:19:13]Write i2c OK [08:19:13]MH_I2C_Read... [08:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:13]Read from MH i2c: E2 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 0E 00 [08:19:13]MH_I2C_Read... [08:19:13]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 45 [08:19:13]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:19:13]wFMCommunicate OK [08:19:13]SAM_PROTO_GetShiftState done [08:19:13]FM_GetShiftState done [08:19:13]opened in 1729642861 [08:19:13]opened+sec_in_day 1729729261 [08:19:13]quantity*price = 40006 [08:19:13]sum+1 = 40007 [08:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 23 23.10.2024 08:19 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103611 ФПД: 65383406191092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081914&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103611&fm=65383406191092&tin=02508201610067®Number=0000000000091754&sum=40000 [08:19:14]StoreToDocumentArchive [08:19:14]shift 582 fd 103611 [08:19:14]save to /storage/0582/doc_00103611 [08:19:14]save last doc name /storage/0582/doc_00103611 to /storage/kkm_last_doc_name [08:19:14]save OK [08:19:14]Clear old archive folders... [08:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:14]tlvbuf is 00CBD280 [08:19:14]SAM_PROTO_ClearQueue [08:19:14]wFMCommunicate request_size=4 [08:19:14]MH_SAM_APDU [08:19:14]CAPDU: 80 09 00 00 [08:19:14]Write to MH i2c: E2 08 00 9B 01 80 09 00 00 00 00 00 00 0E [08:19:14]Write i2c OK [08:19:14]MH_I2C_Read... [08:19:15]OFD Sender: No OFD packet to send [08:19:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:15]Read from MH i2c: E2 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 03 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [08:19:15]RAPDU: 90 00 [08:19:15]wFMCommunicate OK [08:19:15]SAM_PROTO_ClearQueue done [08:19:15]KKMCreateOFDPacket [08:19:15]OFDProtocolAddRootSTLVToBuf [08:19:15]FM_MakeSignedData [08:19:15]FM_MakeSignedData [08:19:15]SAM_PROTO_SignData [08:19:15]wFMCommunicate request_size=4 [08:19:15]MH_SAM_APDU [08:19:15]CAPDU: 80 0D 01 02 [08:19:15]Write to MH i2c: E2 08 00 9C 01 80 0D 01 02 00 00 00 00 16 [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:15]Read from MH i2c: E2 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 03 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [08:19:15]RAPDU: 90 00 [08:19:15]wFMCommunicate OK [08:19:15]wFMCommunicate request_size=255 [08:19:15]MH_SAM_APDU [08:19:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 82 B1 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BB 94 01 00 35 04 06 00 3B [08:19:15]Write to MH i2c: E2 02 01 9D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 82 B1 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BB 94 01 00 35 04 06 00 3B 00 00 0A [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:15]Read from MH i2c: E2 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 03 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [08:19:15]RAPDU: 90 00 [08:19:15]wFMCommunicate OK [08:19:15]wFMCommunicate request_size=10 [08:19:15]MH_SAM_APDU [08:19:15]CAPDU: 80 0D 02 02 05 77 42 B3 41 F4 [08:19:15]Write to MH i2c: E2 0D 00 9E 01 80 0D 02 02 05 00 77 42 B3 41 F4 00 00 C4 [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:15]Read from MH i2c: E2 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 03 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [08:19:15]RAPDU: 90 00 [08:19:15]wFMCommunicate OK [08:19:15]wFMCommunicate request_size=4 [08:19:15]MH_SAM_APDU [08:19:15]CAPDU: 80 0D 03 02 [08:19:15]Write to MH i2c: E2 08 00 9F 01 80 0D 03 02 00 00 00 00 1B [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:15]Read from MH i2c: E2 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 0B 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 0B 00 9F 01 00 54 5D 26 D5 21 1E 54 24 90 00 7F [08:19:15]RAPDU: 54 5D 26 D5 21 1E 54 24 90 00 [08:19:15]wFMCommunicate OK [08:19:15]SAM_PROTO_SignData done [08:19:15]FM_MakeSignedData done [08:19:15]CreateOFDProtocolMessage [08:19:15]wFMCommunicate request_size=4 [08:19:15]MH_SAM_APDU [08:19:15]CAPDU: 80 11 00 00 [08:19:15]Write to MH i2c: E2 08 00 A0 01 80 11 00 00 00 00 00 00 1B [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:15]Read from MH i2c: E2 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 17 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 17 00 A0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 68 [08:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:19:15]wFMCommunicate OK [08:19:15]CreateOFDProtocolMessage done [08:19:15]OFDSenderStorePacket 103611 [08:19:15]StoreOFDPacket docnum=103611 [08:19:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 AC 7D 07 01 48 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 82 B1 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BB 94 01 00 35 04 06 00 3B 77 42 B3 41 F4 54 5D 26 D5 21 1E 54 24 [08:19:15]CheckFolder [08:19:15]dirname=/storage/ofd_packets [08:19:15]CheckFolder done [08:19:15]ProducePacketName [08:19:15]name=ofd_packets/00103611 [08:19:15]NVStorageSaveData ofd_packets/00103611 [08:19:15]File name is /storage/ofd_packets/00103611 [08:19:15]Write 301 bytes [08:19:15]NVStorageSaveData done [08:19:15]OFDSenderStorePacket done [08:19:15]KKMCreateOFDPacket done [08:19:15]NVStorageSaveData kkm_last_timestamp [08:19:15]File name is /storage/kkm_last_timestamp [08:19:15]Write 4 bytes [08:19:15]NVStorageSaveData done [08:19:15]ExternCall_PrintAddStr [08:19:15]wPrintStart [08:19:15]Write to MH i2c: 01 00 00 A1 01 A2 [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: 01 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: 01 07 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [08:19:15]RasterBufferAndPrint [08:19:15]line Счет N : (1)317814 [08:19:15]line ИНН: 02508201610067 [08:19:15]line Контрольно-Кассовый Чек [08:19:15]line ПРОДАЖА [08:19:15]line ТРК (МРК, ГНК) : 53 [08:19:15]line Товар: 2710124130 [08:19:15]line Аи-92-К-4 [08:19:15]line 5.980 * 66.90 [08:19:15]line = 400.06 [08:19:15]line НДС 12% НСП 1% [08:19:15]line > о реализуемом товаре [08:19:15]line ОКРУГЛЕНИЕ: -0.06 [08:19:15]line ИТОГО: 400.00 [08:19:15]line Внесено: 400.00 [08:19:15]line СДАЧА: 0.00 [08:19:15]line НСП 1% : 3.54 [08:19:15]line НДС 12% : 42.48 [08:19:15]line Наличными: 400.00 [08:19:15]line Безнал.: 0.00 [08:19:15]line Место: АЗС № 145 "Партнер Нефть" [08:19:15]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [08:19:15]line СНО: Общий режим [08:19:15]line Чек 23 23.10.2024 08:19 [08:19:15]line Смена: 582 ФФД: 1.0 [08:19:15]line ЗНМ: 0300000095 [08:19:15]line РНМ: 0000000000091754 [08:19:15]line Версия ККМ: 001 [08:19:15]line ФМ: 0000000000871811 [08:19:15]line ФД: 103611 [08:19:15]line ФПД: 65383406191092 [08:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T081914&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103611&fm=65383406191092&tin=02508201610067®Number=0000000000091754&sum=40000 [08:19:15]written 0, free lines is 4095 [08:19:15]OFD Sender: Processing packet 103611 [packets to send 498, broken 497] [08:19:15]ProducePacketName [08:19:15]name=ofd_packets/00103611 [08:19:15]OFD Sender: To server: pG, [08:19:15]CommunicateWithHost lk.salyk.kg:30040 [08:19:15]ConnectInit lk.salyk.kg [08:19:15]Write to MH i2c: 01 00 00 CB 01 CC [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: 01 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: 01 07 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: 01 07 00 CB 01 00 00 00 00 00 C9 0C A8 [08:19:15]RasterBufferAndPrint [08:19:15]line [08:19:15]line [08:19:15]line [08:19:15]line [08:19:15]line [08:19:15]written 0, free lines is 3280 [08:19:15]MH_Cut [08:19:15]Write to MH i2c: D1 01 00 D2 01 01 A5 [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: D1 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: D1 01 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: D1 01 00 D2 01 00 A4 [08:19:15]Write to MH i2c: 01 00 00 D3 01 D4 [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:16]*** Cut start [08:19:16]*** Partial cut [08:19:16]*** CUTSNS_PIN = 1 [08:19:16]*** CUTSNS_PIN = 0 [08:19:16]Connected sock=11 [08:19: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 31 31 0F 01 00 00 AC 7D 07 01 48 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 82 B1 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BB 94 01 00 35 04 06 00 3B 77 42 B3 41 F4 54 5D 26 D5 21 1E 54 24 [08:19:17]*** Brake cut motor [08:19:17]Read from MH i2c: 01 [08:19:17]MH_I2C_Read... [08:19: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 31 31 4F 00 00 00 C2 8F 47 00 E4 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 31 31 10 04 04 00 BB 94 01 00 F4 03 04 00 99 58 18 67 B6 04 01 00 00 C5 6F 59 21 DF 7E 65 BB [08:19:17]CommunicateWithHost err = 0 [08:19:17]CheckOFDResponse [08:19:17]1017 (14) - 77093643461234 [08:19:17]1041 (16) - 0000000000871811 [08:19:17]1040 (4) - 103611 [08:19:17]1012 (4) - 23.10.2024 01:59 [08:19:17]1206 (1) - 0 [08:19:17]OFD Sender: Remove packet 103611 [08:19:17]ProducePacketName [08:19:17]name=ofd_packets/00103611 [08:19:17]NVStorageDeleteData [08:19:17]*** Stop cut motor [08:19:17]*** Cut end [08:19:17]Read from MH i2c: 01 07 00 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 FF 0F E9 [08:19:17]process_action close_receipt done [08:19:17]requested_data is exist [08:19:17]produce_requested_data [08:19:17]requested_item fm.sn is exist - process it [08:19:17]wFMCommunicate request_size=4 [08:19:17]MH_SAM_APDU [08:19:17]CAPDU: 80 11 00 00 [08:19:17]Write to MH i2c: E2 08 00 D4 01 80 11 00 00 00 00 00 00 4F [08:19:17]Write i2c OK [08:19:17]MH_I2C_Read... [08:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:17]Read from MH i2c: E2 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: E2 17 00 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: E2 17 00 D4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 9C [08:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:19:17]wFMCommunicate OK [08:19:17]requested_item fd.num is exist - process it [08:19:17]SAM_PROTO_GetFieldsCounters [08:19:17]wFMCommunicate request_size=4 [08:19:17]MH_SAM_APDU [08:19:17]CAPDU: 80 13 00 00 [08:19:17]Write to MH i2c: E2 08 00 D5 01 80 13 00 00 00 00 00 00 52 [08:19:17]Write i2c OK [08:19:17]MH_I2C_Read... [08:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:17]Read from MH i2c: E2 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: E2 62 00 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: E2 62 00 D5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 BB 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [08:19: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 BB 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:17]wFMCommunicate OK [08:19:17]SAM_PROTO_GetFieldsCounters done [08:19:17]requested_item shift.num is exist - process it [08:19:17]requested_item shift.opened is exist - process it [08:19:17]req_shift_opened [08:19:17]FM_GetShiftState [08:19:17]SAM_PROTO_GetShiftState [08:19:17]wFMCommunicate request_size=4 [08:19:17]MH_SAM_APDU [08:19:17]CAPDU: 80 13 01 00 [08:19:17]Write to MH i2c: E2 08 00 D6 01 80 13 01 00 00 00 00 00 54 [08:19:17]Write i2c OK [08:19:17]MH_I2C_Read... [08:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:17]Read from MH i2c: E2 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: E2 0E 00 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: E2 0E 00 D6 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 8D [08:19:17]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:19:17]wFMCommunicate OK [08:19:17]SAM_PROTO_GetShiftState done [08:19:17]FM_GetShiftState done [08:19:17]req_shift_opened done [08:19:17]requested_item shift.open_date is exist - process it [08:19:17]req_shift_open_date [08:19:17]req_shift_open_date done [08:19:17]produce_requested_data done [08:19:17]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103611,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [08:19:17]process_action_free close_receipt [08:19:17]json_value_free [08:19:17]json_value_free done [08:19:17]process_json_proto returns [08:19:17]Send response to host [08:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103611,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [08:19:17]free response buf [08:19:17]execute_script done [08:19:17]execute_script returns [08:19:17]free content buf [08:19:17]Sock 9.Close socket [08:19:17]Sock 9.Thread stoped [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:34]recv_with_timeout no data received [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:39]accept exits with 7 [08:20:39]New connection [08:20:39]New thread 3067231588 created [08:20:39]Thread 3067088228 joined [08:20:39]Waiting for new connection... [08:20:39] Sock 7.Parse request [08:20:39]Sock 7.Check first char [08:20:39]Sock 7.First char is OK [08:20:39]request: POST /json_proto HTTP/1.0 [08:20:39]Method: POST [08:20:39]URL: /json_proto [08:20:39]Method is POST - this is cgi request [08:20:39]url: /json_proto [08:20:39]query_string will be loaded in cgi processing [08:20:39]execute_cgi json_proto POST (null) [08:20:39]execute_cgi path=json_proto method=POST [08:20:39]POST find Content-Length [08:20:39]Host: 172.17.51.67:8080 [08:20:39]Content-Length: 678 [08:20:39]Content-Type: application/json [08:20:39] [08:20:39]POST finish read [08:20:39]Found Content-Length = 678 [08:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:39]execute_script... [08:20:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:39]POST & json_proto [08:20:39]process_json_proto [08:20:39]json parsed OK: [08:20:39]protocol is kg_v1.0 [08:20:39]action value=close_receipt [08:20:39]process_action close_receipt [08:20:39]cmd_close_receipt [08:20:39]MH_GetDate [08:20:39]Write to MH i2c: F0 00 00 D7 01 C7 [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: F0 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: F0 09 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: F0 09 00 D7 01 00 D8 B1 18 67 1E EF FA 64 43 [08:20:39]GetLastDocTimeStamp 1729671554 [08:20:39]current date 1729671640 [08:20:39]FM_GetShiftState [08:20:39]SAM_PROTO_GetShiftState [08:20:39]wFMCommunicate request_size=4 [08:20:39]MH_SAM_APDU [08:20:39]CAPDU: 80 13 01 00 [08:20:39]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:39]Read from MH i2c: E2 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 0E 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 8F [08:20:39]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:20:39]wFMCommunicate OK [08:20:39]SAM_PROTO_GetShiftState done [08:20:39]FM_GetShiftState done [08:20:39]opened in 1729642861 [08:20:39]opened+sec_in_day 1729729261 [08:20:39]quantity*price = 70044 [08:20:39]sum+1 = 70045 [08:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 24 23.10.2024 08:20 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103612 ФПД: 141702188154286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082040&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103612&fm=141702188154286&tin=02508201610067®Number=0000000000091754&sum=70000 [08:20:41]StoreToDocumentArchive [08:20:41]shift 582 fd 103612 [08:20:41]save to /storage/0582/doc_00103612 [08:20:41]save last doc name /storage/0582/doc_00103612 to /storage/kkm_last_doc_name [08:20:41]save OK [08:20:41]Clear old archive folders... [08:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:41]tlvbuf is 00CC6AE0 [08:20:41]SAM_PROTO_ClearQueue [08:20:41]wFMCommunicate request_size=4 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 09 00 00 [08:20:41]Write to MH i2c: E2 08 00 E5 01 80 09 00 00 00 00 00 00 58 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [08:20:41]RAPDU: 90 00 [08:20:41]wFMCommunicate OK [08:20:41]SAM_PROTO_ClearQueue done [08:20:41]KKMCreateOFDPacket [08:20:41]OFDProtocolAddRootSTLVToBuf [08:20:41]FM_MakeSignedData [08:20:41]FM_MakeSignedData [08:20:41]SAM_PROTO_SignData [08:20:41]wFMCommunicate request_size=4 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 0D 01 02 [08:20:41]Write to MH i2c: E2 08 00 E6 01 80 0D 01 02 00 00 00 00 60 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [08:20:41]RAPDU: 90 00 [08:20:41]wFMCommunicate OK [08:20:41]wFMCommunicate request_size=255 [08:20:41]MH_SAM_APDU [08:20: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 D8 B1 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BC 94 01 00 35 04 06 00 80 [08:20:41]Write to MH i2c: E2 02 01 E7 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 D8 B1 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BC 94 01 00 35 04 06 00 80 00 00 32 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [08:20:41]RAPDU: 90 00 [08:20:41]wFMCommunicate OK [08:20:41]wFMCommunicate request_size=10 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 0D 02 02 05 E0 9C 96 BD AE [08:20:41]Write to MH i2c: E2 0D 00 E8 01 80 0D 02 02 05 00 E0 9C 96 BD AE 00 00 EA [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [08:20:41]RAPDU: 90 00 [08:20:41]wFMCommunicate OK [08:20:41]wFMCommunicate request_size=4 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 0D 03 02 [08:20:41]Write to MH i2c: E2 08 00 E9 01 80 0D 03 02 00 00 00 00 65 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 0B 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 0B 00 E9 01 00 B1 FA BD 86 73 9F 05 C8 90 00 33 [08:20:41]RAPDU: B1 FA BD 86 73 9F 05 C8 90 00 [08:20:41]wFMCommunicate OK [08:20:41]SAM_PROTO_SignData done [08:20:41]FM_MakeSignedData done [08:20:41]CreateOFDProtocolMessage [08:20:41]wFMCommunicate request_size=4 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 11 00 00 [08:20:41]Write to MH i2c: E2 08 00 EA 01 80 11 00 00 00 00 00 00 65 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 17 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 17 00 EA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 B2 [08:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:20:41]wFMCommunicate OK [08:20:41]CreateOFDProtocolMessage done [08:20:41]OFDSenderStorePacket 103612 [08:20:41]StoreOFDPacket docnum=103612 [08:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 A1 EA 07 01 B8 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 D8 B1 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BC 94 01 00 35 04 06 00 80 E0 9C 96 BD AE B1 FA BD 86 73 9F 05 C8 [08:20:41]CheckFolder [08:20:41]dirname=/storage/ofd_packets [08:20:41]CheckFolder done [08:20:41]ProducePacketName [08:20:41]name=ofd_packets/00103612 [08:20:41]NVStorageSaveData ofd_packets/00103612 [08:20:41]File name is /storage/ofd_packets/00103612 [08:20:41]Write 301 bytes [08:20:41]NVStorageSaveData done [08:20:41]OFDSenderStorePacket done [08:20:41]KKMCreateOFDPacket done [08:20:41]NVStorageSaveData kkm_last_timestamp [08:20:41]File name is /storage/kkm_last_timestamp [08:20:41]Write 4 bytes [08:20:41]NVStorageSaveData done [08:20:41]ExternCall_PrintAddStr [08:20:41]wPrintStart [08:20:41]Write to MH i2c: 01 00 00 EB 01 EC [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: 01 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: 01 07 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: 01 07 00 EB 01 00 00 00 00 00 FF 0F 01 [08:20:41]RasterBufferAndPrint [08:20:41]line Счет N : (1)317815 [08:20:41]line ИНН: 02508201610067 [08:20:41]line Контрольно-Кассовый Чек [08:20:41]line ПРОДАЖА [08:20:41]line ТРК (МРК, ГНК) : 43 [08:20:41]line Товар: 2710124130 [08:20:41]line Аи-92-К-4 [08:20:41]line 10.470 * 66.90 [08:20:41]line = 700.44 [08:20:41]line НДС 12% НСП 1% [08:20:41]line > о реализуемом товаре [08:20:41]line ОКРУГЛЕНИЕ: -0.44 [08:20:41]line ИТОГО: 700.00 [08:20:41]line Внесено: 700.00 [08:20:41]line СДАЧА: 0.00 [08:20:41]line НСП 1% : 6.20 [08:20:41]line НДС 12% : 74.38 [08:20:41]line Наличными: 700.00 [08:20:41]line Безнал.: 0.00 [08:20:41]line Место: АЗС № 145 "Партнер Нефть" [08:20:41]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [08:20:41]line СНО: Общий режим [08:20:41]line Чек 24 23.10.2024 08:20 [08:20:41]line Смена: 582 ФФД: 1.0 [08:20:41]line ЗНМ: 0300000095 [08:20:41]line РНМ: 0000000000091754 [08:20:41]line Версия ККМ: 001 [08:20:41]line ФМ: 0000000000871811 [08:20:41]line ФД: 103612 [08:20:41]line ФПД: 141702188154286 [08:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082040&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103612&fm=141702188154286&tin=02508201610067®Number=0000000000091754&sum=70000 [08:20:41]written 0, free lines is 4095 [08:20:41]OFD Sender: Processing packet 103612 [packets to send 498, broken 497] [08:20:41]ProducePacketName [08:20:41]name=ofd_packets/00103612 [08:20:41]OFD Sender: To server: pG, [08:20:41]CommunicateWithHost lk.salyk.kg:30040 [08:20:41]ConnectInit lk.salyk.kg [08:20:42]Write to MH i2c: 01 00 00 15 02 17 [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 07 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 07 00 15 02 00 00 00 00 00 C8 0C F2 [08:20:42]RasterBufferAndPrint [08:20:42]line [08:20:42]line [08:20:42]line [08:20:42]line [08:20:42]line [08:20:42]written 0, free lines is 3279 [08:20:42]MH_Cut [08:20:42]Write to MH i2c: D1 01 00 1C 02 01 F0 [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: D1 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: D1 01 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: D1 01 00 1C 02 00 EF [08:20:42]Write to MH i2c: 01 00 00 1D 02 1F [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]*** Cut start [08:20:42]*** Partial cut [08:20:42]*** CUTSNS_PIN = 1 [08:20:42]*** CUTSNS_PIN = 0 [08:20:43]*** Brake cut motor [08:20:43]Read from MH i2c: 01 [08:20:43]MH_I2C_Read... [08:20:43]*** Stop cut motor [08:20:43]*** Cut end [08:20:43]Read from MH i2c: 01 07 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 FF 0F 34 [08:20:43]process_action close_receipt done [08:20:43]requested_data is exist [08:20:43]produce_requested_data [08:20:43]requested_item fm.sn is exist - process it [08:20:43]wFMCommunicate request_size=4 [08:20:43]MH_SAM_APDU [08:20:43]CAPDU: 80 11 00 00 [08:20:43]Write to MH i2c: E2 08 00 1E 02 80 11 00 00 00 00 00 00 9A [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... ,H[08:21:05]recv_with_timeout no data received [08:21:29]accept exits with 9 [08:21:29]New connection [08:21:29]New thread 3067088228 created [08:21:29]Thread 3067231588 joined [08:21:29]Waiting for new connection... [08:21:29] Sock 9.Parse request [08:21:29]Sock 9.Check first char [08:21:29]Sock 9.First char is OK [08:21:29]request: POST /json_proto HTTP/1.0 [08:21:29]Method: POST [08:21:29]URL: /json_proto [08:21:29]Method is POST - this is cgi request [08:21:29]url: /json_proto [08:21:29]query_string will be loaded in cgi processing [08:21:29]execute_cgi json_proto POST (null) [08:21:29]execute_cgi path=json_proto method=POST [08:21:29]POST find Content-Length [08:21:29]Host: 172.17.51.67:8080 [08:21:29]Content-Length: 677 [08:21:29]Content-Type: application/json [08:21:29] [08:21:29]POST finish read [08:21:29]Found Content-Length = 677 [08:21:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:29]execute_script... [08:21:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:29]POST & json_proto [08:21:29]process_json_proto [08:21:29]json parsed OK: [08:21:29]protocol is kg_v1.0 [08:21:29]action value=close_receipt [08:21:29]process_action close_receipt [08:21:29]cmd_close_receipt [08:21:29]MH_GetDate [08:21:29]Write to MH i2c: F0 00 00 21 02 12 [08:21:29]Write i2c OK [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: F0 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: F0 09 00 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: F0 09 00 21 02 00 09 B2 18 67 1E EF FA 64 C0 [08:21:29]GetLastDocTimeStamp 1729671640 [08:21:29]current date 1729671689 [08:21:29]FM_GetShiftState [08:21:29]SAM_PROTO_GetShiftState [08:21:29]wFMCommunicate request_size=4 [08:21:29]MH_SAM_APDU [08:21:29]CAPDU: 80 13 01 00 [08:21:29]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [08:21:29]Write i2c OK [08:21:29]MH_I2C_Read... [08:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:29]Read from MH i2c: E2 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: E2 0E 00 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 DA [08:21:29]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:21:29]wFMCommunicate OK [08:21:29]SAM_PROTO_GetShiftState done [08:21:29]FM_GetShiftState done [08:21:29]opened in 1729642861 [08:21:29]opened+sec_in_day 1729729261 [08:21:29]quantity*price = 50041 [08:21:29]sum+1 = 50042 [08:21:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 25 23.10.2024 08:21 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103613 ФПД: 148245522534125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082129&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103613&fm=148245522534125&tin=02508201610067®Number=0000000000091754&sum=50000 [08:21:30]StoreToDocumentArchive [08:21:30]shift 582 fd 103613 [08:21:30]save to /storage/0582/doc_00103613 [08:21:30]save last doc name /storage/0582/doc_00103613 to /storage/kkm_last_doc_name [08:21:30]save OK [08:21:30]Clear old archive folders... [08:21:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:21:30]tlvbuf is 00CBBDB0 [08:21:30]SAM_PROTO_ClearQueue [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 09 00 00 [08:21:30]Write to MH i2c: E2 08 00 2F 02 80 09 00 00 00 00 00 00 A3 [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 03 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [08:21:30]RAPDU: 90 00 [08:21:30]wFMCommunicate OK [08:21:30]SAM_PROTO_ClearQueue done [08:21:30]KKMCreateOFDPacket [08:21:30]OFDProtocolAddRootSTLVToBuf [08:21:30]FM_MakeSignedData [08:21:30]FM_MakeSignedData [08:21:30]SAM_PROTO_SignData [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 0D 01 02 [08:21:30]Write to MH i2c: E2 08 00 30 02 80 0D 01 02 00 00 00 00 AB [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 03 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [08:21:30]RAPDU: 90 00 [08:21:30]wFMCommunicate OK [08:21:30]wFMCommunicate request_size=255 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 09 B2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BD 94 01 00 35 04 06 00 86 [08:21:30]Write to MH i2c: E2 02 01 31 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 09 B2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BD 94 01 00 35 04 06 00 86 00 00 A7 [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 03 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [08:21:30]RAPDU: 90 00 [08:21:30]wFMCommunicate OK [08:21:30]wFMCommunicate request_size=10 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 0D 02 02 05 D4 19 B5 CE ED [08:21:30]Write to MH i2c: E2 0D 00 32 02 80 0D 02 02 05 00 D4 19 B5 CE ED 00 00 15 [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 03 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [08:21:30]RAPDU: 90 00 [08:21:30]wFMCommunicate OK [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 0D 03 02 [08:21:30]Write to MH i2c: E2 08 00 33 02 80 0D 03 02 00 00 00 00 B0 [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 0B 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 0B 00 33 02 00 CD D9 BA 44 FE 9D 69 41 90 00 9A [08:21:30]RAPDU: CD D9 BA 44 FE 9D 69 41 90 00 [08:21:30]wFMCommunicate OK [08:21:30]SAM_PROTO_SignData done [08:21:30]FM_MakeSignedData done [08:21:30]CreateOFDProtocolMessage [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 11 00 00 [08:21:30]Write to MH i2c: E2 08 00 34 02 80 11 00 00 00 00 00 00 B0 [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 17 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 17 00 34 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 FD [08:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:21:30]wFMCommunicate OK [08:21:30]CreateOFDProtocolMessage done [08:21:30]OFDSenderStorePacket 103613 [08:21:30]StoreOFDPacket docnum=103613 [08:21:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 33 28 07 01 EF F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 09 B2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BD 94 01 00 35 04 06 00 86 D4 19 B5 CE ED CD D9 BA 44 FE 9D 69 41 [08:21:30]CheckFolder [08:21:30]dirname=/storage/ofd_packets [08:21:30]CheckFolder done [08:21:30]ProducePacketName [08:21:30]name=ofd_packets/00103613 [08:21:30]NVStorageSaveData ofd_packets/00103613 [08:21:30]File name is /storage/ofd_packets/00103613 [08:21:30]Write 301 bytes [08:21:30]NVStorageSaveData done [08:21:30]OFDSenderStorePacket done [08:21:30]KKMCreateOFDPacket done [08:21:30]NVStorageSaveData kkm_last_timestamp [08:21:30]File name is /storage/kkm_last_timestamp [08:21:30]Write 4 bytes [08:21:30]NVStorageSaveData done [08:21:30]ExternCall_PrintAddStr [08:21:30]wPrintStart [08:21:30]Write to MH i2c: 01 00 00 35 02 37 [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: 01 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: 01 07 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: 01 07 00 35 02 00 00 00 00 00 FF 0F 4C [08:21:30]RasterBufferAndPrint [08:21:30]line Счет N : (1)317816 [08:21:30]line ИНН: 02508201610067 [08:21:30]line Контрольно-Кассовый Чек [08:21:30]line ПРОДАЖА [08:21:30]line ТРК (МРК, ГНК) : 33 [08:21:30]line Товар: 2710124130 [08:21:30]line Аи-92-К-4 [08:21:30]line 7.480 * 66.90 [08:21:30]line = 500.41 [08:21:30]line НДС 12% НСП 1% [08:21:30]line > о реализуемом товаре [08:21:30]line ОКРУГЛЕНИЕ: -0.41 [08:21:30]line ИТОГО: 500.00 [08:21:30]line Внесено: 500.00 [08:21:30]line СДАЧА: 0.00 [08:21:30]line НСП 1% : 4.43 [08:21:30]line НДС 12% : 53.14 [08:21:30]line Наличными: 500.00 [08:21:30]line Безнал.: 0.00 [08:21:30]line Место: АЗС № 145 "Партнер Нефть" [08:21:30]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [08:21:30]line СНО: Общий режим [08:21:30]line Чек 25 23.10.2024 08:21 [08:21:30]line Смена: 582 ФФД: 1.0 [08:21:30]line ЗНМ: 0300000095 [08:21:30]line РНМ: 0000000000091754 [08:21:30]line Версия ККМ: 001 [08:21:30]line ФМ: 0000000000871811 [08:21:30]line ФД: 103613 [08:21:30]line ФПД: 148245522534125 [08:21:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082129&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103613&fm=148245522534125&tin=02508201610067®Number=0000000000091754&sum=50000 [08:21:31]written 0, free lines is 4095 [08:21:31]Write to MH i2c: 01 00 00 5F 02 61 [08:21:31]Write i2c OK [08:21:31]MH_I2C_Read... [08:21:31]Read from MH i2c: 01 [08:21:31]MH_I2C_Read... [08:21:31]Read from MH i2c: 01 07 00 [08:21:31]MH_I2C_Read... [08:21:31]Read from MH i2c: 01 07 00 5F 02 00 00 00 00 00 D0 0C 44 [08:21:31]RasterBufferAndPrint [08:21:31]line [08:21:31]line [08:21:31]line [08:21:31]line [08:21:31]line [08:21:31]written 0, free lines is 3286 [08:21:31]MH_Cut [08:21:31]Write to MH i2c: D1 01 00 66 02 01 3A [08:21:31]Write i2c OK [08:21:31]MH_I2C_Read... [08:21:31]Read from MH i2c: D1 [08:21:31]MH_I2C_Read... [08:21:31]Read from MH i2c: D1 01 00 [08:21:31]MH_I2C_Read... [08:21:31]Read from MH i2c: D1 01 00 66 02 00 39 [08:21:31]Write to MH i2c: 01 00 00 67 02 69 [08:21:31]Write i2c OK [08:21:31]MH_I2C_Read... [08:21:32]*** Cut start [08:21:32]*** Partial cut [08:21:32]*** CUTSNS_PIN = 1 [08:21:32]*** CUTSNS_PIN = 0 [08:21:32]*** Brake cut motor [08:21:33]Read from MH i2c: 01 [08:21:33]MH_I2C_Read... [08:21:33]*** Stop cut motor [08:21:33]*** Cut end [08:21:33]Read from MH i2c: 01 07 00 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 FF 0F 7E [08:21:33]process_action close_receipt done [08:21:33]requested_data is exist [08:21:33]produce_requested_data [08:21:33]requested_item fm.sn is exist - process it [08:21:33]wFMCommunicate request_size=4 [08:21:33]MH_SAM_APDU [08:21:33]CAPDU: 80 11 00 00 [08:21:33]Write to MH i2c: E2 08 00 68 02 80 11 00 00 00 00 00 00 E4 [08:21:33]Write i2c OK [08:21:33]MH_I2C_Read... [08:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:33]Read from MH i2c: E2 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 17 00 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 17 00 68 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 31 [08:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:21:33]wFMCommunicate OK [08:21:33]requested_item fd.num is exist - process it [08:21:33]SAM_PROTO_GetFieldsCounters [08:21:33]wFMCommunicate request_size=4 [08:21:33]MH_SAM_APDU [08:21:33]CAPDU: 80 13 00 00 [08:21:33]Write to MH i2c: E2 08 00 69 02 80 13 00 00 00 00 00 00 E7 [08:21:33]Write i2c OK [08:21:33]MH_I2C_Read... [08:21:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:33]Read from MH i2c: E2 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 62 00 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 62 00 69 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 BD 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [08:21: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 BD 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:33]wFMCommunicate OK [08:21:33]SAM_PROTO_GetFieldsCounters done [08:21:33]requested_item shift.num is exist - process it [08:21:33]requested_item shift.opened is exist - process it [08:21:33]req_shift_opened [08:21:33]FM_GetShiftState [08:21:33]SAM_PROTO_GetShiftState [08:21:33]wFMCommunicate request_size=4 [08:21:33]MH_SAM_APDU [08:21:33]CAPDU: 80 13 01 00 [08:21:33]Write to MH i2c: E2 08 00 6A 02 80 13 01 00 00 00 00 00 E9 [08:21:33]Write i2c OK [08:21:33]MH_I2C_Read... [08:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:33]Read from MH i2c: E2 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 0E 00 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 0E 00 6A 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 22 [08:21:33]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:21:33]wFMCommunicate OK [08:21:33]SAM_PROTO_GetShiftState done [08:21:33]FM_GetShiftState done [08:21:33]req_shift_opened done [08:21:33]requested_item shift.open_date is exist - process it [08:21:33]req_shift_open_date [08:21:33]req_shift_open_date done [08:21:33]produce_requested_data done [08:21:33]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103613,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [08:21:33]process_action_free close_receipt [08:21:33]json_value_free [08:21:33]json_value_free done [08:21:33]process_json_proto returns [08:21:33]Send response to host [08:21:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103613,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [08:21:33]free response buf [08:21:33]execute_script done [08:21:33]execute_script returns [08:21:33]free content buf [08:21:33]Sock 9.Close socket [08:21:33]Sock 9.Thread stoped [08:22:19]accept exits with 7 [08:22:19]New connection [08:22:19]New thread 3067231588 created [08:22:19]Thread 3067088228 joined [08:22:19]Waiting for new connection... [08:22:19] Sock 7.Parse request [08:22:19]Sock 7.Check first char [08:22:19]Sock 7.First char is OK [08:22:19]request: POST /json_proto HTTP/1.0 [08:22:19]Method: POST [08:22:19]URL: /json_proto [08:22:19]Method is POST - this is cgi request [08:22:19]url: /json_proto [08:22:19]query_string will be loaded in cgi processing [08:22:19]execute_cgi json_proto POST (null) [08:22:19]execute_cgi path=json_proto method=POST [08:22:19]POST find Content-Length [08:22:19]Host: 172.17.51.67:8080 [08:22:19]Content-Length: 677 [08:22:19]Content-Type: application/json [08:22:19] [08:22:19]POST finish read [08:22:19]Found Content-Length = 677 [08:22:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:19]execute_script... [08:22:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:19]POST & json_proto [08:22:19]process_json_proto [08:22:19]json parsed OK: [08:22:19]protocol is kg_v1.0 [08:22:19]action value=close_receipt [08:22:19]process_action close_receipt [08:22:19]cmd_close_receipt [08:22:19]MH_GetDate [08:22:19]Write to MH i2c: F0 00 00 6B 02 5C [08:22:19]Write i2c OK [08:22:19]MH_I2C_Read... [08:22:19]Read from MH i2c: F0 [08:22:19]MH_I2C_Read... [08:22:19]Read from MH i2c: F0 09 00 [08:22:19]MH_I2C_Read... [08:22:19]Read from MH i2c: F0 09 00 6B 02 00 3B B2 18 67 1E EF FA 64 3C [08:22:19]GetLastDocTimeStamp 1729671689 [08:22:19]current date 1729671739 [08:22:19]FM_GetShiftState [08:22:19]SAM_PROTO_GetShiftState [08:22:19]wFMCommunicate request_size=4 [08:22:19]MH_SAM_APDU [08:22:19]CAPDU: 80 13 01 00 [08:22:19]Write to MH i2c: E2 08 00 6C 02 80 13 01 00 00 00 00 00 EB [08:22:19]Write i2c OK [08:22:19]MH_I2C_Read... [08:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:19]Read from MH i2c: E2 [08:22:19]MH_I2C_Read... [08:22:19]Read from MH i2c: E2 0E 00 [08:22:19]MH_I2C_Read... [08:22:19]Read from MH i2c: E2 0E 00 6C 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 24 [08:22:19]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:22:19]wFMCommunicate OK [08:22:19]SAM_PROTO_GetShiftState done [08:22:19]FM_GetShiftState done [08:22:19]opened in 1729642861 [08:22:19]opened+sec_in_day 1729729261 [08:22:19]quantity*price = 50041 [08:22:19]sum+1 = 50042 [08:22:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 26 23.10.2024 08:22 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103614 ФПД: 242444452971698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082219&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103614&fm=242444452971698&tin=02508201610067®Number=0000000000091754&sum=50000 [08:22:20]StoreToDocumentArchive [08:22:20]shift 582 fd 103614 [08:22:20]save to /storage/0582/doc_00103614 [08:22:20]save last doc name /storage/0582/doc_00103614 to /storage/kkm_last_doc_name [08:22:20]save OK [08:22:20]Clear old archive folders... [08:22:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:20]tlvbuf is 00CC3770 [08:22:20]SAM_PROTO_ClearQueue [08:22:20]wFMCommunicate request_size=4 [08:22:20]MH_SAM_APDU [08:22:20]CAPDU: 80 09 00 00 [08:22:20]Write to MH i2c: E2 08 00 79 02 80 09 00 00 00 00 00 00 ED [08:22:20]Write i2c OK [08:22:20]MH_I2C_Read... [08:22:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:20]Read from MH i2c: E2 [08:22:20]MH_I2C_Read... [08:22:20]Read from MH i2c: E2 03 00 [08:22:20]MH_I2C_Read... [08:22:20]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [08:22:20]RAPDU: 90 00 [08:22:20]wFMCommunicate OK [08:22:20]SAM_PROTO_ClearQueue done [08:22:20]KKMCreateOFDPacket [08:22:20]OFDProtocolAddRootSTLVToBuf [08:22:20]FM_MakeSignedData [08:22:20]FM_MakeSignedData [08:22:20]SAM_PROTO_SignData [08:22:20]wFMCommunicate request_size=4 [08:22:20]MH_SAM_APDU [08:22:20]CAPDU: 80 0D 01 02 [08:22:20]Write to MH i2c: E2 08 00 7A 02 80 0D 01 02 00 00 00 00 F5 [08:22:20]Write i2c OK [08:22:20]MH_I2C_Read... [08:22:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:20]Read from MH i2c: E2 [08:22:20]MH_I2C_Read... [08:22:20]Read from MH i2c: E2 03 00 [08:22:20]MH_I2C_Read... [08:22:20]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [08:22:20]RAPDU: 90 00 [08:22:20]wFMCommunicate OK [08:22:20]wFMCommunicate request_size=255 [08:22:20]MH_SAM_APDU [08:22:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 3B B2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BE 94 01 00 35 04 06 00 DC [08:22:20]Write to MH i2c: E2 02 01 7B 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 3B B2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BE 94 01 00 35 04 06 00 DC 00 00 7B [08:22:20]Write i2c OK [08:22:20]MH_I2C_Read... [08:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:20]Read from MH i2c: E2 [08:22:20]MH_I2C_Read... [08:22:20]Read from MH i2c: E2 03 00 [08:22:20]MH_I2C_Read... [08:22:20]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [08:22:20]RAPDU: 90 00 [08:22:20]wFMCommunicate OK [08:22:20]wFMCommunicate request_size=10 [08:22:20]MH_SAM_APDU [08:22:20]CAPDU: 80 0D 02 02 05 80 7F 7F 44 B2 [08:22:20]Write to MH i2c: E2 0D 00 7C 02 80 0D 02 02 05 00 80 7F 7F 44 B2 00 00 76 [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:21]Read from MH i2c: E2 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 03 00 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [08:22:21]RAPDU: 90 00 [08:22:21]wFMCommunicate OK [08:22:21]wFMCommunicate request_size=4 [08:22:21]MH_SAM_APDU [08:22:21]CAPDU: 80 0D 03 02 [08:22:21]Write to MH i2c: E2 08 00 7D 02 80 0D 03 02 00 00 00 00 FA [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:21]Read from MH i2c: E2 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 0B 00 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 0B 00 7D 02 00 A9 BE 06 88 2F 7B B1 DB 90 00 26 [08:22:21]RAPDU: A9 BE 06 88 2F 7B B1 DB 90 00 [08:22:21]wFMCommunicate OK [08:22:21]SAM_PROTO_SignData done [08:22:21]FM_MakeSignedData done [08:22:21]CreateOFDProtocolMessage [08:22:21]wFMCommunicate request_size=4 [08:22:21]MH_SAM_APDU [08:22:21]CAPDU: 80 11 00 00 [08:22:21]Write to MH i2c: E2 08 00 7E 02 80 11 00 00 00 00 00 00 FA [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:21]Read from MH i2c: E2 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 17 00 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: E2 17 00 7E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 47 [08:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:22:21]wFMCommunicate OK [08:22:21]CreateOFDProtocolMessage done [08:22:21]OFDSenderStorePacket 103614 [08:22:21]StoreOFDPacket docnum=103614 [08:22:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 C5 35 07 01 8E D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 3B B2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BE 94 01 00 35 04 06 00 DC 80 7F 7F 44 B2 A9 BE 06 88 2F 7B B1 DB [08:22:21]CheckFolder [08:22:21]dirname=/storage/ofd_packets [08:22:21]CheckFolder done [08:22:21]ProducePacketName [08:22:21]name=ofd_packets/00103614 [08:22:21]NVStorageSaveData ofd_packets/00103614 [08:22:21]File name is /storage/ofd_packets/00103614 [08:22:21]Write 301 bytes [08:22:21]NVStorageSaveData done [08:22:21]OFDSenderStorePacket done [08:22:21]KKMCreateOFDPacket done [08:22:21]NVStorageSaveData kkm_last_timestamp [08:22:21]File name is /storage/kkm_last_timestamp [08:22:21]Write 4 bytes [08:22:21]NVStorageSaveData done [08:22:21]ExternCall_PrintAddStr [08:22:21]wPrintStart [08:22:21]Write to MH i2c: 01 00 00 7F 02 81 [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: 01 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: 01 07 00 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: 01 07 00 7F 02 00 00 00 00 00 FF 0F 96 [08:22:21]RasterBufferAndPrint [08:22:21]line Счет N : (1)317817 [08:22:21]line ИНН: 02508201610067 [08:22:21]line Контрольно-Кассовый Чек [08:22:21]line ПРОДАЖА [08:22:21]line ТРК (МРК, ГНК) : 33 [08:22:21]line Товар: 2710124130 [08:22:21]line Аи-92-К-4 [08:22:21]line 7.480 * 66.90 [08:22:21]line = 500.41 [08:22:21]line НДС 12% НСП 1% [08:22:21]line > о реализуемом товаре [08:22:21]line ОКРУГЛЕНИЕ: -0.41 [08:22:21]line ИТОГО: 500.00 [08:22:21]line Внесено: 500.00 [08:22:21]line СДАЧА: 0.00 [08:22:21]line НСП 1% : 4.43 [08:22:21]line НДС 12% : 53.14 [08:22:21]line Наличными: 500.00 [08:22:21]line Безнал.: 0.00 [08:22:21]line Место: АЗС № 145 "Партнер Нефть" [08:22:21]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [08:22:21]line СНО: Общий режим [08:22:21]line Чек 26 23.10.2024 08:22 [08:22:21]line Смена: 582 ФФД: 1.0 [08:22:21]line ЗНМ: 0300000095 [08:22:21]line РНМ: 0000000000091754 [08:22:21]line Версия ККМ: 001 [08:22:21]line ФМ: 0000000000871811 [08:22:21]line ФД: 103614 [08:22:21]line ФПД: 242444452971698 [08:22:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082219&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103614&fm=242444452971698&tin=02508201610067®Number=0000000000091754&sum=50000 [08:22:21]written 0, free lines is 4095 [08:22:21]Write to MH i2c: 01 00 00 A9 02 AB [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: 01 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: 01 07 00 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 D3 0C 91 [08:22:21]RasterBufferAndPrint [08:22:21]line [08:22:21]line [08:22:21]line [08:22:21]line [08:22:21]line [08:22:21]written 0, free lines is 3289 [08:22:21]MH_Cut [08:22:21]Write to MH i2c: D1 01 00 B0 02 01 84 [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: D1 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: D1 01 00 [08:22:21]MH_I2C_Read... [08:22:21]Read from MH i2c: D1 01 00 B0 02 00 83 [08:22:21]Write to MH i2c: 01 00 00 B1 02 B3 [08:22:21]Write i2c OK [08:22:21]MH_I2C_Read... [08:22:22]*** Cut start [08:22:22]*** Partial cut [08:22:22]*** CUTSNS_PIN = 1 [08:22:22]*** CUTSNS_PIN = 0 [08:22:23]*** Brake cut motor [08:22:23]Read from MH i2c: 01 [08:22:23]MH_I2C_Read... [08:22:23]*** Stop cut motor [08:22:23]*** Cut end [08:22:23]Read from MH i2c: 01 07 00 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 FF 0F C8 [08:22:23]process_action close_receipt done [08:22:23]requested_data is exist [08:22:23]produce_requested_data [08:22:23]requested_item fm.sn is exist - process it [08:22:23]wFMCommunicate request_size=4 [08:22:23]MH_SAM_APDU [08:22:23]CAPDU: 80 11 00 00 [08:22:23]Write to MH i2c: E2 08 00 B2 02 80 11 00 00 00 00 00 00 2E [08:22:23]Write i2c OK [08:22:23]MH_I2C_Read... [08:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:23]Read from MH i2c: E2 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: E2 17 00 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: E2 17 00 B2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 7B [08:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:22:23]wFMCommunicate OK [08:22:23]requested_item fd.num is exist - process it [08:22:23]SAM_PROTO_GetFieldsCounters [08:22:23]wFMCommunicate request_size=4 [08:22:23]MH_SAM_APDU [08:22:23]CAPDU: 80 13 00 00 [08:22:23]Write to MH i2c: E2 08 00 B3 02 80 13 00 00 00 00 00 00 31 [08:22:23]Write i2c OK [08:22:23]MH_I2C_Read... [08:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:23]Read from MH i2c: E2 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: E2 62 00 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: E2 62 00 B3 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 BE 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [08:22:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 BE 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:23]wFMCommunicate OK [08:22:23]SAM_PROTO_GetFieldsCounters done [08:22:23]requested_item shift.num is exist - process it [08:22:23]requested_item shift.opened is exist - process it [08:22:23]req_shift_opened [08:22:23]FM_GetShiftState [08:22:23]SAM_PROTO_GetShiftState [08:22:23]wFMCommunicate request_size=4 [08:22:23]MH_SAM_APDU [08:22:23]CAPDU: 80 13 01 00 [08:22:23]Write to MH i2c: E2 08 00 B4 02 80 13 01 00 00 00 00 00 33 [08:22:23]Write i2c OK [08:22:23]MH_I2C_Read... [08:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:23]Read from MH i2c: E2 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: E2 0E 00 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: E2 0E 00 B4 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 6C [08:22:23]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:22:23]wFMCommunicate OK [08:22:23]SAM_PROTO_GetShiftState done [08:22:23]FM_GetShiftState done [08:22:23]req_shift_opened done [08:22:23]requested_item shift.open_date is exist - process it [08:22:23]req_shift_open_date [08:22:23]req_shift_open_date done [08:22:23]produce_requested_data done [08:22:23]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103614,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [08:22:23]process_action_free close_receipt [08:22:23]json_value_free [08:22:23]json_value_free done [08:22:23]process_json_proto returns [08:22:23]Send response to host [08:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103614,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [08:22:23]free response buf [08:22:23]execute_script done [08:22:23]execute_script returns [08:22:23]free content buf [08:22:23]Sock 7.Close socket [08:22:23]Sock 7.Thread stoped [08:22:28]recv_with_timeout no data received [08:22:55]ConnectInit Can't connect to host [08:22:55]CommunicateWithHost connect error [08:22:55]CommunicateWithHost err = -1 [08:22:55]OFD Sender: Server communicate error [08:22:55]OFD Sender: Processing packet 103612 [packets to send 500, broken 497] [08:22:55]ProducePacketName [08:22:55]name=ofd_packets/00103612 [08:22:55]OFD Sender: To server: pG, [08:22:55]CommunicateWithHost lk.salyk.kg:30040 [08:22:55]ConnectInit lk.salyk.kg [08:22:56]Connected sock=7 [08:22: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 31 31 0F 01 00 00 A1 EA 07 01 B8 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 D8 B1 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BC 94 01 00 35 04 06 00 80 E0 9C 96 BD AE B1 FA BD 86 73 9F 05 C8 [08:22: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 31 31 4F 00 00 00 8B 78 47 00 EA 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BC 94 01 00 F4 03 04 00 75 59 18 67 B6 04 01 00 00 26 44 0F 1A 36 8F 08 7E [08:22:57]CommunicateWithHost err = 0 [08:22:57]CheckOFDResponse [08:22:57]1017 (14) - 77093643461234 [08:22:57]1041 (16) - 0000000000871811 [08:22:57]1040 (4) - 103612 [08:22:57]1012 (4) - 23.10.2024 02:03 [08:22:57]1206 (1) - 0 [08:22:57]OFD Sender: Remove packet 103612 [08:22:57]ProducePacketName [08:22:57]name=ofd_packets/00103612 [08:22:57]NVStorageDeleteData [08:22:57]OFD Sender: Processing packet 103613 [packets to send 499, broken 497] [08:22:57]ProducePacketName [08:22:57]name=ofd_packets/00103613 [08:22:57]OFD Sender: To server: pG, [08:22:57]CommunicateWithHost lk.salyk.kg:30040 [08:22:57]ConnectInit lk.salyk.kg [08:22:58]Connected sock=7 [08:22: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 31 31 0F 01 00 00 33 28 07 01 EF F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 09 B2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BD 94 01 00 35 04 06 00 86 D4 19 B5 CE ED CD D9 BA 44 FE 9D 69 41 [08:22: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 31 31 4F 00 00 00 93 95 47 00 B3 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 31 31 10 04 04 00 BD 94 01 00 F4 03 04 00 76 59 18 67 B6 04 01 00 00 0E D4 F4 53 86 A5 B3 A3 [08:22:58]CommunicateWithHost err = 0 [08:22:58]CheckOFDResponse [08:22:58]1017 (14) - 77093643461234 [08:22:58]1041 (16) - 0000000000871811 [08:22:58]1040 (4) - 103613 [08:22:58]1012 (4) - 23.10.2024 02:03 [08:22:58]1206 (1) - 0 [08:22:58]OFD Sender: Remove packet 103613 [08:22:58]ProducePacketName [08:22:58]name=ofd_packets/00103613 [08:22:58]NVStorageDeleteData [08:22:59]OFD Sender: Processing packet 103614 [packets to send 498, broken 497] [08:22:59]ProducePacketName [08:22:59]name=ofd_packets/00103614 [08:22:59]OFD Sender: To server: pG, [08:22:59]CommunicateWithHost lk.salyk.kg:30040 [08:22:59]ConnectInit lk.salyk.kg [08:22:59]Connected sock=7 [08:22: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 31 31 0F 01 00 00 C5 35 07 01 8E D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 3B B2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BE 94 01 00 35 04 06 00 DC 80 7F 7F 44 B2 A9 BE 06 88 2F 7B B1 DB [08:22: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 31 31 4F 00 00 00 5B 6E 47 00 AA E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BE 94 01 00 F4 03 04 00 78 59 18 67 B6 04 01 00 00 91 4F 84 9D 34 F9 3B CD [08:22:59]CommunicateWithHost err = 0 [08:22:59]CheckOFDResponse [08:22:59]1017 (14) - 77093643461234 [08:22:59]1041 (16) - 0000000000871811 [08:22:59]1040 (4) - 103614 [08:22:59]1012 (4) - 23.10.2024 02:03 [08:22:59]1206 (1) - 0 [08:22:59]OFD Sender: Remove packet 103614 [08:22:59]ProducePacketName [08:22:59]name=ofd_packets/00103614 [08:22:59]NVStorageDeleteData [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:49]recv_with_timeout no data received [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:33]recv_with_timeout no data received [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:26:58]recv_with_timeout no data received [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:27:58]accept exits with 9 [08:27:58]New connection [08:27:58]New thread 3067088228 created [08:27:58]Thread 3067231588 joined [08:27:58]Waiting for new connection... [08:27:58] Sock 9.Parse request [08:27:58]Sock 9.Check first char [08:27:58]Sock 9.First char is OK [08:27:58]request: POST /json_proto HTTP/1.0 [08:27:58]Method: POST [08:27:58]URL: /json_proto [08:27:58]Method is POST - this is cgi request [08:27:58]url: /json_proto [08:27:58]query_string will be loaded in cgi processing [08:27:58]execute_cgi json_proto POST (null) [08:27:58]execute_cgi path=json_proto method=POST [08:27:58]POST find Content-Length [08:27:58]Host: 172.17.51.67:8080 [08:27:58]Content-Length: 677 [08:27:58]Content-Type: application/json [08:27:58] [08:27:58]POST finish read [08:27:58]Found Content-Length = 677 [08:27:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:58]execute_script... [08:27:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:58]POST & json_proto [08:27:58]process_json_proto [08:27:58]json parsed OK: [08:27:58]protocol is kg_v1.0 [08:27:58]action value=close_receipt [08:27:58]process_action close_receipt [08:27:58]cmd_close_receipt [08:27:58]MH_GetDate [08:27:58]Write to MH i2c: F0 00 00 B5 02 A6 [08:27:58]Write i2c OK [08:27:58]MH_I2C_Read... [08:27:58]Read from MH i2c: F0 [08:27:58]MH_I2C_Read... [08:27:58]Read from MH i2c: F0 09 00 [08:27:58]MH_I2C_Read... [08:27:58]Read from MH i2c: F0 09 00 B5 02 00 8E B3 18 67 1E EF FA 64 DA [08:27:58]GetLastDocTimeStamp 1729671739 [08:27:58]current date 1729672078 [08:27:58]FM_GetShiftState [08:27:58]SAM_PROTO_GetShiftState [08:27:58]wFMCommunicate request_size=4 [08:27:58]MH_SAM_APDU [08:27:58]CAPDU: 80 13 01 00 [08:27:58]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [08:27:58]Write i2c OK [08:27:58]MH_I2C_Read... [08:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:58]Read from MH i2c: E2 [08:27:58]MH_I2C_Read... [08:27:58]Read from MH i2c: E2 0E 00 [08:27:58]MH_I2C_Read... [08:27:58]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 6E [08:27:58]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:27:58]wFMCommunicate OK [08:27:58]SAM_PROTO_GetShiftState done [08:27:58]FM_GetShiftState done [08:27:58]opened in 1729642861 [08:27:58]opened+sec_in_day 1729729261 [08:27:58]quantity*price = 30038 [08:27:58]sum+1 = 30039 [08:27:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 27 23.10.2024 08:27 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103615 ФПД: 90099626963548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082758&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103615&fm=90099626963548&tin=02508201610067®Number=0000000000091754&sum=30000 [08:27:59]StoreToDocumentArchive [08:27:59]shift 582 fd 103615 [08:27:59]save to /storage/0582/doc_00103615 [08:27:59]save last doc name /storage/0582/doc_00103615 to /storage/kkm_last_doc_name [08:27:59]save OK [08:27:59]Clear old archive folders... [08:27:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:59]tlvbuf is 00CB36F0 [08:27:59]SAM_PROTO_ClearQueue [08:27:59]wFMCommunicate request_size=4 [08:27:59]MH_SAM_APDU [08:27:59]CAPDU: 80 09 00 00 [08:27:59]Write to MH i2c: E2 08 00 C3 02 80 09 00 00 00 00 00 00 37 [08:27:59]Write i2c OK [08:27:59]MH_I2C_Read... [08:27:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:59]Read from MH i2c: E2 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 03 00 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [08:27:59]RAPDU: 90 00 [08:27:59]wFMCommunicate OK [08:27:59]SAM_PROTO_ClearQueue done [08:27:59]KKMCreateOFDPacket [08:27:59]OFDProtocolAddRootSTLVToBuf [08:27:59]FM_MakeSignedData [08:27:59]FM_MakeSignedData [08:27:59]SAM_PROTO_SignData [08:27:59]wFMCommunicate request_size=4 [08:27:59]MH_SAM_APDU [08:27:59]CAPDU: 80 0D 01 02 [08:27:59]Write to MH i2c: E2 08 00 C4 02 80 0D 01 02 00 00 00 00 3F [08:27:59]Write i2c OK [08:27:59]MH_I2C_Read... [08:27:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:59]Read from MH i2c: E2 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 03 00 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [08:27:59]RAPDU: 90 00 [08:27:59]wFMCommunicate OK [08:27:59]wFMCommunicate request_size=255 [08:27:59]MH_SAM_APDU [08:27:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8E B3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BF 94 01 00 35 04 06 00 51 [08:27:59]Write to MH i2c: E2 02 01 C5 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8E B3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BF 94 01 00 35 04 06 00 51 00 00 84 [08:27:59]Write i2c OK [08:27:59]MH_I2C_Read... [08:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:59]Read from MH i2c: E2 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 03 00 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [08:27:59]RAPDU: 90 00 [08:27:59]wFMCommunicate OK [08:27:59]wFMCommunicate request_size=10 [08:27:59]MH_SAM_APDU [08:27:59]CAPDU: 80 0D 02 02 05 F1 F4 42 72 5C [08:27:59]Write to MH i2c: E2 0D 00 C6 02 80 0D 02 02 05 00 F1 F4 42 72 5C 00 00 41 [08:27:59]Write i2c OK [08:27:59]MH_I2C_Read... [08:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:59]Read from MH i2c: E2 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 03 00 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [08:27:59]RAPDU: 90 00 [08:27:59]wFMCommunicate OK [08:27:59]wFMCommunicate request_size=4 [08:27:59]MH_SAM_APDU [08:27:59]CAPDU: 80 0D 03 02 [08:27:59]Write to MH i2c: E2 08 00 C7 02 80 0D 03 02 00 00 00 00 44 [08:27:59]Write i2c OK [08:27:59]MH_I2C_Read... [08:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:59]Read from MH i2c: E2 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 0B 00 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 0B 00 C7 02 00 78 59 94 8F 91 7A E1 52 90 00 77 [08:27:59]RAPDU: 78 59 94 8F 91 7A E1 52 90 00 [08:27:59]wFMCommunicate OK [08:27:59]SAM_PROTO_SignData done [08:27:59]FM_MakeSignedData done [08:27:59]CreateOFDProtocolMessage [08:27:59]wFMCommunicate request_size=4 [08:27:59]MH_SAM_APDU [08:27:59]CAPDU: 80 11 00 00 [08:27:59]Write to MH i2c: E2 08 00 C8 02 80 11 00 00 00 00 00 00 44 [08:27:59]Write i2c OK [08:27:59]MH_I2C_Read... [08:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:59]Read from MH i2c: E2 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 17 00 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 17 00 C8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 91 [08:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:27:59]wFMCommunicate OK [08:27:59]CreateOFDProtocolMessage done [08:27:59]OFDSenderStorePacket 103615 [08:27:59]StoreOFDPacket docnum=103615 [08:27:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 53 ED 07 01 D1 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8E B3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BF 94 01 00 35 04 06 00 51 F1 F4 42 72 5C 78 59 94 8F 91 7A E1 52 [08:27:59]CheckFolder [08:27:59]dirname=/storage/ofd_packets [08:27:59]CheckFolder done [08:27:59]ProducePacketName [08:27:59]name=ofd_packets/00103615 [08:27:59]NVStorageSaveData ofd_packets/00103615 [08:27:59]File name is /storage/ofd_packets/00103615 [08:27:59]Write 301 bytes [08:27:59]NVStorageSaveData done [08:27:59]OFDSenderStorePacket done [08:27:59]KKMCreateOFDPacket done [08:27:59]NVStorageSaveData kkm_last_timestamp [08:27:59]File name is /storage/kkm_last_timestamp [08:27:59]Write 4 bytes [08:27:59]NVStorageSaveData done [08:27:59]ExternCall_PrintAddStr [08:27:59]wPrintStart [08:27:59]Write to MH i2c: 01 00 00 C9 02 CB [08:27:59]Write i2c OK [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: 01 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: 01 07 00 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: 01 07 00 C9 02 00 00 00 00 00 FF 0F E0 [08:27:59]RasterBufferAndPrint [08:27:59]line Счет N : (1)317818 [08:27:59]line ИНН: 02508201610067 [08:27:59]line Контрольно-Кассовый Чек [08:27:59]line ПРОДАЖА [08:27:59]line ТРК (МРК, ГНК) : 43 [08:27:59]line Товар: 2710124130 [08:27:59]line Аи-92-К-4 [08:27:59]line 4.490 * 66.90 [08:27:59]line = 300.38 [08:27:59]line НДС 12% НСП 1% [08:27:59]line > о реализуемом товаре [08:27:59]line ОКРУГЛЕНИЕ: -0.38 [08:27:59]line ИТОГО: 300.00 [08:27:59]line Внесено: 300.00 [08:27:59]line СДАЧА: 0.00 [08:27:59]line НСП 1% : 2.66 [08:27:59]line НДС 12% : 31.90 [08:27:59]line Наличными: 300.00 [08:27:59]line Безнал.: 0.00 [08:27:59]line Место: АЗС № 145 "Партнер Нефть" [08:27:59]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [08:27:59]line СНО: Общий режим [08:27:59]line Чек 27 23.10.2024 08:27 [08:27:59]line Смена: 582 ФФД: 1.0 [08:27:59]line ЗНМ: 0300000095 [08:27:59]line РНМ: 0000000000091754 [08:27:59]line Версия ККМ: 001 [08:27:59]line ФМ: 0000000000871811 [08:27:59]line ФД: 103615 [08:27:59]line ФПД: 90099626963548 [08:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082758&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103615&fm=90099626963548&tin=02508201610067®Number=0000000000091754&sum=30000 [08:27:59]written 0, free lines is 4095 [08:27:59]OFD Sender: Processing packet 103615 [packets to send 498, broken 497] [08:27:59]ProducePacketName [08:27:59]name=ofd_packets/00103615 [08:27:59]OFD Sender: To server: pG, [08:27:59]CommunicateWithHost lk.salyk.kg:30040 [08:27:59]ConnectInit lk.salyk.kg [08:28:00]Write to MH i2c: 01 00 00 F3 02 F5 [08:28:00]Write i2c OK [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: 01 [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: 01 07 00 [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: 01 07 00 F3 02 00 00 00 00 00 D0 0C D8 [08:28:00]RasterBufferAndPrint [08:28:00]line [08:28:00]line [08:28:00]line [08:28:00]line [08:28:00]line [08:28:00]written 0, free lines is 3286 [08:28:00]MH_Cut [08:28:00]Write to MH i2c: D1 01 00 FA 02 01 CE [08:28:00]Write i2c OK [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: D1 [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: D1 01 00 [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: D1 01 00 FA 02 00 CD [08:28:00]Write to MH i2c: 01 00 00 FB 02 FD [08:28:00]Write i2c OK [08:28:00]MH_I2C_Read... [08:28:00]Connected sock=10 [08:28: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 31 31 0F 01 00 00 53 ED 07 01 D1 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8E B3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 BF 94 01 00 35 04 06 00 51 F1 F4 42 72 5C 78 59 94 8F 91 7A E1 52 [08:28: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 31 31 4F 00 00 00 7A 70 47 00 9D 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 31 31 10 04 04 00 BF 94 01 00 F4 03 04 00 A4 5A 18 67 B6 04 01 00 00 B5 B0 E9 68 A0 2F 8B A9 [08:28:00]CommunicateWithHost err = 0 [08:28:00]CheckOFDResponse [08:28:00]1017 (14) - 77093643461234 [08:28:00]1041 (16) - 0000000000871811 [08:28:00]1040 (4) - 103615 [08:28:00]1012 (4) - 23.10.2024 02:08 [08:28:00]1206 (1) - 0 [08:28:00]OFD Sender: Remove packet 103615 [08:28:00]ProducePacketName [08:28:00]name=ofd_packets/00103615 [08:28:00]NVStorageDeleteData [08:28:01]*** Cut start [08:28:01]*** Partial cut [08:28:01]*** CUTSNS_PIN = 1 [08:28:01]*** CUTSNS_PIN = 0 [08:28:01]OFD Sender: No OFD packet to send [08:28:01]*** Brake cut motor [08:28:01]Read from MH i2c: 01 [08:28:01]MH_I2C_Read... [08:28:01]*** Stop cut motor [08:28:01]*** Cut end [08:28:01]Read from MH i2c: 01 07 00 [08:28:01]MH_I2C_Read... [08:28:01]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 FF 0F 12 [08:28:01]process_action close_receipt done [08:28:01]requested_data is exist [08:28:01]produce_requested_data [08:28:01]requested_item fm.sn is exist - process it [08:28:01]wFMCommunicate request_size=4 [08:28:01]MH_SAM_APDU [08:28:01]CAPDU: 80 11 00 00 [08:28:01]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [08:28:01]Write i2c OK [08:28:01]MH_I2C_Read... [08:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:01]Read from MH i2c: E2 [08:28:01]MH_I2C_Read... [08:28:01]Read from MH i2c: E2 17 00 [08:28:01]MH_I2C_Read... [08:28:01]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 C5 [08:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:28:01]wFMCommunicate OK [08:28:01]requested_item fd.num is exist - process it [08:28:01]SAM_PROTO_GetFieldsCounters [08:28:01]wFMCommunicate request_size=4 [08:28:01]MH_SAM_APDU [08:28:01]CAPDU: 80 13 00 00 [08:28:01]Write to MH i2c: E2 08 00 FD 02 80 13 00 00 00 00 00 00 7B [08:28:01]Write i2c OK [08:28:01]MH_I2C_Read... [08:28:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:01]Read from MH i2c: E2 [08:28:01]MH_I2C_Read... [08:28:01]Read from MH i2c: E2 62 00 [08:28:01]MH_I2C_Read... [08:28:01]Read from MH i2c: E2 62 00 FD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 BF 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [08:28:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 BF 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:01]wFMCommunicate OK [08:28:01]SAM_PROTO_GetFieldsCounters done [08:28:01]requested_item shift.num is exist - process it [08:28:01]requested_item shift.opened is exist - process it [08:28:01]req_shift_opened [08:28:01]FM_GetShiftState [08:28:01]SAM_PROTO_GetShiftState [08:28:01]wFMCommunicate request_size=4 [08:28:01]MH_SAM_APDU [08:28:01]CAPDU: 80 13 01 00 [08:28:01]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [08:28:01]Write i2c OK [08:28:01]MH_I2C_Read... [08:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:01]Read from MH i2c: E2 [08:28:01]MH_I2C_Read... [08:28:01]Read from MH i2c: E2 0E 00 [08:28:01]MH_I2C_Read... [08:28:01]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B6 [08:28:01]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:28:01]wFMCommunicate OK [08:28:01]SAM_PROTO_GetShiftState done [08:28:01]FM_GetShiftState done [08:28:01]req_shift_opened done [08:28:01]requested_item shift.open_date is exist - process it [08:28:01]req_shift_open_date [08:28:01]req_shift_open_date done [08:28:01]produce_requested_data done [08:28:01]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103615,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [08:28:01]process_action_free close_receipt [08:28:01]json_value_free [08:28:01]json_value_free done [08:28:01]process_json_proto returns [08:28:01]Send response to host [08:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103615,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [08:28:01]free response buf [08:28:01]execute_script done [08:28:01]execute_script returns [08:28:01]free content buf [08:28:01]Sock 9.Close socket [08:28:01]Sock 9.Thread stoped [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:13]recv_with_timeout no data received [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:31]accept exits with 7 [08:29:31]New connection [08:29:31]New thread 3067231588 created [08:29:31]Thread 3067088228 joined [08:29:31]Waiting for new connection... [08:29:31] Sock 7.Parse request [08:29:31]Sock 7.Check first char [08:29:31]Sock 7.First char is OK [08:29:31]request: POST /json_proto HTTP/1.0 [08:29:31]Method: POST [08:29:31]URL: /json_proto [08:29:31]Method is POST - this is cgi request [08:29:31]url: /json_proto [08:29:31]query_string will be loaded in cgi processing [08:29:31]execute_cgi json_proto POST (null) [08:29:31]execute_cgi path=json_proto method=POST [08:29:31]POST find Content-Length [08:29:31]Host: 172.17.51.67:8080 [08:29:31]Content-Length: 677 [08:29:31]Content-Type: application/json [08:29:31] [08:29:31]POST finish read [08:29:31]Found Content-Length = 677 [08:29:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:31]execute_script... [08:29:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:31]POST & json_proto [08:29:31]process_json_proto [08:29:31]json parsed OK: [08:29:31]protocol is kg_v1.0 [08:29:31]action value=close_receipt [08:29:31]process_action close_receipt [08:29:31]cmd_close_receipt [08:29:31]MH_GetDate [08:29:31]Write to MH i2c: F0 00 00 FF 02 F0 [08:29:31]Write i2c OK [08:29:31]MH_I2C_Read... [08:29:31]Read from MH i2c: F0 [08:29:31]MH_I2C_Read... [08:29:31]Read from MH i2c: F0 09 00 [08:29:31]MH_I2C_Read... [08:29:31]Read from MH i2c: F0 09 00 FF 02 00 EC B3 18 67 1E EF FA 64 82 [08:29:31]GetLastDocTimeStamp 1729672078 [08:29:31]current date 1729672172 [08:29:31]FM_GetShiftState [08:29:31]SAM_PROTO_GetShiftState [08:29:31]wFMCommunicate request_size=4 [08:29:31]MH_SAM_APDU [08:29:31]CAPDU: 80 13 01 00 [08:29:31]Write to MH i2c: E2 08 00 00 03 80 13 01 00 00 00 00 00 80 [08:29:31]Write i2c OK [08:29:31]MH_I2C_Read... [08:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:31]Read from MH i2c: E2 [08:29:31]MH_I2C_Read... [08:29:31]Read from MH i2c: E2 0E 00 [08:29:31]MH_I2C_Read... [08:29:31]Read from MH i2c: E2 0E 00 00 03 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B9 [08:29:31]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:29:31]wFMCommunicate OK [08:29:31]SAM_PROTO_GetShiftState done [08:29:31]FM_GetShiftState done [08:29:31]opened in 1729642861 [08:29:31]opened+sec_in_day 1729729261 [08:29:31]quantity*price = 50041 [08:29:31]sum+1 = 50042 [08:29:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 28 23.10.2024 08:29 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103616 ФПД: 119816332286489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082932&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103616&fm=119816332286489&tin=02508201610067®Number=0000000000091754&sum=50000 [08:29:32]StoreToDocumentArchive [08:29:32]shift 582 fd 103616 [08:29:32]save to /storage/0582/doc_00103616 [08:29:32]save last doc name /storage/0582/doc_00103616 to /storage/kkm_last_doc_name [08:29:32]save OK [08:29:32]Clear old archive folders... [08:29:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:32]tlvbuf is 00CB4CF0 [08:29:32]SAM_PROTO_ClearQueue [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 09 00 00 [08:29:32]Write to MH i2c: E2 08 00 0D 03 80 09 00 00 00 00 00 00 82 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 03 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [08:29:32]RAPDU: 90 00 [08:29:32]wFMCommunicate OK [08:29:32]SAM_PROTO_ClearQueue done [08:29:32]KKMCreateOFDPacket [08:29:32]OFDProtocolAddRootSTLVToBuf [08:29:32]FM_MakeSignedData [08:29:32]FM_MakeSignedData [08:29:32]SAM_PROTO_SignData [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 0D 01 02 [08:29:32]Write to MH i2c: E2 08 00 0E 03 80 0D 01 02 00 00 00 00 8A [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 03 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [08:29:32]RAPDU: 90 00 [08:29:32]wFMCommunicate OK [08:29:32]wFMCommunicate request_size=255 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EC B3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C0 94 01 00 35 04 06 00 6C [08:29:32]Write to MH i2c: E2 02 01 0F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EC B3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C0 94 01 00 35 04 06 00 6C 00 00 56 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 03 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [08:29:32]RAPDU: 90 00 [08:29:32]wFMCommunicate OK [08:29:32]wFMCommunicate request_size=10 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 0D 02 02 05 F8 E9 EC 9A 19 [08:29:32]Write to MH i2c: E2 0D 00 10 03 80 0D 02 02 05 00 F8 E9 EC 9A 19 00 00 17 [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 03 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [08:29:32]RAPDU: 90 00 [08:29:32]wFMCommunicate OK [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 0D 03 02 [08:29:32]Write to MH i2c: E2 08 00 11 03 80 0D 03 02 00 00 00 00 8F [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 0B 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 0B 00 11 03 00 91 5E 39 0B FB 18 0B 8E 90 00 6F [08:29:32]RAPDU: 91 5E 39 0B FB 18 0B 8E 90 00 [08:29:32]wFMCommunicate OK [08:29:32]SAM_PROTO_SignData done [08:29:32]FM_MakeSignedData done [08:29:32]CreateOFDProtocolMessage [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 11 00 00 [08:29:32]Write to MH i2c: E2 08 00 12 03 80 11 00 00 00 00 00 00 8F [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:33]Read from MH i2c: E2 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 17 00 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 17 00 12 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 DC [08:29:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:29:33]wFMCommunicate OK [08:29:33]CreateOFDProtocolMessage done [08:29:33]OFDSenderStorePacket 103616 [08:29:33]StoreOFDPacket docnum=103616 [08:29:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 C1 DC 07 01 DF F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EC B3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C0 94 01 00 35 04 06 00 6C F8 E9 EC 9A 19 91 5E 39 0B FB 18 0B 8E [08:29:33]CheckFolder [08:29:33]dirname=/storage/ofd_packets [08:29:33]CheckFolder done [08:29:33]ProducePacketName [08:29:33]name=ofd_packets/00103616 [08:29:33]NVStorageSaveData ofd_packets/00103616 [08:29:33]File name is /storage/ofd_packets/00103616 [08:29:33]Write 301 bytes [08:29:33]NVStorageSaveData done [08:29:33]OFDSenderStorePacket done [08:29:33]KKMCreateOFDPacket done [08:29:33]NVStorageSaveData kkm_last_timestamp [08:29:33]File name is /storage/kkm_last_timestamp [08:29:33]Write 4 bytes [08:29:33]NVStorageSaveData done [08:29:33]ExternCall_PrintAddStr [08:29:33]wPrintStart [08:29:33]Write to MH i2c: 01 00 00 13 03 16 [08:29:33]Write i2c OK [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: 01 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: 01 07 00 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: 01 07 00 13 03 00 00 00 00 00 FF 0F 2B [08:29:33]RasterBufferAndPrint [08:29:33]line Счет N : (1)317819 [08:29:33]line ИНН: 02508201610067 [08:29:33]line Контрольно-Кассовый Чек [08:29:33]line ПРОДАЖА [08:29:33]line ТРК (МРК, ГНК) : 43 [08:29:33]line Товар: 2710124130 [08:29:33]line Аи-92-К-4 [08:29:33]line 7.480 * 66.90 [08:29:33]line = 500.41 [08:29:33]line НДС 12% НСП 1% [08:29:33]line > о реализуемом товаре [08:29:33]line ОКРУГЛЕНИЕ: -0.41 [08:29:33]line ИТОГО: 500.00 [08:29:33]line Внесено: 500.00 [08:29:33]line СДАЧА: 0.00 [08:29:33]line НСП 1% : 4.43 [08:29:33]line НДС 12% : 53.14 [08:29:33]line Наличными: 500.00 [08:29:33]line Безнал.: 0.00 [08:29:33]line Место: АЗС № 145 "Партнер Нефть" [08:29:33]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [08:29:33]line СНО: Общий режим [08:29:33]line Чек 28 23.10.2024 08:29 [08:29:33]line Смена: 582 ФФД: 1.0 [08:29:33]line ЗНМ: 0300000095 [08:29:33]line РНМ: 0000000000091754 [08:29:33]line Версия ККМ: 001 [08:29:33]line ФМ: 0000000000871811 [08:29:33]line ФД: 103616 [08:29:33]line ФПД: 119816332286489 [08:29:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T082932&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103616&fm=119816332286489&tin=02508201610067®Number=0000000000091754&sum=50000 [08:29:33]written 0, free lines is 4095 [08:29:33]OFD Sender: Processing packet 103616 [packets to send 498, broken 497] [08:29:33]ProducePacketName [08:29:33]name=ofd_packets/00103616 [08:29:33]OFD Sender: To server: pG, [08:29:33]CommunicateWithHost lk.salyk.kg:30040 [08:29:33]ConnectInit lk.salyk.kg [08:29:33]Write to MH i2c: 01 00 00 3D 03 40 [08:29:33]Write i2c OK [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: 01 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: 01 07 00 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: 01 07 00 3D 03 00 00 00 00 00 C9 0C 1C [08:29:33]RasterBufferAndPrint [08:29:33]line [08:29:33]line [08:29:33]line [08:29:33]line [08:29:33]line [08:29:33]written 0, free lines is 3280 [08:29:33]MH_Cut [08:29:33]Write to MH i2c: D1 01 00 44 03 01 19 [08:29:33]Write i2c OK [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: D1 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: D1 01 00 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: D1 01 00 44 03 00 18 [08:29:33]Write to MH i2c: 01 00 00 45 03 48 [08:29:33]Write i2c OK [08:29:33]MH_I2C_Read... [08:29:33]Connected sock=10 [08:29: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 31 31 0F 01 00 00 C1 DC 07 01 DF F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EC B3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C0 94 01 00 35 04 06 00 6C F8 E9 EC 9A 19 91 5E 39 0B FB 18 0B 8E [08:29: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 31 31 4F 00 00 00 52 DF 47 00 EB 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 31 31 10 04 04 00 C0 94 01 00 F4 03 04 00 02 5B 18 67 B6 04 01 00 00 68 99 67 9B 81 79 9C 80 [08:29:34]CommunicateWithHost err = 0 [08:29:34]CheckOFDResponse [08:29:34]1017 (14) - 77093643461234 [08:29:34]1041 (16) - 0000000000871811 [08:29:34]1040 (4) - 103616 [08:29:34]1012 (4) - 23.10.2024 02:10 [08:29:34]1206 (1) - 0 [08:29:34]OFD Sender: Remove packet 103616 [08:29:34]ProducePacketName [08:29:34]name=ofd_packets/00103616 [08:29:34]NVStorageDeleteData [08:29:34]*** Cut start [08:29:34]*** Partial cut [08:29:34]*** CUTSNS_PIN = 1 [08:29:34]*** CUTSNS_PIN = 0 [08:29:34]*** Brake cut motor [08:29:34]OFD Sender: No OFD packet to send [08:29:34]Read from MH i2c: 01 [08:29:34]MH_I2C_Read... [08:29:34]*** Stop cut motor [08:29:34]*** Cut end [08:29:34]Read from MH i2c: 01 07 00 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [08:29:34]process_action close_receipt done [08:29:34]requested_data is exist [08:29:34]produce_requested_data [08:29:34]requested_item fm.sn is exist - process it [08:29:34]wFMCommunicate request_size=4 [08:29:34]MH_SAM_APDU [08:29:34]CAPDU: 80 11 00 00 [08:29:34]Write to MH i2c: E2 08 00 46 03 80 11 00 00 00 00 00 00 C3 [08:29:34]Write i2c OK [08:29:34]MH_I2C_Read... [08:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:34]Read from MH i2c: E2 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 17 00 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 17 00 46 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 10 [08:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:29:34]wFMCommunicate OK [08:29:34]requested_item fd.num is exist - process it [08:29:34]SAM_PROTO_GetFieldsCounters [08:29:34]wFMCommunicate request_size=4 [08:29:34]MH_SAM_APDU [08:29:34]CAPDU: 80 13 00 00 [08:29:34]Write to MH i2c: E2 08 00 47 03 80 13 00 00 00 00 00 00 C6 [08:29:34]Write i2c OK [08:29:34]MH_I2C_Read... [08:29:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:35]Read from MH i2c: E2 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 62 00 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 62 00 47 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C0 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [08:29:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C0 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:35]wFMCommunicate OK [08:29:35]SAM_PROTO_GetFieldsCounters done [08:29:35]requested_item shift.num is exist - process it [08:29:35]requested_item shift.opened is exist - process it [08:29:35]req_shift_opened [08:29:35]FM_GetShiftState [08:29:35]SAM_PROTO_GetShiftState [08:29:35]wFMCommunicate request_size=4 [08:29:35]MH_SAM_APDU [08:29:35]CAPDU: 80 13 01 00 [08:29:35]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [08:29:35]Write i2c OK [08:29:35]MH_I2C_Read... [08:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:35]Read from MH i2c: E2 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 0E 00 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 01 [08:29:35]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:29:35]wFMCommunicate OK [08:29:35]SAM_PROTO_GetShiftState done [08:29:35]FM_GetShiftState done [08:29:35]req_shift_opened done [08:29:35]requested_item shift.open_date is exist - process it [08:29:35]req_shift_open_date [08:29:35]req_shift_open_date done [08:29:35]produce_requested_data done [08:29:35]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103616,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [08:29:35]process_action_free close_receipt [08:29:35]json_value_free [08:29:35]json_value_free done [08:29:35]process_json_proto returns [08:29:35]Send response to host [08:29:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103616,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [08:29:35]free response buf [08:29:35]execute_script done [08:29:35]execute_script returns [08:29:35]free content buf [08:29:35]Sock 7.Close socket [08:29:35]Sock 7.Thread stoped [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:52]recv_with_timeout no data received [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]recv_with_timeout no data received [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:05]recv_with_timeout no data received [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:25]recv_with_timeout no data received [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:04]recv_with_timeout no data received [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:27]recv_with_timeout no data received [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:23]recv_with_timeout no data received [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:17]recv_with_timeout no data received [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:02]recv_with_timeout no data received [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:29]recv_with_timeout no data received [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:07]accept exits with 9 [08:40:07]New connection [08:40:07]New thread 3067088228 created [08:40:07]Thread 3067231588 joined [08:40:07]Waiting for new connection... [08:40:07] Sock 9.Parse request [08:40:07]Sock 9.Check first char [08:40:07]Sock 9.First char is OK [08:40:07]request: POST /json_proto HTTP/1.0 [08:40:07]Method: POST [08:40:07]URL: /json_proto [08:40:07]Method is POST - this is cgi request [08:40:07]url: /json_proto [08:40:07]query_string will be loaded in cgi processing [08:40:07]execute_cgi json_proto POST (null) [08:40:07]execute_cgi path=json_proto method=POST [08:40:07]POST find Content-Length [08:40:07]Host: 172.17.51.67:8080 [08:40:07]Content-Length: 843 [08:40:07]Content-Type: application/json [08:40:07] [08:40:07]POST finish read [08:40:07]Found Content-Length = 843 [08:40:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:07]execute_script... [08:40:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:07]POST & json_proto [08:40:07]process_json_proto [08:40:07]json parsed OK: [08:40:07]protocol is kg_v1.0 [08:40:07]action value=close_receipt [08:40:07]process_action close_receipt [08:40:07]cmd_close_receipt [08:40:07]MH_GetDate [08:40:07]Write to MH i2c: F0 00 00 49 03 3B [08:40:07]Write i2c OK [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: F0 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: F0 09 00 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: F0 09 00 49 03 00 68 B6 18 67 1E EF FA 64 4C [08:40:07]GetLastDocTimeStamp 1729672172 [08:40:07]current date 1729672808 [08:40:07]FM_GetShiftState [08:40:07]SAM_PROTO_GetShiftState [08:40:07]wFMCommunicate request_size=4 [08:40:07]MH_SAM_APDU [08:40:07]CAPDU: 80 13 01 00 [08:40:07]Write to MH i2c: E2 08 00 4A 03 80 13 01 00 00 00 00 00 CA [08:40:07]Write i2c OK [08:40:07]MH_I2C_Read... [08:40:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:07]Read from MH i2c: E2 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 0E 00 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 0E 00 4A 03 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 03 [08:40:07]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:40:07]wFMCommunicate OK [08:40:07]SAM_PROTO_GetShiftState done [08:40:07]FM_GetShiftState done [08:40:07]opened in 1729642861 [08:40:07]opened+sec_in_day 1729729261 [08:40:07]quantity*price = 100015 [08:40:07]sum+1 = 100017 [08:40:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 29 23.10.2024 08:40 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103617 ФПД: 24253759539065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084008&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103617&fm=24253759539065&tin=02508201610067®Number=0000000000091754&sum=100016 [08:40:08]StoreToDocumentArchive [08:40:08]shift 582 fd 103617 [08:40:08]save to /storage/0582/doc_00103617 [08:40:08]save last doc name /storage/0582/doc_00103617 to /storage/kkm_last_doc_name [08:40:08]save OK [08:40:08]Clear old archive folders... [08:40:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:08]tlvbuf is 00CB4A60 [08:40:08]SAM_PROTO_ClearQueue [08:40:08]wFMCommunicate request_size=4 [08:40:08]MH_SAM_APDU [08:40:08]CAPDU: 80 09 00 00 [08:40:08]Write to MH i2c: E2 08 00 57 03 80 09 00 00 00 00 00 00 CC [08:40:08]Write i2c OK [08:40:08]MH_I2C_Read... [08:40:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:08]Read from MH i2c: E2 [08:40:08]MH_I2C_Read... [08:40:08]Read from MH i2c: E2 03 00 [08:40:08]MH_I2C_Read... [08:40:08]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [08:40:08]RAPDU: 90 00 [08:40:08]wFMCommunicate OK [08:40:08]SAM_PROTO_ClearQueue done [08:40:08]KKMCreateOFDPacket [08:40:08]OFDProtocolAddRootSTLVToBuf [08:40:08]FM_MakeSignedData [08:40:08]FM_MakeSignedData [08:40:08]SAM_PROTO_SignData [08:40:08]wFMCommunicate request_size=4 [08:40:08]MH_SAM_APDU [08:40:08]CAPDU: 80 0D 01 02 [08:40:08]Write to MH i2c: E2 08 00 58 03 80 0D 01 02 00 00 00 00 D4 [08:40:08]Write i2c OK [08:40:08]MH_I2C_Read... [08:40:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:08]Read from MH i2c: E2 [08:40:08]MH_I2C_Read... [08:40:08]Read from MH i2c: E2 03 00 [08:40:08]MH_I2C_Read... [08:40:08]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [08:40:08]RAPDU: 90 00 [08:40:08]wFMCommunicate OK [08:40:08]wFMCommunicate request_size=255 [08:40:08]MH_SAM_APDU [08:40:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 68 B6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C1 94 01 00 35 04 06 00 16 [08:40:08]Write to MH i2c: E2 02 01 59 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 68 B6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C1 94 01 00 35 04 06 00 16 00 00 E5 [08:40:08]Write i2c OK [08:40:08]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 [08:40:09]MH_I2C_Read... [08:40:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:09]Read from MH i2c: E2 03 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [08:40:09]RAPDU: 90 00 [08:40:09]wFMCommunicate OK [08:40:09]wFMCommunicate request_size=10 [08:40:09]MH_SAM_APDU [08:40:09]CAPDU: 80 0D 02 02 05 0F 04 B8 C7 79 [08:40:09]Write to MH i2c: E2 0D 00 5A 03 80 0D 02 02 05 00 0F 04 B8 C7 79 00 00 EC [08:40:09]Write i2c OK [08:40:09]MH_I2C_Read... [08:40:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:09]Read from MH i2c: E2 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 03 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [08:40:09]RAPDU: 90 00 [08:40:09]wFMCommunicate OK [08:40:09]wFMCommunicate request_size=4 [08:40:09]MH_SAM_APDU [08:40:09]CAPDU: 80 0D 03 02 [08:40:09]Write to MH i2c: E2 08 00 5B 03 80 0D 03 02 00 00 00 00 D9 [08:40:09]Write i2c OK [08:40:09]MH_I2C_Read... [08:40:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:09]Read from MH i2c: E2 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 0B 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 0B 00 5B 03 00 84 34 6C CF C9 87 63 2E 90 00 AE [08:40:09]RAPDU: 84 34 6C CF C9 87 63 2E 90 00 [08:40:09]wFMCommunicate OK [08:40:09]SAM_PROTO_SignData done [08:40:09]FM_MakeSignedData done [08:40:09]CreateOFDProtocolMessage [08:40:09]wFMCommunicate request_size=4 [08:40:09]MH_SAM_APDU [08:40:09]CAPDU: 80 11 00 00 [08:40:09]Write to MH i2c: E2 08 00 5C 03 80 11 00 00 00 00 00 00 D9 [08:40:09]Write i2c OK [08:40:09]MH_I2C_Read... [08:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:09]Read from MH i2c: E2 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 17 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 17 00 5C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 26 [08:40:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:40:09]wFMCommunicate OK [08:40:09]CreateOFDProtocolMessage done [08:40:09]OFDSenderStorePacket 103617 [08:40:09]StoreOFDPacket docnum=103617 [08:40:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 41 1D 07 01 E5 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 68 B6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C1 94 01 00 35 04 06 00 16 0F 04 B8 C7 79 84 34 6C CF C9 87 63 2E [08:40:09]CheckFolder [08:40:09]dirname=/storage/ofd_packets [08:40:09]CheckFolder done [08:40:09]ProducePacketName [08:40:09]name=ofd_packets/00103617 [08:40:09]NVStorageSaveData ofd_packets/00103617 [08:40:09]File name is /storage/ofd_packets/00103617 [08:40:09]Write 301 bytes [08:40:09]NVStorageSaveData done [08:40:09]OFDSenderStorePacket done [08:40:09]KKMCreateOFDPacket done [08:40:09]NVStorageSaveData kkm_last_timestamp [08:40:09]File name is /storage/kkm_last_timestamp [08:40:09]Write 4 bytes [08:40:09]NVStorageSaveData done [08:40:09]ExternCall_PrintAddStr [08:40:09]wPrintStart [08:40:09]Write to MH i2c: 01 00 00 5D 03 60 [08:40:09]Write i2c OK [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: 01 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: 01 07 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: 01 07 00 5D 03 00 00 00 00 00 FF 0F 75 [08:40:09]RasterBufferAndPrint [08:40:09]line Счет N : (1)317820 [08:40:09]line ИНН: 02508201610067 [08:40:09]line Контрольно-Кассовый Чек [08:40:09]line ПРОДАЖА [08:40:09]line ТРК (МРК, ГНК) : 53 [08:40:09]line Товар: 2710124130 [08:40:09]line Аи-92-К-4 [08:40:09]line 14.950 * 66.90 [08:40:09]line = 1000.16 [08:40:09]line НДС 12% НСП 1% [08:40:09]line > о реализуемом товаре [08:40:09]line ИТОГО: 1000.16 [08:40:09]line НСП 1% : 8.85 [08:40:09]line НДС 12% : 106.21 [08:40:09]line Наличными: 0.00 [08:40:09]line Безнал.: 1000.16 [08:40:09]line Место: АЗС № 145 "Партнер Нефть" [08:40:09]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [08:40:09]line СНО: Общий режим [08:40:09]line Чек 29 23.10.2024 08:40 [08:40:09]line Смена: 582 ФФД: 1.0 [08:40:09]line ЗНМ: 0300000095 [08:40:09]line РНМ: 0000000000091754 [08:40:09]line Версия ККМ: 001 [08:40:09]line Платежная система: АКБ Кыргызстан [08:40:09]line ФМ: 0000000000871811 [08:40:09]line ФД: 103617 [08:40:09]line ФПД: 24253759539065 [08:40:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084008&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103617&fm=24253759539065&tin=02508201610067®Number=0000000000091754&sum=100016 [08:40:09]written 0, free lines is 4095 [08:40:09]OFD Sender: Processing packet 103617 [packets to send 498, broken 497] [08:40:09]ProducePacketName [08:40:09]name=ofd_packets/00103617 [08:40:09]OFD Sender: To server: pG, [08:40:09]CommunicateWithHost lk.salyk.kg:30040 [08:40:09]ConnectInit lk.salyk.kg [08:40:09]Write to MH i2c: 01 00 00 86 03 89 [08:40:09]Write i2c OK [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: 01 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: 01 07 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: 01 07 00 86 03 00 00 00 00 00 E1 0C 7D [08:40:09]RasterBufferAndPrint [08:40:09]line [08:40:09]line [08:40:09]line [08:40:09]line [08:40:09]line [08:40:09]written 0, free lines is 3303 [08:40:09]MH_Cut [08:40:09]Write to MH i2c: D1 01 00 8D 03 01 62 [08:40:09]Write i2c OK [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: D1 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: D1 01 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: D1 01 00 8D 03 00 61 [08:40:09]Write to MH i2c: 01 00 00 8E 03 91 [08:40:09]Write i2c OK [08:40:09]MH_I2C_Read... [08:40:10]*** Cut start [08:40:10]*** Partial cut [08:40:10]*** CUTSNS_PIN = 1 [08:40:10]*** CUTSNS_PIN = 0 [08:40:10]*** Brake cut motor [08:40:11]Read from MH i2c: 01 [08:40:11]MH_I2C_Read... [08:40:11]*** Stop cut motor [08:40:11]*** Cut end [08:40:11]Read from MH i2c: 01 07 00 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: 01 07 00 8E 03 00 00 00 00 00 FF 0F A6 [08:40:11]process_action close_receipt done [08:40:11]requested_data is exist [08:40:11]produce_requested_data [08:40:11]requested_item fm.sn is exist - process it [08:40:11]wFMCommunicate request_size=4 [08:40:11]MH_SAM_APDU [08:40:11]CAPDU: 80 11 00 00 [08:40:11]Write to MH i2c: E2 08 00 8F 03 80 11 00 00 00 00 00 00 0C [08:40:11]Write i2c OK [08:40:11]MH_I2C_Read... [08:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:11]Read from MH i2c: E2 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 17 00 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 17 00 8F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 59 [08:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:40:11]wFMCommunicate OK [08:40:11]requested_item fd.num is exist - process it [08:40:11]SAM_PROTO_GetFieldsCounters [08:40:11]wFMCommunicate request_size=4 [08:40:11]MH_SAM_APDU [08:40:11]CAPDU: 80 13 00 00 [08:40:11]Write to MH i2c: E2 08 00 90 03 80 13 00 00 00 00 00 00 0F [08:40:11]Write i2c OK [08:40:11]MH_I2C_Read... [08:40:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:11]Read from MH i2c: E2 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 62 00 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 62 00 90 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C1 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [08:40: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C1 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:11]wFMCommunicate OK [08:40:11]SAM_PROTO_GetFieldsCounters done [08:40:11]requested_item shift.num is exist - process it [08:40:11]requested_item shift.opened is exist - process it [08:40:11]req_shift_opened [08:40:11]FM_GetShiftState [08:40:11]SAM_PROTO_GetShiftState [08:40:11]wFMCommunicate request_size=4 [08:40:11]MH_SAM_APDU [08:40:11]CAPDU: 80 13 01 00 [08:40:11]Write to MH i2c: E2 08 00 91 03 80 13 01 00 00 00 00 00 11 [08:40:11]Write i2c OK [08:40:11]MH_I2C_Read... [08:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:11]Read from MH i2c: E2 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 0E 00 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 0E 00 91 03 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 4A [08:40:11]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:40:11]wFMCommunicate OK [08:40:11]SAM_PROTO_GetShiftState done [08:40:11]FM_GetShiftState done [08:40:11]req_shift_opened done [08:40:11]requested_item shift.open_date is exist - process it [08:40:11]req_shift_open_date [08:40:11]req_shift_open_date done [08:40:11]produce_requested_data done [08:40:11]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103617,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [08:40:11]process_action_free close_receipt [08:40:11]json_value_free [08:40:11]json_value_free done [08:40:11]process_json_proto returns [08:40:11]Send response to host [08:40:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103617,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [08:40:11]free response buf [08:40:11]execute_script done [08:40:11]execute_script returns [08:40:11]free content buf [08:40:11]Sock 9.Close socket [08:40:11]Sock 9.Thread stoped [08:40:12]Connected sock=11 [08:40: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 31 31 0F 01 00 00 41 1D 07 01 E5 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 68 B6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C1 94 01 00 35 04 06 00 16 0F 04 B8 C7 79 84 34 6C CF C9 87 63 2E [08:40: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 31 31 4F 00 00 00 06 55 47 00 54 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C1 94 01 00 F4 03 04 00 80 5D 18 67 B6 04 01 00 00 4B CF 39 29 BB 74 66 C4 [08:40:12]CommunicateWithHost err = 0 [08:40:12]CheckOFDResponse [08:40:12]1017 (14) - 77093643461234 [08:40:12]1041 (16) - 0000000000871811 [08:40:12]1040 (4) - 103617 [08:40:12]1012 (4) - 23.10.2024 02:20 [08:40:12]1206 (1) - 0 [08:40:12]OFD Sender: Remove packet 103617 [08:40:12]ProducePacketName [08:40:12]name=ofd_packets/00103617 [08:40:12]NVStorageDeleteData [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:55]accept exits with 7 [08:41:55]New connection [08:41:55]New thread 3067231588 created [08:41:55]Thread 3067088228 joined [08:41:55]Waiting for new connection... [08:41:55] Sock 7.Parse request [08:41:55]Sock 7.Check first char [08:41:55]Sock 7.First char is OK [08:41:55]request: POST /json_proto HTTP/1.0 [08:41:55]Method: POST [08:41:55]URL: /json_proto [08:41:55]Method is POST - this is cgi request [08:41:55]url: /json_proto [08:41:55]query_string will be loaded in cgi processing [08:41:55]execute_cgi json_proto POST (null) [08:41:55]execute_cgi path=json_proto method=POST [08:41:55]POST find Content-Length [08:41:55]Host: 172.17.51.67:8080 [08:41:55]Content-Length: 843 [08:41:55]Content-Type: application/json [08:41:55] [08:41:55]POST finish read [08:41:55]Found Content-Length = 843 [08:41:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:55]execute_script... [08:41:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:55]POST & json_proto [08:41:55]process_json_proto [08:41:55]json parsed OK: [08:41:55]protocol is kg_v1.0 [08:41:55]action value=close_receipt [08:41:55]process_action close_receipt [08:41:55]cmd_close_receipt [08:41:55]MH_GetDate [08:41:55]Write to MH i2c: F0 00 00 92 03 84 [08:41:55]Write i2c OK [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: F0 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: F0 09 00 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: F0 09 00 92 03 00 D4 B6 18 67 1E EF FA 64 01 [08:41:55]GetLastDocTimeStamp 1729672808 [08:41:55]current date 1729672916 [08:41:55]FM_GetShiftState [08:41:55]SAM_PROTO_GetShiftState [08:41:55]wFMCommunicate request_size=4 [08:41:55]MH_SAM_APDU [08:41:55]CAPDU: 80 13 01 00 [08:41:55]Write to MH i2c: E2 08 00 93 03 80 13 01 00 00 00 00 00 13 [08:41:55]Write i2c OK [08:41:55]MH_I2C_Read... [08:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:55]Read from MH i2c: E2 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 0E 00 [08:41:55]MH_I2C_Read... [08:41:55]Read from MH i2c: E2 0E 00 93 03 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 4C [08:41:55]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:41:55]wFMCommunicate OK [08:41:55]SAM_PROTO_GetShiftState done [08:41:55]FM_GetShiftState done [08:41:55]opened in 1729642861 [08:41:55]opened+sec_in_day 1729729261 [08:41:55]quantity*price = 100015 [08:41:55]sum+1 = 100017 [08:41:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 31 23.10.2024 08:48 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103619 ФПД: 101532316527065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084849&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103619&fm=101532316527065&tin=02508201610067®Number=0000000000091754&sum=50000 [08:48:49]StoreToDocumentArchive [08:48:49]shift 582 fd 103619 [08:48:49]save to /storage/0582/doc_00103619 [08:48:49]save last doc name /storage/0582/doc_00103619 to /storage/kkm_last_doc_name [08:48:49]save OK [08:48:49]Clear old archive folders... [08:48:49]Remove dir /storage/0522 [08:48:49]opendir ok [08:48:49]file . [08:48:49]file .. [08:48:49]file doc_1729672975 [08:48:49]remove file /storage/0522/doc_1729672975 [08:48:49]remove dir /storage/0522 [08:48:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:49]tlvbuf is 00C6CE00 [08:48:49]SAM_PROTO_ClearQueue [08:48:49]wFMCommunicate request_size=4 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 09 00 00 [08:48:49]Write to MH i2c: E2 08 00 66 04 80 09 00 00 00 00 00 00 DC [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [08:48:49]RAPDU: 90 00 [08:48:49]wFMCommunicate OK [08:48:49]SAM_PROTO_ClearQueue done [08:48:49]KKMCreateOFDPacket [08:48:49]OFDProtocolAddRootSTLVToBuf [08:48:49]FM_MakeSignedData [08:48:49]FM_MakeSignedData [08:48:49]SAM_PROTO_SignData [08:48:49]wFMCommunicate request_size=4 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 0D 01 02 [08:48:49]Write to MH i2c: E2 08 00 67 04 80 0D 01 02 00 00 00 00 E4 [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:50]Read from MH i2c: E2 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 03 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [08:48:50]RAPDU: 90 00 [08:48:50]wFMCommunicate OK [08:48:50]wFMCommunicate request_size=255 [08:48:50]MH_SAM_APDU [08:48:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 71 B8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C3 94 01 00 35 04 06 00 5C [08:48:50]Write to MH i2c: E2 02 01 68 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 71 B8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C3 94 01 00 35 04 06 00 5C 00 00 30 [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:50]Read from MH i2c: E2 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 03 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [08:48:50]RAPDU: 90 00 [08:48:50]wFMCommunicate OK [08:48:50]wFMCommunicate request_size=10 [08:48:50]MH_SAM_APDU [08:48:50]CAPDU: 80 0D 02 02 05 57 D5 A8 E9 D9 [08:48:50]Write to MH i2c: E2 0D 00 69 04 80 0D 02 02 05 00 57 D5 A8 E9 D9 00 00 87 [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:50]Read from MH i2c: E2 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 03 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [08:48:50]RAPDU: 90 00 [08:48:50]wFMCommunicate OK [08:48:50]wFMCommunicate request_size=4 [08:48:50]MH_SAM_APDU [08:48:50]CAPDU: 80 0D 03 02 [08:48:50]Write to MH i2c: E2 08 00 6A 04 80 0D 03 02 00 00 00 00 E9 [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:50]Read from MH i2c: E2 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 0B 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 0B 00 6A 04 00 ED 47 FD 4F F4 17 D7 A4 90 00 F0 [08:48:50]RAPDU: ED 47 FD 4F F4 17 D7 A4 90 00 [08:48:50]wFMCommunicate OK [08:48:50]SAM_PROTO_SignData done [08:48:50]FM_MakeSignedData done [08:48:50]CreateOFDProtocolMessage [08:48:50]wFMCommunicate request_size=4 [08:48:50]MH_SAM_APDU [08:48:50]CAPDU: 80 11 00 00 [08:48:50]Write to MH i2c: E2 08 00 6B 04 80 11 00 00 00 00 00 00 E9 [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:50]Read from MH i2c: E2 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 17 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 17 00 6B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 36 [08:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:48:50]wFMCommunicate OK [08:48:50]CreateOFDProtocolMessage done [08:48:50]OFDSenderStorePacket 103619 [08:48:50]StoreOFDPacket docnum=103619 [08:48:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 9A 53 07 01 90 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 71 B8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C3 94 01 00 35 04 06 00 5C 57 D5 A8 E9 D9 ED 47 FD 4F F4 17 D7 A4 [08:48:50]CheckFolder [08:48:50]dirname=/storage/ofd_packets [08:48:50]CheckFolder done [08:48:50]ProducePacketName [08:48:50]name=ofd_packets/00103619 [08:48:50]NVStorageSaveData ofd_packets/00103619 [08:48:50]File name is /storage/ofd_packets/00103619 [08:48:50]Write 301 bytes [08:48:50]NVStorageSaveData done [08:48:50]OFDSenderStorePacket done [08:48:50]KKMCreateOFDPacket done [08:48:50]NVStorageSaveData kkm_last_timestamp [08:48:50]File name is /storage/kkm_last_timestamp [08:48:50]Write 4 bytes [08:48:50]NVStorageSaveData done [08:48:50]ExternCall_PrintAddStr [08:48:50]wPrintStart [08:48:50]Write to MH i2c: 01 00 00 6C 04 70 [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 07 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [08:48:50]RasterBufferAndPrint [08:48:50]line Счет N : (1)317822 [08:48:50]line ИНН: 02508201610067 [08:48:50]line Контрольно-Кассовый Чек [08:48:50]line ПРОДАЖА [08:48:50]line ТРК (МРК, ГНК) : 53 [08:48:50]line Товар: 2710124130 [08:48:50]line Аи-92-К-4 [08:48:50]line 7.480 * 66.90 [08:48:50]line = 500.41 [08:48:50]line НДС 12% НСП 1% [08:48:50]line > о реализуемом товаре [08:48:50]line ОКРУГЛЕНИЕ: -0.41 [08:48:50]line ИТОГО: 500.00 [08:48:50]line Внесено: 500.00 [08:48:50]line СДАЧА: 0.00 [08:48:50]line НСП 1% : 4.43 [08:48:50]line НДС 12% : 53.14 [08:48:50]line Наличными: 500.00 [08:48:50]line Безнал.: 0.00 [08:48:50]line Место: АЗС № 145 "Партнер Нефть" [08:48:50]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [08:48:50]line СНО: Общий режим [08:48:50]line Чек 31 23.10.2024 08:48 [08:48:50]line Смена: 582 ФФД: 1.0 [08:48:50]line ЗНМ: 0300000095 [08:48:50]line РНМ: 0000000000091754 [08:48:50]line Версия ККМ: 001 [08:48:50]line ФМ: 0000000000871811 [08:48:50]line ФД: 103619 [08:48:50]line ФПД: 101532316527065 [08:48:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084849&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103619&fm=101532316527065&tin=02508201610067®Number=0000000000091754&sum=50000 [08:48:50]OFD Sender: Processing packet 103619 [packets to send 498, broken 497] [08:48:50]ProducePacketName [08:48:50]name=ofd_packets/00103619 [08:48:50]OFD Sender: To server: pG, [08:48:50]CommunicateWithHost lk.salyk.kg:30040 [08:48:50]ConnectInit lk.salyk.kg [08:48:50]written 0, free lines is 4095 [08:48:51]Write to MH i2c: 01 00 00 96 04 9A [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: 01 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: 01 07 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: 01 07 00 96 04 00 00 00 00 00 BA 0C 67 [08:48:51]RasterBufferAndPrint [08:48:51]line [08:48:51]line [08:48:51]line [08:48:51]line [08:48:51]line [08:48:51]written 0, free lines is 3267 [08:48:51]MH_Cut [08:48:51]Write to MH i2c: D1 01 00 9D 04 01 73 [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: D1 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: D1 01 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: D1 01 00 9D 04 00 72 [08:48:51]Write to MH i2c: 01 00 00 9E 04 A2 [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]Connected sock=7 [08:48: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 31 31 0F 01 00 00 9A 53 07 01 90 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 71 B8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C3 94 01 00 35 04 06 00 5C 57 D5 A8 E9 D9 ED 47 FD 4F F4 17 D7 A4 [08:48: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 31 31 4F 00 00 00 46 34 47 00 E8 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C3 94 01 00 F4 03 04 00 87 5F 18 67 B6 04 01 00 00 B7 15 F3 F7 8B 48 9C 5B [08:48:51]CommunicateWithHost err = 0 [08:48:51]CheckOFDResponse [08:48:51]1017 (14) - 77093643461234 [08:48:51]1041 (16) - 0000000000871811 [08:48:51]1040 (4) - 103619 [08:48:51]1012 (4) - 23.10.2024 02:29 [08:48:51]1206 (1) - 0 [08:48:51]OFD Sender: Remove packet 103619 [08:48:51]ProducePacketName [08:48:51]name=ofd_packets/00103619 [08:48:51]NVStorageDeleteData [08:48:52]*** Cut start [08:48:52]*** Partial cut [08:48:52]*** CUTSNS_PIN = 1 [08:48:52]*** CUTSNS_PIN = 0 [08:48:52]OFD Sender: No OFD packet to send [08:48:52]*** Brake cut motor [08:48:52]Read from MH i2c: 01 [08:48:52]MH_I2C_Read... [08:48:52]*** Stop cut motor [08:48:52]*** Cut end [08:48:52]Read from MH i2c: 01 07 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: 01 07 00 9E 04 00 00 00 00 00 FF 0F B7 [08:48:52]process_action close_receipt done [08:48:52]requested_data is exist [08:48:52]produce_requested_data [08:48:52]requested_item fm.sn is exist - process it [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 11 00 00 [08:48:52]Write to MH i2c: E2 08 00 9F 04 80 11 00 00 00 00 00 00 1D [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 17 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 17 00 9F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 6A [08:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:48:52]wFMCommunicate OK [08:48:52]requested_item fd.num is exist - process it [08:48:52]SAM_PROTO_GetFieldsCounters [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 13 00 00 [08:48:52]Write to MH i2c: E2 08 00 A0 04 80 13 00 00 00 00 00 00 20 [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 62 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 62 00 A0 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C3 94 01 00 0E 04 04 00 46 02 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 39 [08:48: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C3 94 01 00 0E 04 04 00 46 02 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 [08:48:52]wFMCommunicate OK [08:48:52]SAM_PROTO_GetFieldsCounters done [08:48:52]requested_item shift.num is exist - process it [08:48:52]requested_item shift.opened is exist - process it [08:48:52]req_shift_opened [08:48:52]FM_GetShiftState [08:48:52]SAM_PROTO_GetShiftState [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 13 01 00 [08:48:52]Write to MH i2c: E2 08 00 A1 04 80 13 01 00 00 00 00 00 22 [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 0E 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 0E 00 A1 04 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 5B [08:48:52]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:48:52]wFMCommunicate OK [08:48:52]SAM_PROTO_GetShiftState done [08:48:52]FM_GetShiftState done [08:48:52]req_shift_opened done [08:48:52]requested_item shift.open_date is exist - process it [08:48:52]req_shift_open_date [08:48:52]req_shift_open_date done [08:48:52]produce_requested_data done [08:48:52]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103619,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [08:48:52]process_action_free close_receipt [08:48:52]json_value_free [08:48:52]json_value_free done [08:48:52]process_json_proto returns [08:48:52]Send response to host [08:48:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103619,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [08:48:52]free response buf [08:48:52]execute_script done [08:48:52]execute_script returns [08:48:52]free content buf [08:48:52]Sock 9.Close socket [08:48:52]Sock 9.Thread stoped [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:50]accept exits with 10 [08:49:50]New connection [08:49:50]New thread 3067231588 created [08:49:50]Thread 3067088228 joined [08:49:50]Waiting for new connection... [08:49:50] Sock 10.Parse request [08:49:50]Sock 10.Check first char [08:49:50]Sock 10.First char is OK [08:49:50]request: POST /json_proto HTTP/1.0 [08:49:50]Method: POST [08:49:50]URL: /json_proto [08:49:50]Method is POST - this is cgi request [08:49:50]url: /json_proto [08:49:50]query_string will be loaded in cgi processing [08:49:50]execute_cgi json_proto POST (null) [08:49:50]execute_cgi path=json_proto method=POST [08:49:50]POST find Content-Length [08:49:50]Host: 172.17.51.67:8080 [08:49:50]Content-Length: 677 [08:49:50]Content-Type: application/json [08:49:50] [08:49:50]POST finish read [08:49:50]Found Content-Length = 677 [08:49:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:50]execute_script... [08:49:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:50]POST & json_proto [08:49:50]process_json_proto [08:49:50]json parsed OK: [08:49:50]protocol is kg_v1.0 [08:49:50]action value=close_receipt [08:49:50]process_action close_receipt [08:49:50]cmd_close_receipt [08:49:50]MH_GetDate [08:49:50]Write to MH i2c: F0 00 00 A2 04 95 [08:49:50]Write i2c OK [08:49:50]MH_I2C_Read... [08:49:50]Read from MH i2c: F0 [08:49:50]MH_I2C_Read... [08:49:50]Read from MH i2c: F0 09 00 [08:49:50]MH_I2C_Read... [08:49:50]Read from MH i2c: F0 09 00 A2 04 00 AE B8 18 67 1E EF FA 64 EE [08:49:50]GetLastDocTimeStamp 1729673329 [08:49:50]current date 1729673390 [08:49:50]FM_GetShiftState [08:49:50]SAM_PROTO_GetShiftState [08:49:50]wFMCommunicate request_size=4 [08:49:50]MH_SAM_APDU [08:49:50]CAPDU: 80 13 01 00 [08:49:50]Write to MH i2c: E2 08 00 A3 04 80 13 01 00 00 00 00 00 24 [08:49:50]Write i2c OK [08:49:50]MH_I2C_Read... [08:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:50]Read from MH i2c: E2 [08:49:50]MH_I2C_Read... [08:49:50]Read from MH i2c: E2 0E 00 [08:49:50]MH_I2C_Read... [08:49:50]Read from MH i2c: E2 0E 00 A3 04 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 5D [08:49:50]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:49:50]wFMCommunicate OK [08:49:50]SAM_PROTO_GetShiftState done [08:49:50]FM_GetShiftState done [08:49:50]opened in 1729642861 [08:49:50]opened+sec_in_day 1729729261 [08:49:50]quantity*price = 30038 [08:49:50]sum+1 = 30039 [08:49:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 32 23.10.2024 08:49 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103620 ФПД: 81827435016257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084950&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103620&fm=81827435016257&tin=02508201610067®Number=0000000000091754&sum=30000 [08:49:51]StoreToDocumentArchive [08:49:51]shift 582 fd 103620 [08:49:51]save to /storage/0582/doc_00103620 [08:49:51]save last doc name /storage/0582/doc_00103620 to /storage/kkm_last_doc_name [08:49:51]save OK [08:49:51]Clear old archive folders... [08:49:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:49:51]tlvbuf is 00C6C9E0 [08:49:51]SAM_PROTO_ClearQueue [08:49:51]wFMCommunicate request_size=4 [08:49:51]MH_SAM_APDU [08:49:51]CAPDU: 80 09 00 00 [08:49:51]Write to MH i2c: E2 08 00 B0 04 80 09 00 00 00 00 00 00 26 [08:49:51]Write i2c OK [08:49:51]MH_I2C_Read... [08:49:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:51]Read from MH i2c: E2 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 03 00 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [08:49:51]RAPDU: 90 00 [08:49:51]wFMCommunicate OK [08:49:51]SAM_PROTO_ClearQueue done [08:49:51]KKMCreateOFDPacket [08:49:51]OFDProtocolAddRootSTLVToBuf [08:49:51]FM_MakeSignedData [08:49:51]FM_MakeSignedData [08:49:51]SAM_PROTO_SignData [08:49:51]wFMCommunicate request_size=4 [08:49:51]MH_SAM_APDU [08:49:51]CAPDU: 80 0D 01 02 [08:49:51]Write to MH i2c: E2 08 00 B1 04 80 0D 01 02 00 00 00 00 2E [08:49:51]Write i2c OK [08:49:51]MH_I2C_Read... [08:49:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:51]Read from MH i2c: E2 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 03 00 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [08:49:51]RAPDU: 90 00 [08:49:51]wFMCommunicate OK [08:49:51]wFMCommunicate request_size=255 [08:49:51]MH_SAM_APDU [08:49:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AE B8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C4 94 01 00 35 04 06 00 4A [08:49:51]Write to MH i2c: E2 02 01 B2 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AE B8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C4 94 01 00 35 04 06 00 4A 00 00 9B [08:49:51]Write i2c OK [08:49:51]MH_I2C_Read... [08:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:51]Read from MH i2c: E2 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 03 00 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 03 00 B2 04 00 90 00 2A [08:49:51]RAPDU: 90 00 [08:49:51]wFMCommunicate OK [08:49:51]wFMCommunicate request_size=10 [08:49:51]MH_SAM_APDU [08:49:51]CAPDU: 80 0D 02 02 05 6B EF 32 70 41 [08:49:51]Write to MH i2c: E2 0D 00 B3 04 80 0D 02 02 05 00 6B EF 32 70 41 00 00 78 [08:49:51]Write i2c OK [08:49:51]MH_I2C_Read... [08:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:51]Read from MH i2c: E2 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 03 00 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [08:49:51]RAPDU: 90 00 [08:49:51]wFMCommunicate OK [08:49:51]wFMCommunicate request_size=4 [08:49:51]MH_SAM_APDU [08:49:51]CAPDU: 80 0D 03 02 [08:49:51]Write to MH i2c: E2 08 00 B4 04 80 0D 03 02 00 00 00 00 33 [08:49:51]Write i2c OK [08:49:51]MH_I2C_Read... [08:49:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:51]Read from MH i2c: E2 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 0B 00 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 0B 00 B4 04 00 FE 93 7F D6 18 19 E3 AB 90 00 D9 [08:49:51]RAPDU: FE 93 7F D6 18 19 E3 AB 90 00 [08:49:51]wFMCommunicate OK [08:49:51]SAM_PROTO_SignData done [08:49:51]FM_MakeSignedData done [08:49:51]CreateOFDProtocolMessage [08:49:51]wFMCommunicate request_size=4 [08:49:51]MH_SAM_APDU [08:49:51]CAPDU: 80 11 00 00 [08:49:51]Write to MH i2c: E2 08 00 B5 04 80 11 00 00 00 00 00 00 33 [08:49:51]Write i2c OK [08:49:51]MH_I2C_Read... [08:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:52]Read from MH i2c: E2 [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: E2 17 00 [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: E2 17 00 B5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 80 [08:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:49:52]wFMCommunicate OK [08:49:52]CreateOFDProtocolMessage done [08:49:52]OFDSenderStorePacket 103620 [08:49:52]StoreOFDPacket docnum=103620 [08:49:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 41 48 07 01 FA D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AE B8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C4 94 01 00 35 04 06 00 4A 6B EF 32 70 41 FE 93 7F D6 18 19 E3 AB [08:49:52]CheckFolder [08:49:52]dirname=/storage/ofd_packets [08:49:52]CheckFolder done [08:49:52]ProducePacketName [08:49:52]name=ofd_packets/00103620 [08:49:52]NVStorageSaveData ofd_packets/00103620 [08:49:52]File name is /storage/ofd_packets/00103620 [08:49:52]Write 301 bytes [08:49:52]NVStorageSaveData done [08:49:52]OFDSenderStorePacket done [08:49:52]KKMCreateOFDPacket done [08:49:52]NVStorageSaveData kkm_last_timestamp [08:49:52]File name is /storage/kkm_last_timestamp [08:49:52]Write 4 bytes [08:49:52]NVStorageSaveData done [08:49:52]ExternCall_PrintAddStr [08:49:52]wPrintStart [08:49:52]Write to MH i2c: 01 00 00 B6 04 BA [08:49:52]Write i2c OK [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: 01 [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: 01 07 00 [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: 01 07 00 B6 04 00 00 00 00 00 FF 0F CF [08:49:52]RasterBufferAndPrint [08:49:52]line Счет N : (1)317823 [08:49:52]line ИНН: 02508201610067 [08:49:52]line Контрольно-Кассовый Чек [08:49:52]line ПРОДАЖА [08:49:52]line ТРК (МРК, ГНК) : 33 [08:49:52]line Товар: 2710124130 [08:49:52]line Аи-92-К-4 [08:49:52]line 4.490 * 66.90 [08:49:52]line = 300.38 [08:49:52]line НДС 12% НСП 1% [08:49:52]line > о реализуемом товаре [08:49:52]line ОКРУГЛЕНИЕ: -0.38 [08:49:52]line ИТОГО: 300.00 [08:49:52]line Внесено: 300.00 [08:49:52]line СДАЧА: 0.00 [08:49:52]line НСП 1% : 2.66 [08:49:52]line НДС 12% : 31.90 [08:49:52]line Наличными: 300.00 [08:49:52]line Безнал.: 0.00 [08:49:52]line Место: АЗС № 145 "Партнер Нефть" [08:49:52]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [08:49:52]line СНО: Общий режим [08:49:52]line Чек 32 23.10.2024 08:49 [08:49:52]line Смена: 582 ФФД: 1.0 [08:49:52]line ЗНМ: 0300000095 [08:49:52]line РНМ: 0000000000091754 [08:49:52]line Версия ККМ: 001 [08:49:52]line ФМ: 0000000000871811 [08:49:52]line ФД: 103620 [08:49:52]line ФПД: 81827435016257 [08:49:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084950&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103620&fm=81827435016257&tin=02508201610067®Number=0000000000091754&sum=30000 [08:49:52]written 0, free lines is 4095 [08:49:52]OFD Sender: Processing packet 103620 [packets to send 498, broken 497] [08:49:52]ProducePacketName [08:49:52]name=ofd_packets/00103620 [08:49:52]OFD Sender: To server: pG, [08:49:52]CommunicateWithHost lk.salyk.kg:30040 [08:49:52]ConnectInit lk.salyk.kg [08:49:52]Write to MH i2c: 01 00 00 E0 04 E4 [08:49:52]Write i2c OK [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: 01 [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: 01 07 00 [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: 01 07 00 E0 04 00 00 00 00 00 C9 0C C0 [08:49:52]RasterBufferAndPrint [08:49:52]line [08:49:52]line [08:49:52]line [08:49:52]line [08:49:52]line [08:49:52]written 0, free lines is 3280 [08:49:52]MH_Cut [08:49:52]Write to MH i2c: D1 01 00 E7 04 01 BD [08:49:52]Write i2c OK [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: D1 [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: D1 01 00 [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: D1 01 00 E7 04 00 BC [08:49:52]Write to MH i2c: 01 00 00 E8 04 EC [08:49:52]Write i2c OK [08:49:52]MH_I2C_Read... [08:49:53]*** Cut start [08:49:53]*** Partial cut [08:49:53]*** CUTSNS_PIN = 1 [08:49:53]*** CUTSNS_PIN = 0 [08:49:53]*** Brake cut motor [08:49:53]Read from MH i2c: 01 [08:49:53]MH_I2C_Read... [08:49:53]*** Stop cut motor [08:49:53]*** Cut end [08:49:53]Read from MH i2c: 01 07 00 [08:49:53]MH_I2C_Read... [08:49:53]Read from MH i2c: 01 07 00 E8 04 00 00 00 00 00 FF 0F 01 [08:49:53]process_action close_receipt done [08:49:53]requested_data is exist [08:49:53]produce_requested_data [08:49:53]requested_item fm.sn is exist - process it [08:49:53]wFMCommunicate request_size=4 [08:49:53]MH_SAM_APDU [08:49:53]CAPDU: 80 11 00 00 [08:49:53]Write to MH i2c: E2 08 00 E9 04 80 11 00 00 00 00 00 00 67 [08:49:53]Write i2c OK [08:49:53]MH_I2C_Read... [08:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:53]Read from MH i2c: E2 [08:49:53]MH_I2C_Read... [08:49:53]Read from MH i2c: E2 17 00 [08:49:53]MH_I2C_Read... [08:49:53]Read from MH i2c: E2 17 00 E9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 B4 [08:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:49:53]wFMCommunicate OK [08:49:53]requested_item fd.num is exist - process it [08:49:53]SAM_PROTO_GetFieldsCounters [08:49:53]wFMCommunicate request_size=4 [08:49:53]MH_SAM_APDU [08:49:53]CAPDU: 80 13 00 00 [08:49:53]Write to MH i2c: E2 08 00 EA 04 80 13 00 00 00 00 00 00 6A [08:49:53]Write i2c OK [08:49:53]MH_I2C_Read... [08:49:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:54]Read from MH i2c: E2 [08:49:54]MH_I2C_Read... [08:49:54]Read from MH i2c: E2 62 00 [08:49:54]MH_I2C_Read... [08:49:54]Read from MH i2c: E2 62 00 EA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C4 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [08:49:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C4 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:54]wFMCommunicate OK [08:49:54]SAM_PROTO_GetFieldsCounters done [08:49:54]requested_item shift.num is exist - process it [08:49:54]requested_item shift.opened is exist - process it [08:49:54]req_shift_opened [08:49:54]FM_GetShiftState [08:49:54]SAM_PROTO_GetShiftState [08:49:54]wFMCommunicate request_size=4 [08:49:54]MH_SAM_APDU [08:49:54]CAPDU: 80 13 01 00 [08:49:54]Write to MH i2c: E2 08 00 EB 04 80 13 01 00 00 00 00 00 6C [08:49:54]Write i2c OK [08:49:54]MH_I2C_Read... [08:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:54]Read from MH i2c: E2 [08:49:54]MH_I2C_Read... [08:49:54]Read from MH i2c: E2 0E 00 [08:49:54]MH_I2C_Read... [08:49:54]Read from MH i2c: E2 0E 00 EB 04 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 A5 [08:49:54]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:49:54]wFMCommunicate OK [08:49:54]SAM_PROTO_GetShiftState done [08:49:54]FM_GetShiftState done [08:49:54]req_shift_opened done [08:49:54]requested_item shift.open_date is exist - process it [08:49:54]req_shift_open_date [08:49:54]req_shift_open_date done [08:49:54]produce_requested_data done [08:49:54]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103620,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [08:49:54]process_action_free close_receipt [08:49:54]json_value_free [08:49:54]json_value_free done [08:49:54]process_json_proto returns [08:49:54]Send response to host [08:49:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103620,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [08:49:54]free response buf [08:49:54]execute_script done [08:49:54]execute_script returns [08:49:54]free content buf [08:49:54]Sock 10.Close socket [08:49:54]Sock 10.Thread stoped [08:49:54]Connected sock=11 [08:49: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 31 31 0F 01 00 00 41 48 07 01 FA D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AE B8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C4 94 01 00 35 04 06 00 4A 6B EF 32 70 41 FE 93 7F D6 18 19 E3 AB [08:49: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 31 31 4F 00 00 00 00 C6 47 00 89 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C4 94 01 00 F4 03 04 00 C7 5F 18 67 B6 04 01 00 00 57 39 75 35 B7 16 58 84 [08:49:55]CommunicateWithHost err = 0 [08:49:55]CheckOFDResponse [08:49:55]1017 (14) - 77093643461234 [08:49:55]1041 (16) - 0000000000871811 [08:49:55]1040 (4) - 103620 [08:49:55]1012 (4) - 23.10.2024 02:30 [08:49:55]1206 (1) - 0 [08:49:55]OFD Sender: Remove packet 103620 [08:49:55]ProducePacketName [08:49:55]name=ofd_packets/00103620 [08:49:55]NVStorageDeleteData [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:15]recv_with_timeout no data received [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:12]accept exits with 7 [08:52:12]New connection [08:52:12]New thread 3067088228 created [08:52:12]Thread 3067231588 joined [08:52:12]Waiting for new connection... [08:52:12] Sock 7.Parse request [08:52:12]Sock 7.Check first char [08:52:12]Sock 7.First char is OK [08:52:12]request: POST /json_proto HTTP/1.0 [08:52:12]Method: POST [08:52:12]URL: /json_proto [08:52:12]Method is POST - this is cgi request [08:52:12]url: /json_proto [08:52:12]query_string will be loaded in cgi processing [08:52:12]execute_cgi json_proto POST (null) [08:52:12]execute_cgi path=json_proto method=POST [08:52:12]POST find Content-Length [08:52:12]Host: 172.17.51.67:8080 [08:52:12]Content-Length: 679 [08:52:12]Content-Type: application/json [08:52:12] [08:52:12]POST finish read [08:52:12]Found Content-Length = 679 [08:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 75.20, "quantity" : 26.600, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:12]execute_script... [08:52: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)317824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 75.20, "quantity" : 26.600, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:12]POST & json_proto [08:52:12]process_json_proto [08:52:12]json parsed OK: [08:52:12]protocol is kg_v1.0 [08:52:12]action value=close_receipt [08:52:12]process_action close_receipt [08:52:12]cmd_close_receipt [08:52:12]MH_GetDate [08:52:12]Write to MH i2c: F0 00 00 EC 04 DF [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: F0 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: F0 09 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: F0 09 00 EC 04 00 3C B9 18 67 1E EF FA 64 C7 [08:52:12]GetLastDocTimeStamp 1729673390 [08:52:12]current date 1729673532 [08:52:12]FM_GetShiftState [08:52:12]SAM_PROTO_GetShiftState [08:52:12]wFMCommunicate request_size=4 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 13 01 00 [08:52:12]Write to MH i2c: E2 08 00 ED 04 80 13 01 00 00 00 00 00 6E [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 0E 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 0E 00 ED 04 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 A7 [08:52:12]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:52:12]wFMCommunicate OK [08:52:12]SAM_PROTO_GetShiftState done [08:52:12]FM_GetShiftState done [08:52:12]opened in 1729642861 [08:52:12]opened+sec_in_day 1729729261 [08:52:12]quantity*price = 200032 [08:52:12]sum+1 = 200033 [08:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 33 23.10.2024 08:52 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103621 ФПД: 174985416581574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085212&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103621&fm=174985416581574&tin=02508201610067®Number=0000000000091754&sum=200000 [08:52:13]StoreToDocumentArchive [08:52:13]shift 582 fd 103621 [08:52:13]save to /storage/0582/doc_00103621 [08:52:13]save last doc name /storage/0582/doc_00103621 to /storage/kkm_last_doc_name [08:52:13]save OK [08:52:13]Clear old archive folders... [08:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:52:13]tlvbuf is B6F1E7B0 [08:52:13]SAM_PROTO_ClearQueue [08:52:13]wFMCommunicate request_size=4 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 09 00 00 [08:52:13]Write to MH i2c: E2 08 00 FA 04 80 09 00 00 00 00 00 00 70 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 FA 04 00 90 00 72 [08:52:13]RAPDU: 90 00 [08:52:13]wFMCommunicate OK [08:52:13]SAM_PROTO_ClearQueue done [08:52:13]KKMCreateOFDPacket [08:52:13]OFDProtocolAddRootSTLVToBuf [08:52:13]FM_MakeSignedData [08:52:13]FM_MakeSignedData [08:52:13]SAM_PROTO_SignData [08:52:13]wFMCommunicate request_size=4 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 0D 01 02 [08:52:13]Write to MH i2c: E2 08 00 FB 04 80 0D 01 02 00 00 00 00 78 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [08:52:13]RAPDU: 90 00 [08:52:13]wFMCommunicate OK [08:52:13]wFMCommunicate request_size=255 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3C B9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C5 94 01 00 35 04 06 00 9F 25 F7 98 [08:52:13]Write to MH i2c: E2 02 01 FC 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3C B9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C5 94 01 00 35 04 06 00 9F 25 F7 98 00 00 71 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [08:52:13]RAPDU: 90 00 [08:52:13]wFMCommunicate OK [08:52:13]wFMCommunicate request_size=7 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 0D 02 02 02 A1 C6 [08:52:13]Write to MH i2c: E2 0A 00 FD 04 80 0D 02 02 02 00 A1 C6 00 00 E6 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [08:52:13]RAPDU: 90 00 [08:52:13]wFMCommunicate OK [08:52:13]wFMCommunicate request_size=4 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 0D 03 02 [08:52:13]Write to MH i2c: E2 08 00 FE 04 80 0D 03 02 00 00 00 00 7D [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 0B 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 0B 00 FE 04 00 17 F3 9A E9 62 DD A1 BD 90 00 A8 [08:52:13]RAPDU: 17 F3 9A E9 62 DD A1 BD 90 00 [08:52:13]wFMCommunicate OK [08:52:13]SAM_PROTO_SignData done [08:52:13]FM_MakeSignedData done [08:52:13]CreateOFDProtocolMessage [08:52:13]wFMCommunicate request_size=4 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 11 00 00 [08:52:13]Write to MH i2c: E2 08 00 FF 04 80 11 00 00 00 00 00 00 7D [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 17 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 17 00 FF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 CA [08:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:52:13]wFMCommunicate OK [08:52:13]CreateOFDProtocolMessage done [08:52:13]OFDSenderStorePacket 103621 [08:52:13]StoreOFDPacket docnum=103621 [08:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0C 01 00 00 7F 94 04 01 0E 8B 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 34 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3C B9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C5 94 01 00 35 04 06 00 9F 25 F7 98 A1 C6 17 F3 9A E9 62 DD A1 BD [08:52:13]CheckFolder [08:52:13]dirname=/storage/ofd_packets [08:52:13]CheckFolder done [08:52:13]ProducePacketName [08:52:13]name=ofd_packets/00103621 [08:52:13]NVStorageSaveData ofd_packets/00103621 [08:52:13]File name is /storage/ofd_packets/00103621 [08:52:13]Write 298 bytes [08:52:13]NVStorageSaveData done [08:52:13]OFDSenderStorePacket done [08:52:13]KKMCreateOFDPacket done [08:52:13]NVStorageSaveData kkm_last_timestamp [08:52:13]File name is /storage/kkm_last_timestamp [08:52:13]Write 4 bytes [08:52:13]NVStorageSaveData done [08:52:13]ExternCall_PrintAddStr [08:52:13]wPrintStart [08:52:13]Write to MH i2c: 01 00 00 00 05 05 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: 01 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: 01 07 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: 01 07 00 00 05 00 00 00 00 00 FF 0F 1A [08:52:13]RasterBufferAndPrint [08:52:13]line Счет N : (1)317824 [08:52:13]line ИНН: 02508201610067 [08:52:13]line Контрольно-Кассовый Чек [08:52:13]line ПРОДАЖА [08:52:13]line ТРК (МРК, ГНК) : 41 [08:52:13]line Товар: 2710194210 [08:52:13]line ДТ-К-4 [08:52:13]line 26.600 * 75.20 [08:52:13]line = 2000.32 [08:52:13]line НДС 12% НСП 1% [08:52:13]line > о реализуемом товаре [08:52:13]line ОКРУГЛЕНИЕ: -0.32 [08:52:13]line ИТОГО: 2000.00 [08:52:13]line Внесено: 2000.00 [08:52:13]line СДАЧА: 0.00 [08:52:13]line НСП 1% : 17.70 [08:52:13]line НДС 12% : 212.42 [08:52:13]line Наличными: 2000.00 [08:52:13]line Безнал.: 0.00 [08:52:13]line Место: АЗС № 145 "Партнер Нефть" [08:52:13]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [08:52:13]line СНО: Общий режим [08:52:13]line Чек 33 23.10.2024 08:52 [08:52:13]line Смена: 582 ФФД: 1.0 [08:52:13]line ЗНМ: 0300000095 [08:52:13]line РНМ: 0000000000091754 [08:52:13]line Версия ККМ: 001 [08:52:13]line ФМ: 0000000000871811 [08:52:13]line ФД: 103621 [08:52:13]line ФПД: 174985416581574 [08:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085212&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103621&fm=174985416581574&tin=02508201610067®Number=0000000000091754&sum=200000 [08:52:14]OFD Sender: Processing packet 103621 [packets to send 498, broken 497] [08:52:14]ProducePacketName [08:52:14]name=ofd_packets/00103621 [08:52:14]OFD Sender: To server: pG, [08:52:14]CommunicateWithHost lk.salyk.kg:30040 [08:52:14]ConnectInit lk.salyk.kg [08:52:14]written 0, free lines is 4095 [08:52:14]Write to MH i2c: 01 00 00 2A 05 2F [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: 01 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: 01 07 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 C1 0C 03 [08:52:14]RasterBufferAndPrint [08:52:14]line [08:52:14]line [08:52:14]line [08:52:14]line [08:52:14]line [08:52:14]written 0, free lines is 3271 [08:52:14]MH_Cut [08:52:14]Write to MH i2c: D1 01 00 31 05 01 08 [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: D1 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: D1 01 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: D1 01 00 31 05 00 07 [08:52:14]Write to MH i2c: 01 00 00 32 05 37 [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:15]*** Cut start [08:52:15]*** Partial cut [08:52:15]*** CUTSNS_PIN = 1 [08:52:15]*** CUTSNS_PIN = 0 [08:52:15]*** Brake cut motor [08:52:16]Read from MH i2c: 01 [08:52:16]MH_I2C_Read... [08:52:16]*** Stop cut motor [08:52:16]*** Cut end [08:52:16]Read from MH i2c: 01 07 00 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 FF 0F 4C [08:52:16]process_action close_receipt done [08:52:16]requested_data is exist [08:52:16]produce_requested_data [08:52:16]requested_item fm.sn is exist - process it [08:52:16]wFMCommunicate request_size=4 [08:52:16]MH_SAM_APDU [08:52:16]CAPDU: 80 11 00 00 [08:52:16]Write to MH i2c: E2 08 00 33 05 80 11 00 00 00 00 00 00 B2 [08:52:16]Write i2c OK [08:52:16]MH_I2C_Read... [08:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:16]Read from MH i2c: E2 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: E2 17 00 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: E2 17 00 33 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 FF [08:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:52:16]wFMCommunicate OK [08:52:16]requested_item fd.num is exist - process it [08:52:16]SAM_PROTO_GetFieldsCounters [08:52:16]wFMCommunicate request_size=4 [08:52:16]MH_SAM_APDU [08:52:16]CAPDU: 80 13 00 00 [08:52:16]Write to MH i2c: E2 08 00 34 05 80 13 00 00 00 00 00 00 B5 [08:52:16]Write i2c OK [08:52:16]MH_I2C_Read... [08:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:16]Read from MH i2c: E2 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: E2 62 00 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: E2 62 00 34 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C5 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [08:52: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C5 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:16]wFMCommunicate OK [08:52:16]SAM_PROTO_GetFieldsCounters done [08:52:16]requested_item shift.num is exist - process it [08:52:16]requested_item shift.opened is exist - process it [08:52:16]req_shift_opened [08:52:16]FM_GetShiftState [08:52:16]SAM_PROTO_GetShiftState [08:52:16]wFMCommunicate request_size=4 [08:52:16]MH_SAM_APDU [08:52:16]CAPDU: 80 13 01 00 [08:52:16]Write to MH i2c: E2 08 00 35 05 80 13 01 00 00 00 00 00 B7 [08:52:16]Write i2c OK [08:52:16]MH_I2C_Read... [08:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:16]Read from MH i2c: E2 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: E2 0E 00 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: E2 0E 00 35 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 F0 [08:52:16]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:52:16]wFMCommunicate OK [08:52:16]SAM_PROTO_GetShiftState done [08:52:16]FM_GetShiftState done [08:52:16]req_shift_opened done [08:52:16]requested_item shift.open_date is exist - process it [08:52:16]req_shift_open_date [08:52:16]req_shift_open_date done [08:52:16]produce_requested_data done [08:52:16]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103621,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [08:52:16]process_action_free close_receipt [08:52:16]json_value_free [08:52:16]json_value_free done [08:52:16]process_json_proto returns [08:52:16]Send response to host [08:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103621,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [08:52:16]free response buf [08:52:16]execute_script done [08:52:16]execute_script returns [08:52:16]free content buf [08:52:16]Sock 7.Close socket [08:52:16]Sock 7.Thread stoped [08:52:18]Connected sock=11 [08:52: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 31 31 0C 01 00 00 7F 94 04 01 0E 8B 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 34 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3C B9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C5 94 01 00 35 04 06 00 9F 25 F7 98 A1 C6 17 F3 9A E9 62 DD A1 BD [08:52: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 31 31 4F 00 00 00 45 40 47 00 DC 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C5 94 01 00 F4 03 04 00 56 60 18 67 B6 04 01 00 00 24 74 D4 6E A2 FC 77 57 [08:52:18]CommunicateWithHost err = 0 [08:52:18]CheckOFDResponse [08:52:18]1017 (14) - 77093643461234 [08:52:18]1041 (16) - 0000000000871811 [08:52:18]1040 (4) - 103621 [08:52:18]1012 (4) - 23.10.2024 02:32 [08:52:18]1206 (1) - 0 [08:52:18]OFD Sender: Remove packet 103621 [08:52:18]ProducePacketName [08:52:18]name=ofd_packets/00103621 [08:52:18]NVStorageDeleteData [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:35]recv_with_timeout no data received [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:19]recv_with_timeout no data received [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:19]recv_with_timeout no data received [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:36]recv_with_timeout no data received [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:07]recv_with_timeout no data received [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:55]recv_with_timeout no data received [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:16]accept exits with 9 [08:57:16]New connection [08:57:16]New thread 3067231588 created [08:57:16]Thread 3067088228 joined [08:57:16]Waiting for new connection... [08:57:16] Sock 9.Parse request [08:57:16]Sock 9.Check first char [08:57:16]Sock 9.First char is OK [08:57:16]request: POST /json_proto HTTP/1.0 [08:57:16]Method: POST [08:57:16]URL: /json_proto [08:57:16]Method is POST - this is cgi request [08:57:16]url: /json_proto [08:57:16]query_string will be loaded in cgi processing [08:57:16]execute_cgi json_proto POST (null) [08:57:16]execute_cgi path=json_proto method=POST [08:57:16]POST find Content-Length [08:57:16]Host: 172.17.51.67:8080 [08:57:16]Content-Length: 677 [08:57:16]Content-Type: application/json [08:57:16] [08:57:16]POST finish read [08:57:16]Found Content-Length = 677 [08:57:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:16]execute_script... [08:57: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)317825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:16]POST & json_proto [08:57:16]process_json_proto [08:57:16]json parsed OK: [08:57:16]protocol is kg_v1.0 [08:57:16]action value=close_receipt [08:57:16]process_action close_receipt [08:57:16]cmd_close_receipt [08:57:16]MH_GetDate [08:57:16]Write to MH i2c: F0 00 00 36 05 2A [08:57:16]Write i2c OK [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: F0 [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: F0 09 00 [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: F0 09 00 36 05 00 6C BA 18 67 1E EF FA 64 43 [08:57:16]GetLastDocTimeStamp 1729673532 [08:57:16]current date 1729673836 [08:57:16]FM_GetShiftState [08:57:16]SAM_PROTO_GetShiftState [08:57:16]wFMCommunicate request_size=4 [08:57:16]MH_SAM_APDU [08:57:16]CAPDU: 80 13 01 00 [08:57:16]Write to MH i2c: E2 08 00 37 05 80 13 01 00 00 00 00 00 B9 [08:57:16]Write i2c OK [08:57:16]MH_I2C_Read... [08:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:16]Read from MH i2c: E2 [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: E2 0E 00 [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: E2 0E 00 37 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 F2 [08:57:16]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:57:16]wFMCommunicate OK [08:57:16]SAM_PROTO_GetShiftState done [08:57:16]FM_GetShiftState done [08:57:16]opened in 1729642861 [08:57:16]opened+sec_in_day 1729729261 [08:57:16]quantity*price = 50010 [08:57:16]sum+1 = 50012 [08:57:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 34 23.10.2024 08:57 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103622 ФПД: 271418989916520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085716&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103622&fm=271418989916520&tin=02508201610067®Number=0000000000091754&sum=50000 [08:57:17]StoreToDocumentArchive [08:57:17]shift 582 fd 103622 [08:57:17]save to /storage/0582/doc_00103622 [08:57:17]save last doc name /storage/0582/doc_00103622 to /storage/kkm_last_doc_name [08:57:17]save OK [08:57:17]Clear old archive folders... [08:57:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:17]tlvbuf is 00CC2540 [08:57:17]SAM_PROTO_ClearQueue [08:57:17]wFMCommunicate request_size=4 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 09 00 00 [08:57:17]Write to MH i2c: E2 08 00 44 05 80 09 00 00 00 00 00 00 BB [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 44 05 00 90 00 BD [08:57:17]RAPDU: 90 00 [08:57:17]wFMCommunicate OK [08:57:17]SAM_PROTO_ClearQueue done [08:57:17]KKMCreateOFDPacket [08:57:17]OFDProtocolAddRootSTLVToBuf [08:57:17]FM_MakeSignedData [08:57:17]FM_MakeSignedData [08:57:17]SAM_PROTO_SignData [08:57:17]wFMCommunicate request_size=4 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 0D 01 02 [08:57:17]Write to MH i2c: E2 08 00 45 05 80 0D 01 02 00 00 00 00 C3 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 45 05 00 90 00 BE [08:57:17]RAPDU: 90 00 [08:57:17]wFMCommunicate OK [08:57:17]wFMCommunicate request_size=255 [08:57:17]MH_SAM_APDU [08:57: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 6C BA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C6 94 01 00 35 04 06 00 F6 [08:57:17]Write to MH i2c: E2 02 01 46 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 6C BA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C6 94 01 00 35 04 06 00 F6 00 00 85 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]recv_with_timeout no data received [08:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 46 05 00 90 00 BF [08:57:17]RAPDU: 90 00 [08:57:17]wFMCommunicate OK [08:57:17]wFMCommunicate request_size=10 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 0D 02 02 05 DA A8 7A B1 68 [08:57:17]Write to MH i2c: E2 0D 00 47 05 80 0D 02 02 05 00 DA A8 7A B1 68 00 00 E5 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [08:57:17]RAPDU: 90 00 [08:57:17]wFMCommunicate OK [08:57:17]wFMCommunicate request_size=4 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 0D 03 02 [08:57:17]Write to MH i2c: E2 08 00 48 05 80 0D 03 02 00 00 00 00 C8 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 0B 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 0B 00 48 05 00 76 56 37 1C A2 17 32 CC 90 00 9F [08:57:17]RAPDU: 76 56 37 1C A2 17 32 CC 90 00 [08:57:17]wFMCommunicate OK [08:57:17]SAM_PROTO_SignData done [08:57:17]FM_MakeSignedData done [08:57:17]CreateOFDProtocolMessage [08:57:17]wFMCommunicate request_size=4 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 11 00 00 [08:57:17]Write to MH i2c: E2 08 00 49 05 80 11 00 00 00 00 00 00 C8 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 17 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 17 00 49 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 15 [08:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:57:17]wFMCommunicate OK [08:57:17]CreateOFDProtocolMessage done [08:57:17]OFDSenderStorePacket 103622 [08:57:17]StoreOFDPacket docnum=103622 [08:57:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 03 39 07 01 F7 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 6C BA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C6 94 01 00 35 04 06 00 F6 DA A8 7A B1 68 76 56 37 1C A2 17 32 CC [08:57:17]CheckFolder [08:57:17]dirname=/storage/ofd_packets [08:57:17]CheckFolder done [08:57:17]ProducePacketName [08:57:17]name=ofd_packets/00103622 [08:57:17]NVStorageSaveData ofd_packets/00103622 [08:57:17]File name is /storage/ofd_packets/00103622 [08:57:17]Write 301 bytes [08:57:17]NVStorageSaveData done [08:57:17]OFDSenderStorePacket done [08:57:17]KKMCreateOFDPacket done [08:57:17]NVStorageSaveData kkm_last_timestamp [08:57:17]File name is /storage/kkm_last_timestamp [08:57:17]Write 4 bytes [08:57:17]NVStorageSaveData done [08:57:17]ExternCall_PrintAddStr [08:57:17]wPrintStart [08:57:17]Write to MH i2c: 01 00 00 4A 05 4F [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: 01 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: 01 07 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [08:57:17]RasterBufferAndPrint [08:57:17]line Счет N : (1)317825 [08:57:17]line ИНН: 02508201610067 [08:57:17]line Контрольно-Кассовый Чек [08:57:17]line ПРОДАЖА [08:57:17]line ТРК (МРК, ГНК) : 44 [08:57:17]line Товар: 2710124500 [08:57:17]line Аи-95-К-5 [08:57:17]line 6.740 * 74.20 [08:57:17]line = 500.11 [08:57:17]line НДС 12% НСП 1% [08:57:17]line > о реализуемом товаре [08:57:17]line ОКРУГЛЕНИЕ: -0.11 [08:57:17]line ИТОГО: 500.00 [08:57:17]line Внесено: 500.00 [08:57:17]line СДАЧА: 0.00 [08:57:17]line НСП 1% : 4.43 [08:57:17]line НДС 12% : 53.11 [08:57:17]line Наличными: 500.00 [08:57:17]line Безнал.: 0.00 [08:57:17]line Место: АЗС № 145 "Партнер Нефть" [08:57:17]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [08:57:18]line СНО: Общий режим [08:57:18]line Чек 34 23.10.2024 08:57 [08:57:18]line Смена: 582 ФФД: 1.0 [08:57:18]line ЗНМ: 0300000095 [08:57:18]line РНМ: 0000000000091754 [08:57:18]line Версия ККМ: 001 [08:57:18]line ФМ: 0000000000871811 [08:57:18]line ФД: 103622 [08:57:18]line ФПД: 271418989916520 [08:57:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085716&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103622&fm=271418989916520&tin=02508201610067®Number=0000000000091754&sum=50000 [08:57:18]OFD Sender: Processing packet 103622 [packets to send 498, broken 497] [08:57:18]ProducePacketName [08:57:18]name=ofd_packets/00103622 [08:57:18]OFD Sender: To server: pG, [08:57:18]CommunicateWithHost lk.salyk.kg:30040 [08:57:18]ConnectInit lk.salyk.kg [08:57:18]written 0, free lines is 4095 [08:57:18]Write to MH i2c: 01 00 00 74 05 79 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: 01 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: 01 07 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 BF 0C 4B [08:57:18]RasterBufferAndPrint [08:57:18]line [08:57:18]line [08:57:18]line [08:57:18]line [08:57:18]line [08:57:18]written 0, free lines is 3269 [08:57:18]MH_Cut [08:57:18]Write to MH i2c: D1 01 00 7B 05 01 52 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: D1 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: D1 01 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: D1 01 00 7B 05 00 51 [08:57:18]Write to MH i2c: 01 00 00 7C 05 81 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:19]*** Cut start [08:57:19]*** Partial cut [08:57:19]*** CUTSNS_PIN = 1 [08:57:19]*** CUTSNS_PIN = 0 [08:57:19]*** Brake cut motor [08:57:20]Read from MH i2c: 01 [08:57:20]MH_I2C_Read... [08:57:20]*** Stop cut motor [08:57:20]*** Cut end [08:57:20]Read from MH i2c: 01 07 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 07 00 7C 05 00 00 00 00 00 FF 0F 96 [08:57:20]process_action close_receipt done [08:57:20]requested_data is exist [08:57:20]produce_requested_data [08:57:20]requested_item fm.sn is exist - process it [08:57:20]wFMCommunicate request_size=4 [08:57:20]MH_SAM_APDU [08:57:20]CAPDU: 80 11 00 00 [08:57:20]Write to MH i2c: E2 08 00 7D 05 80 11 00 00 00 00 00 00 FC [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:20]Read from MH i2c: E2 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 17 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 17 00 7D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 49 [08:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [08:57:20]wFMCommunicate OK [08:57:20]requested_item fd.num is exist - process it [08:57:20]SAM_PROTO_GetFieldsCounters [08:57:20]wFMCommunicate request_size=4 [08:57:20]MH_SAM_APDU [08:57:20]CAPDU: 80 13 00 00 [08:57:20]Write to MH i2c: E2 08 00 7E 05 80 13 00 00 00 00 00 00 FF [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:20]Read from MH i2c: E2 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 62 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 62 00 7E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C6 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [08:57: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C6 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:20]wFMCommunicate OK [08:57:20]SAM_PROTO_GetFieldsCounters done [08:57:20]requested_item shift.num is exist - process it [08:57:20]requested_item shift.opened is exist - process it [08:57:20]req_shift_opened [08:57:20]FM_GetShiftState [08:57:20]SAM_PROTO_GetShiftState [08:57:20]wFMCommunicate request_size=4 [08:57:20]MH_SAM_APDU [08:57:20]CAPDU: 80 13 01 00 [08:57:20]Write to MH i2c: E2 08 00 7F 05 80 13 01 00 00 00 00 00 01 [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:20]Read from MH i2c: E2 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 0E 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 0E 00 7F 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 3A [08:57:20]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [08:57:20]wFMCommunicate OK [08:57:20]SAM_PROTO_GetShiftState done [08:57:20]FM_GetShiftState done [08:57:20]req_shift_opened done [08:57:20]requested_item shift.open_date is exist - process it [08:57:20]req_shift_open_date [08:57:20]req_shift_open_date done [08:57:20]produce_requested_data done [08:57:20]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103622,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [08:57:20]process_action_free close_receipt [08:57:20]json_value_free [08:57:20]json_value_free done [08:57:20]process_json_proto returns [08:57:20]Send response to host [08:57:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103622,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [08:57:20]free response buf [08:57:20]execute_script done [08:57:20]execute_script returns [08:57:20]free content buf [08:57:20]Sock 9.Close socket [08:57:20]Sock 9.Thread stoped [08:57:21]Connected sock=7 [08:57: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 31 31 0F 01 00 00 03 39 07 01 F7 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 6C BA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C6 94 01 00 35 04 06 00 F6 DA A8 7A B1 68 76 56 37 1C A2 17 32 CC [08:57: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 31 31 4F 00 00 00 58 FB 47 00 35 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C6 94 01 00 F4 03 04 00 86 61 18 67 B6 04 01 00 00 ED 84 8C 35 AE FF F3 83 [08:57:21]CommunicateWithHost err = 0 [08:57:21]CheckOFDResponse [08:57:21]1017 (14) - 77093643461234 [09:02:15]OFD Sender: No OFD packet to send [09:02:18]ConnectInit Can't connect to host [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]accept exits with 8 [09:02:35]New connection [09:02:35]New thread 3067600228 created [09:02:35]Waiting for new connection... [09:02:35] Sock 8.Parse request [09:02:35]Sock 8.Check first char [09:02:35]Sock 8.First char is OK [09:02:35]request: POST /json_proto HTTP/1.0 [09:02:35]Method: POST [09:02:35]URL: /json_proto [09:02:35]Method is POST - this is cgi request [09:02:35]url: /json_proto [09:02:35]query_string will be loaded in cgi processing [09:02:35]execute_cgi json_proto POST (null) [09:02:35]execute_cgi path=json_proto method=POST [09:02:35]POST find Content-Length [09:02:35]Host: 172.17.51.67:8080 [09:02:35]Content-Length: 215 [09:02:35]Content-Type: application/json [09:02:35] [09:02:35]POST finish read [09:02:35]Found Content-Length = 215 [09:02:35]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" ] } } [09:02:35]execute_script... [09:02:35]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" ] } } [09:02:35]POST & json_proto [09:02:35]process_json_proto [09:02:35]json parsed OK: [09:02:35]protocol is kg_v1.0 [09:02:35]action value=get_value [09:02:35]process_action get_value [09:02:35]cmd_get_value [09:02:35]process_action get_value done [09:02:35]requested_data is exist [09:02:35]produce_requested_data [09:02:35]requested_item kkm.sn is exist - process it [09:02:35]requested_item kkm.ver is exist - process it [09:02:35]requested_item fm.sn is exist - process it [09:02:35]wFMCommunicate request_size=4 [09:02:35]MH_SAM_APDU [09:02:35]CAPDU: 80 11 00 00 [09:02:35]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:02:35]Write i2c OK [09:02:35]MH_I2C_Read... [09:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:35]Read from MH i2c: E2 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 17 00 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D7 [09:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:02:35]wFMCommunicate OK [09:02:35]requested_item fd.num is exist - process it [09:02:35]SAM_PROTO_GetFieldsCounters [09:02:35]wFMCommunicate request_size=4 [09:02:35]MH_SAM_APDU [09:02:35]CAPDU: 80 13 00 00 [09:02:35]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:02:35]Write i2c OK [09:02:35]MH_I2C_Read... [09:02:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:35]Read from MH i2c: E2 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 62 00 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [09:02:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:35]wFMCommunicate OK [09:02:35]SAM_PROTO_GetFieldsCounters done [09:02:35]requested_item shift.num is exist - process it [09:02:35]requested_item shift.opened is exist - process it [09:02:35]req_shift_opened [09:02:35]FM_GetShiftState [09:02:35]SAM_PROTO_GetShiftState [09:02:35]wFMCommunicate request_size=4 [09:02:35]MH_SAM_APDU [09:02:35]CAPDU: 80 13 01 00 [09:02:35]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:02:35]Write i2c OK [09:02:35]MH_I2C_Read... [09:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:35]Read from MH i2c: E2 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 0E 00 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 C8 [09:02:35]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:02:35]wFMCommunicate OK [09:02:35]SAM_PROTO_GetShiftState done [09:02:35]FM_GetShiftState done [09:02:35]req_shift_opened done [09:02:35]requested_item shift.open_date is exist - process it [09:02:35]req_shift_open_date [09:02:35]req_shift_open_date done [09:02:35]produce_requested_data done [09:02:35]produce_requested_data return {"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103623,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [09:02:35]process_action_free get_value [09:02:35]json_value_free [09:02:35]json_value_free done [09:02:35]process_json_proto returns [09:02:35]Send response to host [09:02:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103623,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [09:02:35]free response buf [09:02:35]execute_script done [09:02:35]execute_script returns [09:02:35]free content buf [09:02:35]Sock 8.Close socket [09:02:35]Sock 8.Thread stoped [09:02:35]accept exits with 9 [09:02:35]New connection [09:02:35]New thread 3067456868 created [09:02:35]Thread 3067600228 joined [09:02:35]Waiting for new connection... [09:02:35] Sock 9.Parse request [09:02:35]Sock 9.Check first char [09:02:35]Sock 9.First char is OK [09:02:35]request: POST /json_proto HTTP/1.0 [09:02:35]Method: POST [09:02:35]URL: /json_proto [09:02:35]Method is POST - this is cgi request [09:02:35]url: /json_proto [09:02:35]query_string will be loaded in cgi processing [09:02:35]execute_cgi json_proto POST (null) [09:02:35]execute_cgi path=json_proto method=POST [09:02:35]POST find Content-Length [09:02:35]Host: 172.17.51.67:8080 [09:02:35]Content-Length: 331 [09:02:35]Content-Type: application/json [09:02:35] [09:02:35]POST finish read [09:02:35]Found Content-Length = 331 [09:02:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:02:35]execute_script... [09:02:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:02:35]POST & json_proto [09:02:35]process_json_proto [09:02:35]json parsed OK: [09:02:35]protocol is kg_v1.0 [09:02:35]action value=get_value [09:02:35]process_action get_value [09:02:35]cmd_get_value [09:02:35]process_action get_value done [09:02:35]requested_data is exist [09:02:35]produce_requested_data [09:02:35]requested_item fm.sale.total is exist - process it [09:02:35]SAM_PROTO_GetFMData [09:02:35]wFMCommunicate request_size=4 [09:02:35]MH_SAM_APDU [09:02:35]CAPDU: 80 13 03 00 [09:02:35]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:02:35]OFD Sender: No OFD packet to send [09:02:35]Write i2c OK [09:02:35]MH_I2C_Read... [09:02:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:02:35]Read from MH i2c: E2 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 FD 00 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 3B 90 01 00 69 04 A3 00 6F 04 04 00 CF 8F 01 00 B1 04 05 00 7B 3F 08 F9 01 70 04 05 00 70 E1 4C 8D 01 72 04 04 00 0B 5E BB 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 CB A5 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8A 68 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 1D [09:02:35]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 3B 90 01 00 69 04 A3 00 6F 04 04 00 CF 8F 01 00 B1 04 05 00 7B 3F 08 F9 01 70 04 05 00 70 E1 4C 8D 01 72 04 04 00 0B 5E BB 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 CB A5 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8A 68 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [09:02:35]wFMCommunicate OK [09:02:35]wFMCommunicate request_size=4 [09:02:35]MH_SAM_APDU [09:02:35]CAPDU: 80 17 00 00 [09:02:35]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:02:35]Write i2c OK [09:02:35]MH_I2C_Read... [09:02:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:36]Read from MH i2c: E2 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 FD 00 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [09:02:36]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:02:36]wFMCommunicate OK [09:02:36]wFMCommunicate request_size=4 [09:02:36]MH_SAM_APDU [09:02:36]CAPDU: 80 17 00 00 [09:02:36]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:02:36]Write i2c OK [09:02:36]MH_I2C_Read... [09:02:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:36]Read from MH i2c: E2 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 FD 00 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [09:02:36]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:02:36]wFMCommunicate OK [09:02:36]wFMCommunicate request_size=4 [09:02:36]MH_SAM_APDU [09:02:36]CAPDU: 80 17 00 00 [09:02:36]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:02:36]Write i2c OK [09:02:36]MH_I2C_Read... [09:02:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:36]Read from MH i2c: E2 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 FD 00 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 FD 00 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [09:02:36]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:02:36]wFMCommunicate OK [09:02:36]wFMCommunicate request_size=4 [09:02:36]MH_SAM_APDU [09:02:36]CAPDU: 80 17 00 00 [09:02:36]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:02:36]Write i2c OK [09:02:36]MH_I2C_Read... [09:02:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [09:02:37]Read from MH i2c: E2 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 E4 00 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [09:02:37]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:02:37]wFMCommunicate OK [09:02:37]SAM_PROTO_GetFMData done [09:02:37]requested_item fm.sale_refund.total is exist - process it [09:02:37]requested_item fm.buy.total is exist - process it [09:02:37]requested_item shift.sale.total is exist - process it [09:02:37]SAM_PROTO_GetShiftData [09:02:37]wFMCommunicate request_size=4 [09:02:37]MH_SAM_APDU [09:02:37]CAPDU: 80 13 02 00 [09:02:37]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:02:37]Write i2c OK [09:02:37]MH_I2C_Read... [09:02:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:02:37]Read from MH i2c: E2 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 FD 00 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 23 00 00 00 69 04 9B 00 6F 04 04 00 23 00 00 00 B1 04 03 00 40 7F 25 70 04 03 00 04 A1 1E 72 04 03 00 3C DE 06 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C9 FB 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7C [09:02:37]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 23 00 00 00 69 04 9B 00 6F 04 04 00 23 00 00 00 B1 04 03 00 40 7F 25 70 04 03 00 04 A1 1E 72 04 03 00 3C DE 06 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C9 FB 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:02:37]wFMCommunicate OK [09:02:37]wFMCommunicate request_size=4 [09:02:37]MH_SAM_APDU [09:02:37]CAPDU: 80 17 00 00 [09:02:37]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:02:37]Write i2c OK [09:02:37]MH_I2C_Read... [09:02:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:37]Read from MH i2c: E2 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 FD 00 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [09:02:37]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 [09:02:37]wFMCommunicate OK [09:02:37]wFMCommunicate request_size=4 [09:02:37]MH_SAM_APDU [09:02:37]CAPDU: 80 17 00 00 [09:02:37]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:02:37]Write i2c OK [09:02:37]MH_I2C_Read... [09:02:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:38]Read from MH i2c: E2 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: E2 FD 00 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [09:02: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 [09:02:38]wFMCommunicate OK [09:02:38]wFMCommunicate request_size=4 [09:02:38]MH_SAM_APDU [09:02:38]CAPDU: 80 17 00 00 [09:02:38]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:02:38]Write i2c OK [09:02:38]MH_I2C_Read... [09:02:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:38]Read from MH i2c: E2 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: E2 FD 00 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [09:02:38]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 [09:02:38]wFMCommunicate OK [09:02:38]wFMCommunicate request_size=4 [09:02:38]MH_SAM_APDU [09:02:38]CAPDU: 80 17 00 00 [09:02:38]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:02:38]Write i2c OK [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: E2 [09:02:38]MH_I2C_Read... [09:02:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:02:38]Read from MH i2c: E2 CB 00 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [09:02:38]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 [09:02:38]wFMCommunicate OK [09:02:38]SAM_PROTO_GetShiftData done [09:02:38]requested_item shift.sale.total_cash is exist - process it [09:02:38]requested_item shift.sale_refund.total is exist - process it [09:02:38]requested_item shift.sale_refund.total_cash is exist - process it [09:02:38]requested_item shift.buy.total is exist - process it [09:02:38]requested_item shift.buy.total_cash is exist - process it [09:02:38]produce_requested_data done [09:02:38]produce_requested_data return {"fm.sale.total":84730346.19,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":24574.08,"shift.sale.total_cash":20073.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:02:38]process_action_free get_value [09:02:38]json_value_free [09:02:38]json_value_free done [09:02:38]process_json_proto returns [09:02:38]Send response to host [09:02:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84730346.19,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":24574.08,"shift.sale.total_cash":20073.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:02:38]free response buf [09:02:38]execute_script done [09:02:38]execute_script returns [09:02:38]free content buf [09:02:38]Sock 9.Close socket [09:02:38]Sock 9.Thread stoped [09:02:40]OFD Sender: No OFD packet to send [09:02:42]recv_with_timeout no data received [09:02:44]accept exits with 8 [09:02:44]New connection [09:02:44]New thread 3067600228 created [09:02:44]Thread 3067456868 joined [09:02:44]Waiting for new connection... [09:02:44] Sock 8.Parse request [09:02:44]Sock 8.Check first char [09:02:44]Sock 8.First char is OK [09:02:44]request: POST /json_proto HTTP/1.0 [09:02:44]Method: POST [09:02:44]URL: /json_proto [09:02:44]Method is POST - this is cgi request [09:02:44]url: /json_proto [09:02:44]query_string will be loaded in cgi processing [09:02:44]execute_cgi json_proto POST (null) [09:02:44]execute_cgi path=json_proto method=POST [09:02:44]POST find Content-Length [09:02:44]Host: 172.17.51.67:8080 [09:02:44]Content-Length: 215 [09:02:44]Content-Type: application/json [09:02:44] [09:02:44]POST finish read [09:02:44]Found Content-Length = 215 [09:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:44]execute_script... [09:02:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:44]POST & json_proto [09:02:44]process_json_proto [09:02:44]json parsed OK: [09:02:44]protocol is kg_v1.0 [09:02:44]action value=get_value [09:02:44]process_action get_value [09:02:44]cmd_get_value [09:02:44]process_action get_value done [09:02:44]requested_data is exist [09:02:44]produce_requested_data [09:02:44]requested_item kkm.sn is exist - process it [09:02:44]requested_item kkm.ver is exist - process it [09:02:44]requested_item fm.sn is exist - process it [09:02:44]wFMCommunicate request_size=4 [09:02:44]MH_SAM_APDU [09:02:44]CAPDU: 80 11 00 00 [09:02:44]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [09:02:44]Write i2c OK [09:02:44]MH_I2C_Read... [09:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:44]Read from MH i2c: E2 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: E2 17 00 [09:02:44]MH_I2C_Read... [09:02:44]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 E4 [09:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:02:44]wFMCommunicate OK [09:02:44]requested_item fd.num is exist - process it [09:02:44]SAM_PROTO_GetFieldsCounters [09:02:44]wFMCommunicate request_size=4 [09:02:44]MH_SAM_APDU [09:02:44]CAPDU: 80 13 00 00 [09:02:44]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [09:02:44]Write i2c OK [09:02:44]MH_I2C_Read... [09:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:45]Read from MH i2c: E2 [09:02:45]MH_I2C_Read... [09:02:45]Read from MH i2c: E2 62 00 [09:02:45]MH_I2C_Read... [09:02:45]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [09:02: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:45]wFMCommunicate OK [09:02:45]SAM_PROTO_GetFieldsCounters done [09:02:45]requested_item shift.num is exist - process it [09:02:45]requested_item shift.opened is exist - process it [09:02:45]req_shift_opened [09:02:45]FM_GetShiftState [09:02:45]SAM_PROTO_GetShiftState [09:02:45]wFMCommunicate request_size=4 [09:02:45]MH_SAM_APDU [09:02:45]CAPDU: 80 13 01 00 [09:02:45]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [09:02:45]Write i2c OK [09:02:45]MH_I2C_Read... [09:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:45]Read from MH i2c: E2 [09:02:45]MH_I2C_Read... [09:02:45]Read from MH i2c: E2 0E 00 [09:02:45]MH_I2C_Read... [09:02:45]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D5 [09:02:45]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:02:45]wFMCommunicate OK [09:02:45]SAM_PROTO_GetShiftState done [09:02:45]FM_GetShiftState done [09:02:45]req_shift_opened done [09:02:45]requested_item shift.open_date is exist - process it [09:02:45]req_shift_open_date [09:02:45]req_shift_open_date done [09:02:45]produce_requested_data done [09:02:45]produce_requested_data return {"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103623,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [09:02:45]process_action_free get_value [09:02:45]json_value_free [09:02:45]json_value_free done [09:02:45]process_json_proto returns [09:02:45]Send response to host [09:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103623,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [09:02:45]free response buf [09:02:45]execute_script done [09:02:45]execute_script returns [09:02:45]free content buf [09:02:45]Sock 8.Close socket [09:02:45]Sock 8.Thread stoped [09:02:45]accept exits with 9 [09:02:45]New connection [09:02:45]New thread 3067456868 created [09:02:45]Thread 3067600228 joined [09:02:45]Waiting for new connection... [09:02:45] Sock 9.Parse request [09:02:45]Sock 9.Check first char [09:02:45]Sock 9.First char is OK [09:02:45]request: POST /json_proto HTTP/1.0 [09:02:45]Method: POST [09:02:45]URL: /json_proto [09:02:45]Method is POST - this is cgi request [09:02:45]url: /json_proto [09:02:45]query_string will be loaded in cgi processing [09:02:45]execute_cgi json_proto POST (null) [09:02:45]execute_cgi path=json_proto method=POST [09:02:45]POST find Content-Length [09:02:45]Host: 172.17.51.67:8080 [09:02:45]Content-Length: 331 [09:02:45]Content-Type: application/json [09:02:45] [09:02:45]POST finish read [09:02:45]Found Content-Length = 331 [09:02:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:02:45]execute_script... [09:02:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:02:45]POST & json_proto [09:02:45]process_json_proto [09:02:45]json parsed OK: [09:02:45]protocol is kg_v1.0 [09:02:45]action value=get_value [09:02:45]process_action get_value [09:02:45]cmd_get_value [09:02:45]process_action get_value done [09:02:45]requested_data is exist [09:02:45]produce_requested_data [09:02:45]requested_item fm.sale.total is exist - process it [09:02:45]SAM_PROTO_GetFMData [09:02:45]wFMCommunicate request_size=4 [09:02:45]MH_SAM_APDU [09:02:45]CAPDU: 80 13 03 00 [09:02:45]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [09:02:45]Write i2c OK [09:02:45]MH_I2C_Read... [09:02:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:02:45]Read from MH i2c: E2 [09:02:45]MH_I2C_Read... [09:02:45]Read from MH i2c: E2 FD 00 [09:02:45]MH_I2C_Read... [09:02:45]Read from MH i2c: E2 FD 00 20 00 00 C7 04 85 04 C3 04 6E 04 04 00 3B 90 01 00 69 04 A3 00 6F 04 04 00 CF 8F 01 00 B1 04 05 00 7B 3F 08 F9 01 70 04 05 00 70 E1 4C 8D 01 72 04 04 00 0B 5E BB 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 CB A5 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8A 68 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 2A [09:02:45]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 3B 90 01 00 69 04 A3 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 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 [09:02:53]wFMCommunicate OK [09:02:53]wFMCommunicate request_size=4 [09:02:53]MH_SAM_APDU [09:02:53]CAPDU: 80 17 00 00 [09:02:53]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [09:02:53]Write i2c OK [09:02:53]MH_I2C_Read... [09:02:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:02:54]Read from MH i2c: E2 [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: E2 CB 00 [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: E2 CB 00 33 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9C [09:02:54]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:02:54]wFMCommunicate OK [09:02:54]SAM_PROTO_GetShiftData done [09:02:54]requested_item shift.sale.total_cash is exist - process it [09:02:54]requested_item shift.sale_refund.total is exist - process it [09:02:54]requested_item shift.sale_refund.total_cash is exist - process it [09:02:54]requested_item shift.buy.total is exist - process it [09:02:54]requested_item shift.buy.total_cash is exist - process it [09:02:54]produce_requested_data done [09:02:54]produce_requested_data return {"fm.sale.total":84730346.19,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":24574.08,"shift.sale.total_cash":20073.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:02:54]process_action_free get_value [09:02:54]json_value_free [09:02:54]json_value_free done [09:02:54]process_json_proto returns [09:02:54]Send response to host [09:02:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84730346.19,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":24574.08,"shift.sale.total_cash":20073.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:02:54]free response buf [09:02:54]execute_script done [09:02:54]execute_script returns [09:02:54]free content buf [09:02:54]Sock 8.Close socket [09:02:54]Sock 8.Thread stoped [09:02:54]accept exits with 9 [09:02:54]New connection [09:02:54]New thread 3067456868 created [09:02:54]Thread 3067600228 joined [09:02:54]Waiting for new connection... [09:02:54] Sock 9.Parse request [09:02:54]Sock 9.Check first char [09:02:54]Sock 9.First char is OK [09:02:54]request: POST /json_proto HTTP/1.0 [09:02:54]Method: POST [09:02:54]URL: /json_proto [09:02:54]Method is POST - this is cgi request [09:02:54]url: /json_proto [09:02:54]query_string will be loaded in cgi processing [09:02:54]execute_cgi json_proto POST (null) [09:02:54]execute_cgi path=json_proto method=POST [09:02:54]POST find Content-Length [09:02:54]Host: 172.17.51.67:8080 [09:02:54]Content-Length: 257 [09:02:54]Content-Type: application/json [09:02:54] [09:02:54]POST finish read [09:02:54]Found Content-Length = 257 [09:02:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u043E\u043E\u0440\u043E\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:54]execute_script... [09:02:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u043E\u043E\u0440\u043E\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:54]POST & json_proto [09:02:54]process_json_proto [09:02:54]json parsed OK: [09:02:54]protocol is kg_v1.0 [09:02:54]action value=x_report [09:02:54]process_action x_report [09:02:54]cmd_x_report [09:02:54]MH_GetDate [09:02:54]Write to MH i2c: F0 00 00 34 00 23 [09:02:54]Write i2c OK [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: F0 [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: F0 09 00 [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: F0 09 00 34 00 00 BE BB 18 67 1E EF FA 64 8F [09:02:54]GetLastDocTimeStamp 1729673858 [09:02:54]current date 1729674174 [09:02:54]FM_GetShiftState [09:02:54]SAM_PROTO_GetShiftState [09:02:54]wFMCommunicate request_size=4 [09:02:54]MH_SAM_APDU [09:02:54]CAPDU: 80 13 01 00 [09:02:54]Write to MH i2c: E2 08 00 35 00 80 13 01 00 00 00 00 00 B2 [09:02:54]Write i2c OK [09:02:54]MH_I2C_Read... [09:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:54]Read from MH i2c: E2 [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: E2 0E 00 [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: E2 0E 00 35 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 EB [09:02:54]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:02:54]wFMCommunicate OK [09:02:54]SAM_PROTO_GetShiftState done [09:02:54]FM_GetShiftState done [09:02:54]KKMCreateXReportDocument [09:02:54]Load OK [09:02:54]Malloc new data [09:02:54]MH_GetDate [09:02:54]Write to MH i2c: F0 00 00 36 00 25 [09:02:54]Write i2c OK [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: F0 [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: F0 09 00 [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: F0 09 00 36 00 00 BF BB 18 67 1E EF FA 64 92 [09:02:54]Malloc new data [09:02:54]Malloc new data [09:02:54]wFMCommunicate request_size=4 [09:02:54]MH_SAM_APDU [09:02:54]CAPDU: 80 11 00 00 [09:02:54]Write to MH i2c: E2 08 00 37 00 80 11 00 00 00 00 00 00 B1 [09:02:54]Write i2c OK [09:02:54]MH_I2C_Read... [09:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:54]Read from MH i2c: E2 [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: E2 17 00 [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: E2 17 00 37 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 FE [09:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:02:54]wFMCommunicate OK [09:02:54]SAM_PROTO_GetFieldsCounters [09:02:54]wFMCommunicate request_size=4 [09:02:54]MH_SAM_APDU [09:02:54]CAPDU: 80 13 00 00 [09:02:54]Write to MH i2c: E2 08 00 38 00 80 13 00 00 00 00 00 00 B4 [09:02:54]Write i2c OK [09:02:54]MH_I2C_Read... [09:02:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:54]Read from MH i2c: E2 [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: E2 62 00 [09:02:54]MH_I2C_Read... [09:02:54]Read from MH i2c: E2 62 00 38 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [09:02: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:54]wFMCommunicate OK [09:02:54]SAM_PROTO_GetFieldsCounters done [09:02:54]Malloc new data [09:02:54]Malloc new data [09:02:54]Malloc new data [09:02:54]KKMCreateXReportDocument OK [09:02:54]KKMSetXReportData OK [09:02:54]KKMPrepareXReportFMData [09:02:54]SAM_PROTO_GetShiftData [09:02:54]wFMCommunicate request_size=4 [09:02:54]MH_SAM_APDU [09:02:54]CAPDU: 80 13 02 00 [09:02:54]Write to MH i2c: E2 08 00 39 00 80 13 02 00 00 00 00 00 B7 [09:02:54]Write i2c OK [09:02:54]MH_I2C_Read... [09:02:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:02:55]Read from MH i2c: E2 [09:02:55]MH_I2C_Read... [09:02:55]Read from MH i2c: E2 FD 00 [09:02:55]MH_I2C_Read... [09:02:55]Read from MH i2c: E2 FD 00 39 00 00 AE 04 AA 04 AA 04 6E 04 04 00 23 00 00 00 69 04 9B 00 6F 04 04 00 23 00 00 00 B1 04 03 00 40 7F 25 70 04 03 00 04 A1 1E 72 04 03 00 3C DE 06 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C9 FB 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D [09:02:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 23 00 00 00 69 04 9B 00 6F 04 04 00 23 00 00 00 B1 04 03 00 40 7F 25 70 04 03 00 04 A1 1E 72 04 03 00 3C DE 06 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C9 FB 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:02:55]wFMCommunicate OK [09:02:55]wFMCommunicate request_size=4 [09:02:55]MH_SAM_APDU [09:02:55]CAPDU: 80 17 00 00 [09:02:55]Write to MH i2c: E2 08 00 3A 00 80 17 00 00 00 00 00 00 BA [09:02:55]Write i2c OK [09:02:55]MH_I2C_Read... [09:02:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:55]Read from MH i2c: E2 [09:02:55]MH_I2C_Read... [09:02:55]Read from MH i2c: E2 FD 00 [09:02:55]MH_I2C_Read... [09:02:55]Read from MH i2c: E2 FD 00 3A 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 DC [09:02:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 OFD Sender: No OFD packet to send [09:02:55]00 B1 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 [09:02:55]wFMCommunicate OK [09:02:55]wFMCommunicate request_size=4 [09:02:55]MH_SAM_APDU [09:02:55]CAPDU: 80 17 00 00 [09:02:55]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [09:02:55]Write i2c OK [09:02:55]MH_I2C_Read... [09:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:56]Read from MH i2c: E2 [09:02:56]MH_I2C_Read... [09:02:56]Read from MH i2c: E2 FD 00 [09:02:56]MH_I2C_Read... [09:02:56]Read from MH i2c: E2 FD 00 3B 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 72 [09:02:56]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 [09:02:56]wFMCommunicate OK [09:02:56]wFMCommunicate request_size=4 [09:02:56]MH_SAM_APDU [09:02:56]CAPDU: 80 17 00 00 [09:02:56]Write to MH i2c: E2 08 00 3C 00 80 17 00 00 00 00 00 00 BC [09:02:56]Write i2c OK [09:02:56]MH_I2C_Read... [09:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:56]Read from MH i2c: E2 [09:02:56]MH_I2C_Read... [09:02:56]Read from MH i2c: E2 FD 00 [09:02:56]MH_I2C_Read... [09:02:56]Read from MH i2c: E2 FD 00 3C 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 2E [09:02:56]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 [09:02:56]wFMCommunicate OK [09:02:56]wFMCommunicate request_size=4 [09:02:56]MH_SAM_APDU [09:02:56]CAPDU: 80 17 00 00 [09:02:56]Write to MH i2c: E2 08 00 3D 00 80 17 00 00 00 00 00 00 BD [09:02:56]Write i2c OK [09:02:56]MH_I2C_Read... [09:02:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:02:57]Read from MH i2c: E2 [09:02:57]MH_I2C_Read... [09:02:57]Read from MH i2c: E2 CB 00 [09:02:57]MH_I2C_Read... [09:02:57]Read from MH i2c: E2 CB 00 3D 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A6 [09:02:57]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 [09:02:57]wFMCommunicate OK [09:02:57]SAM_PROTO_GetShiftData done [09:02:57]1194 (1194) - счетчики итогов смены [09:02:57] 1134 (4) - 35 - количество чеков со всеми признаками расчетов [09:02:57] 1129 (155) - счетчики операций «приход» [09:02:57] 1135 (4) - 35 - количество чеков по признаку расчетов [09:02:57] 1201 (3) - 24574.08 - общая итоговая сумма в чеках [09:02:57] 1136 (3) - 20073.00 - итоговая сумма в чеках наличными [09:02:57] 1138 (3) - 4501.08 - итоговая сумма в чеках безналичными [09:02:57] 1024 (122) - суммы налогов [09:02:57] 1006 (9) - суммы НДС [09:02:57] 1010 (1) - 0% - код ставки НДС [09:02:57] 1011 (0) - 0.00 - сумма НДС по ставке [09:02:57] 1006 (12) - суммы НДС [09:02:57] 1010 (1) - 12% - код ставки НДС [09:02:57] 1011 (3) - 2610.65 - сумма НДС по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 0% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (11) - суммы НСП [09:02:57] 1014 (1) - 1% - код ставки НСП [09:02:57] 1015 (2) - 217.57 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 2% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 3% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 5% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 0,50% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 1,50% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1130 (141) - счетчики операций «возврат прихода» [09:02:57] 1135 (4) - 0 - количество чеков по признаку расчетов [09:02:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [09:02:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [09:02:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [09:02:57] 1024 (117) - суммы налогов [09:02:57] 1006 (9) - суммы НДС [09:02:57] 1010 (1) - 0% - код ставки НДС [09:02:57] 1011 (0) - 0.00 - сумма НДС по ставке [09:02:57] 1006 (9) - суммы НДС [09:02:57] 1010 (1) - 12% - код ставки НДС [09:02:57] 1011 (0) - 0.00 - сумма НДС по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 0% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 1% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 2% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 3% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 5% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 0,50% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 1,50% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1131 (141) - счетчики операций «расход» [09:02:57] 1135 (4) - 0 - количество чеков по признаку расчетов [09:02:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [09:02:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [09:02:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [09:02:57] 1024 (117) - суммы налогов [09:02:57] 1006 (9) - суммы НДС [09:02:57] 1010 (1) - 0% - код ставки НДС [09:02:57] 1011 (0) - 0.00 - сумма НДС по ставке [09:02:57] 1006 (9) - суммы НДС [09:02:57] 1010 (1) - 12% - код ставки НДС [09:02:57] 1011 (0) - 0.00 - сумма НДС по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 0% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 1% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 2% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 3% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 5% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 0,50% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 1,50% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1132 (141) - счетчики операций «возврат расхода» [09:02:57] 1135 (4) - 0 - количество чеков по признаку расчетов [09:02:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [09:02:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [09:02:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [09:02:57] 1024 (117) - суммы налогов [09:02:57] 1006 (9) - суммы НДС [09:02:57] 1010 (1) - 0% - код ставки НДС [09:02:57] 1011 (0) - 0.00 - сумма НДС по ставке [09:02:57] 1006 (9) - суммы НДС [09:02:57] 1010 (1) - 12% - код ставки НДС [09:02:57] 1011 (0) - 0.00 - сумма НДС по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 0% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 1% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 2% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 3% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 5% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 0,50% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1007 (9) - суммы НСП [09:02:57] 1014 (1) - 1,50% - код ставки НСП [09:02:57] 1015 (0) - 0.00 - сумма НСП по ставке [09:02:57] 1133 (588) - - счетчики коррекции - не используются [09:02:57]SetTLVBufToDocument [09:02:57]Processing tag 1194 (04AA) [09:02:57]Load OK [09:02:57]SetTLVBufToDocument [09:02:57]Processing tag 1134 (046E) [09:02:57]Malloc new data [09:02:57]Processing tag 1129 (0469) [09:02:57]Load OK [09:02:57]SetTLVBufToDocument [09:02:57]Processing tag 1135 (046F) [09:02:57]Malloc new data [09:02:57]Processing tag 1201 (04B1) [09:02:57]Malloc new data [09:02:57]Processing tag 1136 (0470) [09:02:57]Malloc new data [09:02:57]Processing tag 1138 (0472) [09:02:57]Malloc new data [09:02:57]Processing tag 1024 (0400) [09:02:57]Load OK [09:02:57]SetTLVBufToDocument [09:02:57]Processing tag 1006 (03EE) [09:02:57]Load OK [09:02:57]SetTLVBufToDocument [09:02:57]Processing tag 1010 (03F2) [09:02:57]Malloc new data [09:02:57]Processing tag 1011 (03F3) [09:02:57]Malloc new data [09:02:57]SetTLVBufToDocument err=0 [09:02:57]Processing tag 1006 (03EE) [09:02:57]Load OK [09:02:57]SetTLVBufToDocument [09:02:57]Processing tag 1010 (03F2) [09:02:57]Malloc new data [09:02:57]Processing tag 1011 (03F3) [09:02:57]Malloc new data [09:02:57]SetTLVBufToDocument err=0 [09:02:57]Processing tag 1007 (03EF) [09:02:57]Load OK [09:02:57]SetTLVBufToDocument [09:02:57]Processing tag 1014 (03F6) [09:02:57]Malloc new data [09:02:57]Processing tag 1015 (03F7) [09:02:57]Malloc new data [09:02:57]SetTLVBufToDocument err=0 [09:02:57]Processing tag 1007 (03EF) [09:02:57]Load OK [09:02:57]SetTLVBufToDocument [09:02:57]Processing tag 1014 (03F6) [09:02:57]Malloc new data [09:02:57]Processing tag 1015 (03F7) [09:02:57]Malloc new data [09:02:57]SetTLVBufToDocument err=0 [09:02:57]Processing tag 1007 (03EF) [09:02:57]Load OK [09:02:57]SetTLVBufToDocument [09:02:57]Processing tag 1014 (03F6) [09:02:57]Malloc new data [09:02:57]Processing tag 1015 (03F7) [09:02:57]Malloc new data [09:02:57]SetTLVBufToDocument err=0 [09:02:57]Processing tag 1007 (03EF) [09:02:57]Load OK [09:02:57]SetTLVBufToDocument [09:02:57]Processing tag 1014 (03F6) [09:02:57]Malloc new data [09:02:57]Processing tag 1015 (03F7) [09:02:57]Malloc new data [09:02:57]SetTLVBufToDocument err=0 [09:02:57]Processing tag 1007 (03EF) [09:02:57]Load OK [09:02:57]SetTLVBufToDocument [09:02:57]Processing tag 1014 (03F6) [09:02:57]Malloc new data [09:02:57]Processing tag 1015 (03F7) [09:02:57]Malloc new data [09:02:57]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]SetTLVBufToDocument err=0 [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1130 (046A) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1135 (046F) [09:02:58]Malloc new data [09:02:58]Processing tag 1201 (04B1) [09:02:58]Malloc new data [09:02:58]Processing tag 1136 (0470) [09:02:58]Malloc new data [09:02:58]Processing tag 1138 (0472) [09:02:58]Malloc new data [09:02:58]Processing tag 1024 (0400) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1006 (03EE) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1010 (03F2) [09:02:58]Malloc new data [09:02:58]Processing tag 1011 (03F3) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1006 (03EE) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1010 (03F2) [09:02:58]Malloc new data [09:02:58]Processing tag 1011 (03F3) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]SetTLVBufToDocument err=0 [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1131 (046B) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1135 (046F) [09:02:58]Malloc new data [09:02:58]Processing tag 1201 (04B1) [09:02:58]Malloc new data [09:02:58]Processing tag 1136 (0470) [09:02:58]Malloc new data [09:02:58]Processing tag 1138 (0472) [09:02:58]Malloc new data [09:02:58]Processing tag 1024 (0400) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1006 (03EE) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1010 (03F2) [09:02:58]Malloc new data [09:02:58]Processing tag 1011 (03F3) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1006 (03EE) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1010 (03F2) [09:02:58]Malloc new data [09:02:58]Processing tag 1011 (03F3) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]SetTLVBufToDocument err=0 [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1132 (046C) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1135 (046F) [09:02:58]Malloc new data [09:02:58]Processing tag 1201 (04B1) [09:02:58]Malloc new data [09:02:58]Processing tag 1136 (0470) [09:02:58]Malloc new data [09:02:58]Processing tag 1138 (0472) [09:02:58]Malloc new data [09:02:58]Processing tag 1024 (0400) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1006 (03EE) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1010 (03F2) [09:02:58]Malloc new data [09:02:58]Processing tag 1011 (03F3) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1006 (03EE) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1010 (03F2) [09:02:58]Malloc new data [09:02:58]Processing tag 1011 (03F3) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1007 (03EF) [09:02:58]Load OK [09:02:58]SetTLVBufToDocument [09:02:58]Processing tag 1014 (03F6) [09:02:58]Malloc new data [09:02:58]Processing tag 1015 (03F7) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]SetTLVBufToDocument err=0 [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Processing tag 1133 (046D) [09:02:58]Malloc new data [09:02:58]SetTLVBufToDocument err=0 [09:02:58]SetTLVBufToDocument err=0 [09:02:58]Malloc new data [09:02:58]SAM_PROTO_GetFMData [09:02:58]wFMCommunicate request_size=4 [09:02:58]MH_SAM_APDU [09:02:58]CAPDU: 80 13 03 00 [09:02:58]Write to MH i2c: E2 08 00 3E 00 80 13 03 00 00 00 00 00 BD [09:02:58]Write i2c OK [09:02:58]MH_I2C_Read... [09:02:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:02:59]Read from MH i2c: E2 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 FD 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 FD 00 3E 00 00 C7 04 85 04 C3 04 6E 04 04 00 3B 90 01 00 69 04 A3 00 6F 04 04 00 CF 8F 01 00 B1 04 05 00 7B 3F 08 F9 01 70 04 05 00 70 E1 4C 8D 01 72 04 04 00 0B 5E BB 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 CB A5 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8A 68 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 48 [09:02:59]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 3B 90 01 00 69 04 A3 00 6F 04 04 00 CF 8F 01 00 B1 04 05 00 7B 3F 08 F9 01 70 04 05 00 70 E1 4C 8D 01 72 04 04 00 0B 5E BB 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 CB A5 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8A 68 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [09:02:59]wFMCommunicate OK [09:02:59]wFMCommunicate request_size=4 [09:02:59]MH_SAM_APDU [09:02:59]CAPDU: 80 17 00 00 [09:02:59]Write to MH i2c: E2 08 00 3F 00 80 17 00 00 00 00 00 00 BF [09:02:59]Write i2c OK [09:02:59]MH_I2C_Read... [09:02:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:02:59]Read from MH i2c: E2 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 FD 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 FD 00 3F 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7A [09:02:59]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:03:00]wFMCommunicate OK [09:03:00]wFMCommunicate request_size=4 [09:03:00]MH_SAM_APDU [09:03:00]CAPDU: 80 17 00 00 [09:03:00]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [09:03:00]Write i2c OK [09:03:00]MH_I2C_Read... [09:03:00]recv_with_timeout no data received [09:03:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:03:00]Read from MH i2c: E2 [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: E2 FD 00 [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: E2 FD 00 40 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 98 [09:03:00]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:03:00]wFMCommunicate OK [09:03:00]wFMCommunicate request_size=4 [09:03:00]MH_SAM_APDU [09:03:00]CAPDU: 80 17 00 00 [09:03:00]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [09:03:00]Write i2c OK [09:03:00]MH_I2C_Read... [09:03:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:03:00]Read from MH i2c: E2 [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: E2 FD 00 [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: E2 FD 00 41 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 3C [09:03:01]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 OFD Sender: No OFD packet to send [09:03:01]03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [09:03:01]wFMCommunicate OK [09:03:01]wFMCommunicate request_size=4 [09:03:01]MH_SAM_APDU [09:03:01]CAPDU: 80 17 00 00 [09:03:01]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [09:03:01]Write i2c OK [09:03:01]MH_I2C_Read... [09:03:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [09:03:01]Read from MH i2c: E2 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 E4 00 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 E4 00 42 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A2 [09:03:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:03:01]wFMCommunicate OK [09:03:01]SAM_PROTO_GetFMData done [09:03:01]FM_GetFMData:85 04 C3 04 6E 04 04 00 3B 90 01 00 69 04 A3 00 6F 04 04 00 CF 8F 01 00 B1 04 05 00 7B 3F 08 F9 01 70 04 05 00 70 E1 4C 8D 01 72 04 04 00 0B 5E BB 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 CB A5 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8A 68 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:03:02]oper:6F 04 04 00 CF 8F 01 00 B1 04 05 00 7B 3F 08 F9 01 70 04 05 00 70 E1 4C 8D 01 72 04 04 00 0B 5E BB 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 41 CB A5 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8A 68 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [09:03:02]total:7B 3F 08 F9 01 [09:03:02]Malloc new data [09:03:02]oper:6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [09:03:02]total:7C F5 CB 03 [09:03:02]Malloc new data [09:03:02]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 [09:03:03]total: [09:03:03]Malloc new data [09:03:03]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 [09:03:03]total: [09:03:03]Malloc new data [09:03:03]KKMPrepareXReportFMData err=0 [09:03:03]Х отчет ИНН: 02508201610067 Кассир: Дооронов М. 23.10.2024 09:02 Смена: 522 РНМ: 0000000000091754 ЗНМ: 0300000095 СНО: Общий режим Всего чеков: 35 ИТОГИ ПРИХОД Чеков: 35 Общий итог: 24574.08 Итого наличными: 20073.00 Итого безнал.: 4501.08 НДС 0% : 0.00 НДС 12% : 2610.65 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 217.57 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 20073.00 НС Приход: 84730346.19 НС Возвр.Прихода: 636983.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871811 [09:03:03]StoreToDocumentArchive [09:03:03]MH_GetDate [09:03:03]Write to MH i2c: F0 00 00 43 00 32 [09:03:03]Write i2c OK [09:03:03]MH_I2C_Read... [09:03:03]Read from MH i2c: F0 [09:03:03]MH_I2C_Read... [09:03:03]Read from MH i2c: F0 09 00 [09:03:03]MH_I2C_Read... [09:03:03]Read from MH i2c: F0 09 00 43 00 00 C7 BB 18 67 1E EF FA 64 A7 [09:03:03]shift 522 fd 1729674183 [09:03:03]Create dir for shift 0522 [09:03:03]save to /storage/0522/doc_1729674183 [09:03:03]save last doc name /storage/0522/doc_1729674183 to /storage/kkm_last_doc_name [09:03:03]save OK [09:03:03]Clear old archive folders... [09:03:03]NVStorageSaveData kkm_last_timestamp [09:03:03]File name is /storage/kkm_last_timestamp [09:03:03]Write 4 bytes [09:03:03]NVStorageSaveData done [09:03:03]ExternCall_PrintAddStr [09:03:03]wPrintStart [09:03:03]Write to MH i2c: 01 00 00 44 00 44 [09:03:03]Write i2c OK [09:03:03]MH_I2C_Read... [09:03:03]Read from MH i2c: 01 [09:03:03]MH_I2C_Read... [09:03:03]Read from MH i2c: 01 07 00 [09:03:03]MH_I2C_Read... [09:03:03]Read from MH i2c: 01 07 00 44 00 00 00 00 00 00 FF 0F 59 [09:03:03]RasterBufferAndPrint [09:03:03]line Х отчет [09:03:03]line ИНН: 02508201610067 [09:03:03]line Кассир: Дооронов М. [09:03:03]line 23.10.2024 09:02 [09:03:03]line Смена: 522 [09:03:03]line РНМ: 0000000000091754 [09:03:03]line ЗНМ: 0300000095 [09:03:03]line СНО: Общий режим [09:03:03]line Всего чеков: 35 [09:03:03]line ИТОГИ ПРИХОД [09:03:03]line Чеков: 35 [09:03:03]line Общий итог: 24574.08 [09:03:03]line Итого наличными: 20073.00 [09:03:03]line Итого безнал.: 4501.08 [09:03:03]line НДС 0% : 0.00 [09:03:03]line НДС 12% : 2610.65 [09:03:03]line НСП 0% : 0.00 [09:03:03]line НСП 1,50% : 0.00 [09:03:03]line НСП 0,50% : 0.00 [09:03:03]line НСП 5% : 0.00 [09:03:03]line НСП 3% : 0.00 [09:03:03]line НСП 2% : 0.00 [09:03:03]line НСП 1% : 217.57 [09:03:03]line ИТОГИ ВОЗВРАТ ПРИХОДА [09:03:03]line Чеков: 0 [09:03:03]line Общий итог: 0.00 [09:03:03]line Итого наличными: 0.00 [09:03:03]line Итого безнал.: 0.00 [09:03:03]line НДС 0% : 0.00 [09:03:03]line НДС 12% : 0.00 [09:03:03]line НСП 0% : 0.00 [09:03:03]line НСП 1,50% : 0.00 [09:03:03]line НСП 0,50% : 0.00 [09:03:03]line НСП 5% : 0.00 [09:03:03]line НСП 3% : 0.00 [09:03:03]line НСП 2% : 0.00 [09:03:03]line НСП 1% : 0.00 [09:03:03]line ИТОГИ РАСХОД [09:03:03]line Чеков: 0 [09:03:03]line Общий итог: 0.00 [09:03:03]line Итого наличными: 0.00 [09:03:03]line Итого безнал.: 0.00 [09:03:03]line НДС 0% : 0.00 [09:03:03]line НДС 12% : 0.00 [09:03:03]line НСП 0% : 0.00 [09:03:03]line НСП 1,50% : 0.00 [09:03:03]line НСП 0,50% : 0.00 [09:03:03]line НСП 5% : 0.00 [09:03:03]line НСП 3% : 0.00 [09:03:03]line НСП 2% : 0.00 [09:03:03]line НСП 1% : 0.00 [09:03:03]line ИТОГИ ВОЗВРАТ РАСХОДА [09:03:03]line Чеков: 0 [09:03:03]line Общий итог: 0.00 [09:03:03]line Итого наличными: 0.00 [09:03:03]line Итого безнал.: 0.00 [09:03:03]line НДС 0% : 0.00 [09:03:03]line НДС 12% : 0.00 [09:03:03]line НСП 0% : 0.00 [09:03:03]line НСП 1,50% : 0.00 [09:03:03]line НСП 0,50% : 0.00 [09:03:03]line НСП 5% : 0.00 [09:03:03]line НСП 3% : 0.00 [09:03:03]line НСП 2% : 0.00 [09:03:03]line НСП 1% : 0.00 [09:03:03]line Сумма внесений: 0.00 [09:03:03]line Сумма выплат: 0.00 [09:03:03]line Нал. в кассе: 20073.00 [09:03:03]line НС Приход: 84730346.19 [09:03:03]line НС Возвр.Прихода: 636983.00 [09:03:03]line НС Расход: 0.00 [09:03:03]line НС Возвр.Расхода: 0.00 [09:03:03]line ФМ: 0000000000871811 [09:03:03]written 0, free lines is 4095 [09:03:04]Write to MH i2c: 01 00 00 8F 00 8F [09:03:04]Write i2c OK [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: 01 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: 01 07 00 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 7E 0A 1E [09:03:04]RasterBufferAndPrint [09:03:04]line [09:03:04]line [09:03:04]line [09:03:04]line [09:03:04]line [09:03:04]written 0, free lines is 2720 [09:03:04]MH_Cut [09:03:04]Write to MH i2c: D1 01 00 96 00 01 68 [09:03:04]Write i2c OK [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: D1 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: D1 01 00 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: D1 01 00 96 00 00 67 [09:03:04]Write to MH i2c: 01 00 00 97 00 97 [09:03:04]Write i2c OK [09:03:04]MH_I2C_Read... [09:03:05]*** Cut start [09:03:05]*** Partial cut [09:03:05]*** CUTSNS_PIN = 1 [09:03:05]*** CUTSNS_PIN = 0 [09:03:05]*** Brake cut motor [09:03:05]Read from MH i2c: *** Stop cut motor [09:03:05]01 *** Cut end [09:03:05] [09:03:05]MH_I2C_Read... [09:03:05]Read from MH i2c: 01 07 00 [09:03:05]MH_I2C_Read... [09:03:05]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [09:03:05]process_action x_report done [09:03:05]requested_data is exist [09:03:05]produce_requested_data [09:03:05]requested_item fd.num is exist - process it [09:03:05]SAM_PROTO_GetFieldsCounters [09:03:05]wFMCommunicate request_size=4 [09:03:05]MH_SAM_APDU [09:03:05]CAPDU: 80 13 00 00 [09:03:05]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [09:03:05]Write i2c OK [09:03:05]MH_I2C_Read... [09:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:06]Read from MH i2c: E2 [09:03:06]MH_I2C_Read... [09:03:06]Read from MH i2c: E2 62 00 [09:03:06]MH_I2C_Read... [09:03:06]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [09:03: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:06]wFMCommunicate OK [09:03:06]SAM_PROTO_GetFieldsCounters done [09:03:06]requested_item shift.num is exist - process it [09:03:06]requested_item shift.opened is exist - process it [09:03:06]req_shift_opened [09:03:06]FM_GetShiftState [09:03:06]SAM_PROTO_GetShiftState [09:03:06]wFMCommunicate request_size=4 [09:03:06]MH_SAM_APDU [09:03:06]CAPDU: 80 13 01 00 [09:03:06]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [09:03:06]OFD Sender: No OFD packet to send [09:03:06]Write i2c OK [09:03:06]MH_I2C_Read... [09:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:06]Read from MH i2c: E2 [09:03:06]MH_I2C_Read... [09:03:06]Read from MH i2c: E2 0E 00 [09:03:06]MH_I2C_Read... [09:03:06]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 4F [09:03:06]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:03:06]wFMCommunicate OK [09:03:06]SAM_PROTO_GetShiftState done [09:03:06]FM_GetShiftState done [09:03:06]req_shift_opened done [09:03:06]requested_item shift.open_date is exist - process it [09:03:06]req_shift_open_date [09:03:06]req_shift_open_date done [09:03:06]produce_requested_data done [09:03:06]produce_requested_data return {"fd.num":103623,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [09:03:06]process_action_free x_report [09:03:06]json_value_free [09:03:06]json_value_free done [09:03:06]process_json_proto returns [09:03:06]Send response to host [09:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103623,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [09:03:06]free response buf [09:03:06]execute_script done [09:03:06]execute_script returns [09:03:06]free content buf [09:03:06]Sock 9.Close socket [09:03:06]Sock 9.Thread stoped [09:03:10]recv_with_timeout no data received [09:03:11]OFD Sender: No OFD packet to send [09:03:15]ConnectInit Can't connect to host [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:22]ConnectInit Can't connect to host [09:03:26]OFD Sender: No OFD packet to send [09:03:28]ConnectInit Can't connect to host [09:03:31]OFD Sender: No OFD packet to send [09:03:34]ConnectInit Can't connect to host [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:55]recv_with_timeout no data received [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]recv_with_timeout no data received [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:42]recv_with_timeout no data received [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:12]accept exits with 8 [09:09:12]New connection [09:09:12]New thread 3067600228 created [09:09:12]Thread 3067456868 joined [09:09:12]Waiting for new connection... [09:09:12] Sock 8.Parse request [09:09:12]Sock 8.Check first char [09:09:12]Sock 8.First char is OK [09:09:12]request: POST /json_proto HTTP/1.0 [09:09:12]Method: POST [09:09:12]URL: /json_proto [09:09:12]Method is POST - this is cgi request [09:09:12]url: /json_proto [09:09:12]query_string will be loaded in cgi processing [09:09:12]execute_cgi json_proto POST (null) [09:09:12]execute_cgi path=json_proto method=POST [09:09:12]POST find Content-Length [09:09:12]Host: 172.17.51.67:8080 [09:09:12]Content-Length: 677 [09:09:12]Content-Type: application/json [09:09:12] [09:09:12]POST finish read [09:09:12]Found Content-Length = 677 [09:09:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:12]execute_script... [09:09: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)317828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:12]POST & json_proto [09:09:12]process_json_proto [09:09:12]json parsed OK: [09:09:12]protocol is kg_v1.0 [09:09:12]action value=close_receipt [09:09:12]process_action close_receipt [09:09:12]cmd_close_receipt [09:09:12]MH_GetDate [09:09:12]Write to MH i2c: F0 00 00 9A 00 89 [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: F0 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: F0 09 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: F0 09 00 9A 00 00 38 BD 18 67 1E EF FA 64 71 [09:09:12]GetLastDocTimeStamp 1729674175 [09:09:12]current date 1729674552 [09:09:12]FM_GetShiftState [09:09:12]SAM_PROTO_GetShiftState [09:09:12]wFMCommunicate request_size=4 [09:09:12]MH_SAM_APDU [09:09:12]CAPDU: 80 13 01 00 [09:09:12]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:12]Read from MH i2c: E2 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 0E 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 51 [09:09:12]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:09:12]wFMCommunicate OK [09:09:12]SAM_PROTO_GetShiftState done [09:09:12]FM_GetShiftState done [09:09:12]opened in 1729642861 [09:09:12]opened+sec_in_day 1729729261 [09:09:12]quantity*price = 30038 [09:09:12]sum+1 = 30039 [09:09:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 36 23.10.2024 09:09 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103624 ФПД: 71862966041261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090912&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103624&fm=71862966041261&tin=02508201610067®Number=0000000000091754&sum=30000 [09:09:13]StoreToDocumentArchive [09:09:13]shift 582 fd 103624 [09:09:13]save to /storage/0582/doc_00103624 [09:09:13]save last doc name /storage/0582/doc_00103624 to /storage/kkm_last_doc_name [09:09:13]save OK [09:09:13]Clear old archive folders... [09:09:13]Remove dir /storage/0522 [09:09:13]opendir ok [09:09:13]file . [09:09:13]file .. [09:09:13]file doc_1729674183 [09:09:13]remove file /storage/0522/doc_1729674183 [09:09:13]remove dir /storage/0522 [09:09:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:13]tlvbuf is 01E0E640 [09:09:13]SAM_PROTO_ClearQueue [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 09 00 00 [09:09:13]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [09:09:13]RAPDU: 90 00 [09:09:13]wFMCommunicate OK [09:09:13]SAM_PROTO_ClearQueue done [09:09:13]KKMCreateOFDPacket [09:09:13]OFDProtocolAddRootSTLVToBuf [09:09:13]FM_MakeSignedData [09:09:13]FM_MakeSignedData [09:09:13]SAM_PROTO_SignData [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 0D 01 02 [09:09:13]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [09:09:13]RAPDU: 90 00 [09:09:13]wFMCommunicate OK [09:09:13]wFMCommunicate request_size=255 [09:09:13]MH_SAM_APDU [09:09: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 38 BD 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C8 94 01 00 35 04 06 00 41 [09:09:13]Write to MH i2c: E2 02 01 AA 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 38 BD 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C8 94 01 00 35 04 06 00 41 00 00 1D [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [09:09:13]RAPDU: 90 00 [09:09:13]wFMCommunicate OK [09:09:13]wFMCommunicate request_size=10 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 0D 02 02 05 5B E6 90 3A AD [09:09:13]Write to MH i2c: E2 0D 00 AB 00 80 0D 02 02 05 00 5B E6 90 3A AD 00 00 E7 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [09:09:13]RAPDU: 90 00 [09:09:13]wFMCommunicate OK [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 0D 03 02 [09:09:13]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 0B 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 0B 00 AC 00 00 7F C3 57 5C C2 4A D3 EA 90 00 E6 [09:09:13]RAPDU: 7F C3 57 5C C2 4A D3 EA 90 00 [09:09:13]wFMCommunicate OK [09:09:13]SAM_PROTO_SignData done [09:09:13]FM_MakeSignedData done [09:09:13]CreateOFDProtocolMessage [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 11 00 00 [09:09:13]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 17 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 74 [09:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:09:13]wFMCommunicate OK [09:09:13]CreateOFDProtocolMessage done [09:09:13]OFDSenderStorePacket 103624 [09:09:13]StoreOFDPacket docnum=103624 [09:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 F2 25 07 01 D3 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 38 BD 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C8 94 01 00 35 04 06 00 41 5B E6 90 3A AD 7F C3 57 5C C2 4A D3 EA [09:09:13]CheckFolder [09:09:13]dirname=/storage/ofd_packets [09:09:13]CheckFolder done [09:09:13]ProducePacketName [09:09:13]name=ofd_packets/00103624 [09:09:13]NVStorageSaveData ofd_packets/00103624 [09:09:13]File name is /storage/ofd_packets/00103624 [09:09:13]Write 301 bytes [09:09:13]NVStorageSaveData done [09:09:13]OFDSenderStorePacket done [09:09:13]KKMCreateOFDPacket done [09:09:13]NVStorageSaveData kkm_last_timestamp [09:09:13]File name is /storage/kkm_last_timestamp [09:09:13]Write 4 bytes [09:09:13]NVStorageSaveData done [09:09:13]ExternCall_PrintAddStr [09:09:13]wPrintStart [09:09:13]Write to MH i2c: 01 00 00 AE 00 AE [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 07 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [09:09:13]RasterBufferAndPrint [09:09:13]line Счет N : (1)317828 [09:09:13]line ИНН: 02508201610067 [09:09:13]line Контрольно-Кассовый Чек [09:09:13]line ПРОДАЖА [09:09:13]line ТРК (МРК, ГНК) : 33 [09:09:13]line Товар: 2710124130 [09:09:13]line Аи-92-К-4 [09:09:13]line 4.490 * 66.90 [09:09:13]line = 300.38 [09:09:13]line НДС 12% НСП 1% [09:09:13]line > о реализуемом товаре [09:09:13]line ОКРУГЛЕНИЕ: -0.38 [09:09:13]line ИТОГО: 300.00 [09:09:13]line Внесено: 300.00 [09:09:13]line СДАЧА: 0.00 [09:09:13]line НСП 1% : 2.66 [09:09:13]line НДС 12% : 31.90 [09:09:14]line Наличными: 300.00 [09:09:14]line Безнал.: 0.00 [09:09:14]line Место: АЗС № 145 "Партнер Нефть" [09:09:14]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [09:09:14]line СНО: Общий режим [09:09:14]line Чек 36 23.10.2024 09:09 [09:09:14]line Смена: 582 ФФД: 1.0 [09:09:14]line ЗНМ: 0300000095 [09:09:14]line РНМ: 0000000000091754 [09:09:14]line Версия ККМ: 001 [09:09:14]line ФМ: 0000000000871811 [09:09:14]line ФД: 103624 [09:09:14]line ФПД: 71862966041261 [09:09:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T090912&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103624&fm=71862966041261&tin=02508201610067®Number=0000000000091754&sum=30000 [09:09:14]OFD Sender: Processing packet 103624 [packets to send 498, broken 497] [09:09:14]ProducePacketName [09:09:14]name=ofd_packets/00103624 [09:09:14]OFD Sender: To server: pG, [09:09:14]CommunicateWithHost lk.salyk.kg:30040 [09:09:14]ConnectInit lk.salyk.kg [09:09:14]written 0, free lines is 4095 [09:09:14]Write to MH i2c: 01 00 00 D8 00 D8 [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: 01 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: 01 07 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 D7 0C C2 [09:09:14]RasterBufferAndPrint [09:09:14]line [09:09:14]line [09:09:14]line [09:09:14]line [09:09:14]line [09:09:14]written 0, free lines is 3291 [09:09:14]MH_Cut [09:09:14]Write to MH i2c: D1 01 00 DF 00 01 B1 [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: D1 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: D1 01 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: D1 01 00 DF 00 00 B0 [09:09:14]Write to MH i2c: 01 00 00 E0 00 E0 [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:15]*** Cut start [09:09:15]*** Partial cut [09:09:15]*** CUTSNS_PIN = 1 [09:09:15]*** CUTSNS_PIN = 0 [09:09:15]*** Brake cut motor [09:09:15]Read from MH i2c: 01 [09:09:15]MH_I2C_Read... [09:09:15]*** Stop cut motor [09:09:15]*** Cut end [09:09:15]Read from MH i2c: 01 07 00 [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [09:09:15]process_action close_receipt done [09:09:15]requested_data is exist [09:09:15]produce_requested_data [09:09:15]requested_item fm.sn is exist - process it [09:09:15]wFMCommunicate request_size=4 [09:09:15]MH_SAM_APDU [09:09:15]CAPDU: 80 11 00 00 [09:09:15]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [09:09:15]Write i2c OK [09:09:15]MH_I2C_Read... [09:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:15]Read from MH i2c: E2 [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: E2 17 00 [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 A8 [09:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:09:15]wFMCommunicate OK [09:09:15]requested_item fd.num is exist - process it [09:09:15]SAM_PROTO_GetFieldsCounters [09:09:15]wFMCommunicate request_size=4 [09:09:15]MH_SAM_APDU [09:09:15]CAPDU: 80 13 00 00 [09:09:15]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [09:09:15]Write i2c OK [09:09:15]MH_I2C_Read... [09:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:16]Read from MH i2c: E2 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 62 00 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 62 00 E2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C8 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [09: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C8 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:16]wFMCommunicate OK [09:09:16]SAM_PROTO_GetFieldsCounters done [09:09:16]requested_item shift.num is exist - process it [09:09:16]requested_item shift.opened is exist - process it [09:09:16]req_shift_opened [09:09:16]FM_GetShiftState [09:09:16]SAM_PROTO_GetShiftState [09:09:16]wFMCommunicate request_size=4 [09:09:16]MH_SAM_APDU [09:09:16]CAPDU: 80 13 01 00 [09:09:16]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [09:09:16]Write i2c OK [09:09:16]MH_I2C_Read... [09:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:16]Read from MH i2c: E2 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 0E 00 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 99 [09:09:16]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:09:16]wFMCommunicate OK [09:09:16]SAM_PROTO_GetShiftState done [09:09:16]FM_GetShiftState done [09:09:16]req_shift_opened done [09:09:16]requested_item shift.open_date is exist - process it [09:09:16]req_shift_open_date [09:09:16]req_shift_open_date done [09:09:16]produce_requested_data done [09:09:16]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103624,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [09:09:16]process_action_free close_receipt [09:09:16]json_value_free [09:09:16]json_value_free done [09:09:16]process_json_proto returns [09:09:16]Send response to host [09:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103624,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [09:09:16]free response buf [09:09:16]execute_script done [09:09:16]execute_script returns [09:09:16]free content buf [09:09:16]Sock 8.Close socket [09:09:16]Sock 8.Thread stoped [09:09:19]recv_with_timeout no data received [09:10:33]accept exits with 9 [09:10:33]New connection [09:10:33]New thread 3067456868 created [09:10:33]Thread 3067600228 joined [09:10:33]Waiting for new connection... [09:10:33] Sock 9.Parse request [09:10:33]Sock 9.Check first char [09:10:33]Sock 9.First char is OK [09:10:33]request: POST /json_proto HTTP/1.0 [09:10:33]Method: POST [09:10:33]URL: /json_proto [09:10:33]Method is POST - this is cgi request [09:10:33]url: /json_proto [09:10:33]query_string will be loaded in cgi processing [09:10:33]execute_cgi json_proto POST (null) [09:10:33]execute_cgi path=json_proto method=POST [09:10:33]POST find Content-Length [09:10:33]Host: 172.17.51.67:8080 [09:10:33]Content-Length: 843 [09:10:33]Content-Type: application/json [09:10:33] [09:10:33]POST finish read [09:10:33]Found Content-Length = 843 [09:10:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:33]execute_script... [09:10:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:33]POST & json_proto [09:10:33]process_json_proto [09:10:33]json parsed OK: [09:10:33]protocol is kg_v1.0 [09:10:33]action value=close_receipt [09:10:33]process_action close_receipt [09:10:33]cmd_close_receipt [09:10:33]MH_GetDate [09:10:33]Write to MH i2c: F0 00 00 E4 00 D3 [09:10:33]Write i2c OK [09:10:33]MH_I2C_Read... [09:10:33]Read from MH i2c: F0 [09:10:33]MH_I2C_Read... [09:10:33]Read from MH i2c: F0 09 00 [09:10:33]MH_I2C_Read... [09:10:33]Read from MH i2c: F0 09 00 E4 00 00 89 BD 18 67 1E EF FA 64 0C [09:10:33]GetLastDocTimeStamp 1729674552 [09:10:33]current date 1729674633 [09:10:33]FM_GetShiftState [09:10:33]SAM_PROTO_GetShiftState [09:10:33]wFMCommunicate request_size=4 [09:10:33]MH_SAM_APDU [09:10:33]CAPDU: 80 13 01 00 [09:10:33]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [09:10:33]Write i2c OK [09:10:33]MH_I2C_Read... [09:10:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:33]Read from MH i2c: E2 [09:10:33]MH_I2C_Read... [09:10:33]Read from MH i2c: E2 0E 00 [09:10:33]MH_I2C_Read... [09:10:33]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 9B [09:10:33]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:10:33]wFMCommunicate OK [09:10:33]SAM_PROTO_GetShiftState done [09:10:33]FM_GetShiftState done [09:10:33]opened in 1729642861 [09:10:33]opened+sec_in_day 1729729261 [09:10:33]quantity*price = 200043 [09:10:33]sum+1 = 200044 [09:10:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 37 23.10.2024 09:10 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103625 ФПД: 138784448358816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091034&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103625&fm=138784448358816&tin=02508201610067®Number=0000000000091754&sum=200043 [09:10:34]StoreToDocumentArchive [09:10:34]shift 582 fd 103625 [09:10:34]save to /storage/0582/doc_00103625 [09:10:34]save last doc name /storage/0582/doc_00103625 to /storage/kkm_last_doc_name [09:10:34]save OK [09:10:34]Clear old archive folders... [09:10:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:34]tlvbuf is 01E2E570 [09:10:34]SAM_PROTO_ClearQueue [09:10:34]wFMCommunicate request_size=4 [09:10:34]MH_SAM_APDU [09:10:34]CAPDU: 80 09 00 00 [09:10:34]Write to MH i2c: E2 08 00 F2 00 80 09 00 00 00 00 00 00 64 [09:10:34]Write i2c OK [09:10:34]MH_I2C_Read... [09:10:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:34]Read from MH i2c: E2 [09:10:34]MH_I2C_Read... [09:10:34]Read from MH i2c: E2 03 00 [09:10:34]MH_I2C_Read... [09:10:34]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [09:10:34]RAPDU: 90 00 [09:10:34]wFMCommunicate OK [09:10:34]SAM_PROTO_ClearQueue done [09:10:34]KKMCreateOFDPacket [09:10:34]OFDProtocolAddRootSTLVToBuf [09:10:34]FM_MakeSignedData [09:10:34]FM_MakeSignedData [09:10:34]SAM_PROTO_SignData [09:10:34]wFMCommunicate request_size=4 [09:10:34]MH_SAM_APDU [09:10:34]CAPDU: 80 0D 01 02 [09:10:34]Write to MH i2c: E2 08 00 F3 00 80 0D 01 02 00 00 00 00 6C [09:10:34]Write i2c OK [09:10:34]MH_I2C_Read... [09:10:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:34]Read from MH i2c: E2 [09:10:34]MH_I2C_Read... [09:10:34]Read from MH i2c: E2 03 00 [09:10:34]MH_I2C_Read... [09:10:34]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [09:10:34]RAPDU: 90 00 [09:10:34]wFMCommunicate OK [09:10:34]wFMCommunicate request_size=255 [09:10:34]MH_SAM_APDU [09:10:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8A BD 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C9 94 01 00 35 04 06 00 7E [09:10:34]Write to MH i2c: E2 02 01 F4 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8A BD 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C9 94 01 00 35 04 06 00 7E 00 00 03 [09:10:34]Write i2c OK [09:10:34]MH_I2C_Read... [09:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:34]Read from MH i2c: E2 [09:10:34]MH_I2C_Read... [09:10:34]Read from MH i2c: E2 03 00 [09:10:34]MH_I2C_Read... [09:10:34]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [09:10:34]RAPDU: 90 00 [09:10:34]wFMCommunicate OK [09:10:34]wFMCommunicate request_size=10 [09:10:34]MH_SAM_APDU [09:10:34]CAPDU: 80 0D 02 02 05 39 45 BE A9 A0 [09:10:34]Write to MH i2c: E2 0D 00 F5 00 80 0D 02 02 05 00 39 45 BE A9 A0 00 00 FE [09:10:34]Write i2c OK [09:10:34]MH_I2C_Read... [09:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:34]Read from MH i2c: E2 [09:10:34]MH_I2C_Read... [09:10:34]Read from MH i2c: E2 03 00 [09:10:34]MH_I2C_Read... [09:10:34]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [09:10:34]RAPDU: 90 00 [09:10:34]wFMCommunicate OK [09:10:34]wFMCommunicate request_size=4 [09:10:34]MH_SAM_APDU [09:10:34]CAPDU: 80 0D 03 02 [09:10:34]Write to MH i2c: E2 08 00 F6 00 80 0D 03 02 00 00 00 00 71 [09:10:34]Write i2c OK [09:10:34]MH_I2C_Read... [09:10:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:34]Read from MH i2c: E2 [09:10:34]MH_I2C_Read... [09:10:34]Read from MH i2c: E2 0B 00 [09:10:34]MH_I2C_Read... [09:10:34]Read from MH i2c: E2 0B 00 F6 00 00 80 43 A2 79 5E A8 FB BE 90 00 0F [09:10:34]RAPDU: 80 43 A2 79 5E A8 FB BE 90 00 [09:10:34]wFMCommunicate OK [09:10:34]SAM_PROTO_SignData done [09:10:34]FM_MakeSignedData done [09:10:34]CreateOFDProtocolMessage [09:10:34]wFMCommunicate request_size=4 [09:10:34]MH_SAM_APDU [09:10:34]CAPDU: 80 11 00 00 [09:10:34]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [09:10:34]Write i2c OK [09:10:34]MH_I2C_Read... [09:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:35]Read from MH i2c: E2 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: E2 17 00 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 BE [09:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:10:35]wFMCommunicate OK [09:10:35]CreateOFDProtocolMessage done [09:10:35]OFDSenderStorePacket 103625 [09:10:35]StoreOFDPacket docnum=103625 [09:10:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 0A 0C 07 01 DD 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8A BD 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C9 94 01 00 35 04 06 00 7E 39 45 BE A9 A0 80 43 A2 79 5E A8 FB BE [09:10:35]CheckFolder [09:10:35]dirname=/storage/ofd_packets [09:10:35]CheckFolder done [09:10:35]ProducePacketName [09:10:35]name=ofd_packets/00103625 [09:10:35]NVStorageSaveData ofd_packets/00103625 [09:10:35]File name is /storage/ofd_packets/00103625 [09:10:35]Write 301 bytes [09:10:35]NVStorageSaveData done [09:10:35]OFDSenderStorePacket done [09:10:35]KKMCreateOFDPacket done [09:10:35]NVStorageSaveData kkm_last_timestamp [09:10:35]File name is /storage/kkm_last_timestamp [09:10:35]Write 4 bytes [09:10:35]NVStorageSaveData done [09:10:35]ExternCall_PrintAddStr [09:10:35]wPrintStart [09:10:35]Write to MH i2c: 01 00 00 F8 00 F8 [09:10:35]Write i2c OK [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: 01 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: 01 07 00 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [09:10:35]RasterBufferAndPrint [09:10:35]line Счет N : (1)317827 [09:10:35]line ИНН: 02508201610067 [09:10:35]line Контрольно-Кассовый Чек [09:10:35]line ПРОДАЖА [09:10:35]line ТРК (МРК, ГНК) : 54 [09:10:35]line Товар: 2710124500 [09:10:35]line Аи-95-К-5 [09:10:35]line 26.960 * 74.20 [09:10:35]line = 2000.43 [09:10:35]line НДС 12% НСП 1% [09:10:35]line > о реализуемом товаре [09:10:35]line ИТОГО: 2000.43 [09:10:35]line НСП 1% : 17.70 [09:10:35]line НДС 12% : 212.43 [09:10:35]line Наличными: 0.00 [09:10:35]line Безнал.: 2000.43 [09:10:35]line Место: АЗС № 145 "Партнер Нефть" [09:10:35]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [09:10:35]line СНО: Общий режим [09:10:35]line Чек 37 23.10.2024 09:10 [09:10:35]line Смена: 582 ФФД: 1.0 [09:10:35]line ЗНМ: 0300000095 [09:10:35]line РНМ: 0000000000091754 [09:10:35]line Версия ККМ: 001 [09:10:35]line Платежная система: АКБ Кыргызстан [09:10:35]line ФМ: 0000000000871811 [09:10:35]line ФД: 103625 [09:10:35]line ФПД: 138784448358816 [09:10:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091034&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103625&fm=138784448358816&tin=02508201610067®Number=0000000000091754&sum=200043 [09:10:35]written 0, free lines is 4095 [09:10:35]Write to MH i2c: 01 00 00 21 01 22 [09:10:35]Write i2c OK [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: 01 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: 01 07 00 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: 01 07 00 21 01 00 00 00 00 00 E3 0C 18 [09:10:35]RasterBufferAndPrint [09:10:35]line [09:10:35]line [09:10:35]line [09:10:35]line [09:10:35]line [09:10:35]written 0, free lines is 3305 [09:10:35]MH_Cut [09:10:35]Write to MH i2c: D1 01 00 28 01 01 FB [09:10:35]Write i2c OK [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: D1 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: D1 01 00 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: D1 01 00 28 01 00 FA [09:10:35]Write to MH i2c: 01 00 00 29 01 2A [09:10:35]Write i2c OK [09:10:35]MH_I2C_Read... [09:10:36]*** Cut start [09:10:36]*** Partial cut [09:10:36]*** CUTSNS_PIN = 1 [09:10:36]*** CUTSNS_PIN = 0 [09:10:36]*** Brake cut motor [09:10:36]Read from MH i2c: 01 [09:10:36]MH_I2C_Read... [09:10:36]*** Stop cut motor [09:10:36]*** Cut end [09:10:36]Read from MH i2c: 01 07 00 [09:10:36]MH_I2C_Read... [09:10:36]Read from MH i2c: 01 07 00 29 01 00 00 00 00 00 FF 0F 3F [09:10:36]process_action close_receipt done [09:10:36]requested_data is exist [09:10:36]produce_requested_data [09:10:36]requested_item fm.sn is exist - process it [09:10:36]wFMCommunicate request_size=4 [09:10:36]MH_SAM_APDU [09:10:36]CAPDU: 80 11 00 00 [09:10:36]Write to MH i2c: E2 08 00 2A 01 80 11 00 00 00 00 00 00 A5 [09:10:36]Write i2c OK [09:10:36]MH_I2C_Read... [09:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:36]Read from MH i2c: E2 [09:10:36]MH_I2C_Read... [09:10:36]Read from MH i2c: E2 17 00 [09:10:36]MH_I2C_Read... [09:10:36]Read from MH i2c: E2 17 00 2A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 F2 [09:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:10:36]wFMCommunicate OK [09:10:36]requested_item fd.num is exist - process it [09:10:36]SAM_PROTO_GetFieldsCounters [09:10:36]wFMCommunicate request_size=4 [09:10:36]MH_SAM_APDU [09:10:36]CAPDU: 80 13 00 00 [09:10:36]Write to MH i2c: E2 08 00 2B 01 80 13 00 00 00 00 00 00 A8 [09:10:36]Write i2c OK [09:10:36]MH_I2C_Read... [09:10:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:37]Read from MH i2c: E2 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 62 00 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 62 00 2B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C9 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [09:10: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 C9 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:37]wFMCommunicate OK [09:10:37]SAM_PROTO_GetFieldsCounters done [09:10:37]requested_item shift.num is exist - process it [09:10:37]requested_item shift.opened is exist - process it [09:10:37]req_shift_opened [09:10:37]FM_GetShiftState [09:10:37]SAM_PROTO_GetShiftState [09:10:37]wFMCommunicate request_size=4 [09:10:37]MH_SAM_APDU [09:10:37]CAPDU: 80 13 01 00 [09:10:37]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [09:10:37]Write i2c OK [09:10:37]MH_I2C_Read... [09:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:37]Read from MH i2c: E2 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 0E 00 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 0E 00 2C 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 E3 [09:10:37]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:10:37]wFMCommunicate OK [09:10:37]SAM_PROTO_GetShiftState done [09:10:37]FM_GetShiftState done [09:10:37]req_shift_opened done [09:10:37]requested_item shift.open_date is exist - process it [09:10:37]req_shift_open_date [09:10:37]req_shift_open_date done [09:10:37]produce_requested_data done [09:10:37]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103625,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [09:10:37]process_action_free close_receipt [09:10:37]json_value_free [09:10:37]json_value_free done [09:10:37]process_json_proto returns [09:10:37]Send response to host [09:10:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103625,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [09:10:37]free response buf [09:10:37]execute_script done [09:10:37]execute_script returns [09:10:37]free content buf [09:10:37]Sock 9.Close socket [09:10:37]Sock 9.Thread stoped [09:10:49]recv_with_timeout no data received [09:11:27]ConnectInit Can't connect to host [09:11:27]CommunicateWithHost connect error [09:11:27]CommunicateWithHost err = -1 [09:11:27]OFD Sender: Server communicate error [09:11:27]OFD Sender: Processing packet 103624 [packets to send 499, broken 497] [09:11:27]ProducePacketName [09:11:27]name=ofd_packets/00103624 [09:11:27]OFD Sender: To server: pG, [09:11:27]CommunicateWithHost lk.salyk.kg:30040 [09:11:27]ConnectInit lk.salyk.kg [09:13:40]ConnectInit Can't connect to host [09:13:40]CommunicateWithHost connect error [09:13:40]CommunicateWithHost err = -1 [09:13:40]OFD Sender: Server communicate error [09:13:45]OFD Sender: Processing packet 103624 [packets to send 499, broken 497] [09:13:45]ProducePacketName [09:13:45]name=ofd_packets/00103624 [09:13:45]OFD Sender: To server: pG, [09:13:45]CommunicateWithHost lk.salyk.kg:30040 [09:13:45]ConnectInit lk.salyk.kg [09:13:46]Connected sock=10 [09:13: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 31 31 0F 01 00 00 F2 25 07 01 D3 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 38 BD 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C8 94 01 00 35 04 06 00 41 5B E6 90 3A AD 7F C3 57 5C C2 4A D3 EA [09:13: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 31 31 4F 00 00 00 31 B6 47 00 2D 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 31 31 10 04 04 00 C8 94 01 00 F4 03 04 00 5F 65 18 67 B6 04 01 00 00 D2 6B 2E 00 83 EA 28 24 [09:13:47]CommunicateWithHost err = 0 [09:13:47]CheckOFDResponse [09:13:47]1017 (14) - 77093643461234 [09:13:47]1041 (16) - 0000000000871811 [09:13:47]1040 (4) - 103624 [09:13:47]1012 (4) - 23.10.2024 02:54 [09:13:47]1206 (1) - 0 [09:13:47]OFD Sender: Remove packet 103624 [09:13:47]ProducePacketName [09:13:47]name=ofd_packets/00103624 [09:13:47]NVStorageDeleteData [09:13:48]OFD Sender: Processing packet 103625 [packets to send 498, broken 497] [09:13:48]ProducePacketName [09:13:48]name=ofd_packets/00103625 [09:13:48]OFD Sender: To server: pG, [09:13:48]CommunicateWithHost lk.salyk.kg:30040 [09:13:48]ConnectInit lk.salyk.kg [09:13:48]Connected sock=9 [09:13: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 31 31 0F 01 00 00 0A 0C 07 01 DD 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8A BD 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C9 94 01 00 35 04 06 00 7E 39 45 BE A9 A0 80 43 A2 79 5E A8 FB BE [09:13: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 31 31 4F 00 00 00 0A 3C 47 00 7F C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 C9 94 01 00 F4 03 04 00 62 65 18 67 B6 04 01 00 00 F8 1B BD 52 06 27 61 BD [09:13:49]CommunicateWithHost err = 0 [09:13:49]CheckOFDResponse [09:13:49]1017 (14) - 77093643461234 [09:13:49]1041 (16) - 0000000000871811 [09:13:49]1040 (4) - 103625 [09:13:49]1012 (4) - 23.10.2024 02:54 [09:13:49]1206 (1) - 0 [09:13:49]OFD Sender: Remove packet 103625 [09:13:49]ProducePacketName [09:13:49]name=ofd_packets/00103625 [09:13:49]NVStorageDeleteData [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]accept exits with 8 [09:15:10]New connection [09:15:10]New thread 3067600228 created [09:15:10]Thread 3067456868 joined [09:15:10]Waiting for new connection... [09:15:10] Sock 8.Parse request [09:15:10]Sock 8.Check first char [09:15:10]Sock 8.First char is OK [09:15:10]request: POST /json_proto HTTP/1.0 [09:15:10]Method: POST [09:15:10]URL: /json_proto [09:15:10]Method is POST - this is cgi request [09:15:10]url: /json_proto [09:15:10]query_string will be loaded in cgi processing [09:15:10]execute_cgi json_proto POST (null) [09:15:10]execute_cgi path=json_proto method=POST [09:15:10]POST find Content-Length [09:15:10]Host: 172.17.51.67:8080 [09:15:10]Content-Length: 682 [09:15:10]Content-Type: application/json [09:15:10] [09:15:10]POST finish read [09:15:10]Found Content-Length = 682 [09:15:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:10]execute_script... [09:15:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:10]POST & json_proto [09:15:10]process_json_proto [09:15:10]json parsed OK: [09:15:10]protocol is kg_v1.0 [09:15:10]action value=close_receipt [09:15:10]process_action close_receipt [09:15:10]cmd_close_receipt [09:15:10]MH_GetDate [09:15:10]Write to MH i2c: F0 00 00 2D 01 1D [09:15:10]Write i2c OK [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: F0 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: F0 09 00 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: F0 09 00 2D 01 00 9E BE 18 67 1E EF FA 64 6C [09:15:10]GetLastDocTimeStamp 1729674634 [09:15:10]current date 1729674910 [09:15:10]FM_GetShiftState [09:15:10]SAM_PROTO_GetShiftState [09:15:10]wFMCommunicate request_size=4 [09:15:10]MH_SAM_APDU [09:15:10]CAPDU: 80 13 01 00 [09:15:10]Write to MH i2c: E2 08 00 2E 01 80 13 01 00 00 00 00 00 AC [09:15:10]Write i2c OK [09:15:10]MH_I2C_Read... [09:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:10]Read from MH i2c: E2 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 0E 00 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 0E 00 2E 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 E5 [09:15:10]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:15:10]wFMCommunicate OK [09:15:10]SAM_PROTO_GetShiftState done [09:15:10]FM_GetShiftState done [09:15:10]opened in 1729642861 [09:15:10]opened+sec_in_day 1729729261 [09:15:10]quantity*price = 300046 [09:15:10]sum+1 = 300048 [09:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 38 23.10.2024 09:15 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103626 ФПД: 229144146670698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091510&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103626&fm=229144146670698&tin=02508201610067®Number=0000000000091754&sum=300000 [09:15:11]StoreToDocumentArchive [09:15:11]shift 582 fd 103626 [09:15:11]save to /storage/0582/doc_00103626 [09:15:11]save last doc name /storage/0582/doc_00103626 to /storage/kkm_last_doc_name [09:15:11]save OK [09:15:11]Clear old archive folders... [09:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:11]tlvbuf is 01E29A80 [09:15:11]SAM_PROTO_ClearQueue [09:15:11]wFMCommunicate request_size=4 [09:15:11]MH_SAM_APDU [09:15:11]CAPDU: 80 09 00 00 [09:15:11]Write to MH i2c: E2 08 00 3B 01 80 09 00 00 00 00 00 00 AE [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:11]Read from MH i2c: E2 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 03 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [09:15:11]RAPDU: 90 00 [09:15:11]wFMCommunicate OK [09:15:11]SAM_PROTO_ClearQueue done [09:15:11]KKMCreateOFDPacket [09:15:11]OFDProtocolAddRootSTLVToBuf [09:15:11]FM_MakeSignedData [09:15:11]FM_MakeSignedData [09:15:11]SAM_PROTO_SignData [09:15:11]wFMCommunicate request_size=4 [09:15:11]MH_SAM_APDU [09:15:11]CAPDU: 80 0D 01 02 [09:15:11]Write to MH i2c: E2 08 00 3C 01 80 0D 01 02 00 00 00 00 B6 [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:11]Read from MH i2c: E2 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 03 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [09:15:11]RAPDU: 90 00 [09:15:11]wFMCommunicate OK [09:15:11]wFMCommunicate request_size=255 [09:15:11]MH_SAM_APDU [09:15:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 9E BE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CA 94 01 00 35 04 06 00 D0 [09:15:11]Write to MH i2c: E2 02 01 3D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 9E BE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CA 94 01 00 35 04 06 00 D0 00 00 40 [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:11]Read from MH i2c: E2 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 03 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [09:15:11]RAPDU: 90 00 [09:15:11]wFMCommunicate OK [09:15:11]wFMCommunicate request_size=10 [09:15:11]MH_SAM_APDU [09:15:11]CAPDU: 80 0D 02 02 05 67 C7 76 F4 6A [09:15:11]Write to MH i2c: E2 0D 00 3E 01 80 0D 02 02 05 00 67 C7 76 F4 6A 00 00 C5 [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:11]Read from MH i2c: E2 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 03 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [09:15:11]RAPDU: 90 00 [09:15:11]wFMCommunicate OK [09:15:11]wFMCommunicate request_size=4 [09:15:11]MH_SAM_APDU [09:15:11]CAPDU: 80 0D 03 02 [09:15:11]Write to MH i2c: E2 08 00 3F 01 80 0D 03 02 00 00 00 00 BB [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:11]Read from MH i2c: E2 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 0B 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 0B 00 3F 01 00 21 51 1D B8 96 CA 4C 42 90 00 F1 [09:15:11]RAPDU: 21 51 1D B8 96 CA 4C 42 90 00 [09:15:11]wFMCommunicate OK [09:15:11]SAM_PROTO_SignData done [09:15:11]FM_MakeSignedData done [09:15:11]CreateOFDProtocolMessage [09:15:11]wFMCommunicate request_size=4 [09:15:11]MH_SAM_APDU [09:15:11]CAPDU: 80 11 00 00 [09:15:11]Write to MH i2c: E2 08 00 40 01 80 11 00 00 00 00 00 00 BB [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:11]Read from MH i2c: E2 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 17 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 17 00 40 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 08 [09:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:15:11]wFMCommunicate OK [09:15:11]CreateOFDProtocolMessage done [09:15:11]OFDSenderStorePacket 103626 [09:15:11]StoreOFDPacket docnum=103626 [09:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 CC D7 07 01 F4 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 9E BE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CA 94 01 00 35 04 06 00 D0 67 C7 76 F4 6A 21 51 1D B8 96 CA 4C 42 [09:15:11]CheckFolder [09:15:11]dirname=/storage/ofd_packets [09:15:11]CheckFolder done [09:15:11]ProducePacketName [09:15:11]name=ofd_packets/00103626 [09:15:11]NVStorageSaveData ofd_packets/00103626 [09:15:11]File name is /storage/ofd_packets/00103626 [09:15:11]Write 301 bytes [09:15:11]NVStorageSaveData done [09:15:11]OFDSenderStorePacket done [09:15:11]KKMCreateOFDPacket done [09:15:11]NVStorageSaveData kkm_last_timestamp [09:15:11]File name is /storage/kkm_last_timestamp [09:15:11]Write 4 bytes [09:15:11]NVStorageSaveData done [09:15:11]ExternCall_PrintAddStr [09:15:11]wPrintStart [09:15:11]Write to MH i2c: 01 00 00 41 01 42 [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: 01 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: 01 07 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [09:15:11]RasterBufferAndPrint [09:15:11]line Счет N : (1)317829 [09:15:11]line ИНН: 02508201610067 [09:15:11]line Контрольно-Кассовый Чек [09:15:11]line ПРОДАЖА [09:15:11]line ТРК (МРК, ГНК) : 43 [09:15:11]line Товар: 2710124130 [09:15:11]line Аи-92-К-4 [09:15:11]line 44.850 * 66.90 [09:15:11]line = 3000.47 [09:15:11]line НДС 12% НСП 1% [09:15:11]line > о реализуемом товаре [09:15:11]line ОКРУГЛЕНИЕ: -0.47 [09:15:11]line ИТОГО: 3000.00 [09:15:11]line Внесено: 3000.00 [09:15:11]line СДАЧА: 0.00 [09:15:11]line НСП 1% : 26.55 [09:15:11]line НДС 12% : 318.63 [09:15:11]line Наличными: 3000.00 [09:15:11]line Безнал.: 0.00 [09:15:11]line Место: АЗС № 145 "Партнер Нефть" [09:15:11]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [09:15:11]line СНО: Общий режим [09:15:11]line Чек 38 23.10.2024 09:15 [09:15:11]line Смена: 582 ФФД: 1.0 [09:15:11]line ЗНМ: 0300000095 [09:15:11]line РНМ: 0000000000091754 [09:15:11]line Версия ККМ: 001 [09:15:11]line ФМ: 0000000000871811 [09:15:11]line ФД: 103626 [09:15:11]line ФПД: 229144146670698 [09:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091510&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103626&fm=229144146670698&tin=02508201610067®Number=0000000000091754&sum=300000 [09:15:11]written 0, free lines is 4095 [09:15:11]OFD Sender: Processing packet 103626 [packets to send 498, broken 497] [09:15:11]ProducePacketName [09:15:11]name=ofd_packets/00103626 [09:15:11]OFD Sender: To server: pG, [09:15:11]CommunicateWithHost lk.salyk.kg:30040 [09:15:11]ConnectInit lk.salyk.kg [09:15:12]Write to MH i2c: 01 00 00 6B 01 6C [09:15:12]Write i2c OK [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: 01 [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: 01 07 00 [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: 01 07 00 6B 01 00 00 00 00 00 D4 0C 53 [09:15:12]RasterBufferAndPrint [09:15:12]line [09:15:12]line [09:15:12]line [09:15:12]line [09:15:12]line [09:15:12]written 0, free lines is 3290 [09:15:12]MH_Cut [09:15:12]Write to MH i2c: D1 01 00 72 01 01 45 [09:15:12]Write i2c OK [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: D1 [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: D1 01 00 [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: D1 01 00 72 01 00 44 [09:15:12]Write to MH i2c: 01 00 00 73 01 74 [09:15:12]Write i2c OK [09:15:12]MH_I2C_Read... [09:15:13]*** Cut start [09:15:13]*** Partial cut [09:15:13]*** CUTSNS_PIN = 1 [09:15:13]*** CUTSNS_PIN = 0 [09:15:13]*** Brake cut motor [09:15:13]Read from MH i2c: 01 [09:15:13]MH_I2C_Read... [09:15:13]*** Stop cut motor [09:15:13]*** Cut end [09:15:13]Read from MH i2c: 01 07 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: 01 07 00 73 01 00 00 00 00 00 FF 0F 89 [09:15:13]process_action close_receipt done [09:15:13]requested_data is exist [09:15:13]produce_requested_data [09:15:13]requested_item fm.sn is exist - process it [09:15:13]wFMCommunicate request_size=4 [09:15:13]MH_SAM_APDU [09:15:13]CAPDU: 80 11 00 00 [09:15:13]Write to MH i2c: E2 08 00 74 01 80 11 00 00 00 00 00 00 EF [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:13]Read from MH i2c: E2 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 17 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 17 00 74 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 3C [09:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:15:13]wFMCommunicate OK [09:15:13]requested_item fd.num is exist - process it [09:15:13]SAM_PROTO_GetFieldsCounters [09:15:13]wFMCommunicate request_size=4 [09:15:13]MH_SAM_APDU [09:15:13]CAPDU: 80 13 00 00 [09:15:13]Write to MH i2c: E2 08 00 75 01 80 13 00 00 00 00 00 00 F2 [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:13]Read from MH i2c: E2 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 62 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 62 00 75 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 CA 94 01 00 0E 04 04 00 46 02 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 27 [09:15: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 CA 94 01 00 0E 04 04 00 46 02 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 [09:15:13]wFMCommunicate OK [09:15:13]SAM_PROTO_GetFieldsCounters done [09:15:13]requested_item shift.num is exist - process it [09:15:13]requested_item shift.opened is exist - process it [09:15:13]req_shift_opened [09:15:13]FM_GetShiftState [09:15:13]SAM_PROTO_GetShiftState [09:15:13]wFMCommunicate request_size=4 [09:15:13]MH_SAM_APDU [09:15:13]CAPDU: 80 13 01 00 [09:15:13]Write to MH i2c: E2 08 00 76 01 80 13 01 00 00 00 00 00 F4 [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:13]Read from MH i2c: E2 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 0E 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 0E 00 76 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 2D [09:15:13]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:15:13]wFMCommunicate OK [09:15:13]SAM_PROTO_GetShiftState done [09:15:13]FM_GetShiftState done [09:15:13]req_shift_opened done [09:15:13]requested_item shift.open_date is exist - process it [09:15:13]req_shift_open_date [09:15:13]req_shift_open_date done [09:15:13]produce_requested_data done [09:15:13]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103626,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [09:15:13]process_action_free close_receipt [09:15:13]json_value_free [09:15:13]json_value_free done [09:15:13]process_json_proto returns [09:15:13]Send response to host [09:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103626,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [09:15:13]free response buf [09:15:13]execute_script done [09:15:13]execute_script returns [09:15:13]free content buf [09:15:13]Sock 8.Close socket [09:15:13]Sock 8.Thread stoped [09:15:16]ConnectInit Can't take IP for lk.salyk.kg [09:15:16]CommunicateWithHost connect error [09:15:16]CommunicateWithHost err = -1 [09:15:16]OFD Sender: Server communicate error [09:15:21]OFD Sender: Processing packet 103626 [packets to send 498, broken 497] [09:15:21]ProducePacketName [09:15:21]name=ofd_packets/00103626 [09:15:21]OFD Sender: To server: pG, [09:15:21]CommunicateWithHost lk.salyk.kg:30040 [09:15:21]ConnectInit lk.salyk.kg [09:15:22]Connected sock=8 [09:15: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 31 31 0F 01 00 00 CC D7 07 01 F4 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 9E BE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CA 94 01 00 35 04 06 00 D0 67 C7 76 F4 6A 21 51 1D B8 96 CA 4C 42 [09:15: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 31 31 4F 00 00 00 E7 14 47 00 60 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 31 31 10 04 04 00 CA 94 01 00 F4 03 04 00 BF 65 18 67 B6 04 01 00 00 3D 16 CB C8 36 4F 94 4D [09:15:22]CommunicateWithHost err = 0 [09:15:22]CheckOFDResponse [09:15:22]1017 (14) - 77093643461234 [09:15:22]1041 (16) - 0000000000871811 [09:15:22]1040 (4) - 103626 [09:15:22]1012 (4) - 23.10.2024 02:55 [09:15:22]1206 (1) - 0 [09:15:22]OFD Sender: Remove packet 103626 [09:15:22]ProducePacketName [09:15:22]name=ofd_packets/00103626 [09:15:22]NVStorageDeleteData [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:49]accept exits with 9 [09:15:49]New connection [09:15:49]New thread 3067456868 created [09:15:49]Thread 3067600228 joined [09:15:49]Waiting for new connection... [09:15:49] Sock 9.Parse request [09:15:49]Sock 9.Check first char [09:15:49]Sock 9.First char is OK [09:15:49]request: POST /json_proto HTTP/1.0 [09:15:49]Method: POST [09:15:49]URL: /json_proto [09:15:49]Method is POST - this is cgi request [09:15:49]url: /json_proto [09:15:49]query_string will be loaded in cgi processing [09:15:49]execute_cgi json_proto POST (null) [09:15:49]execute_cgi path=json_proto method=POST [09:15:49]POST find Content-Length [09:15:49]Host: 172.17.51.67:8080 [09:15:49]Content-Length: 677 [09:15:49]Content-Type: application/json [09:15:49] [09:15:49]POST finish read [09:15:49]Found Content-Length = 677 [09:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:49]execute_script... [09:15: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)317830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:49]POST & json_proto [09:15:49]process_json_proto [09:15:49]json parsed OK: [09:15:49]protocol is kg_v1.0 [09:15:49]action value=close_receipt [09:15:49]process_action close_receipt [09:15:49]cmd_close_receipt [09:15:49]MH_GetDate [09:15:49]Write to MH i2c: F0 00 00 77 01 67 [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: F0 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: F0 09 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: F0 09 00 77 01 00 C6 BE 18 67 1E EF FA 64 DE [09:15:49]GetLastDocTimeStamp 1729674910 [09:15:49]current date 1729674950 [09:15:49]FM_GetShiftState [09:15:49]SAM_PROTO_GetShiftState [09:15:49]wFMCommunicate request_size=4 [09:15:49]MH_SAM_APDU [09:15:49]CAPDU: 80 13 01 00 [09:15:49]Write to MH i2c: E2 08 00 78 01 80 13 01 00 00 00 00 00 F6 [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:49]Read from MH i2c: E2 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 0E 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 0E 00 78 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 2F [09:15:49]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:15:49]wFMCommunicate OK [09:15:49]SAM_PROTO_GetShiftState done [09:15:49]FM_GetShiftState done [09:15:49]opened in 1729642861 [09:15:49]opened+sec_in_day 1729729261 [09:15:49]quantity*price = 60027 [09:15:49]sum+1 = 60029 [09:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 39 23.10.2024 09:15 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103627 ФПД: 233717288002834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091550&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103627&fm=233717288002834&tin=02508201610067®Number=0000000000091754&sum=60000 [09:15:50]StoreToDocumentArchive [09:15:50]shift 582 fd 103627 [09:15:50]save to /storage/0582/doc_00103627 [09:15:50]save last doc name /storage/0582/doc_00103627 to /storage/kkm_last_doc_name [09:15:50]save OK [09:15:50]Clear old archive folders... [09:15:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:50]tlvbuf is 01E24E40 [09:15:50]SAM_PROTO_ClearQueue [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 09 00 00 [09:15:50]Write to MH i2c: E2 08 00 85 01 80 09 00 00 00 00 00 00 F8 [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 85 01 00 90 00 FA [09:15:50]RAPDU: 90 00 [09:15:50]wFMCommunicate OK [09:15:50]SAM_PROTO_ClearQueue done [09:15:50]KKMCreateOFDPacket [09:15:50]OFDProtocolAddRootSTLVToBuf [09:15:50]FM_MakeSignedData [09:15:50]FM_MakeSignedData [09:15:50]SAM_PROTO_SignData [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 0D 01 02 [09:15:50]Write to MH i2c: E2 08 00 86 01 80 0D 01 02 00 00 00 00 00 [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [09:15:50]RAPDU: 90 00 [09:15:50]wFMCommunicate OK [09:15:50]wFMCommunicate request_size=255 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C6 BE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CB 94 01 00 35 04 06 00 D4 [09:15:50]Write to MH i2c: E2 02 01 87 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C6 BE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CB 94 01 00 35 04 06 00 D4 00 00 8E [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [09:15:50]RAPDU: 90 00 [09:15:50]wFMCommunicate OK [09:15:50]wFMCommunicate request_size=10 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 0D 02 02 05 90 8B ED E5 12 [09:15:50]Write to MH i2c: E2 0D 00 88 01 80 0D 02 02 05 00 90 8B ED E5 12 00 00 0C [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [09:15:50]RAPDU: 90 00 [09:15:50]wFMCommunicate OK [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 0D 03 02 [09:15:50]Write to MH i2c: E2 08 00 89 01 80 0D 03 02 00 00 00 00 05 [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 0B 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 0B 00 89 01 00 6D 24 C3 D1 F6 21 D1 E6 90 00 F9 [09:15:50]RAPDU: 6D 24 C3 D1 F6 21 D1 E6 90 00 [09:15:50]wFMCommunicate OK [09:15:50]SAM_PROTO_SignData done [09:15:50]FM_MakeSignedData done [09:15:50]CreateOFDProtocolMessage [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 11 00 00 [09:15:50]Write to MH i2c: E2 08 00 8A 01 80 11 00 00 00 00 00 00 05 [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:51]Read from MH i2c: E2 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 17 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 17 00 8A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 52 [09:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:15:51]wFMCommunicate OK [09:15:51]CreateOFDProtocolMessage done [09:15:51]OFDSenderStorePacket 103627 [09:15:51]StoreOFDPacket docnum=103627 [09:15:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 27 C0 07 01 0C F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C6 BE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CB 94 01 00 35 04 06 00 D4 90 8B ED E5 12 6D 24 C3 D1 F6 21 D1 E6 [09:15:51]CheckFolder [09:15:51]dirname=/storage/ofd_packets [09:15:51]CheckFolder done [09:15:51]ProducePacketName [09:15:51]name=ofd_packets/00103627 [09:15:51]NVStorageSaveData ofd_packets/00103627 [09:15:51]File name is /storage/ofd_packets/00103627 [09:15:51]Write 301 bytes [09:15:51]NVStorageSaveData done [09:15:51]OFDSenderStorePacket done [09:15:51]KKMCreateOFDPacket done [09:15:51]NVStorageSaveData kkm_last_timestamp [09:15:51]File name is /storage/kkm_last_timestamp [09:15:51]Write 4 bytes [09:15:51]NVStorageSaveData done [09:15:51]ExternCall_PrintAddStr [09:15:51]wPrintStart [09:15:51]Write to MH i2c: 01 00 00 8B 01 8C [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 07 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [09:15:51]RasterBufferAndPrint [09:15:51]line Счет N : (1)317830 [09:15:51]line ИНН: 02508201610067 [09:15:51]line Контрольно-Кассовый Чек [09:15:51]line ПРОДАЖА [09:15:51]line ТРК (МРК, ГНК) : 64 [09:15:51]line Товар: 2710124500 [09:15:51]line Аи-95-К-5 [09:15:51]line 8.090 * 74.20 [09:15:51]line = 600.28 [09:15:51]line НДС 12% НСП 1% [09:15:51]line > о реализуемом товаре [09:15:51]line ОКРУГЛЕНИЕ: -0.28 [09:15:51]line ИТОГО: 600.00 [09:15:51]line Внесено: 600.00 [09:15:51]line СДАЧА: 0.00 [09:15:51]line НСП 1% : 5.31 [09:15:51]line НДС 12% : 63.75 [09:15:51]line Наличными: 600.00 [09:15:51]line Безнал.: 0.00 [09:15:51]line Место: АЗС № 145 "Партнер Нефть" [09:15:51]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [09:15:51]line СНО: Общий режим [09:15:51]line Чек 39 23.10.2024 09:15 [09:15:51]line Смена: 582 ФФД: 1.0 [09:15:51]line ЗНМ: 0300000095 [09:15:51]line РНМ: 0000000000091754 [09:15:51]line Версия ККМ: 001 [09:15:51]line ФМ: 0000000000871811 [09:15:51]line ФД: 103627 [09:15:51]line ФПД: 233717288002834 [09:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091550&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103627&fm=233717288002834&tin=02508201610067®Number=0000000000091754&sum=60000 [09:15:51]OFD Sender: Processing packet 103627 [packets to send 498, broken 497] [09:15:51]ProducePacketName [09:15:51]name=ofd_packets/00103627 [09:15:51]OFD Sender: To server: pG, [09:15:51]CommunicateWithHost lk.salyk.kg:30040 [09:15:51]ConnectInit lk.salyk.kg [09:15:51]written 0, free lines is 4095 [09:15:51]Write to MH i2c: 01 00 00 B5 01 B6 [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 07 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 07 00 B5 01 00 00 00 00 00 DC 0C A5 [09:15:51]RasterBufferAndPrint [09:15:51]line [09:15:51]line [09:15:51]line [09:15:51]line [09:15:51]line [09:15:51]written 0, free lines is 3299 [09:15:51]MH_Cut [09:15:51]Write to MH i2c: D1 01 00 BC 01 01 8F [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: D1 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: D1 01 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: D1 01 00 BC 01 00 8E [09:15:51]Write to MH i2c: 01 00 00 BD 01 BE [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:52]*** Cut start [09:15:52]*** Partial cut [09:15:52]*** CUTSNS_PIN = 1 [09:15:52]*** CUTSNS_PIN = 0 [09:15:52]*** Brake cut motor [09:15:52]Read from MH i2c: 01 [09:15:52]MH_I2C_Read... [09:15:52]*** Stop cut motor [09:15:52]*** Cut end [09:15:52]Read from MH i2c: 01 07 00 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: 01 07 00 BD 01 00 00 00 00 00 FF 0F D3 [09:15:52]process_action close_receipt done [09:15:52]requested_data is exist [09:15:52]produce_requested_data [09:15:52]requested_item fm.sn is exist - process it [09:15:52]wFMCommunicate request_size=4 [09:15:52]MH_SAM_APDU [09:15:52]CAPDU: 80 11 00 00 [09:15:52]Write to MH i2c: E2 08 00 BE 01 80 11 00 00 00 00 00 00 39 [09:15:52]Write i2c OK [09:15:52]MH_I2C_Read... [09:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:52]Read from MH i2c: E2 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 17 00 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 17 00 BE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 86 [09:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:15:52]wFMCommunicate OK [09:15:52]requested_item fd.num is exist - process it [09:15:52]SAM_PROTO_GetFieldsCounters [09:15:52]wFMCommunicate request_size=4 [09:15:52]MH_SAM_APDU [09:15:52]CAPDU: 80 13 00 00 [09:15:52]Write to MH i2c: E2 08 00 BF 01 80 13 00 00 00 00 00 00 3C [09:15:52]Write i2c OK [09:15:52]MH_I2C_Read... [09:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:53]Read from MH i2c: E2 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 62 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 62 00 BF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 CB 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [09:15: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 CB 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:53]wFMCommunicate OK [09:15:53]SAM_PROTO_GetFieldsCounters done [09:15:53]requested_item shift.num is exist - process it [09:15:53]requested_item shift.opened is exist - process it [09:15:53]req_shift_opened [09:15:53]FM_GetShiftState [09:15:53]SAM_PROTO_GetShiftState [09:15:53]wFMCommunicate request_size=4 [09:15:53]MH_SAM_APDU [09:15:53]CAPDU: 80 13 01 00 [09:15:53]Write to MH i2c: E2 08 00 C0 01 80 13 01 00 00 00 00 00 3E [09:15:53]Write i2c OK [09:15:53]MH_I2C_Read... [09:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:53]Read from MH i2c: E2 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 0E 00 [09:15:53]MH_I2C_Read... [09:15:53]Read from MH i2c: E2 0E 00 C0 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 77 [09:15:53]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:15:53]wFMCommunicate OK [09:15:53]SAM_PROTO_GetShiftState done [09:15:53]FM_GetShiftState done [09:15:53]req_shift_opened done [09:15:53]requested_item shift.open_date is exist - process it [09:15:53]req_shift_open_date [09:15:53]req_shift_open_date done [09:15:53]produce_requested_data done [09:15:53]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103627,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [09:15:53]process_action_free close_receipt [09:15:53]json_value_free [09:15:53]json_value_free done [09:15:53]process_json_proto returns [09:15:53]Send response to host [09:15:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103627,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [09:15:53]free response buf [09:15:53]execute_script done [09:15:53]execute_script returns [09:15:53]free content buf [09:15:53]Sock 9.Close socket [09:15:53]Sock 9.Thread stoped [09:15:54]Connected sock=11 [09:15: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 31 31 0F 01 00 00 27 C0 07 01 0C F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C6 BE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CB 94 01 00 35 04 06 00 D4 90 8B ED E5 12 6D 24 C3 D1 F6 21 D1 E6 [09:15: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 31 31 4F 00 00 00 C4 7F 47 00 70 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CB 94 01 00 F4 03 04 00 DF 65 18 67 B6 04 01 00 00 4B 17 68 4F 32 D6 06 54 [09:15:55]CommunicateWithHost err = 0 [09:15:55]CheckOFDResponse [09:15:55]1017 (14) - 77093643461234 [09:15:55]1041 (16) - 0000000000871811 [09:15:55]1040 (4) - 103627 [09:15:55]1012 (4) - 23.10.2024 02:56 [09:15:55]1206 (1) - 0 [09:15:55]OFD Sender: Remove packet 103627 [09:15:55]ProducePacketName [09:15:55]name=ofd_packets/00103627 [09:15:55]NVStorageDeleteData [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:17]recv_with_timeout no data received [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:34]accept exits with 8 [09:17:34]New connection [09:17:34]New thread 3067600228 created [09:17:34]Thread 3067456868 joined [09:17:34]Waiting for new connection... [09:17:34] Sock 8.Parse request [09:17:34]Sock 8.Check first char [09:17:34]Sock 8.First char is OK [09:17:34]request: POST /json_proto HTTP/1.0 [09:17:34]Method: POST [09:17:34]URL: /json_proto [09:17:34]Method is POST - this is cgi request [09:17:34]url: /json_proto [09:17:34]query_string will be loaded in cgi processing [09:17:34]execute_cgi json_proto POST (null) [09:17:34]execute_cgi path=json_proto method=POST [09:17:34]POST find Content-Length [09:17:34]Host: 172.17.51.67:8080 [09:17:34]Content-Length: 682 [09:17:34]Content-Type: application/json [09:17:34] [09:17:34]POST finish read [09:17:34]Found Content-Length = 682 [09:17:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:34]execute_script... [09:17:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:34]POST & json_proto [09:17:34]process_json_proto [09:17:34]json parsed OK: [09:17:34]protocol is kg_v1.0 [09:17:34]action value=close_receipt [09:17:34]process_action close_receipt [09:17:34]cmd_close_receipt [09:17:34]MH_GetDate [09:17:34]Write to MH i2c: F0 00 00 C1 01 B1 [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: F0 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: F0 09 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: F0 09 00 C1 01 00 2F BF 18 67 1E EF FA 64 92 [09:17:34]GetLastDocTimeStamp 1729674950 [09:17:34]current date 1729675055 [09:17:34]FM_GetShiftState [09:17:34]SAM_PROTO_GetShiftState [09:17:34]wFMCommunicate request_size=4 [09:17:34]MH_SAM_APDU [09:17:34]CAPDU: 80 13 01 00 [09:17:34]Write to MH i2c: E2 08 00 C2 01 80 13 01 00 00 00 00 00 40 [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:34]Read from MH i2c: E2 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 0E 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 0E 00 C2 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 79 [09:17:34]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:17:34]wFMCommunicate OK [09:17:34]SAM_PROTO_GetShiftState done [09:17:34]FM_GetShiftState done [09:17:34]opened in 1729642861 [09:17:34]opened+sec_in_day 1729729261 [09:17:34]quantity*price = 100021 [09:17:34]sum+1 = 100023 [09:17:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 40 23.10.2024 09:17 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103628 ФПД: 114908305672018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091735&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103628&fm=114908305672018&tin=02508201610067®Number=0000000000091754&sum=100000 [09:17:35]StoreToDocumentArchive [09:17:35]shift 582 fd 103628 [09:17:35]save to /storage/0582/doc_00103628 [09:17:35]save last doc name /storage/0582/doc_00103628 to /storage/kkm_last_doc_name [09:17:35]save OK [09:17:35]Clear old archive folders... [09:17:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:35]tlvbuf is 01E23020 [09:17:35]SAM_PROTO_ClearQueue [09:17:35]wFMCommunicate request_size=4 [09:17:35]MH_SAM_APDU [09:17:35]CAPDU: 80 09 00 00 [09:17:35]Write to MH i2c: E2 08 00 CF 01 80 09 00 00 00 00 00 00 42 [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:35]Read from MH i2c: E2 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 03 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 03 00 CF 01 00 90 00 44 [09:17:35]RAPDU: 90 00 [09:17:35]wFMCommunicate OK [09:17:35]SAM_PROTO_ClearQueue done [09:17:35]KKMCreateOFDPacket [09:17:35]OFDProtocolAddRootSTLVToBuf [09:17:35]FM_MakeSignedData [09:17:35]FM_MakeSignedData [09:17:35]SAM_PROTO_SignData [09:17:35]wFMCommunicate request_size=4 [09:17:35]MH_SAM_APDU [09:17:35]CAPDU: 80 0D 01 02 [09:17:35]Write to MH i2c: E2 08 00 D0 01 80 0D 01 02 00 00 00 00 4A [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:35]Read from MH i2c: E2 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 03 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [09:17:35]RAPDU: 90 00 [09:17:35]wFMCommunicate OK [09:17:35]wFMCommunicate request_size=255 [09:17:35]MH_SAM_APDU [09:17:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2F BF 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CC 94 01 00 35 04 06 00 68 [09:17:35]Write to MH i2c: E2 02 01 D1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2F BF 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CC 94 01 00 35 04 06 00 68 00 00 97 [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 [09:17:35]MH_I2C_Read... [09:17:35]OFD Sender: No OFD packet to send [09:17:35]Read from MH i2c: E2 03 00 [09:17:35]MH_I2C_Read... [09:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:35]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [09:17:35]RAPDU: 90 00 [09:17:35]wFMCommunicate OK [09:17:35]wFMCommunicate request_size=10 [09:17:35]MH_SAM_APDU [09:17:35]CAPDU: 80 0D 02 02 05 82 2C BD C7 52 [09:17:35]Write to MH i2c: E2 0D 00 D2 01 80 0D 02 02 05 00 82 2C BD C7 52 00 00 DB [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:35]Read from MH i2c: E2 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 03 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [09:17:35]RAPDU: 90 00 [09:17:35]wFMCommunicate OK [09:17:35]wFMCommunicate request_size=4 [09:17:35]MH_SAM_APDU [09:17:35]CAPDU: 80 0D 03 02 [09:17:35]Write to MH i2c: E2 08 00 D3 01 80 0D 03 02 00 00 00 00 4F [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:35]Read from MH i2c: E2 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 0B 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 0B 00 D3 01 00 05 4C 9F F1 2D E9 1A 6A 90 00 CB [09:17:35]RAPDU: 05 4C 9F F1 2D E9 1A 6A 90 00 [09:17:35]wFMCommunicate OK [09:17:35]SAM_PROTO_SignData done [09:17:35]FM_MakeSignedData done [09:17:35]CreateOFDProtocolMessage [09:17:35]wFMCommunicate request_size=4 [09:17:35]MH_SAM_APDU [09:17:35]CAPDU: 80 11 00 00 [09:17:35]Write to MH i2c: E2 08 00 D4 01 80 11 00 00 00 00 00 00 4F [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:36]Read from MH i2c: E2 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: E2 17 00 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: E2 17 00 D4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 9C [09:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:17:36]wFMCommunicate OK [09:17:36]CreateOFDProtocolMessage done [09:17:36]OFDSenderStorePacket 103628 [09:17:36]StoreOFDPacket docnum=103628 [09:17:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 C6 93 07 01 B4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2F BF 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CC 94 01 00 35 04 06 00 68 82 2C BD C7 52 05 4C 9F F1 2D E9 1A 6A [09:17:36]CheckFolder [09:17:36]dirname=/storage/ofd_packets [09:17:36]CheckFolder done [09:17:36]ProducePacketName [09:17:36]name=ofd_packets/00103628 [09:17:36]NVStorageSaveData ofd_packets/00103628 [09:17:36]File name is /storage/ofd_packets/00103628 [09:17:36]Write 301 bytes [09:17:36]NVStorageSaveData done [09:17:36]OFDSenderStorePacket done [09:17:36]KKMCreateOFDPacket done [09:17:36]NVStorageSaveData kkm_last_timestamp [09:17:36]File name is /storage/kkm_last_timestamp [09:17:36]Write 4 bytes [09:17:36]NVStorageSaveData done [09:17:36]ExternCall_PrintAddStr [09:17:36]wPrintStart [09:17:36]Write to MH i2c: 01 00 00 D5 01 D6 [09:17:36]Write i2c OK [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 07 00 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [09:17:36]RasterBufferAndPrint [09:17:36]line Счет N : (1)317831 [09:17:36]line ИНН: 02508201610067 [09:17:36]line Контрольно-Кассовый Чек [09:17:36]line ПРОДАЖА [09:17:36]line ТРК (МРК, ГНК) : 44 [09:17:36]line Товар: 2710124500 [09:17:36]line Аи-95-К-5 [09:17:36]line 13.480 * 74.20 [09:17:36]line = 1000.22 [09:17:36]line НДС 12% НСП 1% [09:17:36]line > о реализуемом товаре [09:17:36]line ОКРУГЛЕНИЕ: -0.22 [09:17:36]line ИТОГО: 1000.00 [09:17:36]line Внесено: 1000.00 [09:17:36]line СДАЧА: 0.00 [09:17:36]line НСП 1% : 8.85 [09:17:36]line НДС 12% : 106.22 [09:17:36]line Наличными: 1000.00 [09:17:36]line Безнал.: 0.00 [09:17:36]line Место: АЗС № 145 "Партнер Нефть" [09:17:36]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [09:17:36]line СНО: Общий режим [09:17:36]line Чек 40 23.10.2024 09:17 [09:17:36]line Смена: 582 ФФД: 1.0 [09:17:36]line ЗНМ: 0300000095 [09:17:36]line РНМ: 0000000000091754 [09:17:36]line Версия ККМ: 001 [09:17:36]line ФМ: 0000000000871811 [09:17:36]line ФД: 103628 [09:17:36]line ФПД: 114908305672018 [09:17:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091735&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103628&fm=114908305672018&tin=02508201610067®Number=0000000000091754&sum=100000 [09:17:36]written 0, free lines is 4095 [09:17:36]OFD Sender: Processing packet 103628 [packets to send 498, broken 497] [09:17:36]ProducePacketName [09:17:36]name=ofd_packets/00103628 [09:17:36]OFD Sender: To server: pG, [09:17:36]CommunicateWithHost lk.salyk.kg:30040 [09:17:36]ConnectInit lk.salyk.kg [09:17:36]Write to MH i2c: 01 00 00 FF 01 00 [09:17:36]Write i2c OK [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 07 00 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 07 00 FF 01 00 00 00 00 00 D9 0C EC [09:17:36]RasterBufferAndPrint [09:17:36]line [09:17:36]line [09:17:36]line [09:17:36]line [09:17:36]line [09:17:36]written 0, free lines is 3297 [09:17:36]MH_Cut [09:17:36]Write to MH i2c: D1 01 00 06 02 01 DA [09:17:36]Write i2c OK [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: D1 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: D1 01 00 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: D1 01 00 06 02 00 D9 [09:17:36]Write to MH i2c: 01 00 00 07 02 09 [09:17:36]Write i2c OK [09:17:36]MH_I2C_Read... [09:17:37]*** Cut start [09:17:37]*** Partial cut [09:17:37]*** CUTSNS_PIN = 1 [09:17:37]Connected sock=11 [09:17: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 31 31 0F 01 00 00 C6 93 07 01 B4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2F BF 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CC 94 01 00 35 04 06 00 68 82 2C BD C7 52 05 4C 9F F1 2D E9 1A 6A [09:17:37]*** CUTSNS_PIN = 0 [09:17:37]*** Brake cut motor [09:17:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 4F 00 00 00 D6 64 47 00 C4 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 31 31 10 04 04 00 CC 94 01 00 F4 03 04 00 46 66 18 67 B6 04 01 00 00 B1 F8 4B DA C0 95 88 3C [09:17:37]CommunicateWithHost err = 0 [09:17:37]CheckOFDResponse [09:17:37]1017 (14) - 77093643461234 [09:17:37]1041 (16) - 0000000000871811 [09:17:37]1040 (4) - 103628 [09:17:37]1012 (4) - 23.10.2024 02:58 [09:17:37]1206 (1) - 0 [09:17:37]OFD Sender: Remove packet 103628 [09:17:37]ProducePacketName [09:17:37]name=ofd_packets/00103628 [09:17:37]NVStorageDeleteData [09:17:37]Read from MH i2c: 01 [09:17:37]MH_I2C_Read... [09:17:37]*** Stop cut motor [09:17:37]*** Cut end [09:17:37]Read from MH i2c: 01 07 00 [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: 01 07 00 07 02 00 00 00 00 00 FF 0F 1E [09:17:37]process_action close_receipt done [09:17:37]requested_data is exist [09:17:37]produce_requested_data [09:17:37]requested_item fm.sn is exist - process it [09:17:37]wFMCommunicate request_size=4 [09:17:37]MH_SAM_APDU [09:17:37]CAPDU: 80 11 00 00 [09:17:37]Write to MH i2c: E2 08 00 08 02 80 11 00 00 00 00 00 00 84 [09:17:37]Write i2c OK [09:17:37]MH_I2C_Read... [09:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:37]Read from MH i2c: E2 [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: E2 17 00 [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: E2 17 00 08 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D1 [09:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:17:37]wFMCommunicate OK [09:17:37]requested_item fd.num is exist - process it [09:17:37]SAM_PROTO_GetFieldsCounters [09:17:37]wFMCommunicate request_size=4 [09:17:37]MH_SAM_APDU [09:17:37]CAPDU: 80 13 00 00 [09:17:37]Write to MH i2c: E2 08 00 09 02 80 13 00 00 00 00 00 00 87 [09:17:37]Write i2c OK [09:17:37]MH_I2C_Read... [09:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:38]Read from MH i2c: E2 [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: E2 62 00 [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: E2 62 00 09 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 CC 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [09:17:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 CC 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:38]wFMCommunicate OK [09:17:38]SAM_PROTO_GetFieldsCounters done [09:17:38]requested_item shift.num is exist - process it [09:17:38]requested_item shift.opened is exist - process it [09:17:38]req_shift_opened [09:17:38]FM_GetShiftState [09:17:38]SAM_PROTO_GetShiftState [09:17:38]wFMCommunicate request_size=4 [09:17:38]MH_SAM_APDU [09:17:38]CAPDU: 80 13 01 00 [09:17:38]Write to MH i2c: E2 08 00 0A 02 80 13 01 00 00 00 00 00 89 [09:17:38]Write i2c OK [09:17:38]MH_I2C_Read... [09:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:38]Read from MH i2c: E2 [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: E2 0E 00 [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: E2 0E 00 0A 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 C2 [09:17:38]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:17:38]wFMCommunicate OK [09:17:38]SAM_PROTO_GetShiftState done [09:17:38]FM_GetShiftState done [09:17:38]req_shift_opened done [09:17:38]requested_item shift.open_date is exist - process it [09:17:38]req_shift_open_date [09:17:38]req_shift_open_date done [09:17:38]produce_requested_data done [09:17:38]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103628,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [09:17:38]process_action_free close_receipt [09:17:38]json_value_free [09:17:38]json_value_free done [09:17:38]process_json_proto returns [09:17:38]Send response to host [09:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103628,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [09:17:38]free response buf [09:17:38]execute_script done [09:17:38]execute_script returns [09:17:38]free content buf [09:17:38]Sock 8.Close socket [09:17:38]Sock 8.Thread stoped [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:02]accept exits with 9 [09:18:02]New connection [09:18:02]New thread 3067456868 created [09:18:02]Thread 3067600228 joined [09:18:02]Waiting for new connection... [09:18:02] Sock 9.Parse request [09:18:02]Sock 9.Check first char [09:18:02]Sock 9.First char is OK [09:18:02]request: POST /json_proto HTTP/1.0 [09:18:02]Method: POST [09:18:02]URL: /json_proto [09:18:02]Method is POST - this is cgi request [09:18:02]url: /json_proto [09:18:02]query_string will be loaded in cgi processing [09:18:02]execute_cgi json_proto POST (null) [09:18:02]execute_cgi path=json_proto method=POST [09:18:02]POST find Content-Length [09:18:02]Host: 172.17.51.67:8080 [09:18:02]Content-Length: 677 [09:18:02]Content-Type: application/json [09:18:02] [09:18:02]POST finish read [09:18:02]Found Content-Length = 677 [09:18:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:02]execute_script... [09:18: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)317832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:02]POST & json_proto [09:18:02]process_json_proto [09:18:02]json parsed OK: [09:18:02]protocol is kg_v1.0 [09:18:02]action value=close_receipt [09:18:02]process_action close_receipt [09:18:02]cmd_close_receipt [09:18:02]MH_GetDate [09:18:02]Write to MH i2c: F0 00 00 0B 02 FC [09:18:02]Write i2c OK [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: F0 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: F0 09 00 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: F0 09 00 0B 02 00 4B BF 18 67 1E EF FA 64 F9 [09:18:02]GetLastDocTimeStamp 1729675055 [09:18:02]current date 1729675083 [09:18:02]FM_GetShiftState [09:18:02]SAM_PROTO_GetShiftState [09:18:02]wFMCommunicate request_size=4 [09:18:02]MH_SAM_APDU [09:18:02]CAPDU: 80 13 01 00 [09:18:02]Write to MH i2c: E2 08 00 0C 02 80 13 01 00 00 00 00 00 8B [09:18:02]Write i2c OK [09:18:02]MH_I2C_Read... [09:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:02]Read from MH i2c: E2 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: E2 0E 00 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: E2 0E 00 0C 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 C4 [09:18:02]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:18:02]wFMCommunicate OK [09:18:02]SAM_PROTO_GetShiftState done [09:18:02]FM_GetShiftState done [09:18:02]opened in 1729642861 [09:18:02]opened+sec_in_day 1729729261 [09:18:02]quantity*price = 55058 [09:18:02]sum+1 = 55060 [09:18:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 41 23.10.2024 09:18 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103629 ФПД: 93141274820076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091803&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103629&fm=93141274820076&tin=02508201610067®Number=0000000000091754&sum=55000 [09:18:04]StoreToDocumentArchive [09:18:04]shift 582 fd 103629 [09:18:04]save to /storage/0582/doc_00103629 [09:18:04]save last doc name /storage/0582/doc_00103629 to /storage/kkm_last_doc_name [09:18:04]save OK [09:18:04]Clear old archive folders... [09:18:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:04]tlvbuf is 01E23D60 [09:18:04]SAM_PROTO_ClearQueue [09:18:04]wFMCommunicate request_size=4 [09:18:04]MH_SAM_APDU [09:18:04]CAPDU: 80 09 00 00 [09:18:04]Write to MH i2c: E2 08 00 19 02 80 09 00 00 00 00 00 00 8D [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:04]Read from MH i2c: E2 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 19 02 00 90 00 8F [09:18:04]RAPDU: 90 00 [09:18:04]wFMCommunicate OK [09:18:04]SAM_PROTO_ClearQueue done [09:18:04]KKMCreateOFDPacket [09:18:04]OFDProtocolAddRootSTLVToBuf [09:18:04]FM_MakeSignedData [09:18:04]FM_MakeSignedData [09:18:04]SAM_PROTO_SignData [09:18:04]wFMCommunicate request_size=4 [09:18:04]MH_SAM_APDU [09:18:04]CAPDU: 80 0D 01 02 [09:18:04]Write to MH i2c: E2 08 00 1A 02 80 0D 01 02 00 00 00 00 95 [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:04]Read from MH i2c: E2 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [09:18:04]RAPDU: 90 00 [09:18:04]wFMCommunicate OK [09:18:04]wFMCommunicate request_size=255 [09:18:04]MH_SAM_APDU [09:18: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 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4B BF 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CD 94 01 00 35 04 06 00 54 [09:18:04]Write to MH i2c: E2 02 01 1B 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4B BF 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CD 94 01 00 35 04 06 00 54 00 00 E6 [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:04]Read from MH i2c: E2 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [09:18:04]RAPDU: 90 00 [09:18:04]wFMCommunicate OK [09:18:04]wFMCommunicate request_size=10 [09:18:04]MH_SAM_APDU [09:18:04]CAPDU: 80 0D 02 02 05 B6 24 99 7D EC [09:18:04]Write to MH i2c: E2 0D 00 1C 02 80 0D 02 02 05 00 B6 24 99 7D EC 00 00 7E [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:04]Read from MH i2c: E2 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [09:18:04]RAPDU: 90 00 [09:18:04]wFMCommunicate OK [09:18:04]wFMCommunicate request_size=4 [09:18:04]MH_SAM_APDU [09:18:04]CAPDU: 80 0D 03 02 [09:18:04]Write to MH i2c: E2 08 00 1D 02 80 0D 03 02 00 00 00 00 9A [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:04]Read from MH i2c: E2 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 0B 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 0B 00 1D 02 00 05 FB 79 80 A5 3F B7 A2 90 00 D1 [09:18:04]RAPDU: 05 FB 79 80 A5 3F B7 A2 90 00 [09:18:04]wFMCommunicate OK [09:18:04]SAM_PROTO_SignData done [09:18:04]FM_MakeSignedData done [09:18:04]CreateOFDProtocolMessage [09:18:04]wFMCommunicate request_size=4 [09:18:04]MH_SAM_APDU [09:18:04]CAPDU: 80 11 00 00 [09:18:04]Write to MH i2c: E2 08 00 1E 02 80 11 00 00 00 00 00 00 9A [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:04]Read from MH i2c: E2 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 17 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: E2 17 00 1E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 E7 [09:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:18:04]wFMCommunicate OK [09:18:04]CreateOFDProtocolMessage done [09:18:04]OFDSenderStorePacket 103629 [09:18:04]StoreOFDPacket docnum=103629 [09:18:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 A6 9F 07 01 C9 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4B BF 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CD 94 01 00 35 04 06 00 54 B6 24 99 7D EC 05 FB 79 80 A5 3F B7 A2 [09:18:04]CheckFolder [09:18:04]dirname=/storage/ofd_packets [09:18:04]CheckFolder done [09:18:04]ProducePacketName [09:18:04]name=ofd_packets/00103629 [09:18:04]NVStorageSaveData ofd_packets/00103629 [09:18:04]File name is /storage/ofd_packets/00103629 [09:18:04]Write 301 bytes [09:18:04]NVStorageSaveData done [09:18:04]OFDSenderStorePacket done [09:18:04]KKMCreateOFDPacket done [09:18:04]NVStorageSaveData kkm_last_timestamp [09:18:04]File name is /storage/kkm_last_timestamp [09:18:04]Write 4 bytes [09:18:04]NVStorageSaveData done [09:18:04]ExternCall_PrintAddStr [09:18:04]wPrintStart [09:18:04]Write to MH i2c: 01 00 00 1F 02 21 [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: 01 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: 01 07 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [09:18:04]RasterBufferAndPrint [09:18:04]line Счет N : (1)317832 [09:18:04]line ИНН: 02508201610067 [09:18:04]line Контрольно-Кассовый Чек [09:18:04]line ПРОДАЖА [09:18:04]line ТРК (МРК, ГНК) : 63 [09:18:04]line Товар: 2710124130 [09:18:04]line Аи-92-К-4 [09:18:04]line 8.230 * 66.90 [09:18:04]line = 550.59 [09:18:04]line НДС 12% НСП 1% [09:18:04]line > о реализуемом товаре [09:18:04]line ОКРУГЛЕНИЕ: -0.59 [09:18:04]line ИТОГО: 550.00 [09:18:04]line Внесено: 550.00 [09:18:04]line СДАЧА: 0.00 [09:18:04]line НСП 1% : 4.87 [09:18:04]line НДС 12% : 58.47 [09:18:04]line Наличными: 550.00 [09:18:04]line Безнал.: 0.00 [09:18:04]line Место: АЗС № 145 "Партнер Нефть" [09:18:04]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [09:18:04]line СНО: Общий режим [09:18:04]line Чек 41 23.10.2024 09:18 [09:18:04]line Смена: 582 ФФД: 1.0 [09:18:04]line ЗНМ: 0300000095 [09:18:04]line РНМ: 0000000000091754 [09:18:04]line Версия ККМ: 001 [09:18:04]line ФМ: 0000000000871811 [09:18:04]line ФД: 103629 [09:18:04]line ФПД: 93141274820076 [09:18:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T091803&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103629&fm=93141274820076&tin=02508201610067®Number=0000000000091754&sum=55000 [09:18:04]OFD Sender: Processing packet 103629 [packets to send 498, broken 497] [09:18:04]ProducePacketName [09:18:04]name=ofd_packets/00103629 [09:18:04]OFD Sender: To server: pG, [09:18:04]CommunicateWithHost lk.salyk.kg:30040 [09:18:04]ConnectInit lk.salyk.kg [09:18:04]written 0, free lines is 4095 [09:18:05]Write to MH i2c: 01 00 00 49 02 4B [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 07 00 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 07 00 49 02 00 00 00 00 00 CC 0C 2A [09:18:05]RasterBufferAndPrint [09:18:05]line [09:18:05]line [09:18:05]line [09:18:05]line [09:18:05]line [09:18:05]written 0, free lines is 3283 [09:18:05]MH_Cut [09:18:05]Write to MH i2c: D1 01 00 50 02 01 24 [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: D1 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: D1 01 00 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: D1 01 00 50 02 00 23 [09:18:05]Write to MH i2c: 01 00 00 51 02 53 [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:06]Connected sock=11 [09:18: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 31 31 0F 01 00 00 A6 9F 07 01 C9 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4B BF 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CD 94 01 00 35 04 06 00 54 B6 24 99 7D EC 05 FB 79 80 A5 3F B7 A2 [09:18:06]*** Cut start [09:18:06]*** Partial cut [09:18:06]*** CUTSNS_PIN = 1 [09:18:06]*** CUTSNS_PIN = 0 [09:18:06]*** Brake cut motor [09:18: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 31 31 4F 00 00 00 C1 31 47 00 B0 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CD 94 01 00 F4 03 04 00 62 66 18 67 B6 04 01 00 00 D0 A3 C0 F7 CB 64 85 4F [09:18:06]CommunicateWithHost err = 0 [09:18:06]CheckOFDResponse [09:18:06]1017 (14) - 77093643461234 [09:18:06]1041 (16) - 0000000000871811 [09:18:06]1040 (4) - 103629 [09:18:06]1012 (4) - 23.10.2024 02:58 [09:18:06]1206 (1) - 0 [09:18:06]OFD Sender: Remove packet 103629 [09:18:06]ProducePacketName [09:18:06]name=ofd_packets/00103629 [09:18:06]NVStorageDeleteData [09:18:06]Read from MH i2c: 01 [09:18:06]MH_I2C_Read... [09:18:06]*** Stop cut motor [09:18:06]*** Cut end [09:18:06]Read from MH i2c: 01 07 00 [09:18:06]MH_I2C_Read... [09:18:06]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 FF 0F 68 [09:18:06]process_action close_receipt done [09:18:06]requested_data is exist [09:18:06]produce_requested_data [09:18:06]requested_item fm.sn is exist - process it [09:18:06]wFMCommunicate request_size=4 [09:18:06]MH_SAM_APDU [09:18:06]CAPDU: 80 11 00 00 [09:18:06]Write to MH i2c: E2 08 00 52 02 80 11 00 00 00 00 00 00 CE [09:18:06]Write i2c OK [09:18:06]MH_I2C_Read... [09:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:06]Read from MH i2c: E2 [09:18:06]MH_I2C_Read... [09:18:06]Read from MH i2c: E2 17 00 [09:18:06]MH_I2C_Read... [09:18:06]Read from MH i2c: E2 17 00 52 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 1B [09:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:18:06]wFMCommunicate OK [09:18:06]requested_item fd.num is exist - process it [09:18:06]SAM_PROTO_GetFieldsCounters [09:18:06]wFMCommunicate request_size=4 [09:18:06]MH_SAM_APDU [09:18:06]CAPDU: 80 13 00 00 [09:18:06]Write to MH i2c: E2 08 00 53 02 80 13 00 00 00 00 00 00 D1 [09:18:06]Write i2c OK [09:18:06]MH_I2C_Read... [09:18:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:06]Read from MH i2c: E2 [09:18:06]MH_I2C_Read... [09:18:06]Read from MH i2c: E2 62 00 [09:18:06]MH_I2C_Read... [09:18:06]Read from MH i2c: E2 62 00 53 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 CD 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [09:18: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 CD 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:07]wFMCommunicate OK [09:18:07]SAM_PROTO_GetFieldsCounters done [09:18:07]requested_item shift.num is exist - process it [09:18:07]requested_item shift.opened is exist - process it [09:18:07]req_shift_opened [09:18:07]FM_GetShiftState [09:18:07]SAM_PROTO_GetShiftState [09:18:07]wFMCommunicate request_size=4 [09:18:07]MH_SAM_APDU [09:18:07]CAPDU: 80 13 01 00 [09:18:07]Write to MH i2c: E2 08 00 54 02 80 13 01 00 00 00 00 00 D3 [09:18:07]Write i2c OK [09:18:07]MH_I2C_Read... [09:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:07]Read from MH i2c: E2 [09:18:07]MH_I2C_Read... [09:18:07]Read from MH i2c: E2 0E 00 [09:18:07]MH_I2C_Read... [09:18:07]Read from MH i2c: E2 0E 00 54 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 0C [09:18:07]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:18:07]wFMCommunicate OK [09:18:07]SAM_PROTO_GetShiftState done [09:18:07]FM_GetShiftState done [09:18:07]req_shift_opened done [09:18:07]requested_item shift.open_date is exist - process it [09:18:07]req_shift_open_date [09:18:07]req_shift_open_date done [09:18:07]produce_requested_data done [09:18:07]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103629,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [09:18:07]process_action_free close_receipt [09:18:07]json_value_free [09:18:07]json_value_free done [09:18:07]process_json_proto returns [09:18:07]Send response to host [09:18:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103629,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [09:18:07]free response buf [09:18:07]execute_script done [09:18:07]execute_script returns [09:18:07]free content buf [09:18:07]Sock 9.Close socket [09:18:07]Sock 9.Thread stoped [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:14]recv_with_timeout no data received [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:08]accept exits with 10 [09:21:08]New connection [09:21:08]New thread 3067600228 created [09:21:08]Thread 3067456868 joined [09:21:08]Waiting for new connection... [09:21:08] Sock 10.Parse request [09:21:08]Sock 10.Check first char [09:21:08]Sock 10.First char is OK [09:21:08]request: POST /json_proto HTTP/1.0 [09:21:08]Method: POST [09:21:08]URL: /json_proto [09:21:08]Method is POST - this is cgi request [09:21:08]url: /json_proto [09:21:08]query_string will be loaded in cgi processing [09:21:08]execute_cgi json_proto POST (null) [09:21:08]execute_cgi path=json_proto method=POST [09:21:08]POST find Content-Length [09:21:08]Host: 172.17.51.67:8080 [09:21:08]Content-Length: 677 [09:21:08]Content-Type: application/json [09:21:08] [09:21:08]POST finish read [09:21:08]Found Content-Length = 677 [09:21:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:08]execute_script... [09:21:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:08]POST & json_proto [09:21:08]process_json_proto [09:21:08]json parsed OK: [09:21:08]protocol is kg_v1.0 [09:21:08]action value=close_receipt [09:21:08]process_action close_receipt [09:21:08]cmd_close_receipt [09:21:08]MH_GetDate [09:21:08]Write to MH i2c: F0 00 00 55 02 46 [09:21:08]Write i2c OK [09:21:08]MH_I2C_Read... [09:21:08]Read from MH i2c: F0 [09:21:08]MH_I2C_Read... [09:21:08]Read from MH i2c: F0 09 00 [09:21:08]MH_I2C_Read... [09:21:08]Read from MH i2c: F0 09 00 55 02 00 05 C0 18 67 1E EF FA 64 FE [09:21:08]GetLastDocTimeStamp 1729675083 [09:21:08]current date 1729675269 [09:21:08]FM_GetShiftState [09:21:08]SAM_PROTO_GetShiftState [09:21:08]wFMCommunicate request_size=4 [09:21:08]MH_SAM_APDU [09:21:08]CAPDU: 80 13 01 00 [09:21:08]Write to MH i2c: E2 08 00 56 02 80 13 01 00 00 00 00 00 D5 [09:21:08]Write i2c OK [09:21:08]MH_I2C_Read... [09:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:08]Read from MH i2c: E2 [09:21:08]MH_I2C_Read... [09:21:08]Read from MH i2c: E2 0E 00 [09:21:08]MH_I2C_Read... [09:21:08]Read from MH i2c: E2 0E 00 56 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 0E [09:21:08]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:21:08]wFMCommunicate OK [09:21:08]SAM_PROTO_GetShiftState done [09:21:08]FM_GetShiftState done [09:21:08]opened in 1729642861 [09:21:08]opened+sec_in_day 1729729261 [09:21:08]quantity*price = 60009 [09:21:08]sum+1 = 60010 [09:21:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 42 23.10.2024 09:21 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103630 ФПД: 10111567521814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092109&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103630&fm=10111567521814&tin=02508201610067®Number=0000000000091754&sum=60000 [09:21:09]StoreToDocumentArchive [09:21:09]shift 582 fd 103630 [09:21:09]save to /storage/0582/doc_00103630 [09:21:09]save last doc name /storage/0582/doc_00103630 to /storage/kkm_last_doc_name [09:21:09]save OK [09:21:09]Clear old archive folders... [09:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:09]tlvbuf is 01E0D720 [09:21:09]SAM_PROTO_ClearQueue [09:21:09]wFMCommunicate request_size=4 [09:21:09]MH_SAM_APDU [09:21:09]CAPDU: 80 09 00 00 [09:21:09]Write to MH i2c: E2 08 00 63 02 80 09 00 00 00 00 00 00 D7 [09:21:09]Write i2c OK [09:21:09]MH_I2C_Read... [09:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:09]Read from MH i2c: E2 [09:21:09]MH_I2C_Read... [09:21:09]Read from MH i2c: E2 03 00 [09:21:09]MH_I2C_Read... [09:21:09]Read from MH i2c: E2 03 00 63 02 00 90 00 D9 [09:21:09]RAPDU: 90 00 [09:21:09]wFMCommunicate OK [09:21:09]SAM_PROTO_ClearQueue done [09:21:09]KKMCreateOFDPacket [09:21:09]OFDProtocolAddRootSTLVToBuf [09:21:09]FM_MakeSignedData [09:21:09]FM_MakeSignedData [09:21:09]SAM_PROTO_SignData [09:21:09]wFMCommunicate request_size=4 [09:21:09]MH_SAM_APDU [09:21:09]CAPDU: 80 0D 01 02 [09:21:09]Write to MH i2c: E2 08 00 64 02 80 0D 01 02 00 00 00 00 DF [09:21:09]Write i2c OK [09:21:09]MH_I2C_Read... [09:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:09]Read from MH i2c: E2 [09:21:09]MH_I2C_Read... [09:21:09]Read from MH i2c: E2 03 00 [09:21:09]MH_I2C_Read... [09:21:09]Read from MH i2c: E2 03 00 64 02 00 90 00 DA [09:21:09]RAPDU: 90 00 [09:21:09]wFMCommunicate OK [09:21:09]wFMCommunicate request_size=255 [09:21:09]MH_SAM_APDU [09:21:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 05 C0 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CE 94 01 00 35 04 06 00 09 [09:21:09]Write to MH i2c: E2 02 01 65 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 05 C0 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CE 94 01 00 35 04 06 00 09 00 00 67 [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:10]Read from MH i2c: E2 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 03 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 03 00 65 02 00 90 00 DB [09:21:10]RAPDU: 90 00 [09:21:10]wFMCommunicate OK [09:21:10]wFMCommunicate request_size=10 [09:21:10]MH_SAM_APDU [09:21:10]CAPDU: 80 0D 02 02 05 32 48 63 E8 16 [09:21:10]Write to MH i2c: E2 0D 00 66 02 80 0D 02 02 05 00 32 48 63 E8 16 00 00 C7 [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:10]Read from MH i2c: E2 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 03 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [09:21:10]RAPDU: 90 00 [09:21:10]wFMCommunicate OK [09:21:10]wFMCommunicate request_size=4 [09:21:10]MH_SAM_APDU [09:21:10]CAPDU: 80 0D 03 02 [09:21:10]Write to MH i2c: E2 08 00 67 02 80 0D 03 02 00 00 00 00 E4 [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:10]Read from MH i2c: E2 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 0B 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 0B 00 67 02 00 5D 74 C3 56 E0 40 FB 80 90 00 6A [09:21:10]RAPDU: 5D 74 C3 56 E0 40 FB 80 90 00 [09:21:10]wFMCommunicate OK [09:21:10]SAM_PROTO_SignData done [09:21:10]FM_MakeSignedData done [09:21:10]CreateOFDProtocolMessage [09:21:10]wFMCommunicate request_size=4 [09:21:10]MH_SAM_APDU [09:21:10]CAPDU: 80 11 00 00 [09:21:10]Write to MH i2c: E2 08 00 68 02 80 11 00 00 00 00 00 00 E4 [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:10]Read from MH i2c: E2 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 17 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 17 00 68 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 31 [09:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:21:10]wFMCommunicate OK [09:21:10]CreateOFDProtocolMessage done [09:21:10]OFDSenderStorePacket 103630 [09:21:10]StoreOFDPacket docnum=103630 [09:21:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 08 7F 07 01 93 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 05 C0 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CE 94 01 00 35 04 06 00 09 32 48 63 E8 16 5D 74 C3 56 E0 40 FB 80 [09:21:10]CheckFolder [09:21:10]dirname=/storage/ofd_packets [09:21:10]CheckFolder done [09:21:10]ProducePacketName [09:21:10]name=ofd_packets/00103630 [09:21:10]NVStorageSaveData ofd_packets/00103630 [09:21:10]File name is /storage/ofd_packets/00103630 [09:21:10]Write 301 bytes [09:21:10]NVStorageSaveData done [09:21:10]OFDSenderStorePacket done [09:21:10]KKMCreateOFDPacket done [09:21:10]NVStorageSaveData kkm_last_timestamp [09:21:10]File name is /storage/kkm_last_timestamp [09:21:10]Write 4 bytes [09:21:10]NVStorageSaveData done [09:21:10]ExternCall_PrintAddStr [09:21:10]wPrintStart [09:21:10]Write to MH i2c: 01 00 00 69 02 6B [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: 01 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: 01 07 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [09:21:10]RasterBufferAndPrint [09:21:10]line Счет N : (1)317833 [09:21:10]line ИНН: 02508201610067 [09:21:10]line Контрольно-Кассовый Чек [09:21:10]line ПРОДАЖА [09:21:10]line ТРК (МРК, ГНК) : 43 [09:21:10]line Товар: 2710124130 [09:21:10]line Аи-92-К-4 [09:21:10]line 8.970 * 66.90 [09:21:10]line = 600.09 [09:21:10]line НДС 12% НСП 1% [09:21:10]line > о реализуемом товаре [09:21:10]line ОКРУГЛЕНИЕ: -0.09 [09:21:10]line ИТОГО: 600.00 [09:21:10]line Внесено: 600.00 [09:21:10]line СДАЧА: 0.00 [09:21:10]line НСП 1% : 5.31 [09:21:10]line НДС 12% : 63.73 [09:21:10]line Наличными: 600.00 [09:21:10]line Безнал.: 0.00 [09:21:10]line Место: АЗС № 145 "Партнер Нефть" [09:21:10]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [09:21:10]line СНО: Общий режим [09:21:10]line Чек 42 23.10.2024 09:21 [09:21:10]line Смена: 582 ФФД: 1.0 [09:21:10]line ЗНМ: 0300000095 [09:21:10]line РНМ: 0000000000091754 [09:21:10]line Версия ККМ: 001 [09:21:10]line ФМ: 0000000000871811 [09:21:10]line ФД: 103630 [09:21:10]line ФПД: 10111567521814 [09:21:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092109&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103630&fm=10111567521814&tin=02508201610067®Number=0000000000091754&sum=60000 [09:21:10]written 0, free lines is 4095 [09:21:10]OFD Sender: Processing packet 103630 [packets to send 498, broken 497] [09:21:10]ProducePacketName [09:21:10]name=ofd_packets/00103630 [09:21:10]OFD Sender: To server: pG, [09:21:10]CommunicateWithHost lk.salyk.kg:30040 [09:21:10]ConnectInit lk.salyk.kg [09:21:10]Write to MH i2c: 01 00 00 93 02 95 [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: 01 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: 01 07 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: 01 07 00 93 02 00 00 00 00 00 D3 0C 7B [09:21:10]RasterBufferAndPrint [09:21:10]line [09:21:10]line [09:21:10]line [09:21:10]line [09:21:10]line [09:21:10]written 0, free lines is 3289 [09:21:10]MH_Cut [09:21:10]Write to MH i2c: D1 01 00 9A 02 01 6E [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: D1 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: D1 01 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: D1 01 00 9A 02 00 6D [09:21:10]Write to MH i2c: 01 00 00 9B 02 9D [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:11]Connected sock=8 [09:21: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 31 31 0F 01 00 00 08 7F 07 01 93 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 05 C0 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CE 94 01 00 35 04 06 00 09 32 48 63 E8 16 5D 74 C3 56 E0 40 FB 80 [09:21: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 31 31 4F 00 00 00 58 16 47 00 A6 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 31 31 10 04 04 00 CE 94 01 00 F4 03 04 00 1B 67 18 67 B6 04 01 00 00 EA 1D 05 50 19 4A 89 A6 [09:21:11]CommunicateWithHost err = 0 [09:21:11]CheckOFDResponse [09:21:11]1017 (14) - 77093643461234 [09:21:11]1041 (16) - 0000000000871811 [09:21:11]1040 (4) - 103630 [09:21:11]1012 (4) - 23.10.2024 03:01 [09:21:11]1206 (1) - 0 [09:21:11]OFD Sender: Remove packet 103630 [09:21:11]ProducePacketName [09:21:11]name=ofd_packets/00103630 [09:21:11]NVStorageDeleteData [09:21:11]*** Cut start [09:21:11]*** Partial cut [09:21:11]*** CUTSNS_PIN = 1 [09:21:11]*** CUTSNS_PIN = 0 [09:21:11]*** Brake cut motor [09:21:12]OFD Sender: No OFD packet to send [09:21:12]Read from MH i2c: 01 [09:21:12]MH_I2C_Read... [09:21:12]*** Stop cut motor [09:21:12]*** Cut end [09:21:12]Read from MH i2c: 01 07 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 07 00 9B 02 00 00 00 00 00 FF 0F B2 [09:21:12]process_action close_receipt done [09:21:12]requested_data is exist [09:21:12]produce_requested_data [09:21:12]requested_item fm.sn is exist - process it [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 11 00 00 [09:21:12]Write to MH i2c: E2 08 00 9C 02 80 11 00 00 00 00 00 00 18 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 17 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 17 00 9C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 65 [09:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:21:12]wFMCommunicate OK [09:21:12]requested_item fd.num is exist - process it [09:21:12]SAM_PROTO_GetFieldsCounters [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 13 00 00 [09:21:12]Write to MH i2c: E2 08 00 9D 02 80 13 00 00 00 00 00 00 1B [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 62 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 62 00 9D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 CE 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [09:21:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 CE 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:12]wFMCommunicate OK [09:21:12]SAM_PROTO_GetFieldsCounters done [09:21:12]requested_item shift.num is exist - process it [09:21:12]requested_item shift.opened is exist - process it [09:21:12]req_shift_opened [09:21:12]FM_GetShiftState [09:21:12]SAM_PROTO_GetShiftState [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 13 01 00 [09:21:12]Write to MH i2c: E2 08 00 9E 02 80 13 01 00 00 00 00 00 1D [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 0E 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 0E 00 9E 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 56 [09:21:12]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:21:12]wFMCommunicate OK [09:21:12]SAM_PROTO_GetShiftState done [09:21:12]FM_GetShiftState done [09:21:12]req_shift_opened done [09:21:12]requested_item shift.open_date is exist - process it [09:21:12]req_shift_open_date [09:21:12]req_shift_open_date done [09:21:12]produce_requested_data done [09:21:12]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103630,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [09:21:12]process_action_free close_receipt [09:21:12]json_value_free [09:21:12]json_value_free done [09:21:12]process_json_proto returns [09:21:12]Send response to host [09:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103630,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [09:21:12]free response buf [09:21:12]execute_script done [09:21:12]execute_script returns [09:21:12]free content buf [09:21:12]Sock 10.Close socket [09:21:12]Sock 10.Thread stoped [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:45]recv_with_timeout no data received [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:04]recv_with_timeout no data received [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:52]recv_with_timeout no data received [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:35]recv_with_timeout no data received [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:53]recv_with_timeout no data received [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:26:59]recv_with_timeout no data received [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:16]recv_with_timeout no data received [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:31]accept exits with 9 [09:27:31]New connection [09:27:31]New thread 3067456868 created [09:27:31]Thread 3067600228 joined [09:27:31]Waiting for new connection... [09:27:31] Sock 9.Parse request [09:27:31]Sock 9.Check first char [09:27:31]Sock 9.First char is OK [09:27:31]request: POST /json_proto HTTP/1.0 [09:27:31]Method: POST [09:27:31]URL: /json_proto [09:27:31]Method is POST - this is cgi request [09:27:31]url: /json_proto [09:27:31]query_string will be loaded in cgi processing [09:27:31]execute_cgi json_proto POST (null) [09:27:31]execute_cgi path=json_proto method=POST [09:27:31]POST find Content-Length [09:27:31]Host: 172.17.51.67:8080 [09:27:31]Content-Length: 677 [09:27:31]Content-Type: application/json [09:27:31] [09:27:31]POST finish read [09:27:31]Found Content-Length = 677 [09:27:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:31]execute_script... [09:27:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:31]POST & json_proto [09:27:31]process_json_proto [09:27:31]json parsed OK: [09:27:31]protocol is kg_v1.0 [09:27:31]action value=close_receipt [09:27:31]process_action close_receipt [09:27:31]cmd_close_receipt [09:27:31]MH_GetDate [09:27:31]Write to MH i2c: F0 00 00 9F 02 90 [09:27:31]Write i2c OK [09:27:31]MH_I2C_Read... [09:27:31]Read from MH i2c: F0 [09:27:31]MH_I2C_Read... [09:27:31]Read from MH i2c: F0 09 00 [09:27:31]MH_I2C_Read... [09:27:31]Read from MH i2c: F0 09 00 9F 02 00 84 C1 18 67 1E EF FA 64 C8 [09:27:31]GetLastDocTimeStamp 1729675269 [09:27:31]current date 1729675652 [09:27:31]FM_GetShiftState [09:27:31]SAM_PROTO_GetShiftState [09:27:31]wFMCommunicate request_size=4 [09:27:31]MH_SAM_APDU [09:27:31]CAPDU: 80 13 01 00 [09:27:31]Write to MH i2c: E2 08 00 A0 02 80 13 01 00 00 00 00 00 1F [09:27:31]Write i2c OK [09:27:31]MH_I2C_Read... [09:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:31]Read from MH i2c: E2 [09:27:31]MH_I2C_Read... [09:27:31]Read from MH i2c: E2 0E 00 [09:27:31]MH_I2C_Read... [09:27:31]Read from MH i2c: E2 0E 00 A0 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 58 [09:27:31]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:27:31]wFMCommunicate OK [09:27:31]SAM_PROTO_GetShiftState done [09:27:31]FM_GetShiftState done [09:27:31]opened in 1729642861 [09:27:31]opened+sec_in_day 1729729261 [09:27:31]quantity*price = 30038 [09:27:31]sum+1 = 30039 [09:27:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 43 23.10.2024 09:27 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103631 ФПД: 255571511774850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092732&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103631&fm=255571511774850&tin=02508201610067®Number=0000000000091754&sum=30000 [09:27:32]StoreToDocumentArchive [09:27:32]shift 582 fd 103631 [09:27:32]save to /storage/0582/doc_00103631 [09:27:32]save last doc name /storage/0582/doc_00103631 to /storage/kkm_last_doc_name [09:27:32]save OK [09:27:32]Clear old archive folders... [09:27:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:32]tlvbuf is 01E06490 [09:27:32]SAM_PROTO_ClearQueue [09:27:32]wFMCommunicate request_size=4 [09:27:32]MH_SAM_APDU [09:27:32]CAPDU: 80 09 00 00 [09:27:32]Write to MH i2c: E2 08 00 AD 02 80 09 00 00 00 00 00 00 21 [09:27:32]Write i2c OK [09:27:32]MH_I2C_Read... [09:27:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:32]Read from MH i2c: E2 [09:27:32]MH_I2C_Read... [09:27:32]Read from MH i2c: E2 03 00 [09:27:32]MH_I2C_Read... [09:27:32]Read from MH i2c: E2 03 00 AD 02 00 90 00 23 [09:27:32]RAPDU: 90 00 [09:27:32]wFMCommunicate OK [09:27:32]SAM_PROTO_ClearQueue done [09:27:32]KKMCreateOFDPacket [09:27:32]OFDProtocolAddRootSTLVToBuf [09:27:32]FM_MakeSignedData [09:27:32]FM_MakeSignedData [09:27:32]SAM_PROTO_SignData [09:27:32]wFMCommunicate request_size=4 [09:27:32]MH_SAM_APDU [09:27:32]CAPDU: 80 0D 01 02 [09:27:32]Write to MH i2c: E2 08 00 AE 02 80 0D 01 02 00 00 00 00 29 [09:27:32]Write i2c OK [09:27:32]MH_I2C_Read... [09:27:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:32]Read from MH i2c: E2 [09:27:32]MH_I2C_Read... [09:27:32]Read from MH i2c: E2 03 00 [09:27:32]MH_I2C_Read... [09:27:32]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [09:27:32]RAPDU: 90 00 [09:27:32]wFMCommunicate OK [09:27:32]wFMCommunicate request_size=255 [09:27:32]MH_SAM_APDU [09:27:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 84 C1 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CF 94 01 00 35 04 06 00 E8 [09:27:32]Write to MH i2c: E2 02 01 AF 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 84 C1 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CF 94 01 00 35 04 06 00 E8 00 00 29 [09:27:32]Write i2c OK [09:27:32]MH_I2C_Read... [09:27:33]OFD Sender: No OFD packet to send [09:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:33]Read from MH i2c: E2 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 03 00 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [09:27:33]RAPDU: 90 00 [09:27:33]wFMCommunicate OK [09:27:33]wFMCommunicate request_size=10 [09:27:33]MH_SAM_APDU [09:27:33]CAPDU: 80 0D 02 02 05 70 E1 2C 8E 82 [09:27:33]Write to MH i2c: E2 0D 00 B0 02 80 0D 02 02 05 00 70 E1 2C 8E 82 00 00 C3 [09:27:33]Write i2c OK [09:27:33]MH_I2C_Read... [09:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:33]Read from MH i2c: E2 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 03 00 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [09:27:33]RAPDU: 90 00 [09:27:33]wFMCommunicate OK [09:27:33]wFMCommunicate request_size=4 [09:27:33]MH_SAM_APDU [09:27:33]CAPDU: 80 0D 03 02 [09:27:33]Write to MH i2c: E2 08 00 B1 02 80 0D 03 02 00 00 00 00 2E [09:27:33]Write i2c OK [09:27:33]MH_I2C_Read... [09:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:33]Read from MH i2c: E2 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 0B 00 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 0B 00 B1 02 00 FE 27 C7 DE EB 3D A3 C2 90 00 86 [09:27:33]RAPDU: FE 27 C7 DE EB 3D A3 C2 90 00 [09:27:33]wFMCommunicate OK [09:27:33]SAM_PROTO_SignData done [09:27:33]FM_MakeSignedData done [09:27:33]CreateOFDProtocolMessage [09:27:33]wFMCommunicate request_size=4 [09:27:33]MH_SAM_APDU [09:27:33]CAPDU: 80 11 00 00 [09:27:33]Write to MH i2c: E2 08 00 B2 02 80 11 00 00 00 00 00 00 2E [09:27:33]Write i2c OK [09:27:33]MH_I2C_Read... [09:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:33]Read from MH i2c: E2 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 17 00 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 17 00 B2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 7B [09:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:27:33]wFMCommunicate OK [09:27:33]CreateOFDProtocolMessage done [09:27:33]OFDSenderStorePacket 103631 [09:27:33]StoreOFDPacket docnum=103631 [09:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 0C A3 07 01 92 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 84 C1 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CF 94 01 00 35 04 06 00 E8 70 E1 2C 8E 82 FE 27 C7 DE EB 3D A3 C2 [09:27:33]CheckFolder [09:27:33]dirname=/storage/ofd_packets [09:27:33]CheckFolder done [09:27:33]ProducePacketName [09:27:33]name=ofd_packets/00103631 [09:27:33]NVStorageSaveData ofd_packets/00103631 [09:27:33]File name is /storage/ofd_packets/00103631 [09:27:33]Write 301 bytes [09:27:33]NVStorageSaveData done [09:27:33]OFDSenderStorePacket done [09:27:33]KKMCreateOFDPacket done [09:27:33]NVStorageSaveData kkm_last_timestamp [09:27:33]File name is /storage/kkm_last_timestamp [09:27:33]Write 4 bytes [09:27:33]NVStorageSaveData done [09:27:33]ExternCall_PrintAddStr [09:27:33]wPrintStart [09:27:33]Write to MH i2c: 01 00 00 B3 02 B5 [09:27:33]Write i2c OK [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: 01 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: 01 07 00 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [09:27:33]RasterBufferAndPrint [09:27:33]line Счет N : (1)317834 [09:27:33]line ИНН: 02508201610067 [09:27:33]line Контрольно-Кассовый Чек [09:27:33]line ПРОДАЖА [09:27:33]line ТРК (МРК, ГНК) : 43 [09:27:33]line Товар: 2710124130 [09:27:33]line Аи-92-К-4 [09:27:33]line 4.490 * 66.90 [09:27:33]line = 300.38 [09:27:33]line НДС 12% НСП 1% [09:27:33]line > о реализуемом товаре [09:27:33]line ОКРУГЛЕНИЕ: -0.38 [09:27:33]line ИТОГО: 300.00 [09:27:33]line Внесено: 300.00 [09:27:33]line СДАЧА: 0.00 [09:27:33]line НСП 1% : 2.66 [09:27:33]line НДС 12% : 31.90 [09:27:33]line Наличными: 300.00 [09:27:33]line Безнал.: 0.00 [09:27:33]line Место: АЗС № 145 "Партнер Нефть" [09:27:33]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [09:27:33]line СНО: Общий режим [09:27:33]line Чек 43 23.10.2024 09:27 [09:27:33]line Смена: 582 ФФД: 1.0 [09:27:33]line ЗНМ: 0300000095 [09:27:33]line РНМ: 0000000000091754 [09:27:33]line Версия ККМ: 001 [09:27:33]line ФМ: 0000000000871811 [09:27:33]line ФД: 103631 [09:27:33]line ФПД: 255571511774850 [09:27:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T092732&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103631&fm=255571511774850&tin=02508201610067®Number=0000000000091754&sum=30000 [09:27:33]OFD Sender: Processing packet 103631 [packets to send 498, broken 497] [09:27:33]ProducePacketName [09:27:33]name=ofd_packets/00103631 [09:27:33]OFD Sender: To server: pG, [09:27:33]CommunicateWithHost lk.salyk.kg:30040 [09:27:33]ConnectInit lk.salyk.kg [09:27:33]written 0, free lines is 4095 [09:27:33]Write to MH i2c: 01 00 00 DD 02 DF [09:27:33]Write i2c OK [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: 01 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: 01 07 00 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: 01 07 00 DD 02 00 00 00 00 00 CC 0C BE [09:27:33]RasterBufferAndPrint [09:27:33]line [09:27:33]line [09:27:33]line [09:27:33]line [09:27:33]line [09:27:33]written 0, free lines is 3283 [09:27:34]MH_Cut [09:27:34]Write to MH i2c: D1 01 00 E4 02 01 B8 [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: D1 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: D1 01 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: D1 01 00 E4 02 00 B7 [09:27:34]Write to MH i2c: 01 00 00 E5 02 E7 [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]Connected sock=10 [09:27: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 31 31 0F 01 00 00 0C A3 07 01 92 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 84 C1 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 CF 94 01 00 35 04 06 00 E8 70 E1 2C 8E 82 FE 27 C7 DE EB 3D A3 C2 [09:27: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 31 31 4F 00 00 00 1C 43 47 00 D3 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 31 31 10 04 04 00 CF 94 01 00 F4 03 04 00 9A 68 18 67 B6 04 01 00 00 4D 7A 76 29 F4 72 32 C7 [09:27:34]CommunicateWithHost err = 0 [09:27:34]CheckOFDResponse [09:27:34]1017 (14) - 77093643461234 [09:27:34]1041 (16) - 0000000000871811 [09:27:34]1040 (4) - 103631 [09:27:34]1012 (4) - 23.10.2024 03:08 [09:27:34]1206 (1) - 0 [09:27:34]OFD Sender: Remove packet 103631 [09:27:34]ProducePacketName [09:27:34]name=ofd_packets/00103631 [09:27:34]NVStorageDeleteData [09:27:34]*** Cut start [09:27:34]*** Partial cut [09:27:34]*** CUTSNS_PIN = 1 [09:27:34]*** CUTSNS_PIN = 0 [09:27:35]*** Brake cut motor [09:27:35]OFD Sender: No OFD packet to send [09:27:35]Read from MH i2c: 01 [09:27:35]MH_I2C_Read... [09:27:35]*** Stop cut motor [09:27:35]*** Cut end [09:27:35]Read from MH i2c: 01 07 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: 01 07 00 E5 02 00 00 00 00 00 FF 0F FC [09:27:35]process_action close_receipt done [09:27:35]requested_data is exist [09:27:35]produce_requested_data [09:27:35]requested_item fm.sn is exist - process it [09:27:35]wFMCommunicate request_size=4 [09:27:35]MH_SAM_APDU [09:27:35]CAPDU: 80 11 00 00 [09:27:35]Write to MH i2c: E2 08 00 E6 02 80 11 00 00 00 00 00 00 62 [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:35]Read from MH i2c: E2 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 17 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 17 00 E6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 AF [09:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:27:35]wFMCommunicate OK [09:27:35]requested_item fd.num is exist - process it [09:27:35]SAM_PROTO_GetFieldsCounters [09:27:35]wFMCommunicate request_size=4 [09:27:35]MH_SAM_APDU [09:27:35]CAPDU: 80 13 00 00 [09:27:35]Write to MH i2c: E2 08 00 E7 02 80 13 00 00 00 00 00 00 65 [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:35]Read from MH i2c: E2 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 62 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 62 00 E7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 CF 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [09:27:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 CF 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:35]wFMCommunicate OK [09:27:35]SAM_PROTO_GetFieldsCounters done [09:27:35]requested_item shift.num is exist - process it [09:27:35]requested_item shift.opened is exist - process it [09:27:35]req_shift_opened [09:27:35]FM_GetShiftState [09:27:35]SAM_PROTO_GetShiftState [09:27:35]wFMCommunicate request_size=4 [09:27:35]MH_SAM_APDU [09:27:35]CAPDU: 80 13 01 00 [09:27:35]Write to MH i2c: E2 08 00 E8 02 80 13 01 00 00 00 00 00 67 [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:35]Read from MH i2c: E2 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 0E 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: E2 0E 00 E8 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 A0 [09:27:35]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:27:35]wFMCommunicate OK [09:27:35]SAM_PROTO_GetShiftState done [09:27:35]FM_GetShiftState done [09:27:35]req_shift_opened done [09:27:35]requested_item shift.open_date is exist - process it [09:27:35]req_shift_open_date [09:27:35]req_shift_open_date done [09:27:35]produce_requested_data done [09:27:35]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103631,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [09:27:35]process_action_free close_receipt [09:27:35]json_value_free [09:27:35]json_value_free done [09:27:35]process_json_proto returns [09:27:35]Send response to host [09:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103631,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [09:27:35]free response buf [09:27:35]execute_script done [09:27:35]execute_script returns [09:27:35]free content buf [09:27:35]Sock 9.Close socket [09:27:35]Sock 9.Thread stoped [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:54]recv_with_timeout no data received [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:19]recv_with_timeout no data received [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:36]recv_with_timeout no data received [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:50]recv_with_timeout no data received [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:42]recv_with_timeout no data received [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:47]recv_with_timeout no data received [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:50]recv_with_timeout no data received [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:13]recv_with_timeout no data received [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:12]recv_with_timeout no data received [09:40:14]accept exits with 8 [09:40:14]New connection [09:40:14]New thread 3067600228 created [09:40:14]Thread 3067456868 joined [09:40:14]Waiting for new connection... [09:40:14] Sock 8.Parse request [09:40:14]Sock 8.Check first char [09:40:14]Sock 8.First char is OK [09:40:14]request: POST /json_proto HTTP/1.0 [09:40:14]Method: POST [09:40:14]URL: /json_proto [09:40:14]Method is POST - this is cgi request [09:40:14]url: /json_proto [09:40:14]query_string will be loaded in cgi processing [09:40:14]execute_cgi json_proto POST (null) [09:40:14]execute_cgi path=json_proto method=POST [09:40:14]POST find Content-Length [09:40:14]Host: 172.17.51.67:8080 [09:40:14]Content-Length: 819 [09:40:14]Content-Type: application/json [09:40:14] [09:40:14]POST finish read [09:40:14]Found Content-Length = 819 [09:40:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:14]execute_script... [09:40:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:14]POST & json_proto [09:40:14]process_json_proto [09:40:14]json parsed OK: [09:40:14]protocol is kg_v1.0 [09:40:14]action value=close_receipt [09:40:14]process_action close_receipt [09:40:14]cmd_close_receipt [09:40:14]MH_GetDate [09:40:14]Write to MH i2c: F0 00 00 E9 02 DA [09:40:14]Write i2c OK [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: F0 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: F0 09 00 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: F0 09 00 E9 02 00 7F C4 18 67 1E EF FA 64 10 [09:40:14]GetLastDocTimeStamp 1729675652 [09:40:14]current date 1729676415 [09:40:14]FM_GetShiftState [09:40:14]SAM_PROTO_GetShiftState [09:40:14]wFMCommunicate request_size=4 [09:40:14]MH_SAM_APDU [09:40:14]CAPDU: 80 13 01 00 [09:40:14]Write to MH i2c: E2 08 00 EA 02 80 13 01 00 00 00 00 00 69 [09:40:14]Write i2c OK [09:40:14]MH_I2C_Read... [09:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:14]Read from MH i2c: E2 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 0E 00 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 0E 00 EA 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 A2 [09:40:14]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:40:14]wFMCommunicate OK [09:40:14]SAM_PROTO_GetShiftState done [09:40:14]FM_GetShiftState done [09:40:14]opened in 1729642861 [09:40:14]opened+sec_in_day 1729729261 [09:40:14]quantity*price = 100015 [09:40:14]sum+1 = 100017 [09:40:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 44 23.10.2024 09:40 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871811 ФД: 103632 ФПД: 151796155937052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T094015&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103632&fm=151796155937052&tin=02508201610067®Number=0000000000091754&sum=100016 [09:40:15]StoreToDocumentArchive [09:40:15]shift 582 fd 103632 [09:40:15]save to /storage/0582/doc_00103632 [09:40:15]save last doc name /storage/0582/doc_00103632 to /storage/kkm_last_doc_name [09:40:15]save OK [09:40:15]Clear old archive folders... [09:40:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:15]tlvbuf is 01E04430 [09:40:15]SAM_PROTO_ClearQueue [09:40:15]wFMCommunicate request_size=4 [09:40:15]MH_SAM_APDU [09:40:15]CAPDU: 80 09 00 00 [09:40:15]Write to MH i2c: E2 08 00 F7 02 80 09 00 00 00 00 00 00 6B [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:15]Read from MH i2c: E2 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 03 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [09:40:15]RAPDU: 90 00 [09:40:15]wFMCommunicate OK [09:40:15]SAM_PROTO_ClearQueue done [09:40:15]KKMCreateOFDPacket [09:40:15]OFDProtocolAddRootSTLVToBuf [09:40:15]FM_MakeSignedData [09:40:15]FM_MakeSignedData [09:40:15]SAM_PROTO_SignData [09:40:15]wFMCommunicate request_size=4 [09:40:15]MH_SAM_APDU [09:40:15]CAPDU: 80 0D 01 02 [09:40:15]Write to MH i2c: E2 08 00 F8 02 80 0D 01 02 00 00 00 00 73 [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:15]Read from MH i2c: E2 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 03 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [09:40:15]RAPDU: 90 00 [09:40:15]wFMCommunicate OK [09:40:15]wFMCommunicate request_size=255 [09:40:15]MH_SAM_APDU [09:40:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 7F C4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D0 94 01 00 35 04 06 00 8A [09:40:15]Write to MH i2c: E2 02 01 F9 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 7F C4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D0 94 01 00 35 04 06 00 8A 00 00 3B [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:15]Read from MH i2c: E2 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 03 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [09:40:15]RAPDU: 90 00 [09:40:15]wFMCommunicate OK [09:40:15]wFMCommunicate request_size=10 [09:40:15]MH_SAM_APDU [09:40:15]CAPDU: 80 0D 02 02 05 0E CB F3 F1 1C [09:40:15]Write to MH i2c: E2 0D 00 FA 02 80 0D 02 02 05 00 0E CB F3 F1 1C 00 00 59 [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:15]Read from MH i2c: E2 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 03 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [09:40:15]RAPDU: 90 00 [09:40:15]wFMCommunicate OK [09:40:15]wFMCommunicate request_size=4 [09:40:15]MH_SAM_APDU [09:40:15]CAPDU: 80 0D 03 02 [09:40:15]Write to MH i2c: E2 08 00 FB 02 80 0D 03 02 00 00 00 00 78 [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0B 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0B 00 FB 02 00 86 B8 71 01 71 F0 89 41 90 00 54 [09:40:16]RAPDU: 86 B8 71 01 71 F0 89 41 90 00 [09:40:16]wFMCommunicate OK [09:40:16]SAM_PROTO_SignData done [09:40:16]FM_MakeSignedData done [09:40:16]CreateOFDProtocolMessage [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 11 00 00 [09:40:16]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 17 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 C5 [09:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:40:16]wFMCommunicate OK [09:40:16]CreateOFDProtocolMessage done [09:48:31]ConnectInit Can't connect to host [09:48:33]ConnectInit Can't take IP for lk.salyk.kg [09:48:33]CommunicateWithHost connect error [09:48:33]CommunicateWithHost err = -1 [09:48:33]OFD Sender: Server communicate error [09:48:38]OFD Sender: Processing packet 103632 [packets to send 498, broken 497] [09:48:38]ProducePacketName [09:48:38]name=ofd_packets/00103632 [09:48:38]OFD Sender: To server: pG, [09:48:38]CommunicateWithHost lk.salyk.kg:30040 [09:48:38]ConnectInit lk.salyk.kg [09:48:38]Connected sock=7 [09:48: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 31 31 0F 01 00 00 C5 F0 07 01 99 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 7F C4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D0 94 01 00 35 04 06 00 8A 0E CB F3 F1 1C 86 B8 71 01 71 F0 89 41 [09:48: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 31 31 4F 00 00 00 6C 82 47 00 1F 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D0 94 01 00 F4 03 04 00 8B 6D 18 67 B6 04 01 00 00 2C 86 A4 59 00 E6 14 53 [09:48:39]CommunicateWithHost err = 0 [09:48:39]CheckOFDResponse [09:48:39]1017 (14) - 77093643461234 [09:48:39]1041 (16) - 0000000000871811 [09:48:39]1040 (4) - 103632 [09:48:39]1012 (4) - 23.10.2024 03:29 [09:48:39]1206 (1) - 0 [09:48:39]OFD Sender: Remove packet 103632 [09:48:39]ProducePacketName [09:48:39]name=ofd_packets/00103632 [09:48:39]NVStorageDeleteData [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:48]recv_with_timeout no data received [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:57]recv_with_timeout no data received [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:22]recv_with_timeout no data received [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:06]recv_with_timeout no data received [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:47]recv_with_timeout no data received [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:49]accept exits with 9 [09:55:49]New connection [09:55:49]New thread 3067129188 created [09:55:49]Waiting for new connection... [09:55:49] Sock 9.Parse request [09:55:49]Sock 9.Check first char [09:55:49]Sock 9.First char is OK [09:55:49]request: POST /json_proto HTTP/1.0 [09:55:49]Method: POST [09:55:49]URL: /json_proto [09:55:49]Method is POST - this is cgi request [09:55:49]url: /json_proto [09:55:49]query_string will be loaded in cgi processing [09:55:49]execute_cgi json_proto POST (null) [09:55:49]execute_cgi path=json_proto method=POST [09:55:49]POST find Content-Length [09:55:49]Host: 172.17.51.67:8080 [09:55:49]Content-Length: 215 [09:55:49]Content-Type: application/json [09:55:49] [09:55:49]POST finish read [09:55:49]Found Content-Length = 215 [09:55:49]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" ] } } [09:55:49]execute_script... [09:55:49]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" ] } } [09:55:49]POST & json_proto [09:55:49]process_json_proto [09:55:49]json parsed OK: [09:55:49]protocol is kg_v1.0 [09:55:49]action value=get_value [09:55:49]process_action get_value [09:55:49]cmd_get_value [09:55:49]process_action get_value done [09:55:49]requested_data is exist [09:55:49]produce_requested_data [09:55:49]requested_item kkm.sn is exist - process it [09:55:49]requested_item kkm.ver is exist - process it [09:55:49]requested_item fm.sn is exist - process it [09:55:49]wFMCommunicate request_size=4 [09:55:49]MH_SAM_APDU [09:55:49]CAPDU: 80 11 00 00 [09:55:49]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:55:49]Write i2c OK [09:55:49]MH_I2C_Read... [09:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:49]Read from MH i2c: E2 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: E2 17 00 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D7 [09:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:55:49]wFMCommunicate OK [09:55:49]requested_item fd.num is exist - process it [09:55:49]SAM_PROTO_GetFieldsCounters [09:55:49]wFMCommunicate request_size=4 [09:55:49]MH_SAM_APDU [09:55:49]CAPDU: 80 13 00 00 [09:55:49]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:55:49]Write i2c OK [09:55:49]MH_I2C_Read... [09:55:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:49]Read from MH i2c: E2 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: E2 62 00 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D0 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [09:55: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D0 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:49]wFMCommunicate OK [09:55:49]SAM_PROTO_GetFieldsCounters done [09:55:49]requested_item shift.num is exist - process it [09:55:49]requested_item shift.opened is exist - process it [09:55:49]req_shift_opened [09:55:49]FM_GetShiftState [09:55:49]SAM_PROTO_GetShiftState [09:55:49]wFMCommunicate request_size=4 [09:55:49]MH_SAM_APDU [09:55:49]CAPDU: 80 13 01 00 [09:55:49]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:55:49]Write i2c OK [09:55:49]MH_I2C_Read... [09:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:49]Read from MH i2c: E2 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: E2 0E 00 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 C8 [09:55:49]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:55:49]wFMCommunicate OK [09:55:49]SAM_PROTO_GetShiftState done [09:55:49]FM_GetShiftState done [09:55:49]req_shift_opened done [09:55:49]requested_item shift.open_date is exist - process it [09:55:49]req_shift_open_date [09:55:49]req_shift_open_date done [09:55:49]produce_requested_data done [09:55:49]produce_requested_data return {"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103632,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [09:55:49]process_action_free get_value [09:55:49]json_value_free [09:55:49]json_value_free done [09:55:49]process_json_proto returns [09:55:49]Send response to host [09:55:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103632,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [09:55:49]free response buf [09:55:49]execute_script done [09:55:49]execute_script returns [09:55:49]free content buf [09:55:49]Sock 9.Close socket [09:55:49]Sock 9.Thread stoped [09:55:49]accept exits with 10 [09:55:49]New connection [09:55:49]New thread 3066985828 created [09:55:49]Thread 3067129188 joined [09:55:49]Waiting for new connection... [09:55:49] Sock 10.Parse request [09:55:49]Sock 10.Check first char [09:55:49]Sock 10.First char is OK [09:55:49]request: POST /json_proto HTTP/1.0 [09:55:49]Method: POST [09:55:49]URL: /json_proto [09:55:49]Method is POST - this is cgi request [09:55:49]url: /json_proto [09:55:49]query_string will be loaded in cgi processing [09:55:49]execute_cgi json_proto POST (null) [09:55:49]execute_cgi path=json_proto method=POST [09:55:49]POST find Content-Length [09:55:49]Host: 172.17.51.67:8080 [09:55:49]Content-Length: 331 [09:55:49]Content-Type: application/json [09:55:49] [09:55:49]POST finish read [09:55:49]Found Content-Length = 331 [09:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:55:49]execute_script... [09:55:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:55:50]POST & json_proto [09:55:50]process_json_proto [09:55:50]json parsed OK: [09:55:50]protocol is kg_v1.0 [09:55:50]action value=get_value [09:55:50]process_action get_value [09:55:50]cmd_get_value [09:55:50]process_action get_value done [09:55:50]requested_data is exist [09:55:50]produce_requested_data [09:55:50]requested_item fm.sale.total is exist - process it [09:55:50]SAM_PROTO_GetFMData [09:55:50]wFMCommunicate request_size=4 [09:55:50]MH_SAM_APDU [09:55:50]CAPDU: 80 13 03 00 [09:55:50]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:55:50]Write i2c OK [09:55:50]MH_I2C_Read... [09:55:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:55:50]OFD Sender: No OFD packet to send [09:55:50]Read from MH i2c: E2 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 FD 00 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 44 90 01 00 69 04 A3 00 6F 04 04 00 D8 8F 01 00 B1 04 05 00 0E 84 16 F9 01 70 04 05 00 E8 91 56 8D 01 72 04 04 00 26 F2 BF 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3D 4F A7 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 DE 88 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 F0 [09:55:50]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 44 90 01 00 69 04 A3 00 6F 04 04 00 D8 8F 01 00 B1 04 05 00 0E 84 16 F9 01 70 04 05 00 E8 91 56 8D 01 72 04 04 00 26 F2 BF 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3D 4F A7 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 DE 88 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [09:55:50]wFMCommunicate OK [09:55:50]wFMCommunicate request_size=4 [09:55:50]MH_SAM_APDU [09:55:50]CAPDU: 80 17 00 00 [09:55:50]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:55:50]Write i2c OK [09:55:50]MH_I2C_Read... [09:55:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:55:50]Read from MH i2c: E2 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 FD 00 [09:55:50]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [09:55:51]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:55:51]wFMCommunicate OK [09:55:51]wFMCommunicate request_size=4 [09:55:51]MH_SAM_APDU [09:55:51]CAPDU: 80 17 00 00 [09:55:51]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:55:51]Write i2c OK [09:55:51]MH_I2C_Read... [09:55:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:55:51]Read from MH i2c: E2 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 FD 00 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [09:55:51]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:55:51]wFMCommunicate OK [09:55:51]wFMCommunicate request_size=4 [09:55:51]MH_SAM_APDU [09:55:51]CAPDU: 80 17 00 00 [09:55:51]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:55:51]Write i2c OK [09:55:51]MH_I2C_Read... [09:55:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:55:51]Read from MH i2c: E2 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 FD 00 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 FD 00 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [09:55:51]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:55:51]wFMCommunicate OK [09:55:51]wFMCommunicate request_size=4 [09:55:51]MH_SAM_APDU [09:55:51]CAPDU: 80 17 00 00 [09:55:51]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:55:51]Write i2c OK [09:55:51]MH_I2C_Read... [09:55:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [09:55:51]Read from MH i2c: E2 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 E4 00 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [09:55:51]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:55:51]wFMCommunicate OK [09:55:51]SAM_PROTO_GetFMData done [09:55:51]requested_item fm.sale_refund.total is exist - process it [09:55:51]requested_item fm.buy.total is exist - process it [09:55:51]requested_item shift.sale.total is exist - process it [09:55:51]SAM_PROTO_GetShiftData [09:55:51]wFMCommunicate request_size=4 [09:55:51]MH_SAM_APDU [09:55:51]CAPDU: 80 13 02 00 [09:55:51]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:55:51]Write i2c OK [09:55:51]MH_I2C_Read... [09:55:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:55:52]Read from MH i2c: E2 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 FD 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2C 00 00 00 B1 04 03 00 D3 C3 33 70 04 03 00 7C 51 28 72 04 03 00 57 72 0B 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 C5 7F 05 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 51 75 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 50 [09:55:52]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2C 00 00 00 B1 04 03 00 D3 C3 33 70 04 03 00 7C 51 28 72 04 03 00 57 72 0B 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 C5 7F 05 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 51 75 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:55:52]wFMCommunicate OK [09:55:52]wFMCommunicate request_size=4 [09:55:52]MH_SAM_APDU [09:55:52]CAPDU: 80 17 00 00 [09:55:52]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:55:52]Read from MH i2c: E2 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 FD 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [09:55:52]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 [09:55:52]wFMCommunicate OK [09:55:52]wFMCommunicate request_size=4 [09:55:52]MH_SAM_APDU [09:55:52]CAPDU: 80 17 00 00 [09:55:52]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:55:52]Read from MH i2c: E2 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 FD 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [09:55:52]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 [09:55:52]wFMCommunicate OK [09:55:52]wFMCommunicate request_size=4 [09:55:52]MH_SAM_APDU [09:55:52]CAPDU: 80 17 00 00 [09:55:52]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 FD 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [09:55:53]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:55:53]wFMCommunicate OK [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 17 00 00 [09:55:53]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 CB 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [09:55:53]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 [09:55:53]wFMCommunicate OK [09:55:53]SAM_PROTO_GetShiftData done [09:55:53]requested_item shift.sale.total_cash is exist - process it [09:55:53]requested_item shift.sale_refund.total is exist - process it [09:55:53]requested_item shift.sale_refund.total_cash is exist - process it [09:55:53]requested_item shift.buy.total is exist - process it [09:55:53]requested_item shift.buy.total_cash is exist - process it [09:55:53]produce_requested_data done [09:55:53]produce_requested_data return {"fm.sale.total":84739696.78,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":33924.67,"shift.sale.total_cash":26423.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:55:53]process_action_free get_value [09:55:53]json_value_free [09:55:53]json_value_free done [09:55:53]process_json_proto returns [09:55:53]Send response to host [09:55:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84739696.78,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":33924.67,"shift.sale.total_cash":26423.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:55:53]free response buf [09:55:53]execute_script done [09:55:53]execute_script returns [09:55:53]free content buf [09:55:53]Sock 10.Close socket [09:55:53]Sock 10.Thread stoped [09:55:53]accept exits with 9 [09:55:53]New connection [09:55:53]New thread 3067129188 created [09:55:53]Thread 3066985828 joined [09:55:53]Waiting for new connection... [09:55:53] Sock 9.Parse request [09:55:53]Sock 9.Check first char [09:55:53]Sock 9.First char is OK [09:55:53]request: POST /json_proto HTTP/1.0 [09:55:53]Method: POST [09:55:53]URL: /json_proto [09:55:53]Method is POST - this is cgi request [09:55:53]url: /json_proto [09:55:53]query_string will be loaded in cgi processing [09:55:53]execute_cgi json_proto POST (null) [09:55:53]execute_cgi path=json_proto method=POST [09:55:53]POST find Content-Length [09:55:53]Host: 172.17.51.67:8080 [09:55:53]Content-Length: 682 [09:55:53]Content-Type: application/json [09:55:53] [09:55:53]POST finish read [09:55:53]Found Content-Length = 682 [09:55:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:53]execute_script... [09:55:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:53]POST & json_proto [09:55:53]process_json_proto [09:55:53]json parsed OK: [09:55:53]protocol is kg_v1.0 [09:55:53]action value=close_receipt [09:55:53]process_action close_receipt [09:55:53]cmd_close_receipt [09:55:53]MH_GetDate [09:55:53]Write to MH i2c: F0 00 00 1D 00 0C [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: F0 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: F0 09 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: F0 09 00 1D 00 00 2A C8 18 67 1E EF FA 64 F1 [09:55:53]GetLastDocTimeStamp 1729676415 [09:55:53]current date 1729677354 [09:55:53]FM_GetShiftState [09:55:53]SAM_PROTO_GetShiftState [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 13 01 00 [09:55:53]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 0E 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D4 [09:55:53]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [09:55:53]wFMCommunicate OK [09:55:53]SAM_PROTO_GetShiftState done [09:55:53]FM_GetShiftState done [09:55:53]opened in 1729642861 [09:55:53]opened+sec_in_day 1729729261 [09:55:53]quantity*price = 100021 [09:55:53]sum+1 = 100023 [09:55:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 45 23.10.2024 09:55 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103633 ФПД: 242561324684899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095554&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103633&fm=242561324684899&tin=02508201610067®Number=0000000000091754&sum=100000 [09:55:54]StoreToDocumentArchive [09:55:54]shift 582 fd 103633 [09:55:54]save to /storage/0582/doc_00103633 [09:55:54]save last doc name /storage/0582/doc_00103633 to /storage/kkm_last_doc_name [09:55:54]save OK [09:55:54]Clear old archive folders... [09:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:54]tlvbuf is 0164D080 [09:55:54]SAM_PROTO_ClearQueue [09:55:54]wFMCommunicate request_size=4 [09:55:54]MH_SAM_APDU [09:55:54]CAPDU: 80 09 00 00 [09:55:54]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:55:54]Write i2c OK [09:55:54]MH_I2C_Read... [09:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:54]Read from MH i2c: E2 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: E2 03 00 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:55:54]RAPDU: 90 00 [09:55:54]wFMCommunicate OK [09:55:54]SAM_PROTO_ClearQueue done [09:55:54]KKMCreateOFDPacket [09:55:54]OFDProtocolAddRootSTLVToBuf [09:55:54]FM_MakeSignedData [09:55:54]FM_MakeSignedData [09:55:54]SAM_PROTO_SignData [09:55:54]wFMCommunicate request_size=4 [09:55:54]MH_SAM_APDU [09:55:54]CAPDU: 80 0D 01 02 [09:55:54]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:55:54]Write i2c OK [09:55:54]MH_I2C_Read... [09:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:54]Read from MH i2c: E2 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: E2 03 00 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:55:54]RAPDU: 90 00 [09:55:54]wFMCommunicate OK [09:55:54]wFMCommunicate request_size=255 [09:55:54]MH_SAM_APDU [09:55:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 2A C8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D1 94 01 00 35 04 06 00 DC [09:55:55]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 2A C8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D1 94 01 00 35 04 06 00 DC 00 00 74 [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:55]Read from MH i2c: E2 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 03 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:55:55]RAPDU: 90 00 [09:55:55]wFMCommunicate OK [09:55:55]wFMCommunicate request_size=10 [09:55:55]MH_SAM_APDU [09:55:55]CAPDU: 80 0D 02 02 05 9B B5 98 16 63 [09:55:55]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 9B B5 98 16 63 00 00 13 [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:55]Read from MH i2c: E2 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 03 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:55:55]RAPDU: 90 00 [09:55:55]wFMCommunicate OK [09:55:55]wFMCommunicate request_size=4 [09:55:55]MH_SAM_APDU [09:55:55]CAPDU: 80 0D 03 02 [09:55:55]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:55]Read from MH i2c: E2 [09:55:55]MH_I2C_Read... [09:55:55]OFD Sender: No OFD packet to send [09:55:55]Read from MH i2c: E2 0B 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 0B 00 2F 00 00 05 34 FF 5F 2E 60 A9 F0 90 00 69 [09:55:55]RAPDU: 05 34 FF 5F 2E 60 A9 F0 90 00 [09:55:55]wFMCommunicate OK [09:55:55]SAM_PROTO_SignData done [09:55:55]FM_MakeSignedData done [09:55:55]CreateOFDProtocolMessage [09:55:55]wFMCommunicate request_size=4 [09:55:55]MH_SAM_APDU [09:55:55]CAPDU: 80 11 00 00 [09:55:55]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:55]Read from MH i2c: E2 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 17 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 F7 [09:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [09:55:55]wFMCommunicate OK [09:55:55]CreateOFDProtocolMessage done [09:55:55]OFDSenderStorePacket 103633 [09:55:55]StoreOFDPacket docnum=103633 [09:55:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 A8 19 07 01 9B D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 2A C8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D1 94 01 00 35 04 06 00 DC 9B B5 98 16 63 05 34 FF 5F 2E 60 A9 F0 [10:02:59]ConnectInit Can't connect to host [10:03:01]ConnectInit Can't take IP for lk.salyk.kg [10:03:01]CommunicateWithHost connect error [10:03:01]CommunicateWithHost err = -1 [10:03:01]OFD Sender: Server communicate error [10:03:06]OFD Sender: Processing packet 103633 [packets to send 498, broken 497] [10:03:06]ProducePacketName [10:03:06]name=ofd_packets/00103633 [10:03:06]OFD Sender: To server: pG, [10:03:06]CommunicateWithHost lk.salyk.kg:30040 [10:03:06]ConnectInit lk.salyk.kg [10:03:06]Connected sock=10 [10:03: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 31 31 0F 01 00 00 A8 19 07 01 9B D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 2A C8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D1 94 01 00 35 04 06 00 DC 9B B5 98 16 63 05 34 FF 5F 2E 60 A9 F0 [10:03: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 31 31 4F 00 00 00 91 29 47 00 46 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D1 94 01 00 F4 03 04 00 EF 70 18 67 B6 04 01 00 00 09 FC 96 B2 5F 66 C5 B8 [10:03:07]CommunicateWithHost err = 0 [10:03:07]CheckOFDResponse [10:03:07]1017 (14) - 77093643461234 [10:03:07]1041 (16) - 0000000000871811 [10:03:07]1040 (4) - 103633 [10:03:07]1012 (4) - 23.10.2024 03:43 [10:03:07]1206 (1) - 0 [10:03:07]OFD Sender: Remove packet 103633 [10:03:07]ProducePacketName [10:03:07]name=ofd_packets/00103633 [10:03:07]NVStorageDeleteData [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:16]recv_with_timeout no data received [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:17]recv_with_timeout no data received [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:50]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:35]accept exits with 9 [10:06:35]New connection [10:06:35]New thread 3066772836 created [10:06:35]Waiting for new connection... [10:06:35] Sock 9.Parse request [10:06:35]Sock 9.Check first char [10:06:35]Sock 9.First char is OK [10:06:35]request: POST /json_proto HTTP/1.0 [10:06:35]Method: POST [10:06:35]URL: /json_proto [10:06:35]Method is POST - this is cgi request [10:06:35]url: /json_proto [10:06:35]query_string will be loaded in cgi processing [10:06:35]execute_cgi json_proto POST (null) [10:06:35]execute_cgi path=json_proto method=POST [10:06:35]POST find Content-Length [10:06:35]Host: 172.17.51.67:8080 [10:06:35]Content-Length: 215 [10:06:35]Content-Type: application/json [10:06:35] [10:06:35]POST finish read [10:06:35]Found Content-Length = 215 [10:06:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:35]execute_script... [10:06:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:35]POST & json_proto [10:06:35]process_json_proto [10:06:35]json parsed OK: [10:06:35]protocol is kg_v1.0 [10:06:35]action value=get_value [10:06:35]process_action get_value [10:06:35]cmd_get_value [10:06:35]process_action get_value done [10:06:35]requested_data is exist [10:06:35]produce_requested_data [10:06:35]requested_item kkm.sn is exist - process it [10:06:35]requested_item kkm.ver is exist - process it [10:06:35]requested_item fm.sn is exist - process it [10:06:35]wFMCommunicate request_size=4 [10:06:35]MH_SAM_APDU [10:06:35]CAPDU: 80 11 00 00 [10:06:35]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [10:06:35]Write i2c OK [10:06:35]MH_I2C_Read... [10:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:35]Read from MH i2c: E2 [10:06:35]MH_I2C_Read... [10:06:35]Read from MH i2c: E2 17 00 [10:06:35]MH_I2C_Read... [10:06:35]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D7 [10:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:06:35]wFMCommunicate OK [10:06:35]requested_item fd.num is exist - process it [10:06:35]SAM_PROTO_GetFieldsCounters [10:06:35]wFMCommunicate request_size=4 [10:06:35]MH_SAM_APDU [10:06:35]CAPDU: 80 13 00 00 [10:06:35]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [10:06:35]Write i2c OK [10:06:35]MH_I2C_Read... [10:06:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:35]Read from MH i2c: E2 [10:06:35]MH_I2C_Read... [10:06:35]Read from MH i2c: E2 62 00 [10:06:35]MH_I2C_Read... [10:06:35]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D1 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [10:06:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D1 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:35]wFMCommunicate OK [10:06:35]SAM_PROTO_GetFieldsCounters done [10:06:35]requested_item shift.num is exist - process it [10:06:35]requested_item shift.opened is exist - process it [10:06:35]req_shift_opened [10:06:35]FM_GetShiftState [10:06:35]SAM_PROTO_GetShiftState [10:06:35]wFMCommunicate request_size=4 [10:06:35]MH_SAM_APDU [10:06:35]CAPDU: 80 13 01 00 [10:06:35]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [10:06:35]Write i2c OK [10:06:35]MH_I2C_Read... [10:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:35]Read from MH i2c: E2 [10:06:35]MH_I2C_Read... [10:06:35]Read from MH i2c: E2 0E 00 [10:06:35]MH_I2C_Read... [10:06:35]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 C8 [10:06:35]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:06:35]wFMCommunicate OK [10:06:35]SAM_PROTO_GetShiftState done [10:06:35]FM_GetShiftState done [10:06:35]req_shift_opened done [10:06:35]requested_item shift.open_date is exist - process it [10:06:35]req_shift_open_date [10:06:35]req_shift_open_date done [10:06:35]produce_requested_data done [10:06:35]produce_requested_data return {"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103633,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:06:35]process_action_free get_value [10:06:35]json_value_free [10:06:35]json_value_free done [10:06:35]process_json_proto returns [10:06:35]Send response to host [10:06:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103633,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:06:35]free response buf [10:06:35]execute_script done [10:06:35]execute_script returns [10:06:35]free content buf [10:06:35]Sock 9.Close socket [10:06:35]Sock 9.Thread stoped [10:06:35]accept exits with 7 [10:06:35]New connection [10:06:35]New thread 3066629476 created [10:06:35]Thread 3066772836 joined [10:06:35]Waiting for new connection... [10:06:35] Sock 7.Parse request [10:06:35]Sock 7.Check first char [10:06:35]Sock 7.First char is OK [10:06:35]request: POST /json_proto HTTP/1.0 [10:06:35]Method: POST [10:06:35]URL: /json_proto [10:06:35]Method is POST - this is cgi request [10:06:35]url: /json_proto [10:06:35]query_string will be loaded in cgi processing [10:06:35]execute_cgi json_proto POST (null) [10:06:35]execute_cgi path=json_proto method=POST [10:06:35]POST find Content-Length [10:06:35]Host: 172.17.51.67:8080 [10:06:35]Content-Length: 331 [10:06:35]Content-Type: application/json [10:06:35] [10:06:35]POST finish read [10:06:35]Found Content-Length = 331 [10:06:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:06:35]execute_script... [10:06:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:06:35]POST & json_proto [10:06:35]process_json_proto [10:06:35]json parsed OK: [10:06:35]protocol is kg_v1.0 [10:06:35]action value=get_value [10:06:35]process_action get_value [10:06:35]cmd_get_value [10:06:35]process_action get_value done [10:06:35]requested_data is exist [10:06:35]produce_requested_data [10:06:35]requested_item fm.sale.total is exist - process it [10:06:35]SAM_PROTO_GetFMData [10:06:35]wFMCommunicate request_size=4 [10:06:35]MH_SAM_APDU [10:06:35]CAPDU: 80 13 03 00 [10:06:35]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [10:06:35]Write i2c OK [10:06:35]MH_I2C_Read... [10:06:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:06:36]Read from MH i2c: E2 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 FD 00 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 45 90 01 00 69 04 A3 00 6F 04 04 00 D9 8F 01 00 B1 04 05 00 AE 0A 18 F9 01 70 04 05 00 88 18 58 8D 01 72 04 04 00 26 F2 BF 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BB 78 A7 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 53 8C 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 63 [10:06:36]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 45 90 01 00 69 04 A3 00 6F 04 04 00 D9 8F 01 00 B1 04 05 00 AE 0A 18 F9 01 70 04 05 00 88 18 58 8D 01 72 04 04 00 26 F2 BF 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BB 78 A7 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 53 8C 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [10:06:36]wFMCommunicate OK [10:06:36]wFMCommunicate request_size=4 [10:06:36]MH_SAM_APDU [10:06:36]CAPDU: 80 17 00 00 [10:06:36]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [10:06:36]Write i2c OK [10:06:36]MH_I2C_Read... [10:06:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:06:36]Read from MH i2c: E2 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 FD 00 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [10:06:36]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:06:36]wFMCommunicate OK [10:06:36]wFMCommunicate request_size=4 [10:06:36]MH_SAM_APDU [10:06:36]CAPDU: 80 17 00 00 [10:06:36]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [10:06:36]Write i2c OK [10:06:36]MH_I2C_Read... [10:06:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:06:36]Read from MH i2c: E2 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 FD 00 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [10:06:36]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:06:36]wFMCommunicate OK [10:06:36]wFMCommunicate request_size=4 [10:06:36]MH_SAM_APDU [10:06:36]CAPDU: 80 17 00 00 [10:06:36]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [10:06:36]Write i2c OK [10:06:36]MH_I2C_Read... [10:06:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:06:37]Read from MH i2c: E2 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 FD 00 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 FD 00 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [10:06:37]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:06:37]wFMCommunicate OK [10:06:37]wFMCommunicate request_size=4 [10:06:37]MH_SAM_APDU [10:06:37]CAPDU: 80 17 00 00 [10:06:37]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [10:06:37]Write i2c OK [10:06:37]MH_I2C_Read... [10:06:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [10:06:37]Read from MH i2c: E2 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 E4 00 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [10:06:37]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:06:37]wFMCommunicate OK [10:06:37]SAM_PROTO_GetFMData done [10:06:37]requested_item fm.sale_refund.total is exist - process it [10:06:37]requested_item fm.buy.total is exist - process it [10:06:37]requested_item shift.sale.total is exist - process it [10:06:37]SAM_PROTO_GetShiftData [10:06:37]wFMCommunicate request_size=4 [10:06:37]MH_SAM_APDU [10:06:37]CAPDU: 80 13 02 00 [10:06:37]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [10:06:37]Write i2c OK [10:06:37]MH_I2C_Read... [10:06:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:06:37]Read from MH i2c: E2 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 FD 00 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 2D 00 00 00 69 04 9B 00 6F 04 04 00 2D 00 00 00 B1 04 03 00 73 4A 35 70 04 03 00 1C D8 29 72 04 03 00 57 72 0B 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 43 A9 05 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 C6 78 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C3 [10:06:37]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2D 00 00 00 69 04 9B 00 6F 04 04 00 2D 00 00 00 B1 04 03 00 73 4A 35 70 04 03 00 1C D8 29 72 04 03 00 57 72 0B 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 43 A9 05 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 C6 78 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:37]wFMCommunicate OK [10:06:37]wFMCommunicate request_size=4 [10:06:37]MH_SAM_APDU [10:06:37]CAPDU: 80 17 00 00 [10:06:37]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:06:37]Write i2c OK [10:06:37]MH_I2C_Read... [10:06:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:06:37]Read from MH i2c: E2 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 FD 00 [10:06:37]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [10:06: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 [10:06:38]wFMCommunicate OK [10:06:38]wFMCommunicate request_size=4 [10:06:38]MH_SAM_APDU [10:06:38]CAPDU: 80 17 00 00 [10:06:38]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:06:38]Write i2c OK [10:06:38]MH_I2C_Read... [10:06:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:06:38]Read from MH i2c: E2 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 FD 00 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [10:06: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 [10:06:38]wFMCommunicate OK [10:06:38]wFMCommunicate request_size=4 [10:06:38]MH_SAM_APDU [10:06:38]CAPDU: 80 17 00 00 [10:06:38]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:06:38]Write i2c OK [10:06:38]MH_I2C_Read... [10:06:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:06:38]Read from MH i2c: E2 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 FD 00 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [10:06:38]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:06:38]wFMCommunicate OK [10:06:38]wFMCommunicate request_size=4 [10:06:38]MH_SAM_APDU [10:06:38]CAPDU: 80 17 00 00 [10:06:38]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [10:06:38]Write i2c OK [10:06:38]MH_I2C_Read... [10:06:38]OFD Sender: No OFD packet to send [10:06:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:06:38]Read from MH i2c: E2 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 CB 00 [10:06:38]MH_I2C_Read... [10:06:38]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [10:06:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:06:38]wFMCommunicate OK [10:06:38]SAM_PROTO_GetShiftData done [10:06:38]requested_item shift.sale.total_cash is exist - process it [10:06:38]requested_item shift.sale_refund.total is exist - process it [10:06:38]requested_item shift.sale_refund.total_cash is exist - process it [10:06:38]requested_item shift.buy.total is exist - process it [10:06:38]requested_item shift.buy.total_cash is exist - process it [10:06:38]produce_requested_data done [10:06:38]produce_requested_data return {"fm.sale.total":84740696.78,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":34924.67,"shift.sale.total_cash":27423.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:06:38]process_action_free get_value [10:06:38]json_value_free [10:06:38]json_value_free done [10:06:38]process_json_proto returns [10:06:38]Send response to host [10:06:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84740696.78,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":34924.67,"shift.sale.total_cash":27423.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:06:38]free response buf [10:06:38]execute_script done [10:06:38]execute_script returns [10:06:38]free content buf [10:06:38]Sock 7.Close socket [10:06:38]Sock 7.Thread stoped [10:06:39]accept exits with 9 [10:06:39]New connection [10:06:39]New thread 3066772836 created [10:06:39]Thread 3066629476 joined [10:06:39]Waiting for new connection... [10:06:39] Sock 9.Parse request [10:06:39]Sock 9.Check first char [10:06:39]Sock 9.First char is OK [10:06:39]request: POST /json_proto HTTP/1.0 [10:06:39]Method: POST [10:06:39]URL: /json_proto [10:06:39]Method is POST - this is cgi request [10:06:39]url: /json_proto [10:06:39]query_string will be loaded in cgi processing [10:06:39]execute_cgi json_proto POST (null) [10:06:39]execute_cgi path=json_proto method=POST [10:06:39]POST find Content-Length [10:06:39]Host: 172.17.51.67:8080 [10:06:39]Content-Length: 682 [10:06:39]Content-Type: application/json [10:06:39] [10:06:39]POST finish read [10:06:39]Found Content-Length = 682 [10:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 19.210, "sum" : 1425.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1425.00, "total" : 1425.00, "payments": [ { "type": 0, "sum" : 1425.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:39]execute_script... [10:06:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 19.210, "sum" : 1425.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1425.00, "total" : 1425.00, "payments": [ { "type": 0, "sum" : 1425.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:39]POST & json_proto [10:06:39]process_json_proto [10:06:39]json parsed OK: [10:06:39]protocol is kg_v1.0 [10:06:39]action value=close_receipt [10:06:39]process_action close_receipt [10:06:39]cmd_close_receipt [10:06:39]MH_GetDate [10:06:39]Write to MH i2c: F0 00 00 1D 00 0C [10:06:39]Write i2c OK [10:06:39]MH_I2C_Read... [10:06:39]Read from MH i2c: F0 [10:06:39]MH_I2C_Read... [10:06:39]Read from MH i2c: F0 09 00 [10:06:39]MH_I2C_Read... [10:06:39]Read from MH i2c: F0 09 00 1D 00 00 AF CA 18 67 1E EF FA 64 78 [10:06:39]GetLastDocTimeStamp 1729677354 [10:06:39]current date 1729677999 [10:06:39]FM_GetShiftState [10:06:39]SAM_PROTO_GetShiftState [10:06:39]wFMCommunicate request_size=4 [10:06:39]MH_SAM_APDU [10:06:39]CAPDU: 80 13 01 00 [10:06:39]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [10:06:39]Write i2c OK [10:06:39]MH_I2C_Read... [10:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:39]Read from MH i2c: E2 [10:06:39]MH_I2C_Read... [10:06:39]Read from MH i2c: E2 0E 00 [10:06:39]MH_I2C_Read... [10:06:39]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D4 [10:06:39]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:06:39]wFMCommunicate OK [10:06:39]SAM_PROTO_GetShiftState done [10:06:39]FM_GetShiftState done [10:06:39]opened in 1729642861 [10:06:39]opened+sec_in_day 1729729261 [10:06:39]quantity*price = 142538 [10:06:39]sum+1 = 142539 [10:06:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1425.00 Внесено: 1425.00 СДАЧА: 0.00 НСП 1% : 12.61 НДС 12% : 151.37 Наличными: 1425.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 46 23.10.2024 10:06 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103634 ФПД: 267104945839539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100639&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103634&fm=267104945839539&tin=02508201610067®Number=0000000000091754&sum=142500 [10:06:40]StoreToDocumentArchive [10:06:40]shift 582 fd 103634 [10:06:40]save to /storage/0582/doc_00103634 [10:06:40]save last doc name /storage/0582/doc_00103634 to /storage/kkm_last_doc_name [10:06:40]save OK [10:06:40]Clear old archive folders... [10:06:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:40]tlvbuf is 01A3A1A0 [10:06:40]SAM_PROTO_ClearQueue [10:06:40]wFMCommunicate request_size=4 [10:06:40]MH_SAM_APDU [10:06:40]CAPDU: 80 09 00 00 [10:06:40]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [10:06:40]Write i2c OK [10:06:40]MH_I2C_Read... [10:06:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:40]Read from MH i2c: E2 [10:06:40]MH_I2C_Read... [10:06:40]Read from MH i2c: E2 03 00 [10:06:40]MH_I2C_Read... [10:06:40]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [10:06:40]RAPDU: 90 00 [10:06:40]wFMCommunicate OK [10:06:40]SAM_PROTO_ClearQueue done [10:06:40]KKMCreateOFDPacket [10:06:40]OFDProtocolAddRootSTLVToBuf [10:06:40]FM_MakeSignedData [10:06:40]FM_MakeSignedData [10:06:40]SAM_PROTO_SignData [10:06:40]wFMCommunicate request_size=4 [10:06:40]MH_SAM_APDU [10:06:40]CAPDU: 80 0D 01 02 [10:06:40]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [10:06:40]Write i2c OK [10:06:40]MH_I2C_Read... [10:06:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:40]Read from MH i2c: E2 [10:06:40]MH_I2C_Read... [10:06:40]Read from MH i2c: E2 03 00 [10:06:40]MH_I2C_Read... [10:06:40]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [10:06:40]RAPDU: 90 00 [10:06:40]wFMCommunicate OK [10:06:40]wFMCommunicate request_size=255 [10:06:40]MH_SAM_APDU [10:06:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CA 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 3B 00 00 00 00 07 04 06 00 A4 2C 02 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 AF CA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D2 94 01 00 35 04 06 00 F2 [10:06:40]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CA 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 3B 00 00 00 00 07 04 06 00 A4 2C 02 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 AF CA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D2 94 01 00 35 04 06 00 F2 00 00 CB [10:06:40]Write i2c OK [10:06:40]MH_I2C_Read... [10:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:41]Read from MH i2c: E2 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 03 00 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [10:06:41]RAPDU: 90 00 [10:06:41]wFMCommunicate OK [10:06:41]wFMCommunicate request_size=10 [10:06:41]MH_SAM_APDU [10:06:41]CAPDU: 80 0D 02 02 05 EE 37 6A 1D B3 [10:06:41]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 EE 37 6A 1D B3 00 00 11 [10:06:41]Write i2c OK [10:06:41]MH_I2C_Read... [10:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:41]Read from MH i2c: E2 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 03 00 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [10:06:41]RAPDU: 90 00 [10:06:41]wFMCommunicate OK [10:06:41]wFMCommunicate request_size=4 [10:06:41]MH_SAM_APDU [10:06:41]CAPDU: 80 0D 03 02 [10:06:41]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [10:06:41]Write i2c OK [10:06:41]MH_I2C_Read... [10:06:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:41]Read from MH i2c: E2 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 0B 00 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 0B 00 2F 00 00 DA AD D6 0E 92 36 D9 50 90 00 07 [10:06:41]RAPDU: DA AD D6 0E 92 36 D9 50 90 00 [10:06:41]wFMCommunicate OK [10:06:41]SAM_PROTO_SignData done [10:06:41]FM_MakeSignedData done [10:06:41]CreateOFDProtocolMessage [10:06:41]wFMCommunicate request_size=4 [10:06:41]MH_SAM_APDU [10:06:41]CAPDU: 80 11 00 00 [10:06:41]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [10:06:41]Write i2c OK [10:06:41]MH_I2C_Read... [10:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:41]Read from MH i2c: E2 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 17 00 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 F7 [10:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:06:41]wFMCommunicate OK [10:06:41]CreateOFDProtocolMessage done [10:06:41]OFDSenderStorePacket 103634 [10:06:41]StoreOFDPacket docnum=103634 [10:06:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 77 50 07 01 6C C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CA 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 3B 00 00 00 00 07 04 06 00 A4 2C 02 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 AF CA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D2 94 01 00 35 04 06 00 F2 EE 37 6A 1D B3 DA AD D6 0E 92 36 D9 50 [10:06:41]CheckFolder [10:06:41]dirname=/storage/ofd_packets [10:06:41]CheckFolder done [10:06:41]ProducePacketName [10:06:41]name=ofd_packets/00103634 [10:06:41]NVStorageSaveData ofd_packets/00103634 [10:06:41]File name is /storage/ofd_packets/00103634 [10:06:41]Write 301 bytes [10:06:41]NVStorageSaveData done [10:06:41]OFDSenderStorePacket done [10:06:41]KKMCreateOFDPacket done [10:06:41]NVStorageSaveData kkm_last_timestamp [10:06:41]File name is /storage/kkm_last_timestamp [10:06:41]Write 4 bytes [10:06:41]NVStorageSaveData done [10:06:41]ExternCall_PrintAddStr [10:06:41]wPrintStart [10:06:41]Write to MH i2c: 01 00 00 31 00 31 [10:06:41]Write i2c OK [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: 01 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: 01 07 00 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [10:06:41]RasterBufferAndPrint [10:06:41]line Счет N : (1)317840 [10:06:41]line ИНН: 02508201610067 [10:06:41]line Контрольно-Кассовый Чек [10:06:41]line ПРОДАЖА [10:06:41]line ТРК (МРК, ГНК) : 44 [10:06:41]line Товар: 2710124500 [10:06:41]line Аи-95-К-5 [10:06:41]line 19.210 * 74.20 [10:06:41]line = 1425.38 [10:06:41]line НДС 12% НСП 1% [10:06:41]line > о реализуемом товаре [10:06:41]line ОКРУГЛЕНИЕ: -0.38 [10:06:41]line ИТОГО: 1425.00 [10:06:41]line Внесено: 1425.00 [10:06:41]line СДАЧА: 0.00 [10:06:41]line НСП 1% : 12.61 [10:06:41]line НДС 12% : 151.37 [10:06:41]line Наличными: 1425.00 [10:06:41]line Безнал.: 0.00 [10:06:41]line Место: АЗС № 145 "Партнер Нефть" [10:06:41]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:06:41]line СНО: Общий режим [10:06:41]line Чек 46 23.10.2024 10:06 [10:06:41]line Смена: 582 ФФД: 1.0 [10:06:41]line ЗНМ: 0300000095 [10:06:41]line РНМ: 0000000000091754 [10:06:41]line Версия ККМ: 001 [10:06:41]line ФМ: 0000000000871811 [10:06:41]line ФД: 103634 [10:06:41]line ФПД: 267104945839539 [10:06:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100639&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103634&fm=267104945839539&tin=02508201610067®Number=0000000000091754&sum=142500 [10:06:41]OFD Sender: Processing packet 103634 [packets to send 498, broken 497] [10:06:41]ProducePacketName [10:06:41]name=ofd_packets/00103634 [10:06:41]OFD Sender: To server: pG, [10:06:41]CommunicateWithHost lk.salyk.kg:30040 [10:06:41]ConnectInit lk.salyk.kg [10:06:41]written 0, free lines is 4095 [10:06:42]Write to MH i2c: 01 00 00 5B 00 5B [10:06:42]Write i2c OK [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: 01 [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: 01 07 00 [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 CC 0C 3A [10:06:42]RasterBufferAndPrint [10:06:42]line [10:06:42]line [10:06:42]line [10:06:42]line [10:06:42]line [10:06:42]written 0, free lines is 3293 [10:06:42]Connected sock=10 [10:06: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 31 31 0F 01 00 00 77 50 07 01 6C C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CA 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 3B 00 00 00 00 07 04 06 00 A4 2C 02 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 AF CA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D2 94 01 00 35 04 06 00 F2 EE 37 6A 1D B3 DA AD D6 0E 92 36 D9 50 [10:06:42]MH_Cut [10:06:42]Write to MH i2c: D1 01 00 62 00 01 34 [10:06:42]Write i2c OK [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: D1 [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: D1 01 00 [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: D1 01 00 62 00 00 33 [10:06:42]Write to MH i2c: 01 00 00 63 00 63 [10:06:42]Write i2c OK [10:06:42]MH_I2C_Read... [10:06: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 31 31 4F 00 00 00 F2 64 47 00 A4 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 31 31 10 04 04 00 D2 94 01 00 F4 03 04 00 C6 71 18 67 B6 04 01 00 00 3F 17 F7 27 2A C0 86 9D [10:06:42]CommunicateWithHost err = 0 [10:06:42]CheckOFDResponse [10:06:42]1017 (14) - 77093643461234 [10:06:42]1041 (16) - 0000000000871811 [10:06:42]1040 (4) - 103634 [10:06:42]1012 (4) - 23.10.2024 03:47 [10:06:42]1206 (1) - 0 [10:06:42]OFD Sender: Remove packet 103634 [10:06:42]ProducePacketName [10:06:42]name=ofd_packets/00103634 [10:06:42]NVStorageDeleteData [10:06:42]*** Cut start [10:06:42]*** Partial cut [10:06:42]*** CUTSNS_PIN = 1 [10:06:42]*** CUTSNS_PIN = 0 [10:06:43]OFD Sender: No OFD packet to send [10:06:43]*** Brake cut motor [10:06:43]Read from MH i2c: 01 [10:06:43]MH_I2C_Read... [10:06:43]*** Stop cut motor [10:06:43]*** Cut end [10:06:43]Read from MH i2c: 01 07 00 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [10:06:43]process_action close_receipt done [10:06:43]requested_data is exist [10:06:43]produce_requested_data [10:06:43]requested_item fm.sn is exist - process it [10:06:43]wFMCommunicate request_size=4 [10:06:43]MH_SAM_APDU [10:06:43]CAPDU: 80 11 00 00 [10:06:43]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [10:06:43]Write i2c OK [10:06:43]MH_I2C_Read... [10:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:43]Read from MH i2c: E2 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 17 00 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 2B [10:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:06:43]wFMCommunicate OK [10:06:43]requested_item fd.num is exist - process it [10:06:43]SAM_PROTO_GetFieldsCounters [10:06:43]wFMCommunicate request_size=4 [10:06:43]MH_SAM_APDU [10:06:43]CAPDU: 80 13 00 00 [10:06:43]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [10:06:43]Write i2c OK [10:06:43]MH_I2C_Read... [10:06:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:43]Read from MH i2c: E2 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 62 00 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D2 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [10:06: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D2 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:43]wFMCommunicate OK [10:06:43]SAM_PROTO_GetFieldsCounters done [10:06:43]requested_item shift.num is exist - process it [10:06:43]requested_item shift.opened is exist - process it [10:06:43]req_shift_opened [10:06:43]FM_GetShiftState [10:06:43]SAM_PROTO_GetShiftState [10:06:43]wFMCommunicate request_size=4 [10:06:43]MH_SAM_APDU [10:06:43]CAPDU: 80 13 01 00 [10:06:43]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [10:06:43]Write i2c OK [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 [10:06:43]MH_I2C_Read... [10:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:43]Read from MH i2c: E2 0E 00 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 1C [10:06:43]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:06:43]wFMCommunicate OK [10:06:43]SAM_PROTO_GetShiftState done [10:06:43]FM_GetShiftState done [10:06:43]req_shift_opened done [10:06:43]requested_item shift.open_date is exist - process it [10:06:43]req_shift_open_date [10:06:43]req_shift_open_date done [10:06:43]produce_requested_data done [10:06:43]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103634,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:06:43]process_action_free close_receipt [10:06:43]json_value_free [10:06:43]json_value_free done [10:06:43]process_json_proto returns [10:06:43]Send response to host [10:06:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103634,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:06:43]free response buf [10:06:43]execute_script done [10:06:43]execute_script returns [10:06:43]free content buf [10:06:43]Sock 9.Close socket [10:06:43]Sock 9.Thread stoped [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:25]accept exits with 7 [10:07:25]New connection [10:07:25]New thread 3066629476 created [10:07:25]Thread 3066772836 joined [10:07:25]Waiting for new connection... [10:07:25] Sock 7.Parse request [10:07:25]Sock 7.Check first char [10:07:25]Sock 7.First char is OK [10:07:25]request: POST /json_proto HTTP/1.0 [10:07:25]Method: POST [10:07:25]URL: /json_proto [10:07:25]Method is POST - this is cgi request [10:07:25]url: /json_proto [10:07:25]query_string will be loaded in cgi processing [10:07:25]execute_cgi json_proto POST (null) [10:07:25]execute_cgi path=json_proto method=POST [10:07:25]POST find Content-Length [10:07:25]Host: 172.17.51.67:8080 [10:07:25]Content-Length: 841 [10:07:25]Content-Type: application/json [10:07:25] [10:07:25]POST finish read [10:07:25]Found Content-Length = 841 [10:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:25]execute_script... [10:07:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:25]POST & json_proto [10:07:25]process_json_proto [10:07:25]json parsed OK: [10:07:25]protocol is kg_v1.0 [10:07:25]action value=close_receipt [10:07:25]process_action close_receipt [10:07:25]cmd_close_receipt [10:07:25]MH_GetDate [10:07:25]Write to MH i2c: F0 00 00 67 00 56 [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: F0 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: F0 09 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: F0 09 00 67 00 00 DD CA 18 67 1E EF FA 64 F0 [10:07:25]GetLastDocTimeStamp 1729677999 [10:07:25]current date 1729678045 [10:07:25]FM_GetShiftState [10:07:25]SAM_PROTO_GetShiftState [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 13 01 00 [10:07:25]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0E 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 1E [10:07:25]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:07:25]wFMCommunicate OK [10:07:25]SAM_PROTO_GetShiftState done [10:07:25]FM_GetShiftState done [10:07:25]opened in 1729642861 [10:07:25]opened+sec_in_day 1729729261 [10:07:25]quantity*price = 70044 [10:07:25]sum+1 = 70045 [10:07:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 47 23.10.2024 10:07 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103635 ФПД: 221532966412534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100725&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103635&fm=221532966412534&tin=02508201610067®Number=0000000000091754&sum=70044 [10:07:26]StoreToDocumentArchive [10:07:26]shift 582 fd 103635 [10:07:26]save to /storage/0582/doc_00103635 [10:07:26]save last doc name /storage/0582/doc_00103635 to /storage/kkm_last_doc_name [10:07:26]save OK [10:07:26]Clear old archive folders... [10:07:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:26]tlvbuf is 01A6A850 [10:07:26]SAM_PROTO_ClearQueue [10:07:26]wFMCommunicate request_size=4 [10:07:26]MH_SAM_APDU [10:07:26]CAPDU: 80 09 00 00 [10:07:26]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:26]Read from MH i2c: E2 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [10:07:26]RAPDU: 90 00 [10:07:26]wFMCommunicate OK [10:07:26]SAM_PROTO_ClearQueue done [10:07:26]KKMCreateOFDPacket [10:07:26]OFDProtocolAddRootSTLVToBuf [10:07:26]FM_MakeSignedData [10:07:26]FM_MakeSignedData [10:07:26]SAM_PROTO_SignData [10:07:26]wFMCommunicate request_size=4 [10:07:26]MH_SAM_APDU [10:07:26]CAPDU: 80 0D 01 02 [10:07:26]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:26]Read from MH i2c: E2 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [10:07:26]RAPDU: 90 00 [10:07:26]wFMCommunicate OK [10:07:26]wFMCommunicate request_size=255 [10:07:26]MH_SAM_APDU [10:07:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 DD CA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D3 94 01 00 35 04 06 00 C9 [10:07:26]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 DD CA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D3 94 01 00 35 04 06 00 C9 00 00 AE [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:26]Read from MH i2c: E2 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 [10:07:26]MH_I2C_Read... [10:07:26]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [10:07:26]RAPDU: 90 00 [10:07:26]wFMCommunicate OK [10:07:26]wFMCommunicate request_size=10 [10:07:26]MH_SAM_APDU [10:07:26]CAPDU: 80 0D 02 02 05 7B A9 C4 E0 F6 [10:07:26]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 7B A9 C4 E0 F6 00 00 BA [10:07:26]Write i2c OK [10:07:26]MH_I2C_Read... [10:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:27]Read from MH i2c: E2 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: E2 03 00 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [10:07:27]RAPDU: 90 00 [10:07:27]wFMCommunicate OK [10:07:27]wFMCommunicate request_size=4 [10:07:27]MH_SAM_APDU [10:07:27]CAPDU: 80 0D 03 02 [10:07:27]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [10:07:27]Write i2c OK [10:07:27]MH_I2C_Read... [10:07:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:27]Read from MH i2c: E2 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: E2 0B 00 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: E2 0B 00 79 00 00 74 44 A7 2E 10 97 29 E1 90 00 33 [10:07:27]RAPDU: 74 44 A7 2E 10 97 29 E1 90 00 [10:07:27]wFMCommunicate OK [10:07:27]SAM_PROTO_SignData done [10:07:27]FM_MakeSignedData done [10:07:27]CreateOFDProtocolMessage [10:07:27]wFMCommunicate request_size=4 [10:07:27]MH_SAM_APDU [10:07:27]CAPDU: 80 11 00 00 [10:07:27]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [10:07:27]Write i2c OK [10:07:27]MH_I2C_Read... [10:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:27]Read from MH i2c: E2 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: E2 17 00 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 41 [10:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:07:27]wFMCommunicate OK [10:07:27]CreateOFDProtocolMessage done [10:07:27]OFDSenderStorePacket 103635 [10:07:27]StoreOFDPacket docnum=103635 [10:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 85 62 07 01 D2 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 DD CA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D3 94 01 00 35 04 06 00 C9 7B A9 C4 E0 F6 74 44 A7 2E 10 97 29 E1 [10:07:27]CheckFolder [10:07:27]dirname=/storage/ofd_packets [10:07:27]CheckFolder done [10:07:27]ProducePacketName [10:07:27]name=ofd_packets/00103635 [10:07:27]NVStorageSaveData ofd_packets/00103635 [10:07:27]File name is /storage/ofd_packets/00103635 [10:07:27]Write 301 bytes [10:07:27]NVStorageSaveData done [10:07:27]OFDSenderStorePacket done [10:07:27]KKMCreateOFDPacket done [10:07:27]NVStorageSaveData kkm_last_timestamp [10:07:27]File name is /storage/kkm_last_timestamp [10:07:27]Write 4 bytes [10:07:27]NVStorageSaveData done [10:07:27]ExternCall_PrintAddStr [10:07:27]wPrintStart [10:07:27]Write to MH i2c: 01 00 00 7B 00 7B [10:07:27]Write i2c OK [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 07 00 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [10:07:27]RasterBufferAndPrint [10:07:27]line Счет N : (1)317844 [10:07:27]line ИНН: 02508201610067 [10:07:27]line Контрольно-Кассовый Чек [10:07:27]line ПРОДАЖА [10:07:27]line ТРК (МРК, ГНК) : 53 [10:07:27]line Товар: 2710124130 [10:07:27]line Аи-92-К-4 [10:07:27]line 10.470 * 66.90 [10:07:27]line = 700.44 [10:07:27]line НДС 12% НСП 1% [10:07:27]line > о реализуемом товаре [10:07:27]line ИТОГО: 700.44 [10:07:27]line НСП 1% : 6.20 [10:07:27]line НДС 12% : 74.38 [10:07:27]line Наличными: 0.00 [10:07:27]line Безнал.: 700.44 [10:07:27]line Место: АЗС № 145 "Партнер Нефть" [10:07:27]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:07:27]line СНО: Общий режим [10:07:27]line Чек 47 23.10.2024 10:07 [10:07:27]line Смена: 582 ФФД: 1.0 [10:07:27]line ЗНМ: 0300000095 [10:07:27]line РНМ: 0000000000091754 [10:07:27]line Версия ККМ: 001 [10:07:27]line Платежная система: АКБ Кыргызстан [10:07:27]line ФМ: 0000000000871811 [10:07:27]line ФД: 103635 [10:07:27]line ФПД: 221532966412534 [10:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100725&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103635&fm=221532966412534&tin=02508201610067®Number=0000000000091754&sum=70044 [10:07:27]written 0, free lines is 4095 [10:07:27]OFD Sender: Processing packet 103635 [packets to send 498, broken 497] [10:07:27]ProducePacketName [10:07:27]name=ofd_packets/00103635 [10:07:27]OFD Sender: To server: pG, [10:07:27]CommunicateWithHost lk.salyk.kg:30040 [10:07:27]ConnectInit lk.salyk.kg [10:07:27]Write to MH i2c: 01 00 00 A4 00 A4 [10:07:27]Write i2c OK [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 07 00 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 DE 0C 95 [10:07:27]RasterBufferAndPrint [10:07:27]line [10:07:27]line [10:07:27]line [10:07:27]line [10:07:27]line [10:07:27]written 0, free lines is 3300 [10:07:27]MH_Cut [10:07:27]Write to MH i2c: D1 01 00 AB 00 01 7D [10:07:27]Write i2c OK [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: D1 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: D1 01 00 [10:07:27]MH_I2C_Read... [10:07:27]Read from MH i2c: D1 01 00 AB 00 00 7C [10:07:27]Write to MH i2c: 01 00 00 AC 00 AC [10:07:27]Write i2c OK [10:07:27]MH_I2C_Read... [10:07:27]Connected sock=9 [10:07: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 31 31 0F 01 00 00 85 62 07 01 D2 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 DD CA 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D3 94 01 00 35 04 06 00 C9 7B A9 C4 E0 F6 74 44 A7 2E 10 97 29 E1 [10:07: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 31 31 4F 00 00 00 40 A7 47 00 73 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D3 94 01 00 F4 03 04 00 F3 71 18 67 B6 04 01 00 00 A2 CB 13 0C 6A 96 CC C1 [10:07:28]CommunicateWithHost err = 0 [10:07:28]CheckOFDResponse [10:07:28]1017 (14) - 77093643461234 [10:07:28]1041 (16) - 0000000000871811 [10:07:28]1040 (4) - 103635 [10:07:28]1012 (4) - 23.10.2024 03:48 [10:07:28]1206 (1) - 0 [10:07:28]OFD Sender: Remove packet 103635 [10:07:28]ProducePacketName [10:07:28]name=ofd_packets/00103635 [10:07:28]NVStorageDeleteData [10:07:28]*** Cut start [10:07:28]*** Partial cut [10:07:28]*** CUTSNS_PIN = 1 [10:07:28]*** CUTSNS_PIN = 0 [10:07:28]*** Brake cut motor [10:07:28]OFD Sender: No OFD packet to send [10:07:28]Read from MH i2c: 01 [10:07:28]MH_I2C_Read... [10:07:28]*** Stop cut motor [10:07:28]*** Cut end [10:07:28]Read from MH i2c: 01 07 00 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [10:07:28]process_action close_receipt done [10:07:28]requested_data is exist [10:07:28]produce_requested_data [10:07:28]requested_item fm.sn is exist - process it [10:07:28]wFMCommunicate request_size=4 [10:07:28]MH_SAM_APDU [10:07:28]CAPDU: 80 11 00 00 [10:07:28]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [10:07:28]Write i2c OK [10:07:28]MH_I2C_Read... [10:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:29]Read from MH i2c: E2 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 17 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 74 [10:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:07:29]wFMCommunicate OK [10:07:29]requested_item fd.num is exist - process it [10:07:29]SAM_PROTO_GetFieldsCounters [10:07:29]wFMCommunicate request_size=4 [10:07:29]MH_SAM_APDU [10:07:29]CAPDU: 80 13 00 00 [10:07:29]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:29]Read from MH i2c: E2 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 62 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 62 00 AE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D3 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [10:07: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D3 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:29]wFMCommunicate OK [10:07:29]SAM_PROTO_GetFieldsCounters done [10:07:29]requested_item shift.num is exist - process it [10:07:29]requested_item shift.opened is exist - process it [10:07:29]req_shift_opened [10:07:29]FM_GetShiftState [10:07:29]SAM_PROTO_GetShiftState [10:07:29]wFMCommunicate request_size=4 [10:07:29]MH_SAM_APDU [10:07:29]CAPDU: 80 13 01 00 [10:07:29]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:29]Read from MH i2c: E2 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 0E 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 65 [10:07:29]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:07:29]wFMCommunicate OK [10:07:29]SAM_PROTO_GetShiftState done [10:07:29]FM_GetShiftState done [10:07:29]req_shift_opened done [10:07:29]requested_item shift.open_date is exist - process it [10:07:29]req_shift_open_date [10:07:29]req_shift_open_date done [10:07:29]produce_requested_data done [10:07:29]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103635,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:07:29]process_action_free close_receipt [10:07:29]json_value_free [10:07:29]json_value_free done [10:07:29]process_json_proto returns [10:07:29]Send response to host [10:07:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103635,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:07:29]free response buf [10:07:29]execute_script done [10:07:29]execute_script returns [10:07:29]free content buf [10:07:29]Sock 7.Close socket [10:07:29]Sock 7.Thread stoped [10:07:33]OFD Sender: No OFD packet to send [10:07:36]recv_with_timeout no data received [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:57]recv_with_timeout no data received [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:17]accept exits with 10 [10:08:17]New connection [10:08:17]New thread 3066772836 created [10:08:17]Thread 3066629476 joined [10:08:17]Waiting for new connection... [10:08:17] Sock 10.Parse request [10:08:17]Sock 10.Check first char [10:08:17]Sock 10.First char is OK [10:08:17]request: POST /json_proto HTTP/1.0 [10:08:17]Method: POST [10:08:17]URL: /json_proto [10:08:17]Method is POST - this is cgi request [10:08:17]url: /json_proto [10:08:17]query_string will be loaded in cgi processing [10:08:17]execute_cgi json_proto POST (null) [10:08:17]execute_cgi path=json_proto method=POST [10:08:17]POST find Content-Length [10:08:17]Host: 172.17.51.67:8080 [10:08:17]Content-Length: 682 [10:08:17]Content-Type: application/json [10:08:17] [10:08:17]POST finish read [10:08:17]Found Content-Length = 682 [10:08:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:17]execute_script... [10:08:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:17]POST & json_proto [10:08:17]process_json_proto [10:08:17]json parsed OK: [10:08:17]protocol is kg_v1.0 [10:08:17]action value=close_receipt [10:08:17]process_action close_receipt [10:08:17]cmd_close_receipt [10:08:17]MH_GetDate [10:08:17]Write to MH i2c: F0 00 00 B0 00 9F [10:08:17]Write i2c OK [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: F0 [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: F0 09 00 [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: F0 09 00 B0 00 00 11 CB 18 67 1E EF FA 64 6E [10:08:17]GetLastDocTimeStamp 1729678045 [10:08:17]current date 1729678097 [10:08:17]FM_GetShiftState [10:08:17]SAM_PROTO_GetShiftState [10:08:17]wFMCommunicate request_size=4 [10:08:17]MH_SAM_APDU [10:08:17]CAPDU: 80 13 01 00 [10:08:17]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [10:08:17]Write i2c OK [10:08:17]MH_I2C_Read... [10:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:17]Read from MH i2c: E2 [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: E2 0E 00 [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 67 [10:08:17]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:08:17]wFMCommunicate OK [10:08:17]SAM_PROTO_GetShiftState done [10:08:17]FM_GetShiftState done [10:08:17]opened in 1729642861 [10:08:17]opened+sec_in_day 1729729261 [10:08:17]quantity*price = 100015 [10:08:17]sum+1 = 100017 [10:08:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 48 23.10.2024 10:08 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103636 ФПД: 159934550952132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100817&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103636&fm=159934550952132&tin=02508201610067®Number=0000000000091754&sum=100000 [10:08:18]StoreToDocumentArchive [10:08:18]shift 582 fd 103636 [10:08:18]save to /storage/0582/doc_00103636 [10:08:18]save last doc name /storage/0582/doc_00103636 to /storage/kkm_last_doc_name [10:08:18]save OK [10:08:18]Clear old archive folders... [10:08:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:18]tlvbuf is 01A6A430 [10:08:18]SAM_PROTO_ClearQueue [10:08:18]wFMCommunicate request_size=4 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 09 00 00 [10:08:18]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [10:08:18]RAPDU: 90 00 [10:08:18]wFMCommunicate OK [10:08:18]SAM_PROTO_ClearQueue done [10:08:18]KKMCreateOFDPacket [10:08:18]OFDProtocolAddRootSTLVToBuf [10:08:18]FM_MakeSignedData [10:08:18]FM_MakeSignedData [10:08:18]SAM_PROTO_SignData [10:08:18]wFMCommunicate request_size=4 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 0D 01 02 [10:08:18]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [10:08:18]RAPDU: 90 00 [10:08:18]wFMCommunicate OK [10:08:18]wFMCommunicate request_size=255 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 11 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D4 94 01 00 35 04 06 00 91 [10:08:18]Write to MH i2c: E2 02 01 C0 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 11 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D4 94 01 00 35 04 06 00 91 00 00 88 [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [10:08:18]RAPDU: 90 00 [10:08:18]wFMCommunicate OK [10:08:18]wFMCommunicate request_size=10 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 0D 02 02 05 75 AA 18 C8 C4 [10:08:18]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 75 AA 18 C8 C4 00 00 08 [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [10:08:18]RAPDU: 90 00 [10:08:18]wFMCommunicate OK [10:08:18]wFMCommunicate request_size=4 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 0D 03 02 [10:08:18]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 0B 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 0B 00 C2 00 00 0C 54 F9 87 21 86 67 C2 90 00 EE [10:08:18]RAPDU: 0C 54 F9 87 21 86 67 C2 90 00 [10:08:18]wFMCommunicate OK [10:08:18]SAM_PROTO_SignData done [10:08:18]FM_MakeSignedData done [10:08:18]CreateOFDProtocolMessage [10:08:18]wFMCommunicate request_size=4 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 11 00 00 [10:08:18]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 17 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 8A [10:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:08:18]wFMCommunicate OK [10:08:18]CreateOFDProtocolMessage done [10:08:18]OFDSenderStorePacket 103636 [10:08:18]StoreOFDPacket docnum=103636 [10:08:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 EF 23 07 01 1E D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 11 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D4 94 01 00 35 04 06 00 91 75 AA 18 C8 C4 0C 54 F9 87 21 86 67 C2 [10:08:18]CheckFolder [10:08:18]dirname=/storage/ofd_packets [10:08:18]CheckFolder done [10:08:18]ProducePacketName [10:08:18]name=ofd_packets/00103636 [10:08:18]NVStorageSaveData ofd_packets/00103636 [10:08:18]File name is /storage/ofd_packets/00103636 [10:08:18]Write 301 bytes [10:08:18]NVStorageSaveData done [10:08:18]OFDSenderStorePacket done [10:08:18]KKMCreateOFDPacket done [10:08:18]NVStorageSaveData kkm_last_timestamp [10:08:18]File name is /storage/kkm_last_timestamp [10:08:18]Write 4 bytes [10:08:18]NVStorageSaveData done [10:08:18]ExternCall_PrintAddStr [10:08:18]wPrintStart [10:08:18]Write to MH i2c: 01 00 00 C4 00 C4 [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: 01 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: 01 07 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [10:08:18]RasterBufferAndPrint [10:08:18]line Счет N : (1)317845 [10:08:18]line ИНН: 02508201610067 [10:08:18]line Контрольно-Кассовый Чек [10:08:18]line ПРОДАЖА [10:08:18]line ТРК (МРК, ГНК) : 43 [10:08:18]line Товар: 2710124130 [10:08:18]line Аи-92-К-4 [10:08:18]line 14.950 * 66.90 [10:08:18]line = 1000.16 [10:08:18]line НДС 12% НСП 1% [10:08:18]line > о реализуемом товаре [10:08:18]line ОКРУГЛЕНИЕ: -0.16 [10:08:18]line ИТОГО: 1000.00 [10:08:18]line Внесено: 1000.00 [10:08:18]line СДАЧА: 0.00 [10:08:18]line НСП 1% : 8.85 [10:08:18]line НДС 12% : 106.21 [10:08:18]line Наличными: 1000.00 [10:08:18]line Безнал.: 0.00 [10:08:18]line Место: АЗС № 145 "Партнер Нефть" [10:08:18]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:08:18]line СНО: Общий режим [10:08:18]line Чек 48 23.10.2024 10:08 [10:08:18]line Смена: 582 ФФД: 1.0 [10:08:18]line ЗНМ: 0300000095 [10:08:18]line РНМ: 0000000000091754 [10:08:18]line Версия ККМ: 001 [10:08:18]line ФМ: 0000000000871811 [10:08:18]line ФД: 103636 [10:08:18]line ФПД: 159934550952132 [10:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100817&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103636&fm=159934550952132&tin=02508201610067®Number=0000000000091754&sum=100000 [10:08:18]written 0, free lines is 4095 [10:08:18]OFD Sender: Processing packet 103636 [packets to send 498, broken 497] [10:08:18]ProducePacketName [10:08:18]name=ofd_packets/00103636 [10:08:18]OFD Sender: To server: pG, [10:08:18]CommunicateWithHost lk.salyk.kg:30040 [10:08:18]ConnectInit lk.salyk.kg [10:08:19]Write to MH i2c: 01 00 00 EE 00 EE [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: 01 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: 01 07 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 CA 0C CB [10:08:19]RasterBufferAndPrint [10:08:19]line [10:08:19]line [10:08:19]line [10:08:19]line [10:08:19]line [10:08:19]written 0, free lines is 3281 [10:08:19]MH_Cut [10:08:19]Write to MH i2c: D1 01 00 F5 00 01 C7 [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: D1 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: D1 01 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: D1 01 00 F5 00 00 C6 [10:08:19]Write to MH i2c: 01 00 00 F6 00 F6 [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]Connected sock=9 [10:08: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 31 31 0F 01 00 00 EF 23 07 01 1E D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 11 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D4 94 01 00 35 04 06 00 91 75 AA 18 C8 C4 0C 54 F9 87 21 86 67 C2 [10:08: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 31 31 4F 00 00 00 39 CC 47 00 3C 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 31 31 10 04 04 00 D4 94 01 00 F4 03 04 00 27 72 18 67 B6 04 01 00 00 04 A0 FE D5 6A 49 08 00 [10:08:19]CommunicateWithHost err = 0 [10:08:19]CheckOFDResponse [10:08:19]1017 (14) - 77093643461234 [10:08:19]1041 (16) - 0000000000871811 [10:08:19]1040 (4) - 103636 [10:08:19]1012 (4) - 23.10.2024 03:48 [10:08:19]1206 (1) - 0 [10:08:19]OFD Sender: Remove packet 103636 [10:08:19]ProducePacketName [10:08:19]name=ofd_packets/00103636 [10:08:19]NVStorageDeleteData [10:08:20]*** Cut start [10:08:20]*** Partial cut [10:08:20]*** CUTSNS_PIN = 1 [10:08:20]*** CUTSNS_PIN = 0 [10:08:20]*** Brake cut motor [10:08:20]OFD Sender: No OFD packet to send [10:08:20]Read from MH i2c: 01 [10:08:20]MH_I2C_Read... [10:08:20]*** Stop cut motor [10:08:20]*** Cut end [10:08:20]Read from MH i2c: 01 07 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [10:08:20]process_action close_receipt done [10:08:20]requested_data is exist [10:08:20]produce_requested_data [10:08:20]requested_item fm.sn is exist - process it [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 11 00 00 [10:08:20]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 17 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 BE [10:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:08:20]wFMCommunicate OK [10:08:20]requested_item fd.num is exist - process it [10:08:20]SAM_PROTO_GetFieldsCounters [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 13 00 00 [10:08:20]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 62 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 62 00 F8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D4 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [10:08: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D4 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:20]wFMCommunicate OK [10:08:20]SAM_PROTO_GetFieldsCounters done [10:08:20]requested_item shift.num is exist - process it [10:08:20]requested_item shift.opened is exist - process it [10:08:20]req_shift_opened [10:08:20]FM_GetShiftState [10:08:20]SAM_PROTO_GetShiftState [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 13 01 00 [10:08:20]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 0E 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 AF [10:08:20]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:08:20]wFMCommunicate OK [10:08:20]SAM_PROTO_GetShiftState done [10:08:20]FM_GetShiftState done [10:08:20]req_shift_opened done [10:08:20]requested_item shift.open_date is exist - process it [10:08:20]req_shift_open_date [10:08:20]req_shift_open_date done [10:08:20]produce_requested_data done [10:08:20]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103636,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:08:20]process_action_free close_receipt [10:08:20]json_value_free [10:08:20]json_value_free done [10:08:20]process_json_proto returns [10:08:20]Send response to host [10:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103636,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:08:20]free response buf [10:08:20]execute_script done [10:08:20]execute_script returns [10:08:20]free content buf [10:08:20]Sock 10.Close socket [10:08:20]Sock 10.Thread stoped [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:46]recv_with_timeout no data received [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:09]accept exits with 7 [10:09:09]New connection [10:09:09]New thread 3066629476 created [10:09:09]Thread 3066772836 joined [10:09:09]Waiting for new connection... [10:09:09] Sock 7.Parse request [10:09:09]Sock 7.Check first char [10:09:09]Sock 7.First char is OK [10:09:09]request: POST /json_proto HTTP/1.0 [10:09:09]Method: POST [10:09:09]URL: /json_proto [10:09:09]Method is POST - this is cgi request [10:09:09]url: /json_proto [10:09:09]query_string will be loaded in cgi processing [10:09:09]execute_cgi json_proto POST (null) [10:09:09]execute_cgi path=json_proto method=POST [10:09:09]POST find Content-Length [10:09:09]Host: 172.17.51.67:8080 [10:09:09]Content-Length: 816 [10:09:09]Content-Type: application/json [10:09:09] [10:09:09]POST finish read [10:09:09]Found Content-Length = 816 [10:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:09]execute_script... [10:09:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:09]POST & json_proto [10:09:09]process_json_proto [10:09:09]json parsed OK: [10:09:09]protocol is kg_v1.0 [10:09:09]action value=close_receipt [10:09:09]process_action close_receipt [10:09:09]cmd_close_receipt [10:09:09]MH_GetDate [10:09:09]Write to MH i2c: F0 00 00 FA 00 E9 [10:09:09]Write i2c OK [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: F0 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: F0 09 00 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: F0 09 00 FA 00 00 45 CB 18 67 1E EF FA 64 EC [10:09:09]GetLastDocTimeStamp 1729678097 [10:09:09]current date 1729678149 [10:09:09]FM_GetShiftState [10:09:09]SAM_PROTO_GetShiftState [10:09:09]wFMCommunicate request_size=4 [10:09:09]MH_SAM_APDU [10:09:09]CAPDU: 80 13 01 00 [10:09:09]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [10:09:09]Write i2c OK [10:09:09]MH_I2C_Read... [10:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:09]Read from MH i2c: E2 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: E2 0E 00 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B1 [10:09:09]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:09:09]wFMCommunicate OK [10:09:09]SAM_PROTO_GetShiftState done [10:09:09]FM_GetShiftState done [10:09:09]opened in 1729642861 [10:09:09]opened+sec_in_day 1729729261 [10:09:09]quantity*price = 50041 [10:09:09]sum+1 = 50042 [10:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 49 23.10.2024 10:09 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871811 ФД: 103637 ФПД: 48363031891339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100909&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103637&fm=48363031891339&tin=02508201610067®Number=0000000000091754&sum=50041 [10:09:10]StoreToDocumentArchive [10:09:10]shift 582 fd 103637 [10:09:10]save to /storage/0582/doc_00103637 [10:09:10]save last doc name /storage/0582/doc_00103637 to /storage/kkm_last_doc_name [10:09:10]save OK [10:09:10]Clear old archive folders... [10:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:10]tlvbuf is 01A68940 [10:09:10]SAM_PROTO_ClearQueue [10:09:10]wFMCommunicate request_size=4 [10:09:10]MH_SAM_APDU [10:09:10]CAPDU: 80 09 00 00 [10:09:10]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [10:09:10]Write i2c OK [10:09:10]MH_I2C_Read... [10:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:10]Read from MH i2c: E2 [10:09:10]MH_I2C_Read... [10:09:10]Read from MH i2c: E2 03 00 [10:09:10]MH_I2C_Read... [10:09:10]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [10:09:10]RAPDU: 90 00 [10:09:10]wFMCommunicate OK [10:09:10]SAM_PROTO_ClearQueue done [10:09:10]KKMCreateOFDPacket [10:09:10]OFDProtocolAddRootSTLVToBuf [10:09:10]FM_MakeSignedData [10:09:10]FM_MakeSignedData [10:09:10]SAM_PROTO_SignData [10:09:10]wFMCommunicate request_size=4 [10:09:10]MH_SAM_APDU [10:09:10]CAPDU: 80 0D 01 02 [10:09:10]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [10:09:10]Write i2c OK [10:09:10]MH_I2C_Read... [10:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:10]Read from MH i2c: E2 [10:09:10]MH_I2C_Read... [10:09:10]Read from MH i2c: E2 03 00 [10:09:10]MH_I2C_Read... [10:09:10]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [10:09:10]RAPDU: 90 00 [10:09:10]wFMCommunicate OK [10:09:10]wFMCommunicate request_size=255 [10:09:10]MH_SAM_APDU [10:09:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 45 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D5 94 01 00 35 04 06 00 2B [10:09:10]Write to MH i2c: E2 02 01 0A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 45 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D5 94 01 00 35 04 06 00 2B 00 00 FB [10:09:10]Write i2c OK [10:09:10]MH_I2C_Read... [10:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:10]Read from MH i2c: E2 [10:09:10]MH_I2C_Read... [10:09:10]Read from MH i2c: E2 03 00 [10:09:10]MH_I2C_Read... [10:09:10]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [10:09:10]RAPDU: 90 00 [10:09:10]wFMCommunicate OK [10:09:10]wFMCommunicate request_size=10 [10:09:10]MH_SAM_APDU [10:09:10]CAPDU: 80 0D 02 02 05 FC 65 56 0D 8B [10:09:10]Write to MH i2c: E2 0D 00 0B 01 80 0D 02 02 05 00 FC 65 56 0D 8B 00 00 DF [10:09:10]Write i2c OK [10:09:10]MH_I2C_Read... [10:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:10]Read from MH i2c: E2 [10:09:10]MH_I2C_Read... [10:09:10]Read from MH i2c: E2 03 00 [10:09:10]MH_I2C_Read... [10:09:10]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [10:09:10]RAPDU: 90 00 [10:09:10]wFMCommunicate OK [10:09:10]wFMCommunicate request_size=4 [10:09:10]MH_SAM_APDU [10:09:10]CAPDU: 80 0D 03 02 [10:09:10]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [10:09:10]Write i2c OK [10:09:10]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 0B 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 0B 00 0C 01 00 ED 92 0B C8 07 89 23 17 90 00 A5 [10:09:11]RAPDU: ED 92 0B C8 07 89 23 17 90 00 [10:09:11]wFMCommunicate OK [10:09:11]SAM_PROTO_SignData done [10:09:11]FM_MakeSignedData done [10:09:11]CreateOFDProtocolMessage [10:09:11]wFMCommunicate request_size=4 [10:09:11]MH_SAM_APDU [10:09:11]CAPDU: 80 11 00 00 [10:09:11]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 17 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D5 [10:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:09:11]wFMCommunicate OK [10:09:11]CreateOFDProtocolMessage done [10:09:11]OFDSenderStorePacket 103637 [10:09:11]StoreOFDPacket docnum=103637 [10:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 06 B4 07 01 76 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 45 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D5 94 01 00 35 04 06 00 2B FC 65 56 0D 8B ED 92 0B C8 07 89 23 17 [10:09:11]CheckFolder [10:09:11]dirname=/storage/ofd_packets [10:09:11]CheckFolder done [10:09:11]ProducePacketName [10:09:11]name=ofd_packets/00103637 [10:09:11]NVStorageSaveData ofd_packets/00103637 [10:09:11]File name is /storage/ofd_packets/00103637 [10:09:11]Write 301 bytes [10:09:11]NVStorageSaveData done [10:09:11]OFDSenderStorePacket done [10:09:11]KKMCreateOFDPacket done [10:09:11]NVStorageSaveData kkm_last_timestamp [10:09:11]File name is /storage/kkm_last_timestamp [10:09:11]Write 4 bytes [10:09:11]NVStorageSaveData done [10:09:11]ExternCall_PrintAddStr [10:09:11]wPrintStart [10:09:11]Write to MH i2c: 01 00 00 0E 01 0F [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: 01 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: 01 07 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [10:09:11]RasterBufferAndPrint [10:09:11]line Счет N : (1)317846 [10:09:11]line ИНН: 02508201610067 [10:09:11]line Контрольно-Кассовый Чек [10:09:11]line ПРОДАЖА [10:09:11]line ТРК (МРК, ГНК) : 63 [10:09:11]line Товар: 2710124130 [10:09:11]line Аи-92-К-4 [10:09:11]line 7.480 * 66.90 [10:09:11]line = 500.41 [10:09:11]line НДС 12% НСП 1% [10:09:11]line > о реализуемом товаре [10:09:11]line ИТОГО: 500.41 [10:09:11]line НСП 1% : 4.43 [10:09:11]line НДС 12% : 53.14 [10:09:11]line Наличными: 0.00 [10:09:11]line Безнал.: 500.41 [10:09:11]line Место: АЗС № 145 "Партнер Нефть" [10:09:11]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:09:11]line СНО: Общий режим [10:09:11]line Чек 49 23.10.2024 10:09 [10:09:11]line Смена: 582 ФФД: 1.0 [10:09:11]line ЗНМ: 0300000095 [10:09:11]line РНМ: 0000000000091754 [10:09:11]line Версия ККМ: 001 [10:09:11]line Платежная система: Бакай Банк [10:09:11]line ФМ: 0000000000871811 [10:09:11]line ФД: 103637 [10:09:11]line ФПД: 48363031891339 [10:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100909&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103637&fm=48363031891339&tin=02508201610067®Number=0000000000091754&sum=50041 [10:09:11]OFD Sender: Processing packet 103637 [packets to send 498, broken 497] [10:09:11]ProducePacketName [10:09:11]name=ofd_packets/00103637 [10:09:11]OFD Sender: To server: pG, [10:09:11]CommunicateWithHost lk.salyk.kg:30040 [10:09:11]ConnectInit lk.salyk.kg [10:09:11]written 0, free lines is 4095 [10:09:11]Write to MH i2c: 01 00 00 37 01 38 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: 01 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: 01 07 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 CF 0C 1A [10:09:11]RasterBufferAndPrint [10:09:11]line [10:09:11]line [10:09:11]line [10:09:11]line [10:09:11]line [10:09:11]written 0, free lines is 3285 [10:09:11]MH_Cut [10:09:11]Write to MH i2c: D1 01 00 3E 01 01 11 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: D1 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: D1 01 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: D1 01 00 3E 01 00 10 [10:09:11]Write to MH i2c: 01 00 00 3F 01 40 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:12]*** Cut start [10:09:12]*** Partial cut [10:09:12]*** CUTSNS_PIN = 1 [10:09:12]*** CUTSNS_PIN = 0 [10:09:12]*** Brake cut motor [10:09:13]Read from MH i2c: 01 [10:09:13]MH_I2C_Read... [10:09:13]*** Stop cut motor [10:09:13]*** Cut end [10:09:13]Read from MH i2c: 01 07 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: 01 07 00 3F 01 00 00 00 00 00 FF 0F 55 [10:09:13]process_action close_receipt done [10:09:13]requested_data is exist [10:09:13]produce_requested_data [10:09:13]requested_item fm.sn is exist - process it [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 11 00 00 [10:09:13]Write to MH i2c: E2 08 00 40 01 80 11 00 00 00 00 00 00 BB [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:13]Read from MH i2c: E2 17 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 17 00 40 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 08 [10:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:09:13]wFMCommunicate OK [10:09:13]requested_item fd.num is exist - process it [10:09:13]SAM_PROTO_GetFieldsCounters [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 13 00 00 [10:09:13]Write to MH i2c: E2 08 00 41 01 80 13 00 00 00 00 00 00 BE [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 62 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 62 00 41 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D5 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [10:09:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D5 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:13]wFMCommunicate OK [10:09:13]SAM_PROTO_GetFieldsCounters done [10:09:13]requested_item shift.num is exist - process it [10:09:13]requested_item shift.opened is exist - process it [10:09:13]req_shift_opened [10:09:13]FM_GetShiftState [10:09:13]SAM_PROTO_GetShiftState [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 13 01 00 [10:09:13]Write to MH i2c: E2 08 00 42 01 80 13 01 00 00 00 00 00 C0 [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 0E 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 0E 00 42 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 F9 [10:09:13]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:09:13]wFMCommunicate OK [10:09:13]SAM_PROTO_GetShiftState done [10:09:13]FM_GetShiftState done [10:09:13]req_shift_opened done [10:09:13]requested_item shift.open_date is exist - process it [10:09:13]req_shift_open_date [10:09:13]req_shift_open_date done [10:09:13]produce_requested_data done [10:09:13]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103637,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:09:13]process_action_free close_receipt [10:09:13]json_value_free [10:09:13]json_value_free done [10:09:13]process_json_proto returns [10:09:13]Send response to host [10:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103637,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:09:13]free response buf [10:09:13]execute_script done [10:09:13]execute_script returns [10:09:13]free content buf [10:09:13]Sock 7.Close socket [10:09:13]Sock 7.Thread stoped [10:09:19]Connected sock=9 [10:09: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 31 31 0F 01 00 00 06 B4 07 01 76 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 45 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D5 94 01 00 35 04 06 00 2B FC 65 56 0D 8B ED 92 0B C8 07 89 23 17 [10:09: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 31 31 4F 00 00 00 19 45 47 00 F4 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 31 31 10 04 04 00 D5 94 01 00 F4 03 04 00 64 72 18 67 B6 04 01 00 00 27 B9 AB 00 0A 3E F2 15 [10:09:20]CommunicateWithHost err = 0 [10:09:20]CheckOFDResponse [10:09:20]1017 (14) - 77093643461234 [10:09:20]1041 (16) - 0000000000871811 [10:09:20]1040 (4) - 103637 [10:09:20]1012 (4) - 23.10.2024 03:49 [10:09:20]1206 (1) - 0 [10:09:20]OFD Sender: Remove packet 103637 [10:09:20]ProducePacketName [10:09:20]name=ofd_packets/00103637 [10:09:20]NVStorageDeleteData [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:09:57]accept exits with 10 [10:09:57]New connection [10:09:57]New thread 3066772836 created [10:09:57]Thread 3066629476 joined [10:09:57]Waiting for new connection... [10:09:57] Sock 10.Parse request [10:09:57]Sock 10.Check first char [10:09:57]Sock 10.First char is OK [10:09:57]request: POST /json_proto HTTP/1.0 [10:09:57]Method: POST [10:09:57]URL: /json_proto [10:09:57]Method is POST - this is cgi request [10:09:57]url: /json_proto [10:09:57]query_string will be loaded in cgi processing [10:09:57]execute_cgi json_proto POST (null) [10:09:57]execute_cgi path=json_proto method=POST [10:09:57]POST find Content-Length [10:09:57]Host: 172.17.51.67:8080 [10:09:57]Content-Length: 682 [10:09:57]Content-Type: application/json [10:09:57] [10:09:57]POST finish read [10:09:57]Found Content-Length = 682 [10:09:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:57]execute_script... [10:09:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:57]POST & json_proto [10:09:57]process_json_proto [10:09:57]json parsed OK: [10:09:57]protocol is kg_v1.0 [10:09:57]action value=close_receipt [10:09:57]process_action close_receipt [10:09:57]cmd_close_receipt [10:09:57]MH_GetDate [10:09:57]Write to MH i2c: F0 00 00 43 01 33 [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: F0 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: F0 09 00 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: F0 09 00 43 01 00 75 CB 18 67 1E EF FA 64 66 [10:09:57]GetLastDocTimeStamp 1729678149 [10:09:57]current date 1729678197 [10:09:57]FM_GetShiftState [10:09:57]SAM_PROTO_GetShiftState [10:09:57]wFMCommunicate request_size=4 [10:09:57]MH_SAM_APDU [10:09:57]CAPDU: 80 13 01 00 [10:09:57]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:57]Read from MH i2c: E2 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: E2 0E 00 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 FB [10:09:57]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:09:57]wFMCommunicate OK [10:09:57]SAM_PROTO_GetShiftState done [10:09:57]FM_GetShiftState done [10:09:57]opened in 1729642861 [10:09:57]opened+sec_in_day 1729729261 [10:09:57]quantity*price = 100015 [10:09:57]sum+1 = 100017 [10:09:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 50 23.10.2024 10:09 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103638 ФПД: 267325255269839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100957&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103638&fm=267325255269839&tin=02508201610067®Number=0000000000091754&sum=100000 [10:09:58]StoreToDocumentArchive [10:09:58]shift 582 fd 103638 [10:09:58]save to /storage/0582/doc_00103638 [10:09:58]save last doc name /storage/0582/doc_00103638 to /storage/kkm_last_doc_name [10:09:58]save OK [10:09:58]Clear old archive folders... [10:09:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:58]tlvbuf is 019EDB70 [10:09:58]SAM_PROTO_ClearQueue [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 09 00 00 [10:09:58]Write to MH i2c: E2 08 00 51 01 80 09 00 00 00 00 00 00 C4 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [10:09:58]RAPDU: 90 00 [10:09:58]wFMCommunicate OK [10:09:58]SAM_PROTO_ClearQueue done [10:09:58]KKMCreateOFDPacket [10:09:58]OFDProtocolAddRootSTLVToBuf [10:09:58]FM_MakeSignedData [10:09:58]FM_MakeSignedData [10:09:58]SAM_PROTO_SignData [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 0D 01 02 [10:09:58]Write to MH i2c: E2 08 00 52 01 80 0D 01 02 00 00 00 00 CC [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [10:09:58]RAPDU: 90 00 [10:09:58]wFMCommunicate OK [10:09:58]wFMCommunicate request_size=255 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 75 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D6 94 01 00 35 04 06 00 F3 [10:09:58]Write to MH i2c: E2 02 01 53 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 75 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D6 94 01 00 35 04 06 00 F3 00 00 E6 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [10:09:58]RAPDU: 90 00 [10:09:58]wFMCommunicate OK [10:09:58]wFMCommunicate request_size=10 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 0D 02 02 05 21 82 E1 3D CF [10:09:58]Write to MH i2c: E2 0D 00 54 01 80 0D 02 02 05 00 21 82 E1 3D CF 00 00 69 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [10:09:58]RAPDU: 90 00 [10:09:58]wFMCommunicate OK [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 0D 03 02 [10:09:58]Write to MH i2c: E2 08 00 55 01 80 0D 03 02 00 00 00 00 D1 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 0B 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 0B 00 55 01 00 C2 A4 2B FB A5 9A C1 BF 90 00 1D [10:09:58]RAPDU: C2 A4 2B FB A5 9A C1 BF 90 00 [10:09:58]wFMCommunicate OK [10:09:58]SAM_PROTO_SignData done [10:09:58]FM_MakeSignedData done [10:09:58]CreateOFDProtocolMessage [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 11 00 00 [10:09:58]Write to MH i2c: E2 08 00 56 01 80 11 00 00 00 00 00 00 D1 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 17 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 17 00 56 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 1E [10:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:09:58]wFMCommunicate OK [10:09:58]CreateOFDProtocolMessage done [10:09:58]OFDSenderStorePacket 103638 [10:09:58]StoreOFDPacket docnum=103638 [10:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 8B E8 07 01 53 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 75 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D6 94 01 00 35 04 06 00 F3 21 82 E1 3D CF C2 A4 2B FB A5 9A C1 BF [10:09:58]CheckFolder [10:09:58]dirname=/storage/ofd_packets [10:09:58]CheckFolder done [10:09:58]ProducePacketName [10:09:58]name=ofd_packets/00103638 [10:09:58]NVStorageSaveData ofd_packets/00103638 [10:09:58]File name is /storage/ofd_packets/00103638 [10:09:58]Write 301 bytes [10:09:58]NVStorageSaveData done [10:09:58]OFDSenderStorePacket done [10:09:58]KKMCreateOFDPacket done [10:09:58]NVStorageSaveData kkm_last_timestamp [10:09:58]File name is /storage/kkm_last_timestamp [10:09:58]Write 4 bytes [10:09:58]NVStorageSaveData done [10:09:58]ExternCall_PrintAddStr [10:09:58]wPrintStart [10:09:58]Write to MH i2c: 01 00 00 57 01 58 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 07 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 07 00 57 01 00 00 00 00 00 FF 0F 6D [10:09:58]RasterBufferAndPrint [10:09:58]line Счет N : (1)317848 [10:09:58]line ИНН: 02508201610067 [10:09:58]line Контрольно-Кассовый Чек [10:09:58]line ПРОДАЖА [10:09:58]line ТРК (МРК, ГНК) : 33 [10:09:58]line Товар: 2710124130 [10:09:58]line Аи-92-К-4 [10:09:58]line 14.950 * 66.90 [10:09:58]line = 1000.16 [10:09:58]line НДС 12% НСП 1% [10:09:58]line > о реализуемом товаре [10:09:58]line ОКРУГЛЕНИЕ: -0.16 [10:09:58]line ИТОГО: 1000.00 [10:09:58]line Внесено: 1000.00 [10:09:58]line СДАЧА: 0.00 [10:09:58]line НСП 1% : 8.85 [10:09:58]line НДС 12% : 106.21 [10:09:58]line Наличными: 1000.00 [10:09:58]line Безнал.: 0.00 [10:09:58]line Место: АЗС № 145 "Партнер Нефть" [10:09:58]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:09:58]line СНО: Общий режим [10:09:58]line Чек 50 23.10.2024 10:09 [10:09:58]line Смена: 582 ФФД: 1.0 [10:09:58]line ЗНМ: 0300000095 [10:09:58]line РНМ: 0000000000091754 [10:09:58]line Версия ККМ: 001 [10:09:58]line ФМ: 0000000000871811 [10:09:58]line ФД: 103638 [10:09:58]line ФПД: 267325255269839 [10:09:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100957&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103638&fm=267325255269839&tin=02508201610067®Number=0000000000091754&sum=100000 [10:09:58]written 0, free lines is 4095 [10:09:58]OFD Sender: Processing packet 103638 [packets to send 498, broken 497] [10:09:58]ProducePacketName [10:09:58]name=ofd_packets/00103638 [10:09:58]OFD Sender: To server: pG, [10:09:58]CommunicateWithHost lk.salyk.kg:30040 [10:09:58]ConnectInit lk.salyk.kg [10:09:59]Write to MH i2c: 01 00 00 81 01 82 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: 01 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: 01 07 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 CE 0C 63 [10:09:59]RasterBufferAndPrint [10:09:59]line [10:09:59]line [10:09:59]line [10:09:59]line [10:09:59]line [10:09:59]written 0, free lines is 3281 [10:09:59]MH_Cut [10:09:59]Write to MH i2c: D1 01 00 88 01 01 5B [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: D1 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: D1 01 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: D1 01 00 88 01 00 5A [10:09:59]Write to MH i2c: 01 00 00 89 01 8A [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** Cut start [10:09:59]*** Partial cut [10:09:59]*** CUTSNS_PIN = 1 [10:10:00]*** CUTSNS_PIN = 0 [10:10:00]*** Brake cut motor [10:10:00]Read from MH i2c: 01 [10:10:00]MH_I2C_Read... [10:10:00]*** Stop cut motor [10:10:00]*** Cut end [10:10:00]Read from MH i2c: 01 07 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: 01 07 00 89 01 00 00 00 00 00 FF 0F 9F [10:10:00]process_action close_receipt done [10:10:00]requested_data is exist [10:10:00]produce_requested_data [10:10:00]requested_item fm.sn is exist - process it [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 11 00 00 [10:10:00]Write to MH i2c: E2 08 00 8A 01 80 11 00 00 00 00 00 00 05 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 17 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 17 00 8A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 52 [10:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:10:00]wFMCommunicate OK [10:10:00]requested_item fd.num is exist - process it [10:10:00]SAM_PROTO_GetFieldsCounters [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 13 00 00 [10:10:00]Write to MH i2c: E2 08 00 8B 01 80 13 00 00 00 00 00 00 08 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 62 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 62 00 8B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D6 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [10:10: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D6 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:00]wFMCommunicate OK [10:10:00]SAM_PROTO_GetFieldsCounters done [10:10:00]requested_item shift.num is exist - process it [10:10:00]requested_item shift.opened is exist - process it [10:10:00]req_shift_opened [10:10:00]FM_GetShiftState [10:10:00]SAM_PROTO_GetShiftState [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 13 01 00 [10:10:00]Write to MH i2c: E2 08 00 8C 01 80 13 01 00 00 00 00 00 0A [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 0E 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 0E 00 8C 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 43 [10:10:00]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:10:00]wFMCommunicate OK [10:10:00]SAM_PROTO_GetShiftState done [10:10:00]FM_GetShiftState done [10:10:00]req_shift_opened done [10:10:00]requested_item shift.open_date is exist - process it [10:10:00]req_shift_open_date [10:10:00]req_shift_open_date done [10:10:00]produce_requested_data done [10:10:00]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103638,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:10:00]process_action_free close_receipt [10:10:00]json_value_free [10:10:00]json_value_free done [10:10:00]process_json_proto returns [10:10:00]Send response to host [10:10:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103638,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:10:00]free response buf [10:10:00]execute_script done [10:10:00]execute_script returns [10:10:00]free content buf [10:10:00]Sock 10.Close socket [10:10:00]Sock 10.Thread stoped [10:10:04]recv_with_timeout no data received [10:10:14]recv_with_timeout no data received [10:10:25]recv_with_timeout no data received [10:10:45]accept exits with 7 [10:10:45]New connection [10:10:45]New thread 3066629476 created [10:10:45]Thread 3066772836 joined [10:10:45]Waiting for new connection... [10:10:45] Sock 7.Parse request [10:10:45]Sock 7.Check first char [10:10:45]Sock 7.First char is OK [10:10:45]request: POST /json_proto HTTP/1.0 [10:10:45]Method: POST [10:10:45]URL: /json_proto [10:10:45]Method is POST - this is cgi request [10:10:45]url: /json_proto [10:10:45]query_string will be loaded in cgi processing [10:10:45]execute_cgi json_proto POST (null) [10:10:45]execute_cgi path=json_proto method=POST [10:10:45]POST find Content-Length [10:10:45]Host: 172.17.51.67:8080 [10:10:45]Content-Length: 816 [10:10:45]Content-Type: application/json [10:10:45] [10:10:45]POST finish read [10:10:45]Found Content-Length = 816 [10:10:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:45]execute_script... [10:10:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:45]POST & json_proto [10:10:45]process_json_proto [10:10:45]json parsed OK: [10:10:45]protocol is kg_v1.0 [10:10:45]action value=close_receipt [10:10:45]process_action close_receipt [10:10:45]cmd_close_receipt [10:10:45]MH_GetDate [10:10:45]Write to MH i2c: F0 00 00 8D 01 7D [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: F0 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: F0 09 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: F0 09 00 8D 01 00 A5 CB 18 67 1E EF FA 64 E0 [10:10:45]GetLastDocTimeStamp 1729678197 [10:10:45]current date 1729678245 [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 8E 01 80 13 01 00 00 00 00 00 0C [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 8E 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 45 [10:10:45]RAPDU: 09 00 01 6D 41 18 67 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]opened in 1729642861 [10:10:45]opened+sec_in_day 1729729261 [10:10:45]quantity*price = 40006 [10:10:45]sum+1 = 40007 [10:10:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 51 23.10.2024 10:10 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871811 ФД: 103639 ФПД: 41696395027143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101045&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103639&fm=41696395027143&tin=02508201610067®Number=0000000000091754&sum=40006 [10:10:46]StoreToDocumentArchive [10:10:46]shift 582 fd 103639 [10:10:46]save to /storage/0582/doc_00103639 [10:10:46]save last doc name /storage/0582/doc_00103639 to /storage/kkm_last_doc_name [10:10:46]save OK [10:10:46]Clear old archive folders... [10:10:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:46]tlvbuf is 01A58A60 [10:10:46]SAM_PROTO_ClearQueue [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 09 00 00 [10:10:46]Write to MH i2c: E2 08 00 9B 01 80 09 00 00 00 00 00 00 0E [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [10:10:46]RAPDU: 90 00 [10:10:46]wFMCommunicate OK [10:10:46]SAM_PROTO_ClearQueue done [10:10:46]KKMCreateOFDPacket [10:10:46]OFDProtocolAddRootSTLVToBuf [10:10:46]FM_MakeSignedData [10:10:46]FM_MakeSignedData [10:10:46]SAM_PROTO_SignData [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 0D 01 02 [10:10:46]Write to MH i2c: E2 08 00 9C 01 80 0D 01 02 00 00 00 00 16 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [10:10:46]RAPDU: 90 00 [10:10:46]wFMCommunicate OK [10:10:46]wFMCommunicate request_size=255 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A5 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D7 94 01 00 35 04 06 00 25 [10:10:46]Write to MH i2c: E2 02 01 9D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A5 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D7 94 01 00 35 04 06 00 25 00 00 75 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [10:10:46]RAPDU: 90 00 [10:10:46]wFMCommunicate OK [10:10:46]wFMCommunicate request_size=10 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 0D 02 02 05 EC 32 D0 62 C7 [10:10:46]Write to MH i2c: E2 0D 00 9E 01 80 0D 02 02 05 00 EC 32 D0 62 C7 00 00 3A [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [10:10:46]RAPDU: 90 00 [10:10:46]wFMCommunicate OK [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 0D 03 02 [10:10:46]Write to MH i2c: E2 08 00 9F 01 80 0D 03 02 00 00 00 00 1B [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 0B 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 0B 00 9F 01 00 21 19 3A CA 26 04 C6 32 90 00 7C [10:10:46]RAPDU: 21 19 3A CA 26 04 C6 32 90 00 [10:10:46]wFMCommunicate OK [10:10:46]SAM_PROTO_SignData done [10:10:46]FM_MakeSignedData done [10:10:46]CreateOFDProtocolMessage [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 11 00 00 [10:10:46]Write to MH i2c: E2 08 00 A0 01 80 11 00 00 00 00 00 00 1B [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 17 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 17 00 A0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 68 [10:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:10:46]wFMCommunicate OK [10:10:46]CreateOFDProtocolMessage done [10:10:46]OFDSenderStorePacket 103639 [10:10:46]StoreOFDPacket docnum=103639 [10:10:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 14 99 07 01 7A 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A5 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D7 94 01 00 35 04 06 00 25 EC 32 D0 62 C7 21 19 3A CA 26 04 C6 32 [10:10:46]CheckFolder [10:10:46]dirname=/storage/ofd_packets [10:10:46]CheckFolder done [10:10:46]ProducePacketName [10:10:46]name=ofd_packets/00103639 [10:10:46]NVStorageSaveData ofd_packets/00103639 [10:10:46]File name is /storage/ofd_packets/00103639 [10:10:46]Write 301 bytes [10:10:46]NVStorageSaveData done [10:10:46]OFDSenderStorePacket done [10:10:46]KKMCreateOFDPacket done [10:10:46]NVStorageSaveData kkm_last_timestamp [10:10:46]File name is /storage/kkm_last_timestamp [10:10:46]Write 4 bytes [10:10:46]NVStorageSaveData done [10:10:46]ExternCall_PrintAddStr [10:10:46]wPrintStart [10:10:46]Write to MH i2c: 01 00 00 A1 01 A2 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 07 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [10:10:46]RasterBufferAndPrint [10:10:46]line Счет N : (1)317847 [10:10:46]line ИНН: 02508201610067 [10:10:46]line Контрольно-Кассовый Чек [10:10:46]line ПРОДАЖА [10:10:46]line ТРК (МРК, ГНК) : 53 [10:10:46]line Товар: 2710124130 [10:10:46]line Аи-92-К-4 [10:10:46]line 5.980 * 66.90 [10:10:46]line = 400.06 [10:10:46]line НДС 12% НСП 1% [10:10:46]line > о реализуемом товаре [10:10:46]line ИТОГО: 400.06 [10:10:46]line НСП 1% : 3.54 [10:10:46]line НДС 12% : 42.48 [10:10:46]line Наличными: 0.00 [10:10:46]line Безнал.: 400.06 [10:10:46]line Место: АЗС № 145 "Партнер Нефть" [10:10:46]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:10:46]line СНО: Общий режим [10:10:46]line Чек 51 23.10.2024 10:10 [10:10:46]line Смена: 582 ФФД: 1.0 [10:10:46]line ЗНМ: 0300000095 [10:10:46]line РНМ: 0000000000091754 [10:10:46]line Версия ККМ: 001 [10:10:46]line Платежная система: Бакай Банк [10:10:46]line ФМ: 0000000000871811 [10:10:46]line ФД: 103639 [10:10:46]line ФПД: 41696395027143 [10:10:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101045&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103639&fm=41696395027143&tin=02508201610067®Number=0000000000091754&sum=40006 [10:10:46]written 0, free lines is 4095 [10:10:47]Write to MH i2c: 01 00 00 CA 01 CB [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 CA 01 00 00 00 00 00 DD 0C BB [10:10:47]RasterBufferAndPrint [10:10:47]line [10:10:47]line [10:10:47]line [10:10:47]line [10:10:47]line [10:10:47]written 0, free lines is 3299 [10:10:47]MH_Cut [10:10:47]Write to MH i2c: D1 01 00 D1 01 01 A4 [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: D1 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: D1 01 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: D1 01 00 D1 01 00 A3 [10:10:47]Write to MH i2c: 01 00 00 D2 01 D3 [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:48]*** Cut start [10:10:48]*** Partial cut [10:10:48]*** CUTSNS_PIN = 1 [10:10:48]*** CUTSNS_PIN = 0 [10:10:48]*** Brake cut motor [10:10:48]Read from MH i2c: 01 [10:10:48]MH_I2C_Read... [10:10:48]*** Stop cut motor [10:10:48]*** Cut end [10:10:48]Read from MH i2c: 01 07 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 FF 0F E8 [10:10:48]process_action close_receipt done [10:10:48]requested_data is exist [10:10:48]produce_requested_data [10:10:48]requested_item fm.sn is exist - process it [10:10:48]wFMCommunicate request_size=4 [10:10:48]MH_SAM_APDU [10:10:48]CAPDU: 80 11 00 00 [10:10:48]Write to MH i2c: E2 08 00 D3 01 80 11 00 00 00 00 00 00 4E [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:48]Read from MH i2c: E2 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 17 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 17 00 D3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 9B [10:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:10:48]wFMCommunicate OK [10:10:48]requested_item fd.num is exist - process it [10:10:48]SAM_PROTO_GetFieldsCounters [10:10:48]wFMCommunicate request_size=4 [10:10:48]MH_SAM_APDU [10:10:48]CAPDU: 80 13 00 00 [10:10:48]Write to MH i2c: E2 08 00 D4 01 80 13 00 00 00 00 00 00 51 [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:48]Read from MH i2c: E2 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 62 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 62 00 D4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [10:10: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:48]wFMCommunicate OK [10:10:48]SAM_PROTO_GetFieldsCounters done [10:10:48]requested_item shift.num is exist - process it [10:10:48]requested_item shift.opened is exist - process it [10:10:48]req_shift_opened [10:10:48]FM_GetShiftState [10:10:48]SAM_PROTO_GetShiftState [10:10:48]wFMCommunicate request_size=4 [10:10:48]MH_SAM_APDU [10:10:48]CAPDU: 80 13 01 00 [10:10:48]Write to MH i2c: E2 08 00 D5 01 80 13 01 00 00 00 00 00 53 [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:48]Read from MH i2c: E2 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 0E 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 0E 00 D5 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 8C [10:10:48]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:10:48]wFMCommunicate OK [10:10:48]SAM_PROTO_GetShiftState done [10:10:48]FM_GetShiftState done [10:10:48]req_shift_opened done [10:10:48]requested_item shift.open_date is exist - process it [10:10:48]req_shift_open_date [10:10:48]req_shift_open_date done [10:10:48]produce_requested_data done [10:10:48]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103639,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:10:48]process_action_free close_receipt [10:10:48]json_value_free [10:10:48]json_value_free done [10:10:48]process_json_proto returns [10:10:48]Send response to host [10:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103639,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:10:48]free response buf [10:10:48]execute_script done [10:10:48]execute_script returns [10:10:48]free content buf [10:10:48]Sock 7.Close socket [10:10:48]Sock 7.Thread stoped [10:11:23]accept exits with 10 [10:11:23]New connection [10:11:23]New thread 3066772836 created [10:11:23]Thread 3066629476 joined [10:11:23]Waiting for new connection... [10:11:23] Sock 10.Parse request [10:11:23]Sock 10.Check first char [10:11:23]Sock 10.First char is OK [10:11:23]request: POST /json_proto HTTP/1.0 [10:11:23]Method: POST [10:11:23]URL: /json_proto [10:11:23]Method is POST - this is cgi request [10:11:23]url: /json_proto [10:11:23]query_string will be loaded in cgi processing [10:11:23]execute_cgi json_proto POST (null) [10:11:23]execute_cgi path=json_proto method=POST [10:11:23]POST find Content-Length [10:11:23]Host: 172.17.51.67:8080 [10:11:23]Content-Length: 677 [10:11:23]Content-Type: application/json [10:11:23] [10:11:23]POST finish read [10:11:23]Found Content-Length = 677 [10:11:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:23]execute_script... [10:11:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:23]POST & json_proto [10:11:23]process_json_proto [10:11:23]json parsed OK: [10:11:23]protocol is kg_v1.0 [10:11:23]action value=close_receipt [10:11:23]process_action close_receipt [10:11:23]cmd_close_receipt [10:11:23]MH_GetDate [10:11:23]Write to MH i2c: F0 00 00 D6 01 C6 [10:11:23]Write i2c OK [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: F0 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: F0 09 00 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: F0 09 00 D6 01 00 CB CB 18 67 1E EF FA 64 4F [10:11:23]GetLastDocTimeStamp 1729678245 [10:11:23]current date 1729678283 [10:11:23]FM_GetShiftState [10:11:23]SAM_PROTO_GetShiftState [10:11:23]wFMCommunicate request_size=4 [10:11:23]MH_SAM_APDU [10:11:23]CAPDU: 80 13 01 00 [10:11:23]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [10:11:23]Write i2c OK [10:11:23]MH_I2C_Read... [10:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:23]Read from MH i2c: E2 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: E2 0E 00 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 8E [10:11:23]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:11:23]wFMCommunicate OK [10:11:23]SAM_PROTO_GetShiftState done [10:11:23]FM_GetShiftState done [10:11:23]opened in 1729642861 [10:11:23]opened+sec_in_day 1729729261 [10:11:23]quantity*price = 50041 [10:11:23]sum+1 = 50042 [10:11:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 52 23.10.2024 10:11 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103640 ФПД: 246170689665533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101123&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103640&fm=246170689665533&tin=02508201610067®Number=0000000000091754&sum=50000 [10:11:24]StoreToDocumentArchive [10:11:24]shift 582 fd 103640 [10:11:24]save to /storage/0582/doc_00103640 [10:11:24]save last doc name /storage/0582/doc_00103640 to /storage/kkm_last_doc_name [10:11:24]save OK [10:11:24]Clear old archive folders... [10:11:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:24]tlvbuf is 01A5C6E0 [10:11:24]SAM_PROTO_ClearQueue [10:11:24]wFMCommunicate request_size=4 [10:11:24]MH_SAM_APDU [10:11:24]CAPDU: 80 09 00 00 [10:11:24]Write to MH i2c: E2 08 00 E4 01 80 09 00 00 00 00 00 00 57 [10:11:24]Write i2c OK [10:11:24]MH_I2C_Read... [10:11:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:24]Read from MH i2c: E2 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: E2 03 00 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [10:11:24]RAPDU: 90 00 [10:11:24]wFMCommunicate OK [10:11:24]SAM_PROTO_ClearQueue done [10:11:24]KKMCreateOFDPacket [10:11:24]OFDProtocolAddRootSTLVToBuf [10:11:24]FM_MakeSignedData [10:11:24]FM_MakeSignedData [10:11:24]SAM_PROTO_SignData [10:11:24]wFMCommunicate request_size=4 [10:11:24]MH_SAM_APDU [10:11:24]CAPDU: 80 0D 01 02 [10:11:24]Write to MH i2c: E2 08 00 E5 01 80 0D 01 02 00 00 00 00 5F [10:11:24]Write i2c OK [10:11:24]MH_I2C_Read... [10:11:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:24]Read from MH i2c: E2 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: E2 03 00 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [10:11:24]RAPDU: 90 00 [10:11:24]wFMCommunicate OK [10:11:24]wFMCommunicate request_size=255 [10:11:24]MH_SAM_APDU [10:11:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 CB CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D8 94 01 00 35 04 06 00 DF [10:11:24]Write to MH i2c: E2 02 01 E6 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 CB CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D8 94 01 00 35 04 06 00 DF 00 00 C5 [10:11:24]Write i2c OK [10:11:24]MH_I2C_Read... [10:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:25]Read from MH i2c: E2 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: E2 03 00 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [10:11:25]RAPDU: 90 00 [10:11:25]wFMCommunicate OK [10:11:25]wFMCommunicate request_size=10 [10:11:25]MH_SAM_APDU [10:11:25]CAPDU: 80 0D 02 02 05 E4 14 82 F9 FD [10:11:25]Write to MH i2c: E2 0D 00 E7 01 80 0D 02 02 05 00 E4 14 82 F9 FD 00 00 DC [10:11:25]Write i2c OK [10:11:25]MH_I2C_Read... [10:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:25]Read from MH i2c: E2 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: E2 03 00 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [10:11:25]RAPDU: 90 00 [10:11:25]wFMCommunicate OK [10:11:25]wFMCommunicate request_size=4 [10:11:25]MH_SAM_APDU [10:11:25]CAPDU: 80 0D 03 02 [10:11:25]Write to MH i2c: E2 08 00 E8 01 80 0D 03 02 00 00 00 00 64 [10:11:25]Write i2c OK [10:11:25]MH_I2C_Read... [10:11:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:25]Read from MH i2c: E2 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: E2 0B 00 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: E2 0B 00 E8 01 00 06 86 6E A0 B6 B5 64 57 90 00 25 [10:11:25]RAPDU: 06 86 6E A0 B6 B5 64 57 90 00 [10:11:25]wFMCommunicate OK [10:11:25]SAM_PROTO_SignData done [10:11:25]FM_MakeSignedData done [10:11:25]CreateOFDProtocolMessage [10:11:25]wFMCommunicate request_size=4 [10:11:25]MH_SAM_APDU [10:11:25]CAPDU: 80 11 00 00 [10:11:25]Write to MH i2c: E2 08 00 E9 01 80 11 00 00 00 00 00 00 64 [10:11:25]Write i2c OK [10:11:25]MH_I2C_Read... [10:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:25]Read from MH i2c: E2 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: E2 17 00 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: E2 17 00 E9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 B1 [10:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:11:25]wFMCommunicate OK [10:11:25]CreateOFDProtocolMessage done [10:11:25]OFDSenderStorePacket 103640 [10:11:25]StoreOFDPacket docnum=103640 [10:11:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 1D 7D 07 01 3C 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 CB CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D8 94 01 00 35 04 06 00 DF E4 14 82 F9 FD 06 86 6E A0 B6 B5 64 57 [10:11:25]CheckFolder [10:11:25]dirname=/storage/ofd_packets [10:11:25]CheckFolder done [10:11:25]ProducePacketName [10:11:25]name=ofd_packets/00103640 [10:11:25]NVStorageSaveData ofd_packets/00103640 [10:11:25]File name is /storage/ofd_packets/00103640 [10:11:25]Write 301 bytes [10:11:25]NVStorageSaveData done [10:11:25]OFDSenderStorePacket done [10:11:25]KKMCreateOFDPacket done [10:11:25]NVStorageSaveData kkm_last_timestamp [10:11:25]File name is /storage/kkm_last_timestamp [10:11:25]Write 4 bytes [10:11:25]NVStorageSaveData done [10:11:25]ExternCall_PrintAddStr [10:11:25]wPrintStart [10:11:25]Write to MH i2c: 01 00 00 EA 01 EB [10:11:25]Write i2c OK [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: 01 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: 01 07 00 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 FF 0F 00 [10:11:25]RasterBufferAndPrint [10:11:25]line Счет N : (1)317849 [10:11:25]line ИНН: 02508201610067 [10:11:25]line Контрольно-Кассовый Чек [10:11:25]line ПРОДАЖА [10:11:25]line ТРК (МРК, ГНК) : 43 [10:11:25]line Товар: 2710124130 [10:11:25]line Аи-92-К-4 [10:11:25]line 7.480 * 66.90 [10:11:25]line = 500.41 [10:11:25]line НДС 12% НСП 1% [10:11:25]line > о реализуемом товаре [10:11:25]line ОКРУГЛЕНИЕ: -0.41 [10:11:25]line ИТОГО: 500.00 [10:11:25]line Внесено: 500.00 [10:11:25]line СДАЧА: 0.00 [10:11:25]line НСП 1% : 4.43 [10:11:25]line НДС 12% : 53.14 [10:11:25]line Наличными: 500.00 [10:11:25]line Безнал.: 0.00 [10:11:25]line Место: АЗС № 145 "Партнер Нефть" [10:11:25]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:11:25]line СНО: Общий режим [10:11:25]line Чек 52 23.10.2024 10:11 [10:11:25]line Смена: 582 ФФД: 1.0 [10:11:25]line ЗНМ: 0300000095 [10:11:25]line РНМ: 0000000000091754 [10:11:25]line Версия ККМ: 001 [10:11:25]line ФМ: 0000000000871811 [10:11:25]line ФД: 103640 [10:11:25]line ФПД: 246170689665533 [10:11:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101123&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103640&fm=246170689665533&tin=02508201610067®Number=0000000000091754&sum=50000 [10:11:25]written 0, free lines is 4095 [10:11:25]Write to MH i2c: 01 00 00 14 02 16 [10:11:25]Write i2c OK [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: 01 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: 01 07 00 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: 01 07 00 14 02 00 00 00 00 00 C4 0C ED [10:11:25]RasterBufferAndPrint [10:11:25]line [10:11:25]line [10:11:25]line [10:11:25]line [10:11:25]line [10:11:25]written 0, free lines is 3273 [10:11:26]MH_Cut [10:11:26]Write to MH i2c: D1 01 00 1B 02 01 EF [10:11:26]Write i2c OK [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: D1 [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: D1 01 00 [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: D1 01 00 1B 02 00 EE [10:11:26]Write to MH i2c: 01 00 00 1C 02 1E [10:11:26]Write i2c OK [10:11:26]MH_I2C_Read... [10:11:26]*** Cut start [10:11:26]*** Partial cut [10:11:26]*** CUTSNS_PIN = 1 [10:11:26]*** CUTSNS_PIN = 0 [10:11:27]*** Brake cut motor [10:11:27]Read from MH i2c: 01 [10:11:27]MH_I2C_Read... [10:11:27]*** Stop cut motor [10:11:27]Read from MH i2c: 01 07 00 [10:11:27]MH_I2C_Read... [10:11:27]*** Cut end [10:11:27]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 FF 0F 33 [10:11:27]process_action close_receipt done [10:11:27]requested_data is exist [10:11:27]produce_requested_data [10:11:27]requested_item fm.sn is exist - process it [10:11:27]wFMCommunicate request_size=4 [10:11:27]MH_SAM_APDU [10:11:27]CAPDU: 80 11 00 00 [10:11:27]Write to MH i2c: E2 08 00 1D 02 80 11 00 00 00 00 00 00 99 [10:11:27]Write i2c OK [10:11:27]MH_I2C_Read... [10:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:27]Read from MH i2c: E2 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 17 00 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 17 00 1D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 E6 [10:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:11:27]wFMCommunicate OK [10:11:27]requested_item fd.num is exist - process it [10:11:27]SAM_PROTO_GetFieldsCounters [10:11:27]wFMCommunicate request_size=4 [10:11:27]MH_SAM_APDU [10:11:27]CAPDU: 80 13 00 00 [10:11:27]Write to MH i2c: E2 08 00 1E 02 80 13 00 00 00 00 00 00 9C [10:11:27]Write i2c OK [10:11:27]MH_I2C_Read... [10:11:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:27]Read from MH i2c: E2 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 62 00 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 62 00 1E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D8 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [10:11: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D8 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:27]wFMCommunicate OK [10:11:27]SAM_PROTO_GetFieldsCounters done [10:11:27]requested_item shift.num is exist - process it [10:11:27]requested_item shift.opened is exist - process it [10:11:27]req_shift_opened [10:11:27]FM_GetShiftState [10:11:27]SAM_PROTO_GetShiftState [10:11:27]wFMCommunicate request_size=4 [10:11:27]MH_SAM_APDU [10:11:27]CAPDU: 80 13 01 00 [10:11:27]Write to MH i2c: E2 08 00 1F 02 80 13 01 00 00 00 00 00 9E [10:11:27]Write i2c OK [10:11:27]MH_I2C_Read... [10:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:27]Read from MH i2c: E2 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 0E 00 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 0E 00 1F 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D7 [10:11:27]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:11:27]wFMCommunicate OK [10:11:27]SAM_PROTO_GetShiftState done [10:11:27]FM_GetShiftState done [10:11:27]req_shift_opened done [10:11:27]requested_item shift.open_date is exist - process it [10:11:27]req_shift_open_date [10:11:27]req_shift_open_date done [10:11:27]produce_requested_data done [10:11:27]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103640,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:11:27]process_action_free close_receipt [10:11:27]json_value_free [10:11:27]json_value_free done [10:11:27]process_json_proto returns [10:11:27]Send response to host [10:11:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103640,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:11:27]free response buf [10:11:27]execute_script done [10:11:27]execute_script returns [10:11:27]free content buf [10:11:27]Sock 10.Close socket [10:11:27]Sock 10.Thread stoped [10:12:13]ConnectInit Can't connect to host [10:12:13]CommunicateWithHost connect error [10:12:13]CommunicateWithHost err = -1 [10:12:13]OFD Sender: Server communicate error [10:12:13]OFD Sender: Processing packet 103638 [packets to send 500, broken 497] [10:12:13]ProducePacketName [10:12:13]name=ofd_packets/00103638 [10:12:13]OFD Sender: To server: pG, [10:12:13]CommunicateWithHost lk.salyk.kg:30040 [10:12:13]ConnectInit lk.salyk.kg [10:12:13]Connected sock=9 [10:12: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 31 31 0F 01 00 00 8B E8 07 01 53 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 75 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D6 94 01 00 35 04 06 00 F3 21 82 E1 3D CF C2 A4 2B FB A5 9A C1 BF [10:12: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 31 31 4F 00 00 00 20 85 47 00 02 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D6 94 01 00 F4 03 04 00 11 73 18 67 B6 04 01 00 00 32 13 44 27 51 38 3C 3B [10:12:14]CommunicateWithHost err = 0 [10:12:14]CheckOFDResponse [10:12:14]1017 (14) - 77093643461234 [10:12:14]1041 (16) - 0000000000871811 [10:12:14]1040 (4) - 103638 [10:12:14]1012 (4) - 23.10.2024 03:52 [10:12:14]1206 (1) - 0 [10:12:14]OFD Sender: Remove packet 103638 [10:12:14]ProducePacketName [10:12:14]name=ofd_packets/00103638 [10:12:14]NVStorageDeleteData [10:12:14]OFD Sender: Processing packet 103639 [packets to send 499, broken 497] [10:12:14]ProducePacketName [10:12:14]name=ofd_packets/00103639 [10:12:14]OFD Sender: To server: pG, [10:12:14]CommunicateWithHost lk.salyk.kg:30040 [10:12:14]ConnectInit lk.salyk.kg [10:12:15]Connected sock=9 [10:12: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 31 31 0F 01 00 00 14 99 07 01 7A 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A5 CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D7 94 01 00 35 04 06 00 25 EC 32 D0 62 C7 21 19 3A CA 26 04 C6 32 [10:12: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 31 31 4F 00 00 00 42 A9 47 00 2B DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D7 94 01 00 F4 03 04 00 13 73 18 67 B6 04 01 00 00 91 14 3E E6 0E 09 41 E5 [10:12:15]CommunicateWithHost err = 0 [10:12:15]CheckOFDResponse [10:12:15]1017 (14) - 77093643461234 [10:12:15]1041 (16) - 0000000000871811 [10:12:15]1040 (4) - 103639 [10:12:15]1012 (4) - 23.10.2024 03:52 [10:12:15]1206 (1) - 0 [10:12:15]OFD Sender: Remove packet 103639 [10:12:15]ProducePacketName [10:12:15]name=ofd_packets/00103639 [10:12:15]NVStorageDeleteData [10:12:16]OFD Sender: Processing packet 103640 [packets to send 498, broken 497] [10:12:16]ProducePacketName [10:12:16]name=ofd_packets/00103640 [10:12:16]OFD Sender: To server: pG, [10:12:16]CommunicateWithHost lk.salyk.kg:30040 [10:12:16]ConnectInit lk.salyk.kg [10:12:16]Connected sock=9 [10:12: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 31 31 0F 01 00 00 1D 7D 07 01 3C 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 CB CB 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D8 94 01 00 35 04 06 00 DF E4 14 82 F9 FD 06 86 6E A0 B6 B5 64 57 [10:12: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 31 31 4F 00 00 00 C8 79 47 00 2A 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 31 31 10 04 04 00 D8 94 01 00 F4 03 04 00 14 73 18 67 B6 04 01 00 00 4F 68 02 89 E6 B7 FA 96 [10:12:17]CommunicateWithHost err = 0 [10:12:17]CheckOFDResponse [10:12:17]1017 (14) - 77093643461234 [10:12:17]1041 (16) - 0000000000871811 [10:12:17]1040 (4) - 103640 [10:12:17]1012 (4) - 23.10.2024 03:52 [10:12:17]1206 (1) - 0 [10:12:17]OFD Sender: Remove packet 103640 [10:12:17]ProducePacketName [10:12:17]name=ofd_packets/00103640 [10:12:17]NVStorageDeleteData [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:00]recv_with_timeout no data received [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]recv_with_timeout no data received [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:45]accept exits with 7 [10:13:45]New connection [10:13:45]New thread 3066629476 created [10:13:45]Thread 3066772836 joined [10:13:45]Waiting for new connection... [10:13:45] Sock 7.Parse request [10:13:45]Sock 7.Check first char [10:13:45]Sock 7.First char is OK [10:13:45]request: POST /json_proto HTTP/1.0 [10:13:45]Method: POST [10:13:45]URL: /json_proto [10:13:45]Method is POST - this is cgi request [10:13:45]url: /json_proto [10:13:45]query_string will be loaded in cgi processing [10:13:45]execute_cgi json_proto POST (null) [10:13:45]execute_cgi path=json_proto method=POST [10:13:45]POST find Content-Length [10:13:45]Host: 172.17.51.67:8080 [10:13:45]Content-Length: 677 [10:13:45]Content-Type: application/json [10:13:45] [10:13:45]POST finish read [10:13:45]Found Content-Length = 677 [10:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 6.130, "sum" : 410.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:45]execute_script... [10:13:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 6.130, "sum" : 410.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:45]POST & json_proto [10:13:45]process_json_proto [10:13:45]json parsed OK: [10:13:45]protocol is kg_v1.0 [10:13:45]action value=close_receipt [10:13:45]process_action close_receipt [10:13:45]cmd_close_receipt [10:13:45]MH_GetDate [10:13:45]Write to MH i2c: F0 00 00 20 02 11 [10:13:45]Write i2c OK [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: F0 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: F0 09 00 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: F0 09 00 20 02 00 59 CC 18 67 1E EF FA 64 29 [10:13:45]GetLastDocTimeStamp 1729678283 [10:13:45]current date 1729678425 [10:13:45]FM_GetShiftState [10:13:45]SAM_PROTO_GetShiftState [10:13:45]wFMCommunicate request_size=4 [10:13:45]MH_SAM_APDU [10:13:45]CAPDU: 80 13 01 00 [10:13:45]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [10:13:45]Write i2c OK [10:13:45]MH_I2C_Read... [10:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:45]Read from MH i2c: E2 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: E2 0E 00 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D9 [10:13:45]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:13:45]wFMCommunicate OK [10:13:45]SAM_PROTO_GetShiftState done [10:13:45]FM_GetShiftState done [10:13:45]opened in 1729642861 [10:13:45]opened+sec_in_day 1729729261 [10:13:45]quantity*price = 41009 [10:13:45]sum+1 = 41011 [10:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 410.00 Внесено: 410.00 СДАЧА: 0.00 НСП 1% : 3.63 НДС 12% : 43.55 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 53 23.10.2024 10:13 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103641 ФПД: 96651893747173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101345&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103641&fm=96651893747173&tin=02508201610067®Number=0000000000091754&sum=41000 [10:13:46]StoreToDocumentArchive [10:13:46]shift 582 fd 103641 [10:13:46]save to /storage/0582/doc_00103641 [10:13:46]save last doc name /storage/0582/doc_00103641 to /storage/kkm_last_doc_name [10:13:46]save OK [10:13:46]Clear old archive folders... [10:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:46]tlvbuf is 019F4D40 [10:13:46]SAM_PROTO_ClearQueue [10:13:46]wFMCommunicate request_size=4 [10:13:46]MH_SAM_APDU [10:13:46]CAPDU: 80 09 00 00 [10:13:46]Write to MH i2c: E2 08 00 2E 02 80 09 00 00 00 00 00 00 A2 [10:13:46]Write i2c OK [10:13:46]MH_I2C_Read... [10:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:46]Read from MH i2c: E2 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: E2 03 00 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [10:13:46]RAPDU: 90 00 [10:13:46]wFMCommunicate OK [10:13:46]SAM_PROTO_ClearQueue done [10:13:46]KKMCreateOFDPacket [10:13:46]OFDProtocolAddRootSTLVToBuf [10:13:46]FM_MakeSignedData [10:13:46]FM_MakeSignedData [10:13:46]SAM_PROTO_SignData [10:13:46]wFMCommunicate request_size=4 [10:13:46]MH_SAM_APDU [10:13:46]CAPDU: 80 0D 01 02 [10:13:46]Write to MH i2c: E2 08 00 2F 02 80 0D 01 02 00 00 00 00 AA [10:13:46]Write i2c OK [10:13:46]MH_I2C_Read... [10:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:46]Read from MH i2c: E2 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: E2 03 00 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [10:13:46]RAPDU: 90 00 [10:13:46]wFMCommunicate OK [10:13:46]wFMCommunicate request_size=255 [10:13:46]MH_SAM_APDU [10:13:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 11 00 00 00 00 07 04 06 00 28 A0 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 59 CC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D9 94 01 00 35 04 06 00 57 [10:13:46]Write to MH i2c: E2 02 01 30 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 11 00 00 00 00 07 04 06 00 28 A0 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 59 CC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D9 94 01 00 35 04 06 00 57 00 00 BB [10:13:46]Write i2c OK [10:13:46]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [10:13:47]RAPDU: 90 00 [10:13:47]wFMCommunicate OK [10:13:47]wFMCommunicate request_size=10 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 0D 02 02 05 E7 85 CB 2D E5 [10:13:47]Write to MH i2c: E2 0D 00 31 02 80 0D 02 02 05 00 E7 85 CB 2D E5 00 00 00 [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [10:13:47]RAPDU: 90 00 [10:13:47]wFMCommunicate OK [10:13:47]wFMCommunicate request_size=4 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 0D 03 02 [10:13:47]Write to MH i2c: E2 08 00 32 02 80 0D 03 02 00 00 00 00 AF [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 0B 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 0B 00 32 02 00 CA 4A 30 2C FC 12 89 06 90 00 BD [10:13:47]RAPDU: CA 4A 30 2C FC 12 89 06 90 00 [10:13:47]wFMCommunicate OK [10:13:47]SAM_PROTO_SignData done [10:13:47]FM_MakeSignedData done [10:13:47]CreateOFDProtocolMessage [10:13:47]wFMCommunicate request_size=4 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 11 00 00 [10:13:47]Write to MH i2c: E2 08 00 33 02 80 11 00 00 00 00 00 00 AF [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 17 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 17 00 33 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 FC [10:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:13:47]wFMCommunicate OK [10:13:47]CreateOFDProtocolMessage done [10:13:47]OFDSenderStorePacket 103641 [10:13:47]StoreOFDPacket docnum=103641 [10:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 49 8C 07 01 AD 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 11 00 00 00 00 07 04 06 00 28 A0 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 59 CC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D9 94 01 00 35 04 06 00 57 E7 85 CB 2D E5 CA 4A 30 2C FC 12 89 06 [10:13:47]CheckFolder [10:13:47]dirname=/storage/ofd_packets [10:13:47]CheckFolder done [10:13:47]ProducePacketName [10:13:47]name=ofd_packets/00103641 [10:13:47]NVStorageSaveData ofd_packets/00103641 [10:13:47]File name is /storage/ofd_packets/00103641 [10:13:47]Write 301 bytes [10:13:47]NVStorageSaveData done [10:13:47]OFDSenderStorePacket done [10:13:47]KKMCreateOFDPacket done [10:13:47]NVStorageSaveData kkm_last_timestamp [10:13:47]File name is /storage/kkm_last_timestamp [10:13:47]Write 4 bytes [10:13:47]NVStorageSaveData done [10:13:47]ExternCall_PrintAddStr [10:13:47]wPrintStart [10:13:47]Write to MH i2c: 01 00 00 34 02 36 [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]OFD Sender: Processing packet 103641 [packets to send 498, broken 497] [10:13:47]ProducePacketName [10:13:47]name=ofd_packets/00103641 [10:13:47]OFD Sender: To server: pG, [10:13:47]CommunicateWithHost lk.salyk.kg:30040 [10:13:47]ConnectInit lk.salyk.kg [10:13:47]Read from MH i2c: 01 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: 01 07 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: 01 07 00 34 02 00 00 00 00 00 FF 0F 4B [10:13:47]RasterBufferAndPrint [10:13:47]line Счет N : (1)317850 [10:13:47]line ИНН: 02508201610067 [10:13:47]line Контрольно-Кассовый Чек [10:13:47]line ПРОДАЖА [10:13:47]line ТРК (МРК, ГНК) : 43 [10:13:47]line Товар: 2710124130 [10:13:47]line Аи-92-К-4 [10:13:47]line 6.130 * 66.90 [10:13:47]line = 410.10 [10:13:47]line НДС 12% НСП 1% [10:13:47]line > о реализуемом товаре [10:13:47]line ОКРУГЛЕНИЕ: -0.10 [10:13:47]line ИТОГО: 410.00 [10:13:47]line Внесено: 410.00 [10:13:47]line СДАЧА: 0.00 [10:13:47]line НСП 1% : 3.63 [10:13:47]line НДС 12% : 43.55 [10:13:47]line Наличными: 410.00 [10:13:47]line Безнал.: 0.00 [10:13:47]line Место: АЗС № 145 "Партнер Нефть" [10:13:47]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:13:47]line СНО: Общий режим [10:13:47]line Чек 53 23.10.2024 10:13 [10:13:47]line Смена: 582 ФФД: 1.0 [10:13:47]line ЗНМ: 0300000095 [10:13:47]line РНМ: 0000000000091754 [10:13:47]line Версия ККМ: 001 [10:13:47]line ФМ: 0000000000871811 [10:13:47]line ФД: 103641 [10:13:47]line ФПД: 96651893747173 [10:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101345&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103641&fm=96651893747173&tin=02508201610067®Number=0000000000091754&sum=41000 [10:13:47]written 0, free lines is 4095 [10:13:48]Write to MH i2c: 01 00 00 5E 02 60 [10:13:48]Write i2c OK [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: 01 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: 01 07 00 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: 01 07 00 5E 02 00 00 00 00 00 C3 0C 36 [10:13:48]RasterBufferAndPrint [10:13:48]line [10:13:48]line [10:13:48]line [10:13:48]line [10:13:48]line [10:13:48]written 0, free lines is 3272 [10:13:48]MH_Cut [10:13:48]Write to MH i2c: D1 01 00 65 02 01 39 [10:13:48]Write i2c OK [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: D1 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: D1 01 00 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: D1 01 00 65 02 00 38 [10:13:48]Write to MH i2c: 01 00 00 66 02 68 [10:13:48]Write i2c OK [10:13:48]MH_I2C_Read... [10:13:48]*** Cut start [10:13:48]*** Partial cut [10:13:48]*** CUTSNS_PIN = 1 [10:13:49]*** CUTSNS_PIN = 0 [10:13:49]*** Brake cut motor [10:13:49]Read from MH i2c: 01 [10:13:49]MH_I2C_Read... [10:13:49]*** Stop cut motor [10:13:49]*** Cut end [10:13:49]Read from MH i2c: 01 07 00 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 FF 0F 7D [10:13:49]process_action close_receipt done [10:13:49]requested_data is exist [10:13:49]produce_requested_data [10:13:49]requested_item fm.sn is exist - process it [10:13:49]wFMCommunicate request_size=4 [10:13:49]MH_SAM_APDU [10:13:49]CAPDU: 80 11 00 00 [10:13:49]Write to MH i2c: E2 08 00 67 02 80 11 00 00 00 00 00 00 E3 [10:13:49]Write i2c OK [10:13:49]MH_I2C_Read... [10:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:49]Read from MH i2c: E2 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 17 00 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 17 00 67 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 30 [10:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:13:49]wFMCommunicate OK [10:13:49]requested_item fd.num is exist - process it [10:13:49]SAM_PROTO_GetFieldsCounters [10:13:49]wFMCommunicate request_size=4 [10:13:49]MH_SAM_APDU [10:13:49]CAPDU: 80 13 00 00 [10:13:49]Write to MH i2c: E2 08 00 68 02 80 13 00 00 00 00 00 00 E6 [10:13:49]Write i2c OK [10:13:49]MH_I2C_Read... [10:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:49]Read from MH i2c: E2 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 62 00 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 62 00 68 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D9 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [10:13: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 D9 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:49]wFMCommunicate OK [10:13:49]SAM_PROTO_GetFieldsCounters done [10:13:49]requested_item shift.num is exist - process it [10:13:49]requested_item shift.opened is exist - process it [10:13:49]req_shift_opened [10:13:49]FM_GetShiftState [10:13:49]SAM_PROTO_GetShiftState [10:13:49]wFMCommunicate request_size=4 [10:13:49]MH_SAM_APDU [10:13:49]CAPDU: 80 13 01 00 [10:13:49]Write to MH i2c: E2 08 00 69 02 80 13 01 00 00 00 00 00 E8 [10:13:49]Write i2c OK [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 [10:13:49]MH_I2C_Read... [10:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:49]Read from MH i2c: E2 0E 00 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 0E 00 69 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 21 [10:13:49]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:13:49]wFMCommunicate OK [10:13:49]SAM_PROTO_GetShiftState done [10:13:49]FM_GetShiftState done [10:13:49]req_shift_opened done [10:13:49]requested_item shift.open_date is exist - process it [10:13:49]req_shift_open_date [10:13:49]req_shift_open_date done [10:13:49]produce_requested_data done [10:13:49]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103641,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:13:49]process_action_free close_receipt [10:13:49]json_value_free [10:13:49]json_value_free done [10:13:49]process_json_proto returns [10:13:49]Send response to host [10:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103641,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:13:49]free response buf [10:13:49]execute_script done [10:13:49]execute_script returns [10:13:49]free content buf [10:13:49]Sock 7.Close socket [10:13:49]Sock 7.Thread stoped [10:13:52]ConnectInit Can't take IP for lk.salyk.kg [10:13:52]CommunicateWithHost connect error [10:13:52]CommunicateWithHost err = -1 [10:13:52]OFD Sender: Server communicate error [10:13:57]OFD Sender: Processing packet 103641 [packets to send 498, broken 497] [10:13:57]ProducePacketName [10:13:57]name=ofd_packets/00103641 [10:13:57]OFD Sender: To server: pG, [10:13:57]CommunicateWithHost lk.salyk.kg:30040 [10:13:57]ConnectInit lk.salyk.kg [10:13:58]recv_with_timeout no data received [10:14:02]ConnectInit Can't take IP for lk.salyk.kg [10:14:02]CommunicateWithHost connect error [10:14:02]CommunicateWithHost err = -1 [10:14:02]OFD Sender: Server communicate error [10:14:07]OFD Sender: Processing packet 103641 [packets to send 498, broken 497] [10:14:07]ProducePacketName [10:14:07]name=ofd_packets/00103641 [10:14:07]OFD Sender: To server: pG, [10:14:07]CommunicateWithHost lk.salyk.kg:30040 [10:14:07]ConnectInit lk.salyk.kg [10:14:08]recv_with_timeout no data received [10:14:09]Connected sock=10 [10:14: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 31 31 0F 01 00 00 49 8C 07 01 AD 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 11 00 00 00 00 07 04 06 00 28 A0 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 59 CC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 D9 94 01 00 35 04 06 00 57 E7 85 CB 2D E5 CA 4A 30 2C FC 12 89 06 [10:14: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 31 31 4F 00 00 00 EC EF 47 00 A6 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 31 31 10 04 04 00 D9 94 01 00 F4 03 04 00 85 73 18 67 B6 04 01 00 00 A0 81 94 B9 6E 46 36 12 [10:14:09]CommunicateWithHost err = 0 [10:14:09]CheckOFDResponse [10:14:09]1017 (14) - 77093643461234 [10:14:09]1041 (16) - 0000000000871811 [10:14:09]1040 (4) - 103641 [10:14:09]1012 (4) - 23.10.2024 03:54 [10:14:09]1206 (1) - 0 [10:14:09]OFD Sender: Remove packet 103641 [10:14:09]ProducePacketName [10:14:09]name=ofd_packets/00103641 [10:14:09]NVStorageDeleteData [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:18]recv_with_timeout no data received [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:06]recv_with_timeout no data received [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:46]recv_with_timeout no data received [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:16:57]recv_with_timeout no data received [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:11]recv_with_timeout no data received [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:40]recv_with_timeout no data received [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]recv_with_timeout no data received [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:36]accept exits with 9 [10:20:36]New connection [10:20:36]New thread 3066772836 created [10:20:36]Thread 3066629476 joined [10:20:36]Waiting for new connection... [10:20:36] Sock 9.Parse request [10:20:36]Sock 9.Check first char [10:20:36]Sock 9.First char is OK [10:20:36]request: POST /json_proto HTTP/1.0 [10:20:36]Method: POST [10:20:36]URL: /json_proto [10:20:36]Method is POST - this is cgi request [10:20:36]url: /json_proto [10:20:36]query_string will be loaded in cgi processing [10:20:36]execute_cgi json_proto POST (null) [10:20:36]execute_cgi path=json_proto method=POST [10:20:36]POST find Content-Length [10:20:36]Host: 172.17.51.67:8080 [10:20:36]Content-Length: 677 [10:20:36]Content-Type: application/json [10:20:36] [10:20:36]POST finish read [10:20:36]Found Content-Length = 677 [10:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:36]execute_script... [10:20:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:36]POST & json_proto [10:20:36]process_json_proto [10:20:36]json parsed OK: [10:20:36]protocol is kg_v1.0 [10:20:36]action value=close_receipt [10:20:36]process_action close_receipt [10:20:36]cmd_close_receipt [10:20:36]MH_GetDate [10:20:36]Write to MH i2c: F0 00 00 6A 02 5B [10:20:36]Write i2c OK [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: F0 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: F0 09 00 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: F0 09 00 6A 02 00 F4 CD 18 67 1E EF FA 64 0F [10:20:36]GetLastDocTimeStamp 1729678425 [10:20:36]current date 1729678836 [10:20:36]FM_GetShiftState [10:20:36]SAM_PROTO_GetShiftState [10:20:36]wFMCommunicate request_size=4 [10:20:36]MH_SAM_APDU [10:20:36]CAPDU: 80 13 01 00 [10:20:36]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [10:20:36]Write i2c OK [10:20:36]MH_I2C_Read... [10:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:36]Read from MH i2c: E2 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 0E 00 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 23 [10:20:36]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:20:36]wFMCommunicate OK [10:20:36]SAM_PROTO_GetShiftState done [10:20:36]FM_GetShiftState done [10:20:36]opened in 1729642861 [10:20:36]opened+sec_in_day 1729729261 [10:20:36]quantity*price = 60009 [10:20:36]sum+1 = 60010 [10:20:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 54 23.10.2024 10:20 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103642 ФПД: 208163979798282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102036&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103642&fm=208163979798282&tin=02508201610067®Number=0000000000091754&sum=60000 [10:20:37]StoreToDocumentArchive [10:20:37]shift 582 fd 103642 [10:20:37]save to /storage/0582/doc_00103642 [10:20:37]save last doc name /storage/0582/doc_00103642 to /storage/kkm_last_doc_name [10:20:37]save OK [10:20:37]Clear old archive folders... [10:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:37]tlvbuf is B6F29350 [10:20:37]SAM_PROTO_ClearQueue [10:20:37]wFMCommunicate request_size=4 [10:20:37]MH_SAM_APDU [10:20:37]CAPDU: 80 09 00 00 [10:20:37]Write to MH i2c: E2 08 00 78 02 80 09 00 00 00 00 00 00 EC [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 03 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [10:20:37]RAPDU: 90 00 [10:20:37]wFMCommunicate OK [10:20:37]SAM_PROTO_ClearQueue done [10:20:37]KKMCreateOFDPacket [10:20:37]OFDProtocolAddRootSTLVToBuf [10:20:37]FM_MakeSignedData [10:20:37]FM_MakeSignedData [10:20:37]SAM_PROTO_SignData [10:20:37]wFMCommunicate request_size=4 [10:20:37]MH_SAM_APDU [10:20:37]CAPDU: 80 0D 01 02 [10:20:37]Write to MH i2c: E2 08 00 79 02 80 0D 01 02 00 00 00 00 F4 [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 03 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [10:20:37]RAPDU: 90 00 [10:20:37]wFMCommunicate OK [10:20:37]wFMCommunicate request_size=255 [10:20:37]MH_SAM_APDU [10:20:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F4 CD 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DA 94 01 00 35 04 06 00 BD [10:20:37]Write to MH i2c: E2 02 01 7A 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F4 CD 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DA 94 01 00 35 04 06 00 BD 00 00 44 [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:38]Read from MH i2c: E2 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [10:20:38]RAPDU: 90 00 [10:20:38]wFMCommunicate OK [10:20:38]wFMCommunicate request_size=10 [10:20:38]MH_SAM_APDU [10:20:38]CAPDU: 80 0D 02 02 05 52 F4 12 27 0A [10:20:38]Write to MH i2c: E2 0D 00 7B 02 80 0D 02 02 05 00 52 F4 12 27 0A 00 00 8A [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:38]Read from MH i2c: E2 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [10:20:38]RAPDU: 90 00 [10:20:38]wFMCommunicate OK [10:20:38]wFMCommunicate request_size=4 [10:20:38]MH_SAM_APDU [10:20:38]CAPDU: 80 0D 03 02 [10:20:38]Write to MH i2c: E2 08 00 7C 02 80 0D 03 02 00 00 00 00 F9 [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:38]Read from MH i2c: E2 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 0B 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 0B 00 7C 02 00 FA 20 B1 96 81 E1 FC 84 90 00 3D [10:20:38]RAPDU: FA 20 B1 96 81 E1 FC 84 90 00 [10:20:38]wFMCommunicate OK [10:20:38]SAM_PROTO_SignData done [10:20:38]FM_MakeSignedData done [10:20:38]CreateOFDProtocolMessage [10:20:38]wFMCommunicate request_size=4 [10:20:38]MH_SAM_APDU [10:20:38]CAPDU: 80 11 00 00 [10:20:38]Write to MH i2c: E2 08 00 7D 02 80 11 00 00 00 00 00 00 F9 [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:38]Read from MH i2c: E2 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 17 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 17 00 7D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 46 [10:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:20:38]wFMCommunicate OK [10:20:38]CreateOFDProtocolMessage done [10:20:38]OFDSenderStorePacket 103642 [10:20:38]StoreOFDPacket docnum=103642 [10:20:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 5B 73 07 01 D3 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F4 CD 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DA 94 01 00 35 04 06 00 BD 52 F4 12 27 0A FA 20 B1 96 81 E1 FC 84 [10:20:38]CheckFolder [10:20:38]dirname=/storage/ofd_packets [10:20:38]CheckFolder done [10:20:38]ProducePacketName [10:20:38]name=ofd_packets/00103642 [10:20:38]NVStorageSaveData ofd_packets/00103642 [10:20:38]File name is /storage/ofd_packets/00103642 [10:20:38]Write 301 bytes [10:20:38]NVStorageSaveData done [10:20:38]OFDSenderStorePacket done [10:20:38]KKMCreateOFDPacket done [10:20:38]NVStorageSaveData kkm_last_timestamp [10:20:38]File name is /storage/kkm_last_timestamp [10:20:38]Write 4 bytes [10:20:38]NVStorageSaveData done [10:20:38]ExternCall_PrintAddStr [10:20:38]wPrintStart [10:20:38]Write to MH i2c: 01 00 00 7E 02 80 [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 07 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: 01 07 00 7E 02 00 00 00 00 00 FF 0F 95 [10:20:38]RasterBufferAndPrint [10:20:38]line Счет N : (1)317853 [10:20:38]line ИНН: 02508201610067 [10:20:38]line Контрольно-Кассовый Чек [10:20:38]line ПРОДАЖА [10:20:38]line ТРК (МРК, ГНК) : 43 [10:20:38]line Товар: 2710124130 [10:20:38]line Аи-92-К-4 [10:20:38]line 8.970 * 66.90 [10:20:38]line = 600.09 [10:20:38]line НДС 12% НСП 1% [10:20:38]line > о реализуемом товаре [10:20:38]line ОКРУГЛЕНИЕ: -0.09 [10:20:38]line ИТОГО: 600.00 [10:20:38]line Внесено: 600.00 [10:20:38]line СДАЧА: 0.00 [10:20:38]line НСП 1% : 5.31 [10:20:38]line НДС 12% : 63.73 [10:20:38]line Наличными: 600.00 [10:20:38]line Безнал.: 0.00 [10:20:38]line Место: АЗС № 145 "Партнер Нефть" [10:20:38]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:20:38]line СНО: Общий режим [10:20:38]line Чек 54 23.10.2024 10:20 [10:20:38]line Смена: 582 ФФД: 1.0 [10:20:38]line ЗНМ: 0300000095 [10:20:38]line РНМ: 0000000000091754 [10:20:38]line Версия ККМ: 001 [10:20:38]line ФМ: 0000000000871811 [10:20:38]line ФД: 103642 [10:20:38]line ФПД: 208163979798282 [10:20:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102036&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103642&fm=208163979798282&tin=02508201610067®Number=0000000000091754&sum=60000 [10:20:38]OFD Sender: Processing packet 103642 [packets to send 498, broken 497] [10:20:38]ProducePacketName [10:20:38]name=ofd_packets/00103642 [10:20:38]OFD Sender: To server: pG, [10:20:38]CommunicateWithHost lk.salyk.kg:30040 [10:20:38]ConnectInit lk.salyk.kg [10:20:38]written 0, free lines is 4095 [10:20:39]Write to MH i2c: 01 00 00 A8 02 AA [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 07 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 07 00 A8 02 00 00 00 00 00 CA 0C 87 [10:20:39]RasterBufferAndPrint [10:20:39]line [10:20:39]line [10:20:39]line [10:20:39]line [10:20:39]line [10:20:39]written 0, free lines is 3278 [10:20:39]MH_Cut [10:20:39]Write to MH i2c: D1 01 00 AF 02 01 83 [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: D1 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: D1 01 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: D1 01 00 AF 02 00 82 [10:20:39]Write to MH i2c: 01 00 00 B0 02 B2 [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]*** Cut start [10:20:39]*** Partial cut [10:20:39]*** CUTSNS_PIN = 1 [10:20:39]*** CUTSNS_PIN = 0 [10:20:40]*** Brake cut motor [10:20:40]Read from MH i2c: 01 [10:20:40]MH_I2C_Read... [10:20:40]*** Stop cut motor [10:20:40]*** Cut end [10:20:40]Read from MH i2c: 01 07 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 FF 0F C7 [10:20:40]process_action close_receipt done [10:20:40]requested_data is exist [10:20:40]produce_requested_data [10:20:40]requested_item fm.sn is exist - process it [10:20:40]wFMCommunicate request_size=4 [10:20:40]MH_SAM_APDU [10:20:40]CAPDU: 80 11 00 00 [10:20:40]Write to MH i2c: E2 08 00 B1 02 80 11 00 00 00 00 00 00 2D [10:20:40]Write i2c OK [10:20:40]MH_I2C_Read... [10:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:40]Read from MH i2c: E2 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 17 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 17 00 B1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 7A [10:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:20:40]wFMCommunicate OK [10:20:40]requested_item fd.num is exist - process it [10:20:40]SAM_PROTO_GetFieldsCounters [10:20:40]wFMCommunicate request_size=4 [10:20:40]MH_SAM_APDU [10:20:40]CAPDU: 80 13 00 00 [10:20:40]Write to MH i2c: E2 08 00 B2 02 80 13 00 00 00 00 00 00 30 [10:20:40]Write i2c OK [10:20:40]MH_I2C_Read... [10:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:40]Read from MH i2c: E2 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 62 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 62 00 B2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 DA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:20: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 DA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:40]wFMCommunicate OK [10:20:40]SAM_PROTO_GetFieldsCounters done [10:20:40]requested_item shift.num is exist - process it [10:20:40]requested_item shift.opened is exist - process it [10:20:40]req_shift_opened [10:20:40]FM_GetShiftState [10:20:40]SAM_PROTO_GetShiftState [10:20:40]wFMCommunicate request_size=4 [10:20:40]MH_SAM_APDU [10:20:40]CAPDU: 80 13 01 00 [10:20:40]Write to MH i2c: E2 08 00 B3 02 80 13 01 00 00 00 00 00 32 [10:20:40]Write i2c OK [10:20:40]MH_I2C_Read... [10:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:40]Read from MH i2c: E2 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 0E 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 0E 00 B3 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 6B [10:20:40]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:20:40]wFMCommunicate OK [10:20:40]SAM_PROTO_GetShiftState done [10:20:40]FM_GetShiftState done [10:20:40]req_shift_opened done [10:20:40]requested_item shift.open_date is exist - process it [10:20:40]req_shift_open_date [10:20:40]req_shift_open_date done [10:20:40]produce_requested_data done [10:20:40]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103642,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:20:40]process_action_free close_receipt [10:20:40]json_value_free [10:20:40]json_value_free done [10:20:40]process_json_proto returns [10:20:40]Send response to host [10:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103642,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:20:40]free response buf [10:20:40]execute_script done [10:20:40]execute_script returns [10:20:40]free content buf [10:20:40]Sock 9.Close socket [10:20:40]Sock 9.Thread stoped [10:20:43]recv_with_timeout no data received [10:20:43]ConnectInit Can't take IP for lk.salyk.kg [10:20:43]CommunicateWithHost connect error [10:20:43]CommunicateWithHost err = -1 [10:20:43]OFD Sender: Server communicate error [10:20:48]OFD Sender: Processing packet 103642 [packets to send 498, broken 497] [10:20:48]ProducePacketName [10:20:48]name=ofd_packets/00103642 [10:20:48]OFD Sender: To server: pG, [10:20:48]CommunicateWithHost lk.salyk.kg:30040 [10:20:48]ConnectInit lk.salyk.kg [10:20:54]recv_with_timeout no data received [10:20:57]Connected sock=10 [10:20: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 31 31 0F 01 00 00 5B 73 07 01 D3 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F4 CD 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DA 94 01 00 35 04 06 00 BD 52 F4 12 27 0A FA 20 B1 96 81 E1 FC 84 [10:20: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 31 31 4F 00 00 00 99 5C 47 00 9B 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DA 94 01 00 F4 03 04 00 1D 75 18 67 B6 04 01 00 00 93 06 B2 8E AA 15 5D 6A [10:20:58]CommunicateWithHost err = 0 [10:20:58]CheckOFDResponse [10:20:58]1017 (14) - 77093643461234 [10:20:58]1041 (16) - 0000000000871811 [10:20:58]1040 (4) - 103642 [10:20:58]1012 (4) - 23.10.2024 04:01 [10:20:58]1206 (1) - 0 [10:20:58]OFD Sender: Remove packet 103642 [10:20:58]ProducePacketName [10:20:58]name=ofd_packets/00103642 [10:20:58]NVStorageDeleteData [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:07]accept exits with 7 [10:21:07]New connection [10:21:07]New thread 3066629476 created [10:21:07]Thread 3066772836 joined [10:21:07]Waiting for new connection... [10:21:07] Sock 7.Parse request [10:21:07]Sock 7.Check first char [10:21:07]Sock 7.First char is OK [10:21:07]request: POST /json_proto HTTP/1.0 [10:21:07]Method: POST [10:21:07]URL: /json_proto [10:21:07]Method is POST - this is cgi request [10:21:07]url: /json_proto [10:21:07]query_string will be loaded in cgi processing [10:21:07]execute_cgi json_proto POST (null) [10:21:07]execute_cgi path=json_proto method=POST [10:21:07]POST find Content-Length [10:21:07]Host: 172.17.51.67:8080 [10:21:07]Content-Length: 677 [10:21:07]Content-Type: application/json [10:21:07] [10:21:07]POST finish read [10:21:07]Found Content-Length = 677 [10:21:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:07]execute_script... [10:21:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:07]POST & json_proto [10:21:07]process_json_proto [10:21:07]json parsed OK: [10:21:07]protocol is kg_v1.0 [10:21:07]action value=close_receipt [10:21:07]process_action close_receipt [10:21:07]cmd_close_receipt [10:21:07]MH_GetDate [10:21:07]Write to MH i2c: F0 00 00 B4 02 A5 [10:21:07]Write i2c OK [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: F0 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: F0 09 00 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: F0 09 00 B4 02 00 13 CE 18 67 1E EF FA 64 79 [10:21:07]GetLastDocTimeStamp 1729678836 [10:21:07]current date 1729678867 [10:21:07]FM_GetShiftState [10:21:07]SAM_PROTO_GetShiftState [10:21:07]wFMCommunicate request_size=4 [10:21:07]MH_SAM_APDU [10:21:07]CAPDU: 80 13 01 00 [10:21:07]Write to MH i2c: E2 08 00 B5 02 80 13 01 00 00 00 00 00 34 [10:21:07]Write i2c OK [10:21:07]MH_I2C_Read... [10:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:07]Read from MH i2c: E2 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: E2 0E 00 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: E2 0E 00 B5 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 6D [10:21:07]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:21:07]wFMCommunicate OK [10:21:07]SAM_PROTO_GetShiftState done [10:21:07]FM_GetShiftState done [10:21:07]opened in 1729642861 [10:21:07]opened+sec_in_day 1729729261 [10:21:07]quantity*price = 20003 [10:21:07]sum+1 = 20004 [10:21:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 55 23.10.2024 10:21 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103643 ФПД: 31414842747001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102107&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103643&fm=31414842747001&tin=02508201610067®Number=0000000000091754&sum=20000 [10:21:08]StoreToDocumentArchive [10:21:08]shift 582 fd 103643 [10:21:08]save to /storage/0582/doc_00103643 [10:21:08]save last doc name /storage/0582/doc_00103643 to /storage/kkm_last_doc_name [10:21:08]save OK [10:21:08]Clear old archive folders... [10:21:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:08]tlvbuf is 019E72D0 [10:21:08]SAM_PROTO_ClearQueue [10:21:08]wFMCommunicate request_size=4 [10:21:08]MH_SAM_APDU [10:21:08]CAPDU: 80 09 00 00 [10:21:08]Write to MH i2c: E2 08 00 C2 02 80 09 00 00 00 00 00 00 36 [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [10:21:08]RAPDU: 90 00 [10:21:08]wFMCommunicate OK [10:21:08]SAM_PROTO_ClearQueue done [10:21:08]KKMCreateOFDPacket [10:21:08]OFDProtocolAddRootSTLVToBuf [10:21:08]FM_MakeSignedData [10:21:08]FM_MakeSignedData [10:21:08]SAM_PROTO_SignData [10:21:08]wFMCommunicate request_size=4 [10:21:08]MH_SAM_APDU [10:21:08]CAPDU: 80 0D 01 02 [10:21:08]Write to MH i2c: E2 08 00 C3 02 80 0D 01 02 00 00 00 00 3E [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [10:21:08]RAPDU: 90 00 [10:21:08]wFMCommunicate OK [10:21:08]wFMCommunicate request_size=255 [10:21:08]MH_SAM_APDU [10:21:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 13 CE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DB 94 01 00 35 04 06 00 1C [10:21:08]Write to MH i2c: E2 02 01 C4 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 13 CE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DB 94 01 00 35 04 06 00 1C 00 00 F4 [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [10:21:08]RAPDU: 90 00 [10:21:08]wFMCommunicate OK [10:21:08]wFMCommunicate request_size=10 [10:21:08]MH_SAM_APDU [10:21:08]CAPDU: 80 0D 02 02 05 92 56 8A E8 79 [10:21:08]Write to MH i2c: E2 0D 00 C5 02 80 0D 02 02 05 00 92 56 8A E8 79 00 00 1E [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:08]OFD Sender: No OFD packet to send [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [10:21:08]RAPDU: 90 00 [10:21:08]wFMCommunicate OK [10:21:08]wFMCommunicate request_size=4 [10:21:08]MH_SAM_APDU [10:21:08]CAPDU: 80 0D 03 02 [10:21:08]Write to MH i2c: E2 08 00 C6 02 80 0D 03 02 00 00 00 00 43 [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 0B 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 0B 00 C6 02 00 85 F1 F6 23 68 3E 2A D6 90 00 79 [10:21:08]RAPDU: 85 F1 F6 23 68 3E 2A D6 90 00 [10:21:08]wFMCommunicate OK [10:21:08]SAM_PROTO_SignData done [10:21:08]FM_MakeSignedData done [10:21:08]CreateOFDProtocolMessage [10:21:08]wFMCommunicate request_size=4 [10:21:08]MH_SAM_APDU [10:21:08]CAPDU: 80 11 00 00 [10:21:08]Write to MH i2c: E2 08 00 C7 02 80 11 00 00 00 00 00 00 43 [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 17 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 17 00 C7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 90 [10:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:21:08]wFMCommunicate OK [10:21:08]CreateOFDProtocolMessage done [10:21:08]OFDSenderStorePacket 103643 [10:21:08]StoreOFDPacket docnum=103643 [10:21:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 D0 6B 07 01 CF 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 13 CE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DB 94 01 00 35 04 06 00 1C 92 56 8A E8 79 85 F1 F6 23 68 3E 2A D6 [10:21:08]CheckFolder [10:21:08]dirname=/storage/ofd_packets [10:21:08]CheckFolder done [10:21:08]ProducePacketName [10:21:08]name=ofd_packets/00103643 [10:21:08]NVStorageSaveData ofd_packets/00103643 [10:21:08]File name is /storage/ofd_packets/00103643 [10:21:08]Write 301 bytes [10:21:08]NVStorageSaveData done [10:21:08]OFDSenderStorePacket done [10:21:08]KKMCreateOFDPacket done [10:21:08]NVStorageSaveData kkm_last_timestamp [10:21:08]File name is /storage/kkm_last_timestamp [10:21:08]Write 4 bytes [10:21:08]NVStorageSaveData done [10:21:08]ExternCall_PrintAddStr [10:21:08]wPrintStart [10:21:08]Write to MH i2c: 01 00 00 C8 02 CA [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: 01 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: 01 07 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: 01 07 00 C8 02 00 00 00 00 00 FF 0F DF [10:21:08]RasterBufferAndPrint [10:21:08]line Счет N : (1)317851 [10:21:08]line ИНН: 02508201610067 [10:21:08]line Контрольно-Кассовый Чек [10:21:08]line ПРОДАЖА [10:21:08]line ТРК (МРК, ГНК) : 53 [10:21:08]line Товар: 2710124130 [10:21:08]line Аи-92-К-4 [10:21:08]line 2.990 * 66.90 [10:21:08]line = 200.03 [10:21:08]line НДС 12% НСП 1% [10:21:08]line > о реализуемом товаре [10:21:08]line ОКРУГЛЕНИЕ: -0.03 [10:21:08]line ИТОГО: 200.00 [10:21:08]line Внесено: 200.00 [10:21:08]line СДАЧА: 0.00 [10:21:08]line НСП 1% : 1.77 [10:21:08]line НДС 12% : 21.24 [10:21:08]line Наличными: 200.00 [10:21:08]line Безнал.: 0.00 [10:21:08]line Место: АЗС № 145 "Партнер Нефть" [10:21:08]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:21:08]line СНО: Общий режим [10:21:08]line Чек 55 23.10.2024 10:21 [10:21:08]line Смена: 582 ФФД: 1.0 [10:21:08]line ЗНМ: 0300000095 [10:21:08]line РНМ: 0000000000091754 [10:21:08]line Версия ККМ: 001 [10:21:08]line ФМ: 0000000000871811 [10:21:08]line ФД: 103643 [10:21:08]line ФПД: 31414842747001 [10:21:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T102107&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103643&fm=31414842747001&tin=02508201610067®Number=0000000000091754&sum=20000 [10:21:08]written 0, free lines is 4095 [10:21:08]OFD Sender: Processing packet 103643 [packets to send 498, broken 497] [10:21:08]ProducePacketName [10:21:08]name=ofd_packets/00103643 [10:21:08]OFD Sender: To server: pG, [10:21:08]CommunicateWithHost lk.salyk.kg:30040 [10:21:08]ConnectInit lk.salyk.kg [10:21:09]Write to MH i2c: 01 00 00 F2 02 F4 [10:21:09]Write i2c OK [10:21:09]MH_I2C_Read... [10:21:09]Read from MH i2c: 01 [10:21:09]MH_I2C_Read... [10:21:09]Read from MH i2c: 01 07 00 [10:21:09]MH_I2C_Read... [10:21:09]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 CB 0C D2 [10:21:09]RasterBufferAndPrint [10:21:09]line [10:21:09]line [10:21:09]line [10:21:09]line [10:21:09]line [10:21:09]written 0, free lines is 3282 [10:21:09]MH_Cut [10:21:09]Write to MH i2c: D1 01 00 F9 02 01 CD [10:21:09]Write i2c OK [10:21:09]MH_I2C_Read... [10:21:09]Read from MH i2c: D1 [10:21:09]MH_I2C_Read... [10:21:09]Read from MH i2c: D1 01 00 [10:21:09]MH_I2C_Read... [10:21:09]Read from MH i2c: D1 01 00 F9 02 00 CC [10:21:09]Write to MH i2c: 01 00 00 FA 02 FC [10:21:09]Write i2c OK [10:21:09]MH_I2C_Read... [10:21:09]Connected sock=10 [10:21: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 31 31 0F 01 00 00 D0 6B 07 01 CF 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 13 CE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DB 94 01 00 35 04 06 00 1C 92 56 8A E8 79 85 F1 F6 23 68 3E 2A D6 [10:21: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 31 31 4F 00 00 00 13 97 47 00 58 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 31 31 10 04 04 00 DB 94 01 00 F4 03 04 00 29 75 18 67 B6 04 01 00 00 09 39 25 48 46 15 F5 A0 [10:21:09]CommunicateWithHost err = 0 [10:21:09]CheckOFDResponse [10:21:09]1017 (14) - 77093643461234 [10:21:09]1041 (16) - 0000000000871811 [10:21:09]1040 (4) - 103643 [10:21:09]1012 (4) - 23.10.2024 04:01 [10:21:09]1206 (1) - 0 [10:21:09]OFD Sender: Remove packet 103643 [10:21:09]ProducePacketName [10:21:09]name=ofd_packets/00103643 [10:21:09]NVStorageDeleteData [10:21:10]*** Cut start [10:21:10]*** Partial cut [10:21:10]*** CUTSNS_PIN = 1 [10:21:10]*** CUTSNS_PIN = 0 [10:21:10]*** Brake cut motor [10:21:10]OFD Sender: No OFD packet to send [10:21:10]Read from MH i2c: 01 [10:21:10]MH_I2C_Read... [10:21:10]*** Stop cut motor [10:21:10]*** Cut end [10:21:10]Read from MH i2c: 01 07 00 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 FF 0F 11 [10:21:10]process_action close_receipt done [10:21:10]requested_data is exist [10:21:10]produce_requested_data [10:21:10]requested_item fm.sn is exist - process it [10:21:10]wFMCommunicate request_size=4 [10:21:10]MH_SAM_APDU [10:21:10]CAPDU: 80 11 00 00 [10:21:10]Write to MH i2c: E2 08 00 FB 02 80 11 00 00 00 00 00 00 77 [10:21:10]Write i2c OK [10:21:10]MH_I2C_Read... [10:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:10]Read from MH i2c: E2 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: E2 17 00 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: E2 17 00 FB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 C4 [10:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:21:10]wFMCommunicate OK [10:21:10]requested_item fd.num is exist - process it [10:21:10]SAM_PROTO_GetFieldsCounters [10:21:10]wFMCommunicate request_size=4 [10:21:10]MH_SAM_APDU [10:21:10]CAPDU: 80 13 00 00 [10:21:10]Write to MH i2c: E2 08 00 FC 02 80 13 00 00 00 00 00 00 7A [10:21:10]Write i2c OK [10:21:10]MH_I2C_Read... [10:21:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:10]Read from MH i2c: E2 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: E2 62 00 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: E2 62 00 FC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 DB 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [10:21: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 DB 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:10]wFMCommunicate OK [10:21:10]SAM_PROTO_GetFieldsCounters done [10:21:10]requested_item shift.num is exist - process it [10:21:10]requested_item shift.opened is exist - process it [10:21:10]req_shift_opened [10:21:10]FM_GetShiftState [10:21:10]SAM_PROTO_GetShiftState [10:21:10]wFMCommunicate request_size=4 [10:21:10]MH_SAM_APDU [10:21:10]CAPDU: 80 13 01 00 [10:21:10]Write to MH i2c: E2 08 00 FD 02 80 13 01 00 00 00 00 00 7C [10:21:10]Write i2c OK [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: E2 [10:21:10]MH_I2C_Read... [10:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:10]Read from MH i2c: E2 0E 00 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: E2 0E 00 FD 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B5 [10:21:10]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:21:10]wFMCommunicate OK [10:21:10]SAM_PROTO_GetShiftState done [10:21:10]FM_GetShiftState done [10:21:10]req_shift_opened done [10:21:10]requested_item shift.open_date is exist - process it [10:21:10]req_shift_open_date [10:21:10]req_shift_open_date done [10:21:10]produce_requested_data done [10:21:10]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103643,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:21:10]process_action_free close_receipt [10:21:10]json_value_free [10:21:10]json_value_free done [10:21:10]process_json_proto returns [10:21:10]Send response to host [10:21:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103643,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:21:10]free response buf [10:21:10]execute_script done [10:21:10]execute_script returns [10:21:10]free content buf [10:21:10]Sock 7.Close socket [10:21:10]Sock 7.Thread stoped [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:09]accept exits with 9 [10:22:09]New connection [10:22:09]New thread 3066772836 created [10:22:09]Thread 3066629476 joined [10:22:09]Waiting for new connection... [10:22:09] Sock 9.Parse request [10:22:09]Sock 9.Check first char [10:22:09]Sock 9.First char is OK [10:22:09]request: POST /json_proto HTTP/1.0 [10:22:09]Method: POST [10:22:09]URL: /json_proto [10:22:09]Method is POST - this is cgi request [10:22:09]url: /json_proto [10:22:09]query_string will be loaded in cgi processing [10:22:09]execute_cgi json_proto POST (null) [10:22:09]execute_cgi path=json_proto method=POST [10:22:09]POST find Content-Length [10:22:09]Host: 172.17.51.67:8080 [10:22:09]Content-Length: 678 [10:22:09]Content-Type: application/json [10:22:09] [10:22:09]POST finish read [10:22:09]Found Content-Length = 678 [10:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:09]execute_script... [10: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 : (1)317854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:09]POST & json_proto [10:22:09]process_json_proto [10:22:09]json parsed OK: [10:22:09]protocol is kg_v1.0 [10:22:09]action value=close_receipt [10:22:09]process_action close_receipt [10:22:09]cmd_close_receipt [10:22:09]MH_GetDate [10:22:09]Write to MH i2c: F0 00 00 FE 02 EF [10:22:09]Write i2c OK [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: F0 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: F0 09 00 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: F0 09 00 FE 02 00 51 CE 18 67 1E EF FA 64 01 [10:22:09]GetLastDocTimeStamp 1729678867 [10:22:09]current date 1729678929 [10:22:09]FM_GetShiftState [10:22:09]SAM_PROTO_GetShiftState [10:22:09]wFMCommunicate request_size=4 [10:22:09]MH_SAM_APDU [10:22:09]CAPDU: 80 13 01 00 [10:22:09]Write to MH i2c: E2 08 00 FF 02 80 13 01 00 00 00 00 00 7E [10:22:09]Write i2c OK [10:22:09]MH_I2C_Read... [10:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:09]Read from MH i2c: E2 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: E2 0E 00 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: E2 0E 00 FF 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B7 [10:22:09]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:22:09]wFMCommunicate OK [10:22:09]SAM_PROTO_GetShiftState done [10:22:09]FM_GetShiftState done [10:22:09]opened in 1729642861 [10:22:09]opened+sec_in_day 1729729261 [10:22:09]quantity*price = 80012 [10:22:09]sum+1 = 80013 [10:22:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 57 23.10.2024 10:40 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103645 ФПД: 90178346846152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104043&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103645&fm=90178346846152&tin=02508201610067®Number=0000000000091754&sum=50000 [10:40:43]StoreToDocumentArchive [10:40:43]shift 582 fd 103645 [10:40:43]save to /storage/0582/doc_00103645 [10:40:43]save last doc name /storage/0582/doc_00103645 to /storage/kkm_last_doc_name [10:40:43]save OK [10:40:43]Clear old archive folders... [10:40:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:43]tlvbuf is 00E73B20 [10:40:43]SAM_PROTO_ClearQueue [10:40:43]wFMCommunicate request_size=4 [10:40:43]MH_SAM_APDU [10:40:43]CAPDU: 80 09 00 00 [10:40:43]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [10:40:43]Write i2c OK [10:40:43]MH_I2C_Read... [10:40:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:43]Read from MH i2c: E2 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 03 00 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [10:40:43]RAPDU: 90 00 [10:40:43]wFMCommunicate OK [10:40:43]SAM_PROTO_ClearQueue done [10:40:43]KKMCreateOFDPacket [10:40:43]OFDProtocolAddRootSTLVToBuf [10:40:43]FM_MakeSignedData [10:40:43]FM_MakeSignedData [10:40:43]SAM_PROTO_SignData [10:40:43]wFMCommunicate request_size=4 [10:40:43]MH_SAM_APDU [10:40:43]CAPDU: 80 0D 01 02 [10:40:43]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [10:40:43]Write i2c OK [10:40:43]MH_I2C_Read... [10:40:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:43]Read from MH i2c: E2 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 03 00 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [10:40:43]RAPDU: 90 00 [10:40:43]wFMCommunicate OK [10:40:43]wFMCommunicate request_size=255 [10:40:43]MH_SAM_APDU [10:40: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 AB D2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DD 94 01 00 35 04 06 00 52 [10:40:43]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 AB D2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DD 94 01 00 35 04 06 00 52 00 00 6F [10:40:43]Write i2c OK [10:40:43]MH_I2C_Read... [10:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:43]Read from MH i2c: E2 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 03 00 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [10:40:43]RAPDU: 90 00 [10:40:43]wFMCommunicate OK [10:40:43]wFMCommunicate request_size=10 [10:40:43]MH_SAM_APDU [10:40:43]CAPDU: 80 0D 02 02 05 04 48 54 87 C8 [10:40:43]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 04 48 54 87 C8 00 00 A1 [10:40:43]Write i2c OK [10:40:43]MH_I2C_Read... [10:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:43]Read from MH i2c: E2 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 03 00 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [10:40:43]RAPDU: 90 00 [10:40:43]wFMCommunicate OK [10:40:43]wFMCommunicate request_size=4 [10:40:43]MH_SAM_APDU [10:40:43]CAPDU: 80 0D 03 02 [10:40:43]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [10:40:43]Write i2c OK [10:40:43]MH_I2C_Read... [10:40:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:43]Read from MH i2c: E2 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 0B 00 [10:40:43]MH_I2C_Read... [10:40:43]Read from MH i2c: E2 0B 00 2F 00 00 2F 4E 58 F2 A0 2E 99 D5 90 00 AE [10:40:43]RAPDU: 2F 4E 58 F2 A0 2E 99 D5 90 00 [10:40:43]wFMCommunicate OK [10:40:43]SAM_PROTO_SignData done [10:40:43]FM_MakeSignedData done [10:40:43]CreateOFDProtocolMessage [10:40:43]wFMCommunicate request_size=4 [10:40:43]MH_SAM_APDU [10:40:43]CAPDU: 80 11 00 00 [10:40:43]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [10:40:43]Write i2c OK [10:40:43]MH_I2C_Read... [10:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 17 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 F7 [10:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:40:44]wFMCommunicate OK [10:40:44]CreateOFDProtocolMessage done [10:40:44]OFDSenderStorePacket 103645 [10:40:44]StoreOFDPacket docnum=103645 [10:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 33 81 07 01 64 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 AB D2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DD 94 01 00 35 04 06 00 52 04 48 54 87 C8 2F 4E 58 F2 A0 2E 99 D5 [10:40:44]CheckFolder [10:40:44]dirname=/storage/ofd_packets [10:40:44]CheckFolder done [10:40:44]ProducePacketName [10:40:44]name=ofd_packets/00103645 [10:40:44]NVStorageSaveData ofd_packets/00103645 [10:40:44]File name is /storage/ofd_packets/00103645 [10:40:44]Write 301 bytes [10:40:44]NVStorageSaveData done [10:40:44]OFDSenderStorePacket done [10:40:44]KKMCreateOFDPacket done [10:40:44]NVStorageSaveData kkm_last_timestamp [10:40:44]File name is /storage/kkm_last_timestamp [10:40:44]Write 4 bytes [10:40:44]NVStorageSaveData done [10:40:44]ExternCall_PrintAddStr [10:40:44]wPrintStart [10:40:44]Write to MH i2c: 01 00 00 31 00 31 [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: 01 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: 01 07 00 [10:40:44]MH_I2C_Read... [10:40:44]OFD Sender: Processing packet 103645 [packets to send 498, broken 497] [10:40:44]ProducePacketName [10:40:44]name=ofd_packets/00103645 [10:40:44]OFD Sender: To server: pG, [10:40:44]CommunicateWithHost lk.salyk.kg:30040 [10:40:44]ConnectInit lk.salyk.kg [10:40:44]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [10:40:44]RasterBufferAndPrint [10:40:44]line Счет N : (1)317855 [10:40:44]line ИНН: 02508201610067 [10:40:44]line Контрольно-Кассовый Чек [10:40:44]line ПРОДАЖА [10:40:44]line ТРК (МРК, ГНК) : 43 [10:40:44]line Товар: 2710124130 [10:40:44]line Аи-92-К-4 [10:40:44]line 7.480 * 66.90 [10:40:44]line = 500.41 [10:40:44]line НДС 12% НСП 1% [10:40:44]line > о реализуемом товаре [10:40:44]line ОКРУГЛЕНИЕ: -0.41 [10:40:44]line ИТОГО: 500.00 [10:40:44]line Внесено: 500.00 [10:40:44]line СДАЧА: 0.00 [10:40:44]line НСП 1% : 4.43 [10:40:44]line НДС 12% : 53.14 [10:40:44]line Наличными: 500.00 [10:40:44]line Безнал.: 0.00 [10:40:44]line Место: АЗС № 145 "Партнер Нефть" [10:40:44]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:40:44]line СНО: Общий режим [10:40:44]line Чек 57 23.10.2024 10:40 [10:40:44]line Смена: 582 ФФД: 1.0 [10:40:44]line ЗНМ: 0300000095 [10:40:44]line РНМ: 0000000000091754 [10:40:44]line Версия ККМ: 001 [10:40:44]line ФМ: 0000000000871811 [10:40:44]line ФД: 103645 [10:40:44]line ФПД: 90178346846152 [10:40:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104043&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103645&fm=90178346846152&tin=02508201610067®Number=0000000000091754&sum=50000 [10:40:44]written 0, free lines is 4095 [10:40:44]Write to MH i2c: 01 00 00 5B 00 5B [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: 01 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: 01 07 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 D3 0C 41 [10:40:44]RasterBufferAndPrint [10:40:44]line [10:40:44]line [10:40:44]line [10:40:44]line [10:40:44]line [10:40:44]written 0, free lines is 3302 [10:40:44]MH_Cut [10:40:44]Write to MH i2c: D1 01 00 62 00 01 34 [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: D1 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: D1 01 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: D1 01 00 62 00 00 33 [10:40:44]Write to MH i2c: 01 00 00 63 00 63 [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:45]*** Cut start [10:40:45]*** Partial cut [10:40:45]*** CUTSNS_PIN = 1 [10:40:45]*** CUTSNS_PIN = 0 [10:40:45]*** Brake cut motor [10:40:46]Read from MH i2c: 01 [10:40:46]MH_I2C_Read... [10:40:46]*** Stop cut motor [10:40:46]*** Cut end [10:40:46]Read from MH i2c: 01 07 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [10:40:46]process_action close_receipt done [10:40:46]requested_data is exist [10:40:46]produce_requested_data [10:40:46]requested_item fm.sn is exist - process it [10:40:46]wFMCommunicate request_size=4 [10:40:46]MH_SAM_APDU [10:40:46]CAPDU: 80 11 00 00 [10:40:46]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [10:40:46]Write i2c OK [10:40:46]MH_I2C_Read... [10:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:46]Read from MH i2c: E2 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 17 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 2B [10:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:40:46]wFMCommunicate OK [10:40:46]requested_item fd.num is exist - process it [10:40:46]SAM_PROTO_GetFieldsCounters [10:40:46]wFMCommunicate request_size=4 [10:40:46]MH_SAM_APDU [10:40:46]CAPDU: 80 13 00 00 [10:40:46]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [10:40:46]Write i2c OK [10:40:46]MH_I2C_Read... [10:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:46]Read from MH i2c: E2 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 62 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 DD 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [10: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 DD 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:46]wFMCommunicate OK [10:40:46]SAM_PROTO_GetFieldsCounters done [10:40:46]requested_item shift.num is exist - process it [10:40:46]requested_item shift.opened is exist - process it [10:40:46]req_shift_opened [10:40:46]FM_GetShiftState [10:40:46]SAM_PROTO_GetShiftState [10:40:46]wFMCommunicate request_size=4 [10:40:46]MH_SAM_APDU [10:40:46]CAPDU: 80 13 01 00 [10:40:46]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [10:40:46]Write i2c OK [10:40:46]MH_I2C_Read... [10:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:46]Read from MH i2c: E2 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 0E 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 1C [10:40:46]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:40:46]wFMCommunicate OK [10:40:46]SAM_PROTO_GetShiftState done [10:40:46]FM_GetShiftState done [10:40:46]req_shift_opened done [10:40:46]requested_item shift.open_date is exist - process it [10:40:46]req_shift_open_date [10:40:46]req_shift_open_date done [10:40:46]produce_requested_data done [10:40:46]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103645,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:40:46]process_action_free close_receipt [10:40:46]json_value_free [10:40:46]json_value_free done [10:40:46]process_json_proto returns [10:40:46]Send response to host [10:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103645,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:40:46]free response buf [10:40:46]execute_script done [10:40:46]execute_script returns [10:40:46]free content buf [10:40:46]Sock 9.Close socket [10:40:46]Sock 9.Thread stoped [10:40:46]accept exits with 7 [10:40:46]New connection [10:40:46]New thread 3067161956 created [10:40:46]Thread 3067305316 joined [10:40:46]Waiting for new connection... [10:40:46] Sock 7.Parse request [10:40:46]Sock 7.Check first char [10:40:46]Sock 7.First char is OK [10:40:46]request: POST /json_proto HTTP/1.0 [10:40:46]Method: POST [10:40:46]URL: /json_proto [10:40:46]Method is POST - this is cgi request [10:40:46]url: /json_proto [10:40:46]query_string will be loaded in cgi processing [10:40:46]execute_cgi json_proto POST (null) [10:40:46]execute_cgi path=json_proto method=POST [10:40:46]POST find Content-Length [10:40:46]Host: 172.17.51.67:8080 [10:40:46]Content-Length: 674 [10:40:46]Content-Type: application/json [10:40:46] [10:40:46]POST finish read [10:40:46]Found Content-Length = 674 [10:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 75.20, "quantity" : 6.650, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:46]execute_script... [10:40:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 75.20, "quantity" : 6.650, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:46]POST & json_proto [10:40:46]process_json_proto [10:40:46]json parsed OK: [10:40:46]protocol is kg_v1.0 [10:40:46]action value=close_receipt [10:40:46]process_action close_receipt [10:40:46]cmd_close_receipt [10:40:46]MH_GetDate [10:40:46]Write to MH i2c: F0 00 00 67 00 56 [10:40:46]Write i2c OK [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: F0 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: F0 09 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: F0 09 00 67 00 00 AF D2 18 67 1E EF FA 64 CA [10:40:46]GetLastDocTimeStamp 1729680043 [10:40:46]current date 1729680047 [10:40:46]FM_GetShiftState [10:40:46]SAM_PROTO_GetShiftState [10:40:46]wFMCommunicate request_size=4 [10:40:46]MH_SAM_APDU [10:40:46]CAPDU: 80 13 01 00 [10:40:46]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [10:40:46]Write i2c OK [10:40:46]MH_I2C_Read... [10:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:46]Read from MH i2c: E2 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 0E 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 1E [10:40:46]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:40:46]wFMCommunicate OK [10:40:46]SAM_PROTO_GetShiftState done [10:40:46]FM_GetShiftState done [10:40:46]opened in 1729642861 [10:40:46]opened+sec_in_day 1729729261 [10:40:46]quantity*price = 50008 [10:40:46]sum+1 = 50009 [10:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 58 23.10.2024 10:40 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103646 ФПД: 113710292900940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104047&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103646&fm=113710292900940&tin=02508201610067®Number=0000000000091754&sum=50000 [10:40:48]StoreToDocumentArchive [10:40:48]shift 582 fd 103646 [10:40:48]save to /storage/0582/doc_00103646 [10:40:48]save last doc name /storage/0582/doc_00103646 to /storage/kkm_last_doc_name [10:40:48]save OK [10:40:48]Clear old archive folders... [10:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:40:48]tlvbuf is 00E989E0 [10:40:48]SAM_PROTO_ClearQueue [10:40:48]wFMCommunicate request_size=4 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 09 00 00 [10:40:48]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [10:40:48]RAPDU: 90 00 [10:40:48]wFMCommunicate OK [10:40:48]SAM_PROTO_ClearQueue done [10:40:48]KKMCreateOFDPacket [10:40:48]OFDProtocolAddRootSTLVToBuf [10:40:48]FM_MakeSignedData [10:40:48]FM_MakeSignedData [10:40:48]SAM_PROTO_SignData [10:40:48]wFMCommunicate request_size=4 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 0D 01 02 [10:40:48]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [10:40:48]RAPDU: 90 00 [10:40:48]wFMCommunicate OK [10:40:48]wFMCommunicate request_size=255 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 FA 19 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 AF D2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DE 94 01 00 35 04 06 00 67 6B 3D 9D [10:40:48]Write to MH i2c: E2 02 01 77 00 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 34 FF 03 08 00 03 FA 19 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 AF D2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DE 94 01 00 35 04 06 00 67 6B 3D 9D 00 00 46 [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]recv_with_timeout no data received [10:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [10:40:48]RAPDU: 90 00 [10:40:48]wFMCommunicate OK [10:40:48]wFMCommunicate request_size=7 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 0D 02 02 02 9C 4C [10:40:48]Write to MH i2c: E2 0A 00 78 00 80 0D 02 02 02 00 9C 4C 00 00 DE [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:49]Read from MH i2c: E2 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: E2 03 00 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [10:40:49]RAPDU: 90 00 [10:40:49]wFMCommunicate OK [10:40:49]wFMCommunicate request_size=4 [10:40:49]MH_SAM_APDU [10:40:49]CAPDU: 80 0D 03 02 [10:40:49]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [10:40:49]Write i2c OK [10:40:49]MH_I2C_Read... [10:40:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:49]Read from MH i2c: E2 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: E2 0B 00 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: E2 0B 00 79 00 00 C0 04 02 87 66 76 30 E5 90 00 33 [10:40:49]RAPDU: C0 04 02 87 66 76 30 E5 90 00 [10:40:49]wFMCommunicate OK [10:40:49]SAM_PROTO_SignData done [10:40:49]FM_MakeSignedData done [10:40:49]CreateOFDProtocolMessage [10:40:49]wFMCommunicate request_size=4 [10:40:49]MH_SAM_APDU [10:40:49]CAPDU: 80 11 00 00 [10:40:49]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [10:40:49]Write i2c OK [10:40:49]MH_I2C_Read... [10:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:49]Read from MH i2c: E2 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: E2 17 00 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 41 [10:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:40:49]wFMCommunicate OK [10:40:49]CreateOFDProtocolMessage done [10:40:49]OFDSenderStorePacket 103646 [10:40:49]StoreOFDPacket docnum=103646 [10:40:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0C 01 00 00 D6 02 04 01 8D 45 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 34 FF 03 08 00 03 FA 19 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 AF D2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DE 94 01 00 35 04 06 00 67 6B 3D 9D 9C 4C C0 04 02 87 66 76 30 E5 [10:40:49]CheckFolder [10:40:49]dirname=/storage/ofd_packets [10:40:49]CheckFolder done [10:40:49]ProducePacketName [10:40:49]name=ofd_packets/00103646 [10:40:49]NVStorageSaveData ofd_packets/00103646 [10:40:49]File name is /storage/ofd_packets/00103646 [10:40:49]Write 298 bytes [10:40:49]NVStorageSaveData done [10:40:49]OFDSenderStorePacket done [10:40:49]KKMCreateOFDPacket done [10:40:49]NVStorageSaveData kkm_last_timestamp [10:40:49]File name is /storage/kkm_last_timestamp [10:40:49]Write 4 bytes [10:40:49]NVStorageSaveData done [10:40:49]ExternCall_PrintAddStr [10:40:49]wPrintStart [10:40:49]Write to MH i2c: 01 00 00 7B 00 7B [10:40:49]Write i2c OK [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: 01 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: 01 07 00 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [10:40:49]RasterBufferAndPrint [10:40:49]line Счет N : (1)317856 [10:40:49]line ИНН: 02508201610067 [10:40:49]line Контрольно-Кассовый Чек [10:40:49]line ПРОДАЖА [10:40:49]line ТРК (МРК, ГНК) : 31 [10:40:49]line Товар: 2710194210 [10:40:49]line ДТ-К-4 [10:40:49]line 6.650 * 75.20 [10:40:49]line = 500.08 [10:40:49]line НДС 12% НСП 1% [10:40:49]line > о реализуемом товаре [10:40:49]line ОКРУГЛЕНИЕ: -0.08 [10:40:49]line ИТОГО: 500.00 [10:40:49]line Внесено: 500.00 [10:40:49]line СДАЧА: 0.00 [10:40:49]line НСП 1% : 4.42 [10:40:49]line НДС 12% : 53.11 [10:40:49]line Наличными: 500.00 [10:40:49]line Безнал.: 0.00 [10:40:49]line Место: АЗС № 145 "Партнер Нефть" [10:40:49]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:40:49]line СНО: Общий режим [10:40:49]line Чек 58 23.10.2024 10:40 [10:40:49]line Смена: 582 ФФД: 1.0 [10:40:49]line ЗНМ: 0300000095 [10:40:49]line РНМ: 0000000000091754 [10:40:49]line Версия ККМ: 001 [10:40:49]line ФМ: 0000000000871811 [10:40:49]line ФД: 103646 [10:40:49]line ФПД: 113710292900940 [10:40:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104047&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103646&fm=113710292900940&tin=02508201610067®Number=0000000000091754&sum=50000 [10:40:49]written 0, free lines is 4095 [10:40:49]ConnectInit Can't take IP for lk.salyk.kg [10:40:49]CommunicateWithHost connect error [10:40:49]CommunicateWithHost err = -1 [10:40:49]OFD Sender: Server communicate error [10:40:49]OFD Sender: Processing packet 103645 [packets to send 499, broken 497] [10:40:49]ProducePacketName [10:40:49]name=ofd_packets/00103645 [10:40:49]OFD Sender: To server: pG, [10:40:49]CommunicateWithHost lk.salyk.kg:30040 [10:40:49]ConnectInit lk.salyk.kg [10:40:49]Write to MH i2c: 01 00 00 A5 00 A5 [10:40:49]Write i2c OK [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: 01 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: 01 07 00 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 CD 0C 85 [10:40:49]RasterBufferAndPrint [10:40:49]line [10:40:49]line [10:40:49]line [10:40:49]line [10:40:49]line [10:40:49]written 0, free lines is 3305 [10:40:49]MH_Cut [10:40:49]Write to MH i2c: D1 01 00 AC 00 01 7E [10:40:49]Write i2c OK [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: D1 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: D1 01 00 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: D1 01 00 AC 00 00 7D [10:40:49]Write to MH i2c: 01 00 00 AD 00 AD [10:40:49]Write i2c OK [10:40:49]MH_I2C_Read... [10:40:50]*** Cut start [10:40:50]*** Partial cut [10:40:50]*** CUTSNS_PIN = 1 [10:40:50]*** CUTSNS_PIN = 0 [10:40:50]*** Brake cut motor [10:40:51]Read from MH i2c: 01 [10:40:51]MH_I2C_Read... [10:40:51]*** Stop cut motor [10:40:51]*** Cut end [10:40:51]Read from MH i2c: 01 07 00 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [10:40:51]process_action close_receipt done [10:40:51]requested_data is exist [10:40:51]produce_requested_data [10:40:51]requested_item fm.sn is exist - process it [10:40:51]wFMCommunicate request_size=4 [10:40:51]MH_SAM_APDU [10:40:51]CAPDU: 80 11 00 00 [10:40:51]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [10:40:51]Write i2c OK [10:40:51]MH_I2C_Read... [10:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:51]Read from MH i2c: E2 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: E2 17 00 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 75 [10:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:40:51]wFMCommunicate OK [10:40:51]requested_item fd.num is exist - process it [10:40:51]SAM_PROTO_GetFieldsCounters [10:40:51]wFMCommunicate request_size=4 [10:40:51]MH_SAM_APDU [10:40:51]CAPDU: 80 13 00 00 [10:40:51]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [10:40:51]Write i2c OK [10:40:51]MH_I2C_Read... [10:40:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:51]Read from MH i2c: E2 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: E2 62 00 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 DE 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [10:40: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 DE 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:51]wFMCommunicate OK [10:40:51]SAM_PROTO_GetFieldsCounters done [10:40:51]requested_item shift.num is exist - process it [10:40:51]requested_item shift.opened is exist - process it [10:40:51]req_shift_opened [10:40:51]FM_GetShiftState [10:40:51]SAM_PROTO_GetShiftState [10:40:51]wFMCommunicate request_size=4 [10:40:51]MH_SAM_APDU [10:40:51]CAPDU: 80 13 01 00 [10:40:51]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [10:40:51]Write i2c OK [10:40:51]MH_I2C_Read... [10:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:51]Read from MH i2c: E2 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: E2 0E 00 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 66 [10:40:51]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:40:51]wFMCommunicate OK [10:40:51]SAM_PROTO_GetShiftState done [10:40:51]FM_GetShiftState done [10:40:51]req_shift_opened done [10:40:51]requested_item shift.open_date is exist - process it [10:40:51]req_shift_open_date [10:40:51]req_shift_open_date done [10:40:51]produce_requested_data done [10:40:51]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103646,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:40:51]process_action_free close_receipt [10:40:51]json_value_free [10:40:51]json_value_free done [10:40:51]process_json_proto returns [10:40:51]Send response to host [10:40:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103646,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:40:51]free response buf [10:40:51]execute_script done [10:40:51]execute_script returns [10:40:51]free content buf [10:40:51]Sock 7.Close socket [10:40:51]Sock 7.Thread stoped [10:40:54]ConnectInit Can't take IP for lk.salyk.kg [10:40:54]CommunicateWithHost connect error [10:40:54]CommunicateWithHost err = -1 [10:40:54]OFD Sender: Server communicate error [10:40:59]OFD Sender: Processing packet 103645 [packets to send 499, broken 497] [10:40:59]ProducePacketName [10:40:59]name=ofd_packets/00103645 [10:40:59]OFD Sender: To server: pG, [10:40:59]CommunicateWithHost lk.salyk.kg:30040 [10:40:59]ConnectInit lk.salyk.kg [10:41:04]ConnectInit Can't take IP for lk.salyk.kg [10:41:04]CommunicateWithHost connect error [10:41:04]CommunicateWithHost err = -1 [10:41:04]OFD Sender: Server communicate error [10:41:09]OFD Sender: Processing packet 103645 [packets to send 499, broken 497] [10:41:09]ProducePacketName [10:41:09]name=ofd_packets/00103645 [10:41:09]OFD Sender: To server: pG, [10:41:09]CommunicateWithHost lk.salyk.kg:30040 [10:41:09]ConnectInit lk.salyk.kg [10:41:10]Connected sock=7 [10:41: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 31 31 0F 01 00 00 33 81 07 01 64 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 AB D2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DD 94 01 00 35 04 06 00 52 04 48 54 87 C8 2F 4E 58 F2 A0 2E 99 D5 [10:41: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 31 31 4F 00 00 00 F8 1F 47 00 21 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DD 94 01 00 F4 03 04 00 DA 79 18 67 B6 04 01 00 00 95 42 72 DE 8B 05 A2 6D [10:41:10]CommunicateWithHost err = 0 [10:41:10]CheckOFDResponse [10:41:10]1017 (14) - 77093643461234 [10:41:10]1041 (16) - 0000000000871811 [10:41:10]1040 (4) - 103645 [10:41:10]1012 (4) - 23.10.2024 04:21 [10:41:10]1206 (1) - 0 [10:41:10]OFD Sender: Remove packet 103645 [10:41:10]ProducePacketName [10:41:10]name=ofd_packets/00103645 [10:41:10]NVStorageDeleteData [10:41:11]OFD Sender: Processing packet 103646 [packets to send 498, broken 497] [10:41:11]ProducePacketName [10:41:11]name=ofd_packets/00103646 [10:41:11]OFD Sender: To server: pG, [10:41:11]CommunicateWithHost lk.salyk.kg:30040 [10:41:11]ConnectInit lk.salyk.kg [10:41:12]Connected sock=7 [10:41: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 31 31 0C 01 00 00 D6 02 04 01 8D 45 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 34 FF 03 08 00 03 FA 19 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 AF D2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DE 94 01 00 35 04 06 00 67 6B 3D 9D 9C 4C C0 04 02 87 66 76 30 E5 [10:41: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 31 31 4F 00 00 00 6A F3 47 00 BE A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DE 94 01 00 F4 03 04 00 DD 79 18 67 B6 04 01 00 00 E5 C7 EA C4 55 76 EA 8A [10:41:13]CommunicateWithHost err = 0 [10:41:13]CheckOFDResponse [10:41:13]1017 (14) - 77093643461234 [10:41:13]1041 (16) - 0000000000871811 [10:41:13]1040 (4) - 103646 [10:41:13]1012 (4) - 23.10.2024 04:21 [10:41:13]1206 (1) - 0 [10:41:13]OFD Sender: Remove packet 103646 [10:41:13]ProducePacketName [10:41:13]name=ofd_packets/00103646 [10:41:13]NVStorageDeleteData [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:46]recv_with_timeout no data received [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:25]recv_with_timeout no data received [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:10]accept exits with 9 [10:44:10]New connection [10:44:10]New thread 3067305316 created [10:44:10]Thread 3067161956 joined [10:44:10]Waiting for new connection... [10:44:10] Sock 9.Parse request [10:44:10]Sock 9.Check first char [10:44:10]Sock 9.First char is OK [10:44:10]request: POST /json_proto HTTP/1.0 [10:44:10]Method: POST [10:44:10]URL: /json_proto [10:44:10]Method is POST - this is cgi request [10:44:10]url: /json_proto [10:44:10]query_string will be loaded in cgi processing [10:44:10]execute_cgi json_proto POST (null) [10:44:10]execute_cgi path=json_proto method=POST [10:44:10]POST find Content-Length [10:44:10]Host: 172.17.51.67:8080 [10:44:10]Content-Length: 682 [10:44:10]Content-Type: application/json [10:44:10] [10:44:10]POST finish read [10:44:10]Found Content-Length = 682 [10:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:10]execute_script... [10:44:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:10]POST & json_proto [10:44:10]process_json_proto [10:44:10]json parsed OK: [10:44:10]protocol is kg_v1.0 [10:44:10]action value=close_receipt [10:44:10]process_action close_receipt [10:44:10]cmd_close_receipt [10:44:10]MH_GetDate [10:44:10]Write to MH i2c: F0 00 00 B1 00 A0 [10:44:10]Write i2c OK [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: F0 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: F0 09 00 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: F0 09 00 B1 00 00 7B D3 18 67 1E EF FA 64 E1 [10:44:10]GetLastDocTimeStamp 1729680047 [10:44:10]current date 1729680251 [10:44:10]FM_GetShiftState [10:44:10]SAM_PROTO_GetShiftState [10:44:10]wFMCommunicate request_size=4 [10:44:10]MH_SAM_APDU [10:44:10]CAPDU: 80 13 01 00 [10:44:10]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [10:44:10]Write i2c OK [10:44:10]MH_I2C_Read... [10:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:10]Read from MH i2c: E2 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 0E 00 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 68 [10:44:10]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:44:10]wFMCommunicate OK [10:44:10]SAM_PROTO_GetShiftState done [10:44:10]FM_GetShiftState done [10:44:10]opened in 1729642861 [10:44:10]opened+sec_in_day 1729729261 [10:44:10]quantity*price = 100015 [10:44:10]sum+1 = 100017 [10:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 59 23.10.2024 10:44 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103647 ФПД: 111037273058540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104411&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103647&fm=111037273058540&tin=02508201610067®Number=0000000000091754&sum=100000 [10:44:11]StoreToDocumentArchive [10:44:11]shift 582 fd 103647 [10:44:11]save to /storage/0582/doc_00103647 [10:44:11]save last doc name /storage/0582/doc_00103647 to /storage/kkm_last_doc_name [10:44:11]save OK [10:44:11]Clear old archive folders... [10:44:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:11]tlvbuf is 00E95660 [10:44:11]SAM_PROTO_ClearQueue [10:44:11]wFMCommunicate request_size=4 [10:44:11]MH_SAM_APDU [10:44:11]CAPDU: 80 09 00 00 [10:44:11]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [10:44:11]Write i2c OK [10:44:11]MH_I2C_Read... [10:44:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:11]Read from MH i2c: E2 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: E2 03 00 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [10:44:11]RAPDU: 90 00 [10:44:11]wFMCommunicate OK [10:44:11]SAM_PROTO_ClearQueue done [10:44:11]KKMCreateOFDPacket [10:44:11]OFDProtocolAddRootSTLVToBuf [10:44:11]FM_MakeSignedData [10:44:11]FM_MakeSignedData [10:44:11]SAM_PROTO_SignData [10:44:11]wFMCommunicate request_size=4 [10:44:11]MH_SAM_APDU [10:44:11]CAPDU: 80 0D 01 02 [10:44:11]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [10:44:11]Write i2c OK [10:44:11]MH_I2C_Read... [10:44:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:11]Read from MH i2c: E2 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: E2 03 00 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [10:44:11]RAPDU: 90 00 [10:44:11]wFMCommunicate OK [10:44:11]wFMCommunicate request_size=255 [10:44:11]MH_SAM_APDU [10:44:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7B D3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DF 94 01 00 35 04 06 00 64 [10:44:11]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7B D3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DF 94 01 00 35 04 06 00 64 00 00 E4 [10:44:11]Write i2c OK [10:44:11]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [10:44:12]RAPDU: 90 00 [10:44:12]wFMCommunicate OK [10:44:12]wFMCommunicate request_size=10 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 0D 02 02 05 FC E1 37 AC EC [10:44:12]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 FC E1 37 AC EC 00 00 F2 [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [10:44:12]RAPDU: 90 00 [10:44:12]wFMCommunicate OK [10:44:12]wFMCommunicate request_size=4 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 0D 03 02 [10:44:12]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 0B 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 0B 00 C3 00 00 6F B4 40 EF 02 47 D2 E4 90 00 90 [10:44:12]RAPDU: 6F B4 40 EF 02 47 D2 E4 90 00 [10:44:12]wFMCommunicate OK [10:44:12]SAM_PROTO_SignData done [10:44:12]FM_MakeSignedData done [10:44:12]CreateOFDProtocolMessage [10:44:12]wFMCommunicate request_size=4 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 11 00 00 [10:44:12]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 17 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 8B [10:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:44:12]wFMCommunicate OK [10:44:12]CreateOFDProtocolMessage done [10:44:12]OFDSenderStorePacket 103647 [10:44:12]StoreOFDPacket docnum=103647 [10:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 2C 2A 07 01 46 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7B D3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DF 94 01 00 35 04 06 00 64 FC E1 37 AC EC 6F B4 40 EF 02 47 D2 E4 [10:44:12]CheckFolder [10:44:12]dirname=/storage/ofd_packets [10:44:12]CheckFolder done [10:44:12]ProducePacketName [10:44:12]name=ofd_packets/00103647 [10:44:12]NVStorageSaveData ofd_packets/00103647 [10:44:12]File name is /storage/ofd_packets/00103647 [10:44:12]Write 301 bytes [10:44:12]NVStorageSaveData done [10:44:12]OFDSenderStorePacket done [10:44:12]KKMCreateOFDPacket done [10:44:12]NVStorageSaveData kkm_last_timestamp [10:44:12]File name is /storage/kkm_last_timestamp [10:44:12]Write 4 bytes [10:44:12]NVStorageSaveData done [10:44:12]ExternCall_PrintAddStr [10:44:12]wPrintStart [10:44:12]Write to MH i2c: 01 00 00 C5 00 C5 [10:44:12]OFD Sender: Processing packet 103647 [packets to send 498, broken 497] [10:44:12]ProducePacketName [10:44:12]name=ofd_packets/00103647 [10:44:12]OFD Sender: To server: pG, [10:44:12]CommunicateWithHost lk.salyk.kg:30040 [10:44:12]ConnectInit lk.salyk.kg [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: 01 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: 01 07 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [10:44:12]RasterBufferAndPrint [10:44:12]line Счет N : (1)317860 [10:44:12]line ИНН: 02508201610067 [10:44:12]line Контрольно-Кассовый Чек [10:44:12]line ПРОДАЖА [10:44:12]line ТРК (МРК, ГНК) : 53 [10:44:12]line Товар: 2710124130 [10:44:12]line Аи-92-К-4 [10:44:12]line 14.950 * 66.90 [10:44:12]line = 1000.16 [10:44:12]line НДС 12% НСП 1% [10:44:12]line > о реализуемом товаре [10:44:12]line ОКРУГЛЕНИЕ: -0.16 [10:44:12]line ИТОГО: 1000.00 [10:44:12]line Внесено: 1000.00 [10:44:12]line СДАЧА: 0.00 [10:44:12]line НСП 1% : 8.85 [10:44:12]line НДС 12% : 106.21 [10:44:12]line Наличными: 1000.00 [10:44:12]line Безнал.: 0.00 [10:44:12]line Место: АЗС № 145 "Партнер Нефть" [10:44:12]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:44:12]line СНО: Общий режим [10:44:12]line Чек 59 23.10.2024 10:44 [10:44:12]line Смена: 582 ФФД: 1.0 [10:44:12]line ЗНМ: 0300000095 [10:44:12]line РНМ: 0000000000091754 [10:44:12]line Версия ККМ: 001 [10:44:12]line ФМ: 0000000000871811 [10:44:12]line ФД: 103647 [10:44:12]line ФПД: 111037273058540 [10:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104411&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103647&fm=111037273058540&tin=02508201610067®Number=0000000000091754&sum=100000 [10:44:12]written 0, free lines is 4095 [10:44:12]Write to MH i2c: 01 00 00 EF 00 EF [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: 01 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: 01 07 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 CD 0C CF [10:44:12]RasterBufferAndPrint [10:44:12]line [10:44:12]line [10:44:12]line [10:44:12]line [10:44:12]line [10:44:12]written 0, free lines is 3284 [10:44:12]MH_Cut [10:44:12]Write to MH i2c: D1 01 00 F6 00 01 C8 [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: D1 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: D1 01 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: D1 01 00 F6 00 00 C7 [10:44:12]Write to MH i2c: 01 00 00 F7 00 F7 [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]Connected sock=7 [10:44: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 31 31 0F 01 00 00 2C 2A 07 01 46 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7B D3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 DF 94 01 00 35 04 06 00 64 FC E1 37 AC EC 6F B4 40 EF 02 47 D2 E4 [10:44:13]*** Cut start [10:44:13]*** Partial cut [10:44:13]*** CUTSNS_PIN = 1 [10: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 31 31 4F 00 00 00 AD D0 47 00 71 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 31 31 10 04 04 00 DF 94 01 00 F4 03 04 00 91 7A 18 67 B6 04 01 00 00 95 90 A1 D3 F8 E1 82 76 [10:44:13]CommunicateWithHost err = 0 [10:44:13]CheckOFDResponse [10:44:13]1017 (14) - 77093643461234 [10:44:13]1041 (16) - 0000000000871811 [10:44:13]1040 (4) - 103647 [10:44:13]1012 (4) - 23.10.2024 04:24 [10:44:13]1206 (1) - 0 [10:44:13]OFD Sender: Remove packet 103647 [10:44:13]ProducePacketName [10:44:13]name=ofd_packets/00103647 [10:44:13]NVStorageDeleteData [10:44:13]*** CUTSNS_PIN = 0 [10:44:13]*** Brake cut motor [10:44:14]OFD Sender: No OFD packet to send [10:44:14]Read from MH i2c: 01 [10:44:14]MH_I2C_Read... [10:44:14]*** Stop cut motor [10:44:14]*** Cut end [10:44:14]Read from MH i2c: 01 07 00 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [10:44:14]process_action close_receipt done [10:44:14]requested_data is exist [10:44:14]produce_requested_data [10:44:14]requested_item fm.sn is exist - process it [10:44:14]wFMCommunicate request_size=4 [10:44:14]MH_SAM_APDU [10:44:14]CAPDU: 80 11 00 00 [10:44:14]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [10:44:14]Write i2c OK [10:44:14]MH_I2C_Read... [10:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:14]Read from MH i2c: E2 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 17 00 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 BF [10:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:44:14]wFMCommunicate OK [10:44:14]requested_item fd.num is exist - process it [10:44:14]SAM_PROTO_GetFieldsCounters [10:44:14]wFMCommunicate request_size=4 [10:44:14]MH_SAM_APDU [10:44:14]CAPDU: 80 13 00 00 [10:44:14]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [10:44:14]Write i2c OK [10:44:14]MH_I2C_Read... [10:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:14]Read from MH i2c: E2 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 62 00 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 DF 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [10: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 DF 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:14]wFMCommunicate OK [10:44:14]SAM_PROTO_GetFieldsCounters done [10:44:14]requested_item shift.num is exist - process it [10:44:14]requested_item shift.opened is exist - process it [10:44:14]req_shift_opened [10:44:14]FM_GetShiftState [10:44:14]SAM_PROTO_GetShiftState [10:44:14]wFMCommunicate request_size=4 [10:44:14]MH_SAM_APDU [10:44:14]CAPDU: 80 13 01 00 [10:44:14]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [10:44:14]Write i2c OK [10:44:14]MH_I2C_Read... [10:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:14]Read from MH i2c: E2 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 0E 00 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B0 [10:44:14]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:44:14]wFMCommunicate OK [10:44:14]SAM_PROTO_GetShiftState done [10:44:14]FM_GetShiftState done [10:44:14]req_shift_opened done [10:44:14]requested_item shift.open_date is exist - process it [10:44:14]req_shift_open_date [10:44:14]req_shift_open_date done [10:44:14]produce_requested_data done [10:44:14]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103647,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:44:14]process_action_free close_receipt [10:44:14]json_value_free [10:44:14]json_value_free done [10:44:14]process_json_proto returns [10:44:14]Send response to host [10:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103647,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:44:14]free response buf [10:44:14]execute_script done [10:44:14]execute_script returns [10:44:14]free content buf [10:44:14]Sock 9.Close socket [10:44:14]Sock 9.Thread stoped [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:47]accept exits with 10 [10:45:47]New connection [10:45:47]New thread 3067161956 created [10:45:47]Thread 3067305316 joined [10:45:47]Waiting for new connection... [10:45:47] Sock 10.Parse request [10:45:47]Sock 10.Check first char [10:45:47]Sock 10.First char is OK [10:45:47]request: POST /json_proto HTTP/1.0 [10:45:47]Method: POST [10:45:47]URL: /json_proto [10:45:47]Method is POST - this is cgi request [10:45:47]url: /json_proto [10:45:47]query_string will be loaded in cgi processing [10:45:47]execute_cgi json_proto POST (null) [10:45:47]execute_cgi path=json_proto method=POST [10:45:47]POST find Content-Length [10:45:47]Host: 172.17.51.67:8080 [10:45:47]Content-Length: 677 [10:45:47]Content-Type: application/json [10:45:47] [10:45:47]POST finish read [10:45:47]Found Content-Length = 677 [10:45:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:47]execute_script... [10:45: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)317861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:47]POST & json_proto [10:45:47]process_json_proto [10:45:47]json parsed OK: [10:45:47]protocol is kg_v1.0 [10:45:47]action value=close_receipt [10:45:47]process_action close_receipt [10:45:47]cmd_close_receipt [10:45:47]MH_GetDate [10:45:47]Write to MH i2c: F0 00 00 FB 00 EA [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: F0 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: F0 09 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: F0 09 00 FB 00 00 DC D3 18 67 1E EF FA 64 8C [10:45:47]GetLastDocTimeStamp 1729680251 [10:45:47]current date 1729680348 [10:45:47]FM_GetShiftState [10:45:47]SAM_PROTO_GetShiftState [10:45:47]wFMCommunicate request_size=4 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 13 01 00 [10:45:47]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:48]Read from MH i2c: E2 [10:45:48]MH_I2C_Read... [10:45:48]Read from MH i2c: E2 0E 00 [10:45:48]MH_I2C_Read... [10:45:48]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B2 [10:45:48]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:45:48]wFMCommunicate OK [10:45:48]SAM_PROTO_GetShiftState done [10:45:48]FM_GetShiftState done [10:45:48]opened in 1729642861 [10:45:48]opened+sec_in_day 1729729261 [10:45:48]quantity*price = 10035 [10:45:48]sum+1 = 10036 [10:45:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 60 23.10.2024 10:45 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103648 ФПД: 240343976125009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104548&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103648&fm=240343976125009&tin=02508201610067®Number=0000000000091754&sum=10000 [10:45:49]StoreToDocumentArchive [10:45:49]shift 582 fd 103648 [10:45:49]save to /storage/0582/doc_00103648 [10:45:49]save last doc name /storage/0582/doc_00103648 to /storage/kkm_last_doc_name [10:45:49]save OK [10:45:49]Clear old archive folders... [10:45:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:49]tlvbuf is 00E1D610 [10:45:49]SAM_PROTO_ClearQueue [10:45:49]wFMCommunicate request_size=4 [10:45:49]MH_SAM_APDU [10:45:49]CAPDU: 80 09 00 00 [10:45:49]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 03 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [10:45:49]RAPDU: 90 00 [10:45:49]wFMCommunicate OK [10:45:49]SAM_PROTO_ClearQueue done [10:45:49]KKMCreateOFDPacket [10:45:49]OFDProtocolAddRootSTLVToBuf [10:45:49]FM_MakeSignedData [10:45:49]FM_MakeSignedData [10:45:49]SAM_PROTO_SignData [10:45:49]wFMCommunicate request_size=4 [10:45:49]MH_SAM_APDU [10:45:49]CAPDU: 80 0D 01 02 [10:45:49]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 03 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [10:45:49]RAPDU: 90 00 [10:45:49]wFMCommunicate OK [10:45:49]wFMCommunicate request_size=255 [10:45:49]MH_SAM_APDU [10:45:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 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 3C 00 00 00 F4 03 04 00 DC D3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E0 94 01 00 35 04 06 00 DA [10:45:49]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 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 3C 00 00 00 F4 03 04 00 DC D3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E0 94 01 00 35 04 06 00 DA 00 00 F5 [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]OFD Sender: No OFD packet to send [10:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 03 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [10:45:49]RAPDU: 90 00 [10:45:49]wFMCommunicate OK [10:45:49]wFMCommunicate request_size=10 [10:45:49]MH_SAM_APDU [10:45:49]CAPDU: 80 0D 02 02 05 97 71 52 22 51 [10:45:49]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 97 71 52 22 51 00 00 5E [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 03 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [10:45:49]RAPDU: 90 00 [10:45:49]wFMCommunicate OK [10:45:49]wFMCommunicate request_size=4 [10:45:49]MH_SAM_APDU [10:45:49]CAPDU: 80 0D 03 02 [10:45:49]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 0B 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 0B 00 0D 01 00 5D 7F 22 CD F2 9E 93 50 90 00 C8 [10:45:49]RAPDU: 5D 7F 22 CD F2 9E 93 50 90 00 [10:45:49]wFMCommunicate OK [10:45:49]SAM_PROTO_SignData done [10:45:49]FM_MakeSignedData done [10:45:49]CreateOFDProtocolMessage [10:45:49]wFMCommunicate request_size=4 [10:45:49]MH_SAM_APDU [10:45:49]CAPDU: 80 11 00 00 [10:45:49]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 17 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D6 [10:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:45:49]wFMCommunicate OK [10:45:49]CreateOFDProtocolMessage done [10:45:49]OFDSenderStorePacket 103648 [10:45:49]StoreOFDPacket docnum=103648 [10:45:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 30 D7 07 01 9E FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 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 3C 00 00 00 F4 03 04 00 DC D3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E0 94 01 00 35 04 06 00 DA 97 71 52 22 51 5D 7F 22 CD F2 9E 93 50 [10:45:49]CheckFolder [10:45:49]dirname=/storage/ofd_packets [10:45:49]CheckFolder done [10:45:49]ProducePacketName [10:45:49]name=ofd_packets/00103648 [10:45:49]NVStorageSaveData ofd_packets/00103648 [10:45:49]File name is /storage/ofd_packets/00103648 [10:45:49]Write 301 bytes [10:45:49]NVStorageSaveData done [10:45:49]OFDSenderStorePacket done [10:45:49]KKMCreateOFDPacket done [10:45:49]NVStorageSaveData kkm_last_timestamp [10:45:49]File name is /storage/kkm_last_timestamp [10:45:49]Write 4 bytes [10:45:49]NVStorageSaveData done [10:45:49]ExternCall_PrintAddStr [10:45:49]wPrintStart [10:45:49]Write to MH i2c: 01 00 00 0F 01 10 [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: 01 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: 01 07 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [10:45:49]RasterBufferAndPrint [10:45:49]line Счет N : (1)317861 [10:45:49]line ИНН: 02508201610067 [10:45:49]line Контрольно-Кассовый Чек [10:45:49]line ПРОДАЖА [10:45:49]line ТРК (МРК, ГНК) : 33 [10:45:49]line Товар: 2710124130 [10:45:49]line Аи-92-К-4 [10:45:49]line 1.500 * 66.90 [10:45:49]line = 100.35 [10:45:49]line НДС 12% НСП 1% [10:45:49]line > о реализуемом товаре [10:45:49]line ОКРУГЛЕНИЕ: -0.35 [10:45:49]line ИТОГО: 100.00 [10:45:49]line Внесено: 100.00 [10:45:49]line СДАЧА: 0.00 [10:45:49]line НСП 1% : 0.89 [10:45:49]line НДС 12% : 10.66 [10:45:49]line Наличными: 100.00 [10:45:49]line Безнал.: 0.00 [10:45:49]line Место: АЗС № 145 "Партнер Нефть" [10:45:49]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:45:49]line СНО: Общий режим [10:45:49]line Чек 60 23.10.2024 10:45 [10:45:49]line Смена: 582 ФФД: 1.0 [10:45:49]line ЗНМ: 0300000095 [10:45:49]line РНМ: 0000000000091754 [10:45:49]line Версия ККМ: 001 [10:45:49]line ФМ: 0000000000871811 [10:45:49]line ФД: 103648 [10:45:49]line ФПД: 240343976125009 [10:45:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104548&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103648&fm=240343976125009&tin=02508201610067®Number=0000000000091754&sum=10000 [10:45:50]recv_with_timeout no data received [10:45:50]OFD Sender: Processing packet 103648 [packets to send 498, broken 497] [10:45:50]ProducePacketName [10:45:50]name=ofd_packets/00103648 [10:45:50]OFD Sender: To server: pG, [10:45:50]CommunicateWithHost lk.salyk.kg:30040 [10:45:50]ConnectInit lk.salyk.kg [10:45:50]written 0, free lines is 4095 [10:45:50]Write to MH i2c: 01 00 00 39 01 3A [10:45:50]Write i2c OK [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: 01 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: 01 07 00 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 C9 0C 16 [10:45:50]RasterBufferAndPrint [10:45:50]line [10:45:50]line [10:45:50]line [10:45:50]line [10:45:50]line [10:45:50]written 0, free lines is 3280 [10:45:50]MH_Cut [10:45:50]Write to MH i2c: D1 01 00 40 01 01 13 [10:45:50]Write i2c OK [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: D1 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: D1 01 00 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: D1 01 00 40 01 00 12 [10:45:50]Write to MH i2c: 01 00 00 41 01 42 [10:45:50]Write i2c OK [10:45:50]MH_I2C_Read... [10:45:51]*** Cut start [10:45:51]*** Partial cut [10:45:51]*** CUTSNS_PIN = 1 [10:45:51]*** CUTSNS_PIN = 0 [10:45:51]*** Brake cut motor [10:45:51]Read from MH i2c: 01 [10:45:51]MH_I2C_Read... [10:45:51]*** Stop cut motor [10:45:51]*** Cut end [10:45:51]Read from MH i2c: 01 07 00 [10:45:51]MH_I2C_Read... [10:45:51]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [10:45:51]process_action close_receipt done [10:45:51]requested_data is exist [10:45:51]produce_requested_data [10:45:51]requested_item fm.sn is exist - process it [10:45:51]wFMCommunicate request_size=4 [10:45:51]MH_SAM_APDU [10:45:51]CAPDU: 80 11 00 00 [10:45:51]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [10:45:51]Write i2c OK [10:45:51]MH_I2C_Read... [10:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:51]Read from MH i2c: E2 [10:45:51]MH_I2C_Read... [10:45:51]Read from MH i2c: E2 17 00 [10:45:51]MH_I2C_Read... [10:45:51]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 0A [10:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:45:51]wFMCommunicate OK [10:45:51]requested_item fd.num is exist - process it [10:45:51]SAM_PROTO_GetFieldsCounters [10:45:51]wFMCommunicate request_size=4 [10:45:51]MH_SAM_APDU [10:45:51]CAPDU: 80 13 00 00 [10:45:51]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [10:45:51]Write i2c OK [10:45:51]MH_I2C_Read... [10:45:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:52]Read from MH i2c: E2 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 62 00 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 62 00 43 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E0 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [10:45: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E0 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:52]wFMCommunicate OK [10:45:52]SAM_PROTO_GetFieldsCounters done [10:45:52]requested_item shift.num is exist - process it [10:45:52]requested_item shift.opened is exist - process it [10:45:52]req_shift_opened [10:45:52]FM_GetShiftState [10:45:52]SAM_PROTO_GetShiftState [10:45:52]wFMCommunicate request_size=4 [10:45:52]MH_SAM_APDU [10:45:52]CAPDU: 80 13 01 00 [10:45:52]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [10:45:52]Write i2c OK [10:45:52]MH_I2C_Read... [10:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:52]Read from MH i2c: E2 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 0E 00 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 FB [10:45:52]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:45:52]wFMCommunicate OK [10:45:52]SAM_PROTO_GetShiftState done [10:45:52]FM_GetShiftState done [10:45:52]req_shift_opened done [10:45:52]requested_item shift.open_date is exist - process it [10:45:52]req_shift_open_date [10:45:52]req_shift_open_date done [10:45:52]produce_requested_data done [10:45:52]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103648,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:45:52]process_action_free close_receipt [10:45:52]json_value_free [10:45:52]json_value_free done [10:45:52]process_json_proto returns [10:45:52]Send response to host [10:45:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103648,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:45:52]free response buf [10:45:52]execute_script done [10:45:52]execute_script returns [10:45:52]free content buf [10:45:52]Sock 10.Close socket [10:45:52]Sock 10.Thread stoped [10:45:55]Connected sock=7 [10:45: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 31 31 0F 01 00 00 30 D7 07 01 9E FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 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 3C 00 00 00 F4 03 04 00 DC D3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E0 94 01 00 35 04 06 00 DA 97 71 52 22 51 5D 7F 22 CD F2 9E 93 50 [10:45: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 31 31 4F 00 00 00 E2 7E 47 00 E1 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E0 94 01 00 F4 03 04 00 F9 7A 18 67 B6 04 01 00 00 48 8A FB F9 08 6C 4B 24 [10:45:57]CommunicateWithHost err = 0 [10:45:57]CheckOFDResponse [10:45:57]1017 (14) - 77093643461234 [10:45:57]1041 (16) - 0000000000871811 [10:45:57]1040 (4) - 103648 [10:45:57]1012 (4) - 23.10.2024 04:26 [10:45:57]1206 (1) - 0 [10:45:57]OFD Sender: Remove packet 103648 [10:45:57]ProducePacketName [10:45:57]name=ofd_packets/00103648 [10:45:57]NVStorageDeleteData [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:07]recv_with_timeout no data received [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:05]recv_with_timeout no data received [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:23]recv_with_timeout no data received [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:48]accept exits with 9 [10:47:48]New connection [10:47:48]New thread 3067305316 created [10:47:48]Thread 3067161956 joined [10:47:48]Waiting for new connection... [10:47:48] Sock 9.Parse request [10:47:48]Sock 9.Check first char [10:47:48]Sock 9.First char is OK [10:47:48]request: POST /json_proto HTTP/1.0 [10:47:48]Method: POST [10:47:48]URL: /json_proto [10:47:48]Method is POST - this is cgi request [10:47:48]url: /json_proto [10:47:48]query_string will be loaded in cgi processing [10:47:48]execute_cgi json_proto POST (null) [10:47:48]execute_cgi path=json_proto method=POST [10:47:48]POST find Content-Length [10:47:48]Host: 172.17.51.67:8080 [10:47:48]Content-Length: 677 [10:47:48]Content-Type: application/json [10:47:48] [10:47:48]POST finish read [10:47:48]Found Content-Length = 677 [10:47:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:48]execute_script... [10:47:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:48]POST & json_proto [10:47:48]process_json_proto [10:47:48]json parsed OK: [10:47:48]protocol is kg_v1.0 [10:47:48]action value=close_receipt [10:47:48]process_action close_receipt [10:47:48]cmd_close_receipt [10:47:48]MH_GetDate [10:47:48]Write to MH i2c: F0 00 00 45 01 35 [10:47:48]Write i2c OK [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: F0 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: F0 09 00 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: F0 09 00 45 01 00 55 D4 18 67 1E EF FA 64 51 [10:47:48]GetLastDocTimeStamp 1729680348 [10:47:48]current date 1729680469 [10:47:48]FM_GetShiftState [10:47:48]SAM_PROTO_GetShiftState [10:47:48]wFMCommunicate request_size=4 [10:47:48]MH_SAM_APDU [10:47:48]CAPDU: 80 13 01 00 [10:47:48]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [10:47:48]Write i2c OK [10:47:48]MH_I2C_Read... [10:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:48]Read from MH i2c: E2 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: E2 0E 00 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 FD [10:47:48]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:47:48]wFMCommunicate OK [10:47:48]SAM_PROTO_GetShiftState done [10:47:48]FM_GetShiftState done [10:47:48]opened in 1729642861 [10:47:48]opened+sec_in_day 1729729261 [10:47:48]quantity*price = 60009 [10:47:48]sum+1 = 60010 [10:47:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 61 23.10.2024 10:47 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103649 ФПД: 61085403342384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104749&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103649&fm=61085403342384&tin=02508201610067®Number=0000000000091754&sum=60000 [10:47:50]StoreToDocumentArchive [10:47:50]shift 582 fd 103649 [10:47:50]save to /storage/0582/doc_00103649 [10:47:50]save last doc name /storage/0582/doc_00103649 to /storage/kkm_last_doc_name [10:47:50]save OK [10:47:50]Clear old archive folders... [10:47:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:50]tlvbuf is 00ECAE60 [10:47:50]SAM_PROTO_ClearQueue [10:47:50]wFMCommunicate request_size=4 [10:47:50]MH_SAM_APDU [10:47:50]CAPDU: 80 09 00 00 [10:47:50]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:50]Read from MH i2c: E2 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 03 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [10:47:50]RAPDU: 90 00 [10:47:50]wFMCommunicate OK [10:47:50]SAM_PROTO_ClearQueue done [10:47:50]KKMCreateOFDPacket [10:47:50]OFDProtocolAddRootSTLVToBuf [10:47:50]FM_MakeSignedData [10:47:50]FM_MakeSignedData [10:47:50]SAM_PROTO_SignData [10:47:50]wFMCommunicate request_size=4 [10:47:50]MH_SAM_APDU [10:47:50]CAPDU: 80 0D 01 02 [10:47:50]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:50]Read from MH i2c: E2 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 03 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [10:47:50]RAPDU: 90 00 [10:47:50]wFMCommunicate OK [10:47:50]wFMCommunicate request_size=255 [10:47:50]MH_SAM_APDU [10:47:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 55 D4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E1 94 01 00 35 04 06 00 37 [10:47:50]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 55 D4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E1 94 01 00 35 04 06 00 37 00 00 0E [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:50]Read from MH i2c: E2 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 03 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [10:47:50]RAPDU: 90 00 [10:47:50]wFMCommunicate OK [10:47:50]wFMCommunicate request_size=10 [10:47:50]MH_SAM_APDU [10:47:50]CAPDU: 80 0D 02 02 05 8E 8D C4 66 30 [10:47:50]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 8E 8D C4 66 30 00 00 50 [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:50]Read from MH i2c: E2 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 03 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [10:47:50]RAPDU: 90 00 [10:47:50]wFMCommunicate OK [10:47:50]wFMCommunicate request_size=4 [10:47:50]MH_SAM_APDU [10:47:50]CAPDU: 80 0D 03 02 [10:47:50]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:50]Read from MH i2c: E2 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 0B 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 0B 00 57 01 00 7B 9F E2 FE 62 E5 EE 4A 90 00 4D [10:47:50]RAPDU: 7B 9F E2 FE 62 E5 EE 4A 90 00 [10:47:50]wFMCommunicate OK [10:47:50]SAM_PROTO_SignData done [10:47:50]FM_MakeSignedData done [10:47:50]CreateOFDProtocolMessage [10:47:50]wFMCommunicate request_size=4 [10:47:50]MH_SAM_APDU [10:47:50]CAPDU: 80 11 00 00 [10:47:50]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:50]Read from MH i2c: E2 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 17 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 20 [10:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:47:50]wFMCommunicate OK [10:47:50]CreateOFDProtocolMessage done [10:47:50]OFDSenderStorePacket 103649 [10:47:50]StoreOFDPacket docnum=103649 [10:47:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 89 2C 07 01 02 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 55 D4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E1 94 01 00 35 04 06 00 37 8E 8D C4 66 30 7B 9F E2 FE 62 E5 EE 4A [10:47:50]CheckFolder [10:47:50]dirname=/storage/ofd_packets [10:47:50]CheckFolder done [10:47:50]ProducePacketName [10:47:50]name=ofd_packets/00103649 [10:47:50]NVStorageSaveData ofd_packets/00103649 [10:47:50]File name is /storage/ofd_packets/00103649 [10:47:50]Write 301 bytes [10:47:50]NVStorageSaveData done [10:47:50]OFDSenderStorePacket done [10:47:50]KKMCreateOFDPacket done [10:47:50]NVStorageSaveData kkm_last_timestamp [10:47:50]File name is /storage/kkm_last_timestamp [10:47:50]Write 4 bytes [10:47:50]NVStorageSaveData done [10:47:50]ExternCall_PrintAddStr [10:47:50]wPrintStart [10:47:50]Write to MH i2c: 01 00 00 59 01 5A [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 07 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [10:47:50]RasterBufferAndPrint [10:47:50]line Счет N : (1)317862 [10:47:50]line ИНН: 02508201610067 [10:47:50]line Контрольно-Кассовый Чек [10:47:50]line ПРОДАЖА [10:47:50]line ТРК (МРК, ГНК) : 43 [10:47:50]line Товар: 2710124130 [10:47:50]line Аи-92-К-4 [10:47:50]line 8.970 * 66.90 [10:47:50]line = 600.09 [10:47:50]line НДС 12% НСП 1% [10:47:50]line > о реализуемом товаре [10:47:50]line ОКРУГЛЕНИЕ: -0.09 [10:47:50]line ИТОГО: 600.00 [10:47:50]line Внесено: 600.00 [10:47:50]line СДАЧА: 0.00 [10:47:50]line НСП 1% : 5.31 [10:47:50]line НДС 12% : 63.73 [10:47:50]line Наличными: 600.00 [10:47:50]line Безнал.: 0.00 [10:47:50]line Место: АЗС № 145 "Партнер Нефть" [10:47:50]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:47:50]line СНО: Общий режим [10:47:50]line Чек 61 23.10.2024 10:47 [10:47:50]line Смена: 582 ФФД: 1.0 [10:47:50]line ЗНМ: 0300000095 [10:47:50]line РНМ: 0000000000091754 [10:47:50]line Версия ККМ: 001 [10:47:50]line ФМ: 0000000000871811 [10:47:50]line ФД: 103649 [10:47:50]line ФПД: 61085403342384 [10:47:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104749&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103649&fm=61085403342384&tin=02508201610067®Number=0000000000091754&sum=60000 [10:47:50]OFD Sender: Processing packet 103649 [packets to send 498, broken 497] [10:47:50]ProducePacketName [10:47:50]name=ofd_packets/00103649 [10:47:50]OFD Sender: To server: pG, [10:47:50]CommunicateWithHost lk.salyk.kg:30040 [10:47:50]ConnectInit lk.salyk.kg [10:47:50]written 0, free lines is 4095 [10:47:51]Write to MH i2c: 01 00 00 83 01 84 [10:47:51]Write i2c OK [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: 01 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: 01 07 00 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 D7 0C 6E [10:47:51]RasterBufferAndPrint [10:47:51]line [10:47:51]line [10:47:51]line [10:47:51]line [10:47:51]line [10:47:51]written 0, free lines is 3293 [10:47:51]MH_Cut [10:47:51]Write to MH i2c: D1 01 00 8A 01 01 5D [10:47:51]Write i2c OK [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: D1 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: D1 01 00 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: D1 01 00 8A 01 00 5C [10:47:51]Write to MH i2c: 01 00 00 8B 01 8C [10:47:51]Write i2c OK [10:47:51]MH_I2C_Read... [10:47:51]Connected sock=7 [10:47: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 31 31 0F 01 00 00 89 2C 07 01 02 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 55 D4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E1 94 01 00 35 04 06 00 37 8E 8D C4 66 30 7B 9F E2 FE 62 E5 EE 4A [10:47: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 31 31 4F 00 00 00 6D E0 47 00 45 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E1 94 01 00 F4 03 04 00 6C 7B 18 67 B6 04 01 00 00 F9 64 B3 17 FA AB B1 A0 [10:47:51]CommunicateWithHost err = 0 [10:47:51]CheckOFDResponse [10:47:51]1017 (14) - 77093643461234 [10:47:51]1041 (16) - 0000000000871811 [10:47:51]1040 (4) - 103649 [10:47:51]1012 (4) - 23.10.2024 04:28 [10:47:51]1206 (1) - 0 [10:47:51]OFD Sender: Remove packet 103649 [10:47:51]ProducePacketName [10:47:51]name=ofd_packets/00103649 [10:47:51]NVStorageDeleteData [10:47:52]*** Cut start [10:47:52]*** Partial cut [10:47:52]*** CUTSNS_PIN = 1 [10:47:52]*** CUTSNS_PIN = 0 [10:47:52]OFD Sender: No OFD packet to send [10:47:52]*** Brake cut motor [10:47:52]Read from MH i2c: 01 [10:47:52]MH_I2C_Read... [10:47:52]*** Stop cut motor [10:47:52]*** Cut end [10:47:52]Read from MH i2c: 01 07 00 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [10:47:52]process_action close_receipt done [10:47:52]requested_data is exist [10:47:52]produce_requested_data [10:47:52]requested_item fm.sn is exist - process it [10:47:52]wFMCommunicate request_size=4 [10:47:52]MH_SAM_APDU [10:47:52]CAPDU: 80 11 00 00 [10:47:52]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [10:47:52]Write i2c OK [10:47:52]MH_I2C_Read... [10:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:52]Read from MH i2c: E2 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: E2 17 00 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 54 [10:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:47:52]wFMCommunicate OK [10:47:52]requested_item fd.num is exist - process it [10:47:52]SAM_PROTO_GetFieldsCounters [10:47:52]wFMCommunicate request_size=4 [10:47:52]MH_SAM_APDU [10:47:52]CAPDU: 80 13 00 00 [10:47:52]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [10:47:52]Write i2c OK [10:47:52]MH_I2C_Read... [10:47:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:53]Read from MH i2c: E2 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 62 00 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E1 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [10:47: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E1 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:53]wFMCommunicate OK [10:47:53]SAM_PROTO_GetFieldsCounters done [10:47:53]requested_item shift.num is exist - process it [10:47:53]requested_item shift.opened is exist - process it [10:47:53]req_shift_opened [10:47:53]FM_GetShiftState [10:47:53]SAM_PROTO_GetShiftState [10:47:53]wFMCommunicate request_size=4 [10:47:53]MH_SAM_APDU [10:47:53]CAPDU: 80 13 01 00 [10:47:53]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [10:47:53]Write i2c OK [10:47:53]MH_I2C_Read... [10:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:53]Read from MH i2c: E2 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 0E 00 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 45 [10:47:53]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:47:53]wFMCommunicate OK [10:47:53]SAM_PROTO_GetShiftState done [10:47:53]FM_GetShiftState done [10:47:53]req_shift_opened done [10:47:53]requested_item shift.open_date is exist - process it [10:47:53]req_shift_open_date [10:47:53]req_shift_open_date done [10:47:53]produce_requested_data done [10:47:53]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103649,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:47:53]process_action_free close_receipt [10:47:53]json_value_free [10:47:53]json_value_free done [10:47:53]process_json_proto returns [10:47:53]Send response to host [10:47:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103649,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:47:53]free response buf [10:47:53]execute_script done [10:47:53]execute_script returns [10:47:53]free content buf [10:47:53]Sock 9.Close socket [10:47:53]Sock 9.Thread stoped [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [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:47]accept exits with 10 [10:49:47]New connection [10:49:47]New thread 3067161956 created [10:49:47]Thread 3067305316 joined [10:49:47]Waiting for new connection... [10:49:47] Sock 10.Parse request [10:49:47]Sock 10.Check first char [10:49:47]Sock 10.First char is OK [10:49:47]request: POST /json_proto HTTP/1.0 [10:49:47]Method: POST [10:49:47]URL: /json_proto [10:49:47]Method is POST - this is cgi request [10:49:47]url: /json_proto [10:49:47]query_string will be loaded in cgi processing [10:49:47]execute_cgi json_proto POST (null) [10:49:47]execute_cgi path=json_proto method=POST [10:49:47]POST find Content-Length [10:49:47]Host: 172.17.51.67:8080 [10:49:47]Content-Length: 840 [10:49:47]Content-Type: application/json [10:49:47] [10:49:47]POST finish read [10:49:47]Found Content-Length = 840 [10:49:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:47]execute_script... [10:49: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)317863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:47]POST & json_proto [10:49:47]process_json_proto [10:49:47]json parsed OK: [10:49:47]protocol is kg_v1.0 [10:49:47]action value=close_receipt [10:49:47]process_action close_receipt [10:49:47]cmd_close_receipt [10:49:47]MH_GetDate [10:49:47]Write to MH i2c: F0 00 00 8F 01 7F [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: F0 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: F0 09 00 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: F0 09 00 8F 01 00 CC D4 18 67 1E EF FA 64 12 [10:49:47]GetLastDocTimeStamp 1729680469 [10:49:47]current date 1729680588 [10:49:47]FM_GetShiftState [10:49:47]SAM_PROTO_GetShiftState [10:49:47]wFMCommunicate request_size=4 [10:49:47]MH_SAM_APDU [10:49:47]CAPDU: 80 13 01 00 [10:49:47]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:47]Read from MH i2c: E2 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: E2 0E 00 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 47 [10:49:47]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:49:47]wFMCommunicate OK [10:49:47]SAM_PROTO_GetShiftState done [10:49:47]FM_GetShiftState done [10:49:47]opened in 1729642861 [10:49:47]opened+sec_in_day 1729729261 [10:49:47]quantity*price = 50041 [10:49:47]sum+1 = 50042 [10:49:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 62 23.10.2024 10:49 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103650 ФПД: 120078893530832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104948&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103650&fm=120078893530832&tin=02508201610067®Number=0000000000091754&sum=50041 [10:49:48]StoreToDocumentArchive [10:49:48]shift 582 fd 103650 [10:49:48]save to /storage/0582/doc_00103650 [10:49:48]save last doc name /storage/0582/doc_00103650 to /storage/kkm_last_doc_name [10:49:48]save OK [10:49:48]Clear old archive folders... [10:49:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:48]tlvbuf is 00E1D9E0 [10:49:48]SAM_PROTO_ClearQueue [10:49:48]wFMCommunicate request_size=4 [10:49:48]MH_SAM_APDU [10:49:48]CAPDU: 80 09 00 00 [10:49:48]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [10:49:49]RAPDU: 90 00 [10:49:49]wFMCommunicate OK [10:49:49]SAM_PROTO_ClearQueue done [10:49:49]KKMCreateOFDPacket [10:49:49]OFDProtocolAddRootSTLVToBuf [10:49:49]FM_MakeSignedData [10:49:49]FM_MakeSignedData [10:49:49]SAM_PROTO_SignData [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 0D 01 02 [10:49:49]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [10:49:49]RAPDU: 90 00 [10:49:49]wFMCommunicate OK [10:49:49]wFMCommunicate request_size=255 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 CC D4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E2 94 01 00 35 04 06 00 6D [10:49:49]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 CC D4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E2 94 01 00 35 04 06 00 6D 00 00 7C [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [10:49:49]RAPDU: 90 00 [10:49:49]wFMCommunicate OK [10:49:49]wFMCommunicate request_size=10 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 0D 02 02 05 36 0B CB 3E D0 [10:49:49]Write to MH i2c: E2 0D 00 A0 01 80 0D 02 02 05 00 36 0B CB 3E D0 00 00 3F [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [10:49:49]RAPDU: 90 00 [10:49:49]wFMCommunicate OK [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 0D 03 02 [10:49:49]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 0B 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 0B 00 A1 01 00 05 0E 6F 69 A7 ED 5B 9A 90 00 92 [10:49:49]RAPDU: 05 0E 6F 69 A7 ED 5B 9A 90 00 [10:49:49]wFMCommunicate OK [10:49:49]SAM_PROTO_SignData done [10:49:49]FM_MakeSignedData done [10:49:49]CreateOFDProtocolMessage [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 11 00 00 [10:49:49]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 17 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 6A [10:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:49:49]wFMCommunicate OK [10:49:49]CreateOFDProtocolMessage done [10:49:49]OFDSenderStorePacket 103650 [10:49:49]StoreOFDPacket docnum=103650 [10:49:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 9B D5 07 01 C7 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 CC D4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E2 94 01 00 35 04 06 00 6D 36 0B CB 3E D0 05 0E 6F 69 A7 ED 5B 9A [10:49:49]CheckFolder [10:49:49]dirname=/storage/ofd_packets [10:49:49]CheckFolder done [10:49:49]ProducePacketName [10:49:49]name=ofd_packets/00103650 [10:49:49]NVStorageSaveData ofd_packets/00103650 [10:49:49]File name is /storage/ofd_packets/00103650 [10:49:49]Write 301 bytes [10:49:49]NVStorageSaveData done [10:49:49]OFDSenderStorePacket done [10:49:49]KKMCreateOFDPacket done [10:49:49]NVStorageSaveData kkm_last_timestamp [10:49:49]File name is /storage/kkm_last_timestamp [10:49:49]Write 4 bytes [10:49:49]NVStorageSaveData done [10:49:49]ExternCall_PrintAddStr [10:49:49]wPrintStart [10:49:49]Write to MH i2c: 01 00 00 A3 01 A4 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 07 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [10:49:49]RasterBufferAndPrint [10:49:49]line Счет N : (1)317863 [10:49:49]line ИНН: 02508201610067 [10:49:49]line Контрольно-Кассовый Чек [10:49:49]line ПРОДАЖА [10:49:49]line ТРК (МРК, ГНК) : 63 [10:49:49]line Товар: 2710124130 [10:49:49]line Аи-92-К-4 [10:49:49]line 7.480 * 66.90 [10:49:49]line = 500.41 [10:49:49]line НДС 12% НСП 1% [10:49:49]line > о реализуемом товаре [10:49:49]line ИТОГО: 500.41 [10:49:49]line НСП 1% : 4.43 [10:49:49]line НДС 12% : 53.14 [10:49:49]line Наличными: 0.00 [10:49:49]line Безнал.: 500.41 [10:49:49]line Место: АЗС № 145 "Партнер Нефть" [10:49:49]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:49:49]line СНО: Общий режим [10:49:49]line Чек 62 23.10.2024 10:49 [10:49:49]line Смена: 582 ФФД: 1.0 [10:49:49]line ЗНМ: 0300000095 [10:49:49]line РНМ: 0000000000091754 [10:49:49]line Версия ККМ: 001 [10:49:49]line Платежная система: АКБ Кыргызстан [10:49:49]line ФМ: 0000000000871811 [10:49:49]line ФД: 103650 [10:49:49]line ФПД: 120078893530832 [10:49:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T104948&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103650&fm=120078893530832&tin=02508201610067®Number=0000000000091754&sum=50041 [10:49:49]OFD Sender: Processing packet 103650 [packets to send 498, broken 497] [10:49:49]ProducePacketName [10:49:49]name=ofd_packets/00103650 [10:49:49]OFD Sender: To server: pG, [10:49:49]CommunicateWithHost lk.salyk.kg:30040 [10:49:49]ConnectInit lk.salyk.kg [10:49:49]written 0, free lines is 4095 [10:49:50]Write to MH i2c: 01 00 00 CC 01 CD [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 07 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 E2 0C C2 [10:49:50]RasterBufferAndPrint [10:49:50]line [10:49:50]line [10:49:50]line [10:49:50]line [10:49:50]line [10:49:50]written 0, free lines is 3304 [10:49:50]MH_Cut [10:49:50]Write to MH i2c: D1 01 00 D3 01 01 A6 [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: D1 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: D1 01 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: D1 01 00 D3 01 00 A5 [10:49:50]Write to MH i2c: 01 00 00 D4 01 D5 [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:51]*** Cut start [10:49:51]*** Partial cut [10:49:51]*** CUTSNS_PIN = 1 [10:49:51]*** CUTSNS_PIN = 0 [10:49:51]*** Brake cut motor [10:49:51]Read from MH i2c: 01 [10:49:51]MH_I2C_Read... [10:49:51]*** Stop cut motor [10:49:51]*** Cut end [10:49:51]Read from MH i2c: 01 07 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [10:49:51]process_action close_receipt done [10:49:51]requested_data is exist [10:49:51]produce_requested_data [10:49:51]requested_item fm.sn is exist - process it [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 11 00 00 [10:49:51]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 17 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 9D [10:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:49:51]wFMCommunicate OK [10:49:51]requested_item fd.num is exist - process it [10:49:51]SAM_PROTO_GetFieldsCounters [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 13 00 00 [10:49:51]Write to MH i2c: E2 08 00 D6 01 80 13 00 00 00 00 00 00 53 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 62 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 62 00 D6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E2 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [10:49: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E2 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_GetFieldsCounters done [10:49:51]requested_item shift.num is exist - process it [10:49:51]requested_item shift.opened is exist - process it [10:49:51]req_shift_opened [10:49:51]FM_GetShiftState [10:49:51]SAM_PROTO_GetShiftState [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 13 01 00 [10:49:51]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0E 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 8E [10:49:51]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_GetShiftState done [10:49:51]FM_GetShiftState done [10:49:51]req_shift_opened done [10:49:51]requested_item shift.open_date is exist - process it [10:49:51]req_shift_open_date [10:49:51]req_shift_open_date done [10:49:51]produce_requested_data done [10:49:51]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103650,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:49:51]process_action_free close_receipt [10:49:51]json_value_free [10:49:51]json_value_free done [10:49:51]process_json_proto returns [10:49:51]Send response to host [10:49:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103650,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:49:51]free response buf [10:49:51]execute_script done [10:49:51]execute_script returns [10:49:51]free content buf [10:49:51]Sock 10.Close socket [10:49:51]Sock 10.Thread stoped [10:49:53]Connected sock=11 [10:49:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 9B D5 07 01 C7 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 CC D4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E2 94 01 00 35 04 06 00 6D 36 0B CB 3E D0 05 0E 6F 69 A7 ED 5B 9A [10:49: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 31 31 4F 00 00 00 A5 9A 47 00 0C B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E2 94 01 00 F4 03 04 00 E5 7B 18 67 B6 04 01 00 00 07 D0 4D F9 7E 98 97 E2 [10:49:53]CommunicateWithHost err = 0 [10:49:53]CheckOFDResponse [10:49:53]1017 (14) - 77093643461234 [10:49:53]1041 (16) - 0000000000871811 [10:49:53]1040 (4) - 103650 [10:49:53]1012 (4) - 23.10.2024 04:30 [10:49:53]1206 (1) - 0 [10:49:53]OFD Sender: Remove packet 103650 [10:49:53]ProducePacketName [10:49:53]name=ofd_packets/00103650 [10:49:53]NVStorageDeleteData [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:04]recv_with_timeout no data received [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]recv_with_timeout no data received [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:10]recv_with_timeout no data received [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:21]accept exits with 7 [10:53:21]New connection [10:53:21]New thread 3067305316 created [10:53:21]Thread 3067161956 joined [10:53:21]Waiting for new connection... [10:53:21] Sock 7.Parse request [10:53:21]Sock 7.Check first char [10:53:21]Sock 7.First char is OK [10:53:21]request: POST /json_proto HTTP/1.0 [10:53:21]Method: POST [10:53:21]URL: /json_proto [10:53:21]Method is POST - this is cgi request [10:53:21]url: /json_proto [10:53:21]query_string will be loaded in cgi processing [10:53:21]execute_cgi json_proto POST (null) [10:53:21]execute_cgi path=json_proto method=POST [10:53:21]POST find Content-Length [10:53:21]Host: 172.17.51.67:8080 [10:53:21]Content-Length: 677 [10:53:21]Content-Type: application/json [10:53:21] [10:53:21]POST finish read [10:53:21]Found Content-Length = 677 [10:53:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:21]execute_script... [10:53:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:21]POST & json_proto [10:53:21]process_json_proto [10:53:21]json parsed OK: [10:53:21]protocol is kg_v1.0 [10:53:21]action value=close_receipt [10:53:21]process_action close_receipt [10:53:21]cmd_close_receipt [10:53:21]MH_GetDate [10:53:21]Write to MH i2c: F0 00 00 D8 01 C8 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: F0 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: F0 09 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: F0 09 00 D8 01 00 A2 D5 18 67 1E EF FA 64 32 [10:53:21]GetLastDocTimeStamp 1729680588 [10:53:21]current date 1729680802 [10:53:21]FM_GetShiftState [10:53:21]SAM_PROTO_GetShiftState [10:53:21]wFMCommunicate request_size=4 [10:53:21]MH_SAM_APDU [10:53:21]CAPDU: 80 13 01 00 [10:53:21]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 0E 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 90 [10:53:21]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:53:21]wFMCommunicate OK [10:53:21]SAM_PROTO_GetShiftState done [10:53:21]FM_GetShiftState done [10:53:21]opened in 1729642861 [10:53:21]opened+sec_in_day 1729729261 [10:53:21]quantity*price = 20003 [10:53:21]sum+1 = 20004 [10:53:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 63 23.10.2024 10:53 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103651 ФПД: 183038105040930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105322&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103651&fm=183038105040930&tin=02508201610067®Number=0000000000091754&sum=20000 [10:53:22]StoreToDocumentArchive [10:53:22]shift 582 fd 103651 [10:53:22]save to /storage/0582/doc_00103651 [10:53:22]save last doc name /storage/0582/doc_00103651 to /storage/kkm_last_doc_name [10:53:22]save OK [10:53:22]Clear old archive folders... [10:53:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:22]tlvbuf is 00EC1D30 [10:53:22]SAM_PROTO_ClearQueue [10:53:22]wFMCommunicate request_size=4 [10:53:22]MH_SAM_APDU [10:53:22]CAPDU: 80 09 00 00 [10:53:22]Write to MH i2c: E2 08 00 E6 01 80 09 00 00 00 00 00 00 59 [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:22]Read from MH i2c: E2 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 03 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [10:53:22]RAPDU: 90 00 [10:53:22]wFMCommunicate OK [10:53:22]SAM_PROTO_ClearQueue done [10:53:22]KKMCreateOFDPacket [10:53:22]OFDProtocolAddRootSTLVToBuf [10:53:22]FM_MakeSignedData [10:53:22]FM_MakeSignedData [10:53:22]SAM_PROTO_SignData [10:53:22]wFMCommunicate request_size=4 [10:53:22]MH_SAM_APDU [10:53:22]CAPDU: 80 0D 01 02 [10:53:22]Write to MH i2c: E2 08 00 E7 01 80 0D 01 02 00 00 00 00 61 [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:22]Read from MH i2c: E2 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 03 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [10:53:22]RAPDU: 90 00 [10:53:22]wFMCommunicate OK [10:53:22]wFMCommunicate request_size=255 [10:53:22]MH_SAM_APDU [10:53:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A2 D5 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E3 94 01 00 35 04 06 00 A6 [10:53:22]Write to MH i2c: E2 02 01 E8 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A2 D5 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E3 94 01 00 35 04 06 00 A6 00 00 47 [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:22]Read from MH i2c: E2 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 03 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [10:53:22]RAPDU: 90 00 [10:53:22]wFMCommunicate OK [10:53:22]wFMCommunicate request_size=10 [10:53:22]MH_SAM_APDU [10:53:22]CAPDU: 80 0D 02 02 05 78 E1 3B 38 22 [10:53:22]Write to MH i2c: E2 0D 00 E9 01 80 0D 02 02 05 00 78 E1 3B 38 22 00 00 5C [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:22]Read from MH i2c: E2 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 03 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [10:53:22]RAPDU: 90 00 [10:53:22]wFMCommunicate OK [10:53:22]wFMCommunicate request_size=4 [10:53:22]MH_SAM_APDU [10:53:22]CAPDU: 80 0D 03 02 [10:53:22]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:22]Read from MH i2c: E2 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 0B 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 0B 00 EA 01 00 99 CE F7 4F 0B DC 53 32 90 00 80 [10:53:22]RAPDU: 99 CE F7 4F 0B DC 53 32 90 00 [10:53:22]wFMCommunicate OK [10:53:22]SAM_PROTO_SignData done [10:53:22]FM_MakeSignedData done [10:53:22]CreateOFDProtocolMessage [10:53:22]wFMCommunicate request_size=4 [10:53:22]MH_SAM_APDU [10:53:22]CAPDU: 80 11 00 00 [10:53:22]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 17 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 B3 [10:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:53:23]wFMCommunicate OK [10:53:23]CreateOFDProtocolMessage done [10:53:23]OFDSenderStorePacket 103651 [10:53:23]StoreOFDPacket docnum=103651 [10:53:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 D4 B2 07 01 EC 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A2 D5 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E3 94 01 00 35 04 06 00 A6 78 E1 3B 38 22 99 CE F7 4F 0B DC 53 32 [10:53:23]CheckFolder [10:53:23]dirname=/storage/ofd_packets [10:53:23]CheckFolder done [10:53:23]ProducePacketName [10:53:23]name=ofd_packets/00103651 [10:53:23]NVStorageSaveData ofd_packets/00103651 [10:53:23]File name is /storage/ofd_packets/00103651 [10:53:23]Write 301 bytes [10:53:23]NVStorageSaveData done [10:53:23]OFDSenderStorePacket done [10:53:23]KKMCreateOFDPacket done [10:53:23]NVStorageSaveData kkm_last_timestamp [10:53:23]File name is /storage/kkm_last_timestamp [10:53:23]Write 4 bytes [10:53:23]NVStorageSaveData done [10:53:23]ExternCall_PrintAddStr [10:53:23]wPrintStart [10:53:23]Write to MH i2c: 01 00 00 EC 01 ED [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: 01 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: 01 07 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [10:53:23]RasterBufferAndPrint [10:53:23]line Счет N : (1)317864 [10:53:23]line ИНН: 02508201610067 [10:53:23]line Контрольно-Кассовый Чек [10:53:23]line ПРОДАЖА [10:53:23]line ТРК (МРК, ГНК) : 53 [10:53:23]line Товар: 2710124130 [10:53:23]line Аи-92-К-4 [10:53:23]line 2.990 * 66.90 [10:53:23]line = 200.03 [10:53:23]line НДС 12% НСП 1% [10:53:23]line > о реализуемом товаре [10:53:23]line ОКРУГЛЕНИЕ: -0.03 [10:53:23]line ИТОГО: 200.00 [10:53:23]line Внесено: 200.00 [10:53:23]line СДАЧА: 0.00 [10:53:23]line НСП 1% : 1.77 [10:53:23]line НДС 12% : 21.24 [10:53:23]line Наличными: 200.00 [10:53:23]line Безнал.: 0.00 [10:53:23]line Место: АЗС № 145 "Партнер Нефть" [10:53:23]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:53:23]line СНО: Общий режим [10:53:23]line Чек 63 23.10.2024 10:53 [10:53:23]line Смена: 582 ФФД: 1.0 [10:53:23]line ЗНМ: 0300000095 [10:53:23]line РНМ: 0000000000091754 [10:53:23]line Версия ККМ: 001 [10:53:23]line ФМ: 0000000000871811 [10:53:23]line ФД: 103651 [10:53:23]line ФПД: 183038105040930 [10:53:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105322&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103651&fm=183038105040930&tin=02508201610067®Number=0000000000091754&sum=20000 [10:53:23]written 0, free lines is 4095 [10:53:23]OFD Sender: Processing packet 103651 [packets to send 498, broken 497] [10:53:23]ProducePacketName [10:53:23]name=ofd_packets/00103651 [10:53:23]OFD Sender: To server: pG, [10:53:23]CommunicateWithHost lk.salyk.kg:30040 [10:53:23]ConnectInit lk.salyk.kg [10:53:23]Write to MH i2c: 01 00 00 16 02 18 [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: 01 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: 01 07 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: 01 07 00 16 02 00 00 00 00 00 CD 0C F8 [10:53:23]RasterBufferAndPrint [10:53:23]line [10:53:23]line [10:53:23]line [10:53:23]line [10:53:23]line [10:53:23]written 0, free lines is 3284 [10:53:23]MH_Cut [10:53:23]Write to MH i2c: D1 01 00 1D 02 01 F1 [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: D1 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: D1 01 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: D1 01 00 1D 02 00 F0 [10:53:23]Write to MH i2c: 01 00 00 1E 02 20 [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:24]*** Cut start [10:53:24]*** Partial cut [10:53:24]*** CUTSNS_PIN = 1 [10:53:24]*** CUTSNS_PIN = 0 [10:53:24]*** Brake cut motor [10:53:24]Read from MH i2c: 01 [10:53:24]MH_I2C_Read... [10:53:24]*** Stop cut motor [10:53:24]*** Cut end [10:53:24]Read from MH i2c: 01 07 00 [10:53:24]MH_I2C_Read... [10:53:24]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [10:53:24]process_action close_receipt done [10:53:24]requested_data is exist [10:53:24]produce_requested_data [10:53:24]requested_item fm.sn is exist - process it [10:53:24]wFMCommunicate request_size=4 [10:53:24]MH_SAM_APDU [10:53:24]CAPDU: 80 11 00 00 [10:53:24]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [10:53:24]Write i2c OK [10:53:24]MH_I2C_Read... [10:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:24]Read from MH i2c: E2 [10:53:24]MH_I2C_Read... [10:53:24]Read from MH i2c: E2 17 00 [10:53:24]MH_I2C_Read... [10:53:24]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 E8 [10:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:53:24]wFMCommunicate OK [10:53:24]requested_item fd.num is exist - process it [10:53:24]SAM_PROTO_GetFieldsCounters [10:53:24]wFMCommunicate request_size=4 [10:53:24]MH_SAM_APDU [10:53:24]CAPDU: 80 13 00 00 [10:53:24]Write to MH i2c: E2 08 00 20 02 80 13 00 00 00 00 00 00 9E [10:53:24]Write i2c OK [10:53:24]MH_I2C_Read... [10:53:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:25]Read from MH i2c: E2 [10:53:25]MH_I2C_Read... [10:53:25]Read from MH i2c: E2 62 00 [10:53:25]MH_I2C_Read... [10:53:25]Read from MH i2c: E2 62 00 20 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E3 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [10: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E3 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:25]wFMCommunicate OK [10:53:25]SAM_PROTO_GetFieldsCounters done [10:53:25]requested_item shift.num is exist - process it [10:53:25]requested_item shift.opened is exist - process it [10:53:25]req_shift_opened [10:53:25]FM_GetShiftState [10:53:25]SAM_PROTO_GetShiftState [10:53:25]wFMCommunicate request_size=4 [10:53:25]MH_SAM_APDU [10:53:25]CAPDU: 80 13 01 00 [10:53:25]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [10:53:25]Write i2c OK [10:53:25]MH_I2C_Read... [10:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:25]Read from MH i2c: E2 [10:53:25]MH_I2C_Read... [10:53:25]Read from MH i2c: E2 0E 00 [10:53:25]MH_I2C_Read... [10:53:25]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D9 [10:53:25]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:53:25]wFMCommunicate OK [10:53:25]SAM_PROTO_GetShiftState done [10:53:25]FM_GetShiftState done [10:53:25]req_shift_opened done [10:53:25]requested_item shift.open_date is exist - process it [10:53:25]req_shift_open_date [10:53:25]req_shift_open_date done [10:53:25]produce_requested_data done [10:53:25]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103651,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:53:25]process_action_free close_receipt [10:53:25]json_value_free [10:53:25]json_value_free done [10:53:25]process_json_proto returns [10:53:25]Send response to host [10:53:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103651,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:53:25]free response buf [10:53:25]execute_script done [10:53:25]execute_script returns [10:53:25]free content buf [10:53:25]Sock 7.Close socket [10:53:25]Sock 7.Thread stoped [10:53:28]ConnectInit Can't take IP for lk.salyk.kg [10:53:28]CommunicateWithHost connect error [10:53:28]CommunicateWithHost err = -1 [10:53:28]OFD Sender: Server communicate error [10:53:33]OFD Sender: Processing packet 103651 [packets to send 498, broken 497] [10:53:33]ProducePacketName [10:53:33]name=ofd_packets/00103651 [10:53:33]OFD Sender: To server: pG, [10:53:33]CommunicateWithHost lk.salyk.kg:30040 [10:53:33]ConnectInit lk.salyk.kg [10:53:38]ConnectInit Can't take IP for lk.salyk.kg [10:53:38]CommunicateWithHost connect error [10:53:38]CommunicateWithHost err = -1 [10:53:38]OFD Sender: Server communicate error [10:53:43]OFD Sender: Processing packet 103651 [packets to send 498, broken 497] [10:53:43]ProducePacketName [10:53:43]name=ofd_packets/00103651 [10:53:43]OFD Sender: To server: pG, [10:53:43]CommunicateWithHost lk.salyk.kg:30040 [10:53:43]ConnectInit lk.salyk.kg [10:53:48]ConnectInit Can't take IP for lk.salyk.kg [10:53:48]CommunicateWithHost connect error [10:53:48]CommunicateWithHost err = -1 [10:53:48]OFD Sender: Server communicate error [10:53:53]OFD Sender: Processing packet 103651 [packets to send 498, broken 497] [10:53:53]ProducePacketName [10:53:53]name=ofd_packets/00103651 [10:53:53]OFD Sender: To server: pG, [10:53:53]CommunicateWithHost lk.salyk.kg:30040 [10:53:53]ConnectInit lk.salyk.kg [10:53:58]ConnectInit Can't take IP for lk.salyk.kg [10:53:58]CommunicateWithHost connect error [10:53:58]CommunicateWithHost err = -1 [10:53:58]OFD Sender: Server communicate error [10:54:03]OFD Sender: Processing packet 103651 [packets to send 498, broken 497] [10:54:03]ProducePacketName [10:54:03]name=ofd_packets/00103651 [10:54:03]OFD Sender: To server: pG, [10:54:03]CommunicateWithHost lk.salyk.kg:30040 [10:54:03]ConnectInit lk.salyk.kg [10:54:08]ConnectInit Can't take IP for lk.salyk.kg [10:54:08]CommunicateWithHost connect error [10:54:08]CommunicateWithHost err = -1 [10:54:08]OFD Sender: Server communicate error [10:54:13]OFD Sender: Processing packet 103651 [packets to send 498, broken 497] [10:54:13]ProducePacketName [10:54:13]name=ofd_packets/00103651 [10:54:13]OFD Sender: To server: pG, [10:54:13]CommunicateWithHost lk.salyk.kg:30040 [10:54:13]ConnectInit lk.salyk.kg [10:54:18]ConnectInit Can't take IP for lk.salyk.kg [10:54:18]CommunicateWithHost connect error [10:54:18]CommunicateWithHost err = -1 [10:54:18]OFD Sender: Server communicate error [10:54:23]OFD Sender: Processing packet 103651 [packets to send 498, broken 497] [10:54:23]ProducePacketName [10:54:23]name=ofd_packets/00103651 [10:54:23]OFD Sender: To server: pG, [10:54:23]CommunicateWithHost lk.salyk.kg:30040 [10:54:23]ConnectInit lk.salyk.kg [10:54:28]ConnectInit Can't take IP for lk.salyk.kg [10:54:28]CommunicateWithHost connect error [10:54:28]CommunicateWithHost err = -1 [10:54:28]OFD Sender: Server communicate error [10:54:33]OFD Sender: Processing packet 103651 [packets to send 498, broken 497] [10:54:33]ProducePacketName [10:54:33]name=ofd_packets/00103651 [10:54:33]OFD Sender: To server: pG, [10:54:33]CommunicateWithHost lk.salyk.kg:30040 [10:54:33]ConnectInit lk.salyk.kg [10:54:38]ConnectInit Can't take IP for lk.salyk.kg [10:54:38]CommunicateWithHost connect error [10:54:38]CommunicateWithHost err = -1 [10:54:38]OFD Sender: Server communicate error [10:54:43]OFD Sender: Processing packet 103651 [packets to send 498, broken 497] [10:54:43]ProducePacketName [10:54:43]name=ofd_packets/00103651 [10:54:43]OFD Sender: To server: pG, [10:54:43]CommunicateWithHost lk.salyk.kg:30040 [10:54:43]ConnectInit lk.salyk.kg [10:54:48]ConnectInit Can't take IP for lk.salyk.kg [10:54:48]CommunicateWithHost connect error [10:54:48]CommunicateWithHost err = -1 [10:54:48]OFD Sender: Server communicate error [10:54:53]OFD Sender: Processing packet 103651 [packets to send 498, broken 497] [10:54:53]ProducePacketName [10:54:53]name=ofd_packets/00103651 [10:54:53]OFD Sender: To server: pG, [10:54:53]CommunicateWithHost lk.salyk.kg:30040 [10:54:53]ConnectInit lk.salyk.kg [10:54:54]Connected sock=7 [10:54: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 31 31 0F 01 00 00 D4 B2 07 01 EC 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A2 D5 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E3 94 01 00 35 04 06 00 A6 78 E1 3B 38 22 99 CE F7 4F 0B DC 53 32 [10:54: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 31 31 4F 00 00 00 DC B5 47 00 F9 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E3 94 01 00 F4 03 04 00 13 7D 18 67 B6 04 01 00 00 19 D2 C1 B8 87 24 72 C6 [10:54:54]CommunicateWithHost err = 0 [10:54:54]CheckOFDResponse [10:54:54]1017 (14) - 77093643461234 [10:54:54]1041 (16) - 0000000000871811 [10:54:54]1040 (4) - 103651 [10:54:54]1012 (4) - 23.10.2024 04:35 [10:54:54]1206 (1) - 0 [10:54:54]OFD Sender: Remove packet 103651 [10:54:54]ProducePacketName [10:54:54]name=ofd_packets/00103651 [10:54:54]NVStorageDeleteData [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:04]ConnectInit Can't connect to host [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:29]accept exits with 10 [10:55:29]New connection [10:55:29]New thread 3067161956 created [10:55:29]Thread 3067305316 joined [10:55:29]Waiting for new connection... [10:55:29] Sock 10.Parse request [10:55:29]Sock 10.Check first char [10:55:29]Sock 10.First char is OK [10:55:29]request: POST /json_proto HTTP/1.0 [10:55:29]Method: POST [10:55:29]URL: /json_proto [10:55:29]Method is POST - this is cgi request [10:55:29]url: /json_proto [10:55:29]query_string will be loaded in cgi processing [10:55:29]execute_cgi json_proto POST (null) [10:55:29]execute_cgi path=json_proto method=POST [10:55:29]POST find Content-Length [10:55:29]Host: 172.17.51.67:8080 [10:55:29]Content-Length: 677 [10:55:29]Content-Type: application/json [10:55:29] [10:55:29]POST finish read [10:55:29]Found Content-Length = 677 [10:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:29]execute_script... [10:55:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:29]POST & json_proto [10:55:29]process_json_proto [10:55:29]json parsed OK: [10:55:29]protocol is kg_v1.0 [10:55:29]action value=close_receipt [10:55:29]process_action close_receipt [10:55:29]cmd_close_receipt [10:55:29]MH_GetDate [10:55:29]Write to MH i2c: F0 00 00 22 02 13 [10:55:29]Write i2c OK [10:55:29]MH_I2C_Read... [10:55:29]Read from MH i2c: F0 [10:55:29]MH_I2C_Read... [10:55:29]Read from MH i2c: F0 09 00 [10:55:29]MH_I2C_Read... [10:55:29]Read from MH i2c: F0 09 00 22 02 00 22 D6 18 67 1E EF FA 64 FE [10:55:29]GetLastDocTimeStamp 1729680802 [10:55:29]current date 1729680930 [10:55:29]FM_GetShiftState [10:55:29]SAM_PROTO_GetShiftState [10:55:29]wFMCommunicate request_size=4 [10:55:29]MH_SAM_APDU [10:55:29]CAPDU: 80 13 01 00 [10:55:29]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [10:55:29]Write i2c OK [10:55:29]MH_I2C_Read... [10:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:29]Read from MH i2c: E2 [10:55:29]MH_I2C_Read... [10:55:29]Read from MH i2c: E2 0E 00 [10:55:29]MH_I2C_Read... [10:55:29]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 DB [10:55:29]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:55:29]wFMCommunicate OK [10:55:29]SAM_PROTO_GetShiftState done [10:55:29]FM_GetShiftState done [10:55:29]opened in 1729642861 [10:55:29]opened+sec_in_day 1729729261 [10:55:29]quantity*price = 50041 [10:55:29]sum+1 = 50042 [10:55:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 64 23.10.2024 10:55 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103652 ФПД: 276989424336445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105530&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103652&fm=276989424336445&tin=02508201610067®Number=0000000000091754&sum=50000 [10:55:30]StoreToDocumentArchive [10:55:30]shift 582 fd 103652 [10:55:30]save to /storage/0582/doc_00103652 [10:55:31]save last doc name /storage/0582/doc_00103652 to /storage/kkm_last_doc_name [10:55:31]save OK [10:55:31]Clear old archive folders... [10:55:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:31]tlvbuf is 00EC34A0 [10:55:31]SAM_PROTO_ClearQueue [10:55:31]wFMCommunicate request_size=4 [10:55:31]MH_SAM_APDU [10:55:31]CAPDU: 80 09 00 00 [10:55:31]Write to MH i2c: E2 08 00 30 02 80 09 00 00 00 00 00 00 A4 [10:55:31]Write i2c OK [10:55:31]MH_I2C_Read... [10:55:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:31]Read from MH i2c: E2 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 03 00 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [10:55:31]RAPDU: 90 00 [10:55:31]wFMCommunicate OK [10:55:31]SAM_PROTO_ClearQueue done [10:55:31]KKMCreateOFDPacket [10:55:31]OFDProtocolAddRootSTLVToBuf [10:55:31]FM_MakeSignedData [10:55:31]FM_MakeSignedData [10:55:31]SAM_PROTO_SignData [10:55:31]wFMCommunicate request_size=4 [10:55:31]MH_SAM_APDU [10:55:31]CAPDU: 80 0D 01 02 [10:55:31]Write to MH i2c: E2 08 00 31 02 80 0D 01 02 00 00 00 00 AC [10:55:31]Write i2c OK [10:55:31]MH_I2C_Read... [10:55:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:31]Read from MH i2c: E2 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 03 00 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [10:55:31]RAPDU: 90 00 [10:55:31]wFMCommunicate OK [10:55:31]wFMCommunicate request_size=255 [10:55:31]MH_SAM_APDU [10:55:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 22 D6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E4 94 01 00 35 04 06 00 FB [10:55:31]Write to MH i2c: E2 02 01 32 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 22 D6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E4 94 01 00 35 04 06 00 FB 00 00 A8 [10:55:31]Write i2c OK [10:55:31]MH_I2C_Read... [10:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:31]Read from MH i2c: E2 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 03 00 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [10:55:31]RAPDU: 90 00 [10:55:31]wFMCommunicate OK [10:55:31]wFMCommunicate request_size=10 [10:55:31]MH_SAM_APDU [10:55:31]CAPDU: 80 0D 02 02 05 EB A0 3E 7E 3D [10:55:31]Write to MH i2c: E2 0D 00 33 02 80 0D 02 02 05 00 EB A0 3E 7E 3D 00 00 3D [10:55:31]Write i2c OK [10:55:31]MH_I2C_Read... [10:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:31]Read from MH i2c: E2 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 03 00 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [10:55:31]RAPDU: 90 00 [10:55:31]wFMCommunicate OK [10:55:31]wFMCommunicate request_size=4 [10:55:31]MH_SAM_APDU [10:55:31]CAPDU: 80 0D 03 02 [10:55:31]Write to MH i2c: E2 08 00 34 02 80 0D 03 02 00 00 00 00 B1 [10:55:31]Write i2c OK [10:55:31]MH_I2C_Read... [10:55:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:31]Read from MH i2c: E2 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 0B 00 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 0B 00 34 02 00 15 36 BD 30 B0 55 DD 1F 90 00 EB [10:55:31]RAPDU: 15 36 BD 30 B0 55 DD 1F 90 00 [10:55:31]wFMCommunicate OK [10:55:31]SAM_PROTO_SignData done [10:55:31]FM_MakeSignedData done [10:55:31]CreateOFDProtocolMessage [10:55:31]wFMCommunicate request_size=4 [10:55:31]MH_SAM_APDU [10:55:31]CAPDU: 80 11 00 00 [10:55:31]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [10:55:31]Write i2c OK [10:55:31]MH_I2C_Read... [10:55:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:31]Read from MH i2c: E2 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 17 00 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 FE [10:55:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:55:31]wFMCommunicate OK [10:55:31]CreateOFDProtocolMessage done [10:55:31]OFDSenderStorePacket 103652 [10:55:31]StoreOFDPacket docnum=103652 [10:55:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 31 9D 07 01 2F F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 22 D6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E4 94 01 00 35 04 06 00 FB EB A0 3E 7E 3D 15 36 BD 30 B0 55 DD 1F [10:55:31]CheckFolder [10:55:31]dirname=/storage/ofd_packets [10:55:31]CheckFolder done [10:55:31]ProducePacketName [10:55:31]name=ofd_packets/00103652 [10:55:31]NVStorageSaveData ofd_packets/00103652 [10:55:31]File name is /storage/ofd_packets/00103652 [10:55:31]Write 301 bytes [10:55:31]NVStorageSaveData done [10:55:31]OFDSenderStorePacket done [10:55:31]KKMCreateOFDPacket done [10:55:31]NVStorageSaveData kkm_last_timestamp [10:55:31]File name is /storage/kkm_last_timestamp [10:55:31]Write 4 bytes [10:55:31]NVStorageSaveData done [10:55:31]ExternCall_PrintAddStr [10:55:31]wPrintStart [10:55:31]Write to MH i2c: 01 00 00 36 02 38 [10:55:31]Write i2c OK [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: 01 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: 01 07 00 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [10:55:31]RasterBufferAndPrint [10:55:31]line Счет N : (1)317866 [10:55:31]line ИНН: 02508201610067 [10:55:31]line Контрольно-Кассовый Чек [10:55:31]line ПРОДАЖА [10:55:31]line ТРК (МРК, ГНК) : 43 [10:55:31]line Товар: 2710124130 [10:55:31]line Аи-92-К-4 [10:55:31]line 7.480 * 66.90 [10:55:31]line = 500.41 [10:55:31]line НДС 12% НСП 1% [10:55:31]line > о реализуемом товаре [10:55:31]line ОКРУГЛЕНИЕ: -0.41 [10:55:31]line ИТОГО: 500.00 [10:55:31]line Внесено: 500.00 [10:55:31]line СДАЧА: 0.00 [10:55:31]line НСП 1% : 4.43 [10:55:31]line НДС 12% : 53.14 [10:55:31]line Наличными: 500.00 [10:55:31]line Безнал.: 0.00 [10:55:31]line Место: АЗС № 145 "Партнер Нефть" [10:55:31]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:55:31]line СНО: Общий режим [10:55:31]line Чек 64 23.10.2024 10:55 [10:55:31]line Смена: 582 ФФД: 1.0 [10:55:31]line ЗНМ: 0300000095 [10:55:31]line РНМ: 0000000000091754 [10:55:31]line Версия ККМ: 001 [10:55:31]line ФМ: 0000000000871811 [10:55:31]line ФД: 103652 [10:55:31]line ФПД: 276989424336445 [10:55:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105530&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103652&fm=276989424336445&tin=02508201610067®Number=0000000000091754&sum=50000 [10:55:31]written 0, free lines is 4095 [10:55:31]OFD Sender: Processing packet 103652 [packets to send 498, broken 497] [10:55:31]ProducePacketName [10:55:31]name=ofd_packets/00103652 [10:55:31]OFD Sender: To server: pG, [10:55:31]CommunicateWithHost lk.salyk.kg:30040 [10:55:31]ConnectInit lk.salyk.kg [10:55:31]Write to MH i2c: 01 00 00 60 02 62 [10:55:31]Write i2c OK [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: 01 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: 01 07 00 [10:55:31]MH_I2C_Read... [10:55:32]Read from MH i2c: 01 07 00 60 02 00 00 00 00 00 D6 0C 4B [10:55:32]RasterBufferAndPrint [10:55:32]line [10:55:32]line [10:55:32]line [10:55:32]line [10:55:32]line [10:55:32]written 0, free lines is 3293 [10:55:32]MH_Cut [10:55:32]Write to MH i2c: D1 01 00 67 02 01 3B [10:55:32]Write i2c OK [10:55:32]MH_I2C_Read... [10:55:32]Read from MH i2c: D1 [10:55:32]MH_I2C_Read... [10:55:32]Read from MH i2c: D1 01 00 [10:55:32]MH_I2C_Read... [10:55:32]Read from MH i2c: D1 01 00 67 02 00 3A [10:55:32]Write to MH i2c: 01 00 00 68 02 6A [10:55:32]Write i2c OK [10:55:32]MH_I2C_Read... [10:55:32]*** Cut start [10:55:32]*** Partial cut [10:55:32]*** CUTSNS_PIN = 1 [10:55:32]*** CUTSNS_PIN = 0 [10:55:33]*** Brake cut motor [10:55:33]Read from MH i2c: 01 [10:55:33]MH_I2C_Read... [10:55:33]*** Stop cut motor [10:55:33]*** Cut end [10:55:33]Read from MH i2c: 01 07 00 [10:55:33]MH_I2C_Read... [10:55:33]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 FF 0F 7F [10:55:33]process_action close_receipt done [10:55:33]requested_data is exist [10:55:33]produce_requested_data [10:55:33]requested_item fm.sn is exist - process it [10:55:33]wFMCommunicate request_size=4 [10:55:33]MH_SAM_APDU [10:55:33]CAPDU: 80 11 00 00 [10:55:33]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [10:55:33]Write i2c OK [10:55:33]MH_I2C_Read... [10:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:33]Read from MH i2c: E2 [10:55:33]MH_I2C_Read... [10:55:33]Read from MH i2c: E2 17 00 [10:55:33]MH_I2C_Read... [10:55:33]Read from MH i2c: E2 17 00 69 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 32 [10:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:55:33]wFMCommunicate OK [10:55:33]requested_item fd.num is exist - process it [10:55:33]SAM_PROTO_GetFieldsCounters [10:55:33]wFMCommunicate request_size=4 [10:55:33]MH_SAM_APDU [10:55:33]CAPDU: 80 13 00 00 [10:55:33]Write to MH i2c: E2 08 00 6A 02 80 13 00 00 00 00 00 00 E8 [10:55:33]Write i2c OK [10:55:33]MH_I2C_Read... [10:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:33]Read from MH i2c: E2 [10:55:33]MH_I2C_Read... [10:55:33]Read from MH i2c: E2 62 00 [10:55:33]MH_I2C_Read... [10:55:33]Read from MH i2c: E2 62 00 6A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E4 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [10:55: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E4 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:33]wFMCommunicate OK [10:55:33]SAM_PROTO_GetFieldsCounters done [10:55:33]requested_item shift.num is exist - process it [10:55:33]requested_item shift.opened is exist - process it [10:55:33]req_shift_opened [10:55:33]FM_GetShiftState [10:55:33]SAM_PROTO_GetShiftState [10:55:33]wFMCommunicate request_size=4 [10:55:33]MH_SAM_APDU [10:55:33]CAPDU: 80 13 01 00 [10:55:33]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [10:55:33]Write i2c OK [10:55:33]MH_I2C_Read... [10:55:33]Read from MH i2c: E2 [10:55:33]MH_I2C_Read... [10:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:33]Read from MH i2c: E2 0E 00 [10:55:33]MH_I2C_Read... [10:55:33]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 23 [10:55:33]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:55:33]wFMCommunicate OK [10:55:33]SAM_PROTO_GetShiftState done [10:55:33]FM_GetShiftState done [10:55:33]req_shift_opened done [10:55:33]requested_item shift.open_date is exist - process it [10:55:33]req_shift_open_date [10:55:33]req_shift_open_date done [10:55:33]produce_requested_data done [10:55:33]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103652,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:55:33]process_action_free close_receipt [10:55:33]json_value_free [10:55:33]json_value_free done [10:55:33]process_json_proto returns [10:55:33]Send response to host [10:55:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103652,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:55:33]free response buf [10:55:33]execute_script done [10:55:33]execute_script returns [10:55:33]free content buf [10:55:33]Sock 10.Close socket [10:55:33]Sock 10.Thread stoped [10:55:50]Connected sock=7 [10:55: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 31 31 0F 01 00 00 31 9D 07 01 2F F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 22 D6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E4 94 01 00 35 04 06 00 FB EB A0 3E 7E 3D 15 36 BD 30 B0 55 DD 1F [10:55: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 31 31 4F 00 00 00 39 EB 47 00 CF 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E4 94 01 00 F4 03 04 00 4D 7D 18 67 B6 04 01 00 00 FE 2C 5C B2 C2 B3 6B 4F [10:55:53]CommunicateWithHost err = 0 [10:55:53]CheckOFDResponse [10:55:53]1017 (14) - 77093643461234 [10:55:53]1041 (16) - 0000000000871811 [10:55:53]1040 (4) - 103652 [10:55:53]1012 (4) - 23.10.2024 04:36 [10:55:53]1206 (1) - 0 [10:55:53]OFD Sender: Remove packet 103652 [10:55:53]ProducePacketName [10:55:53]name=ofd_packets/00103652 [10:55:53]NVStorageDeleteData [10:55:53]OFD Sender: No OFD packet to send [10:55:56]recv_with_timeout no data received [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:05]accept exits with 9 [10:56:05]New connection [10:56:05]New thread 3067305316 created [10:56:05]Thread 3067161956 joined [10:56:05]Waiting for new connection... [10:56:05] Sock 9.Parse request [10:56:05]Sock 9.Check first char [10:56:05]Sock 9.First char is OK [10:56:05]request: POST /json_proto HTTP/1.0 [10:56:05]Method: POST [10:56:05]URL: /json_proto [10:56:05]Method is POST - this is cgi request [10:56:05]url: /json_proto [10:56:05]query_string will be loaded in cgi processing [10:56:05]execute_cgi json_proto POST (null) [10:56:05]execute_cgi path=json_proto method=POST [10:56:05]POST find Content-Length [10:56:05]Host: 172.17.51.67:8080 [10:56:05]Content-Length: 677 [10:56:05]Content-Type: application/json [10:56:05] [10:56:05]POST finish read [10:56:05]Found Content-Length = 677 [10:56:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.130, "sum" : 276.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 276.00, "payments": [ { "type": 0, "sum" : 276.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:05]execute_script... [10:56:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.130, "sum" : 276.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 276.00, "payments": [ { "type": 0, "sum" : 276.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:05]POST & json_proto [10:56:05]process_json_proto [10:56:05]json parsed OK: [10:56:05]protocol is kg_v1.0 [10:56:05]action value=close_receipt [10:56:05]process_action close_receipt [10:56:05]cmd_close_receipt [10:56:05]MH_GetDate [10:56:05]Write to MH i2c: F0 00 00 6C 02 5D [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: F0 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: F0 09 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: F0 09 00 6C 02 00 46 D6 18 67 1E EF FA 64 6C [10:56:05]GetLastDocTimeStamp 1729680930 [10:56:05]current date 1729680966 [10:56:05]FM_GetShiftState [10:56:05]SAM_PROTO_GetShiftState [10:56:05]wFMCommunicate request_size=4 [10:56:05]MH_SAM_APDU [10:56:05]CAPDU: 80 13 01 00 [10:56:05]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:05]Read from MH i2c: E2 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 0E 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 25 [10:56:05]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:56:05]wFMCommunicate OK [10:56:05]SAM_PROTO_GetShiftState done [10:56:05]FM_GetShiftState done [10:56:05]opened in 1729642861 [10:56:05]opened+sec_in_day 1729729261 [10:56:05]quantity*price = 27629 [10:56:05]sum+1 = 27631 [10:56:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 276.00 Внесено: 300.00 СДАЧА: 24.00 НСП 1% : 2.44 НДС 12% : 29.34 Наличными: 276.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 65 23.10.2024 10:56 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103653 ФПД: 118571639322812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105606&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103653&fm=118571639322812&tin=02508201610067®Number=0000000000091754&sum=27600 [10:56:06]StoreToDocumentArchive [10:56:06]shift 582 fd 103653 [10:56:06]save to /storage/0582/doc_00103653 [10:56:06]save last doc name /storage/0582/doc_00103653 to /storage/kkm_last_doc_name [10:56:06]save OK [10:56:06]Clear old archive folders... [10:56:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:06]tlvbuf is 00EC6490 [10:56:06]SAM_PROTO_ClearQueue [10:56:06]wFMCommunicate request_size=4 [10:56:06]MH_SAM_APDU [10:56:06]CAPDU: 80 09 00 00 [10:56:06]Write to MH i2c: E2 08 00 7A 02 80 09 00 00 00 00 00 00 EE [10:56:06]Write i2c OK [10:56:06]MH_I2C_Read... [10:56:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:06]Read from MH i2c: E2 [10:56:06]MH_I2C_Read... [10:56:06]Read from MH i2c: E2 03 00 [10:56:06]MH_I2C_Read... [10:56:06]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [10:56:06]RAPDU: 90 00 [10:56:06]wFMCommunicate OK [10:56:06]SAM_PROTO_ClearQueue done [10:56:06]KKMCreateOFDPacket [10:56:06]OFDProtocolAddRootSTLVToBuf [10:56:06]FM_MakeSignedData [10:56:06]FM_MakeSignedData [10:56:06]SAM_PROTO_SignData [10:56:06]wFMCommunicate request_size=4 [10:56:06]MH_SAM_APDU [10:56:06]CAPDU: 80 0D 01 02 [10:56:06]Write to MH i2c: E2 08 00 7B 02 80 0D 01 02 00 00 00 00 F6 [10:56:06]Write i2c OK [10:56:06]MH_I2C_Read... [10:56:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:07]Read from MH i2c: E2 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 03 00 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [10:56:07]RAPDU: 90 00 [10:56:07]wFMCommunicate OK [10:56:07]wFMCommunicate request_size=255 [10:56:07]MH_SAM_APDU [10:56:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 22 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 6B 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 76 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 41 00 00 00 F4 03 04 00 46 D6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E5 94 01 00 35 04 06 00 6B [10:56:07]Write to MH i2c: E2 02 01 7C 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 22 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 6B 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 76 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 41 00 00 00 F4 03 04 00 46 D6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E5 94 01 00 35 04 06 00 6B 00 00 B5 [10:56:07]Write i2c OK [10:56:07]MH_I2C_Read... [10:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:07]Read from MH i2c: E2 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 03 00 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [10:56:07]RAPDU: 90 00 [10:56:07]wFMCommunicate OK [10:56:07]wFMCommunicate request_size=10 [10:56:07]MH_SAM_APDU [10:56:07]CAPDU: 80 0D 02 02 05 D7 1C 71 38 BC [10:56:07]Write to MH i2c: E2 0D 00 7D 02 80 0D 02 02 05 00 D7 1C 71 38 BC 00 00 5B [10:56:07]Write i2c OK [10:56:07]MH_I2C_Read... [10:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:07]Read from MH i2c: E2 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 03 00 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [10:56:07]RAPDU: 90 00 [10:56:07]wFMCommunicate OK [10:56:07]wFMCommunicate request_size=4 [10:56:07]MH_SAM_APDU [10:56:07]CAPDU: 80 0D 03 02 [10:56:07]Write to MH i2c: E2 08 00 7E 02 80 0D 03 02 00 00 00 00 FB [10:56:07]Write i2c OK [10:56:07]MH_I2C_Read... [10:56:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:07]Read from MH i2c: E2 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 0B 00 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 0B 00 7E 02 00 F8 E8 DB 19 50 8C 62 AA 90 00 B8 [10:56:07]RAPDU: F8 E8 DB 19 50 8C 62 AA 90 00 [10:56:07]wFMCommunicate OK [10:56:07]SAM_PROTO_SignData done [10:56:07]FM_MakeSignedData done [10:56:07]CreateOFDProtocolMessage [10:56:07]wFMCommunicate request_size=4 [10:56:07]MH_SAM_APDU [10:56:07]CAPDU: 80 11 00 00 [10:56:07]Write to MH i2c: E2 08 00 7F 02 80 11 00 00 00 00 00 00 FB [10:56:07]Write i2c OK [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 [10:56:07]MH_I2C_Read... [10:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:07]Read from MH i2c: E2 17 00 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 17 00 7F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 48 [10:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:56:07]wFMCommunicate OK [10:56:07]CreateOFDProtocolMessage done [10:56:07]OFDSenderStorePacket 103653 [10:56:07]StoreOFDPacket docnum=103653 [10:56:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 88 AF 07 01 F0 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 22 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 6B 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 76 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 41 00 00 00 F4 03 04 00 46 D6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E5 94 01 00 35 04 06 00 6B D7 1C 71 38 BC F8 E8 DB 19 50 8C 62 AA [10:56:07]CheckFolder [10:56:07]dirname=/storage/ofd_packets [10:56:07]CheckFolder done [10:56:07]ProducePacketName [10:56:07]name=ofd_packets/00103653 [10:56:07]NVStorageSaveData ofd_packets/00103653 [10:56:07]File name is /storage/ofd_packets/00103653 [10:56:07]Write 301 bytes [10:56:07]NVStorageSaveData done [10:56:07]OFDSenderStorePacket done [10:56:07]KKMCreateOFDPacket done [10:56:07]NVStorageSaveData kkm_last_timestamp [10:56:07]File name is /storage/kkm_last_timestamp [10:56:07]Write 4 bytes [10:56:07]NVStorageSaveData done [10:56:07]ExternCall_PrintAddStr [10:56:07]wPrintStart [10:56:07]Write to MH i2c: 01 00 00 80 02 82 [10:56:07]Write i2c OK [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: 01 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: 01 07 00 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 FF 0F 97 [10:56:07]RasterBufferAndPrint [10:56:07]line Счет N : (1)317865 [10:56:07]line ИНН: 02508201610067 [10:56:07]line Контрольно-Кассовый Чек [10:56:07]line ПРОДАЖА [10:56:07]line ТРК (МРК, ГНК) : 53 [10:56:07]line Товар: 2710124130 [10:56:07]line Аи-92-К-4 [10:56:07]line 4.130 * 66.90 [10:56:07]line = 276.30 [10:56:07]line НДС 12% НСП 1% [10:56:07]line > о реализуемом товаре [10:56:07]line ОКРУГЛЕНИЕ: -0.30 [10:56:07]line ИТОГО: 276.00 [10:56:07]line Внесено: 300.00 [10:56:07]line СДАЧА: 24.00 [10:56:07]line НСП 1% : 2.44 [10:56:07]line НДС 12% : 29.34 [10:56:07]line Наличными: 276.00 [10:56:07]line Безнал.: 0.00 [10:56:07]line Место: АЗС № 145 "Партнер Нефть" [10:56:07]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [10:56:07]line СНО: Общий режим [10:56:07]line Чек 65 23.10.2024 10:56 [10:56:07]line Смена: 582 ФФД: 1.0 [10:56:07]line ЗНМ: 0300000095 [10:56:07]line РНМ: 0000000000091754 [10:56:07]line Версия ККМ: 001 [10:56:07]line ФМ: 0000000000871811 [10:56:07]line ФД: 103653 [10:56:07]line ФПД: 118571639322812 [10:56:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T105606&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103653&fm=118571639322812&tin=02508201610067®Number=0000000000091754&sum=27600 [10:56:07]written 0, free lines is 4095 [10:56:07]OFD Sender: Processing packet 103653 [packets to send 498, broken 497] [10:56:07]ProducePacketName [10:56:07]name=ofd_packets/00103653 [10:56:07]OFD Sender: To server: pG, [10:56:07]CommunicateWithHost lk.salyk.kg:30040 [10:56:07]ConnectInit lk.salyk.kg [10:56:07]Write to MH i2c: 01 00 00 AA 02 AC [10:56:07]Write i2c OK [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: 01 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: 01 07 00 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: 01 07 00 AA 02 00 00 00 00 00 DD 0C 9C [10:56:07]RasterBufferAndPrint [10:56:07]line [10:56:07]line [10:56:07]line [10:56:07]line [10:56:07]line [10:56:07]written 0, free lines is 3305 [10:56:07]MH_Cut [10:56:07]Write to MH i2c: D1 01 00 B1 02 01 85 [10:56:07]Write i2c OK [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: D1 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: D1 01 00 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: D1 01 00 B1 02 00 84 [10:56:07]Write to MH i2c: 01 00 00 B2 02 B4 [10:56:07]Write i2c OK [10:56:07]MH_I2C_Read... [10:56:08]*** Cut start [10:56:08]*** Partial cut [10:56:08]*** CUTSNS_PIN = 1 [10:56:08]*** CUTSNS_PIN = 0 [10:56:08]*** Brake cut motor [10:56:09]Read from MH i2c: 01 [10:56:09]MH_I2C_Read... [10:56:09]*** Stop cut motor [10:56:09]*** Cut end [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 B2 02 00 00 00 00 00 FF 0F C9 [10:56:09]process_action close_receipt done [10:56:09]requested_data is exist [10:56:09]produce_requested_data [10:56:09]requested_item fm.sn is exist - process it [10:56:09]wFMCommunicate request_size=4 [10:56:09]MH_SAM_APDU [10:56:09]CAPDU: 80 11 00 00 [10:56:09]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [10:56:09]Write i2c OK [10:56:09]MH_I2C_Read... [10:56:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:09]Read from MH i2c: E2 [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: E2 17 00 [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 7C [10:56:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [10:56:09]wFMCommunicate OK [10:56:09]requested_item fd.num is exist - process it [10:56:09]SAM_PROTO_GetFieldsCounters [10:56:09]wFMCommunicate request_size=4 [10:56:09]MH_SAM_APDU [10:56:09]CAPDU: 80 13 00 00 [10:56:09]Write to MH i2c: E2 08 00 B4 02 80 13 00 00 00 00 00 00 32 [10:56:09]Write i2c OK [10:56:09]MH_I2C_Read... [10:56:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:09]Read from MH i2c: E2 [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: E2 62 00 [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: E2 62 00 B4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E5 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [10:56: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E5 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:09]wFMCommunicate OK [10:56:09]SAM_PROTO_GetFieldsCounters done [10:56:09]requested_item shift.num is exist - process it [10:56:09]requested_item shift.opened is exist - process it [10:56:09]req_shift_opened [10:56:09]FM_GetShiftState [10:56:09]SAM_PROTO_GetShiftState [10:56:09]wFMCommunicate request_size=4 [10:56:09]MH_SAM_APDU [10:56:09]CAPDU: 80 13 01 00 [10:56:09]Write to MH i2c: E2 08 00 B5 02 80 13 01 00 00 00 00 00 34 [10:56:09]Write i2c OK [10:56:09]MH_I2C_Read... [10:56:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:09]Read from MH i2c: E2 [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: E2 0E 00 [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: E2 0E 00 B5 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 6D [10:56:09]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [10:56:09]wFMCommunicate OK [10:56:09]SAM_PROTO_GetShiftState done [10:56:09]FM_GetShiftState done [10:56:09]req_shift_opened done [10:56:09]requested_item shift.open_date is exist - process it [10:56:09]req_shift_open_date [10:56:09]req_shift_open_date done [10:56:09]produce_requested_data done [10:56:09]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103653,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [10:56:09]process_action_free close_receipt [10:56:09]json_value_free [10:56:09]json_value_free done [10:56:09]process_json_proto returns [10:56:09]Send response to host [10:56:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103653,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [10:56:09]free response buf [10:56:09]execute_script done [10:56:09]execute_script returns [10:56:09]free content buf [10:56:09]Sock 9.Close socket [10:56:09]Sock 9.Thread stoped [10:56:13]recv_with_timeout no data received [10:56:22]Connected sock=11 [10:56: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 31 31 0F 01 00 00 88 AF 07 01 F0 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 22 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 6B 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 76 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 41 00 00 00 F4 03 04 00 46 D6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E5 94 01 00 35 04 06 00 6B D7 1C 71 38 BC F8 E8 DB 19 50 8C 62 AA [10:56:27]recv_with_timeout no data received [10:56:27]CommunicateWithHost answer receiving error [10:56:27]CommunicateWithHost err = -3 [10:56:27]OFD Sender: Server communicate error [10:56:29]recv_with_timeout no data received [10:56:32]OFD Sender: Processing packet 103653 [packets to send 498, broken 497] [10:56:32]ProducePacketName [10:56:32]name=ofd_packets/00103653 [10:56:32]OFD Sender: To server: pG, [10:56:32]CommunicateWithHost lk.salyk.kg:30040 [10:56:32]ConnectInit lk.salyk.kg [10:56:34]Connected sock=7 [10:56: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 31 31 0F 01 00 00 88 AF 07 01 F0 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 22 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 6B 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 76 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 41 00 00 00 F4 03 04 00 46 D6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E5 94 01 00 35 04 06 00 6B D7 1C 71 38 BC F8 E8 DB 19 50 8C 62 AA [10:56: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 31 31 4F 00 00 00 05 FF 47 00 2D DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E5 94 01 00 F4 03 04 00 77 7D 18 67 B6 04 01 00 00 7A 09 84 36 C0 9F 2F FF [10:56:35]CommunicateWithHost err = 0 [10:56:35]CheckOFDResponse [10:56:35]1017 (14) - 77093643461234 [10:56:35]1041 (16) - 0000000000871811 [10:56:35]1040 (4) - 103653 [10:56:35]1012 (4) - 23.10.2024 04:37 [10:56:35]1206 (1) - 0 [10:56:35]OFD Sender: Remove packet 103653 [10:56:35]ProducePacketName [10:56:35]name=ofd_packets/00103653 [10:56:35]NVStorageDeleteData [10:56:35]OFD Sender: No OFD packet to send [10:56:40]recv_with_timeout no data received [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:01]recv_with_timeout no data received [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:13]recv_with_timeout no data received [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:16]recv_with_timeout no data received [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:53]recv_with_timeout no data received [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:04]recv_with_timeout no data received [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:42]recv_with_timeout no data received [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:07]recv_with_timeout no data received [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:25]recv_with_timeout no data received [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:35]recv_with_timeout no data received [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]accept exits with 10 [11:04:36]New connection [11:04:36]New thread 3067161956 created [11:04:36]Thread 3067305316 joined [11:04:36]Waiting for new connection... [11:04:36] Sock 10.Parse request [11:04:36]Sock 10.Check first char [11:04:36]Sock 10.First char is OK [11:04:36]request: POST /json_proto HTTP/1.0 [11:04:36]Method: POST [11:04:36]URL: /json_proto [11:04:36]Method is POST - this is cgi request [11:04:36]url: /json_proto [11:04:36]query_string will be loaded in cgi processing [11:04:36]execute_cgi json_proto POST (null) [11:04:36]execute_cgi path=json_proto method=POST [11:04:36]POST find Content-Length [11:04:36]Host: 172.17.51.67:8080 [11:04:36]Content-Length: 678 [11:04:36]Content-Type: application/json [11:04:36] [11:04:36]POST finish read [11:04:36]Found Content-Length = 678 [11:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:36]execute_script... [11:04:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:36]POST & json_proto [11:04:36]process_json_proto [11:04:36]json parsed OK: [11:04:36]protocol is kg_v1.0 [11:04:36]action value=close_receipt [11:04:36]process_action close_receipt [11:04:36]cmd_close_receipt [11:04:36]MH_GetDate [11:04:36]Write to MH i2c: F0 00 00 B6 02 A7 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: F0 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: F0 09 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: F0 09 00 B6 02 00 45 D8 18 67 1E EF FA 64 B7 [11:04:36]GetLastDocTimeStamp 1729680966 [11:04:36]current date 1729681477 [11:04:36]FM_GetShiftState [11:04:36]SAM_PROTO_GetShiftState [11:04:36]wFMCommunicate request_size=4 [11:04:36]MH_SAM_APDU [11:04:36]CAPDU: 80 13 01 00 [11:04:36]Write to MH i2c: E2 08 00 B7 02 80 13 01 00 00 00 00 00 36 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:36]Read from MH i2c: E2 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 0E 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 0E 00 B7 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 6F [11:04:36]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:04:36]wFMCommunicate OK [11:04:36]SAM_PROTO_GetShiftState done [11:04:36]FM_GetShiftState done [11:04:36]opened in 1729642861 [11:04:36]opened+sec_in_day 1729729261 [11:04:36]quantity*price = 90004 [11:04:36]sum+1 = 90006 [11:04:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 66 23.10.2024 11:04 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103654 ФПД: 13743339161191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110437&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103654&fm=13743339161191&tin=02508201610067®Number=0000000000091754&sum=90000 [11:04:37]StoreToDocumentArchive [11:04:37]shift 582 fd 103654 [11:04:37]save to /storage/0582/doc_00103654 [11:04:37]save last doc name /storage/0582/doc_00103654 to /storage/kkm_last_doc_name [11:04:37]save OK [11:04:37]Clear old archive folders... [11:04:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:37]tlvbuf is 00EC22A0 [11:04:37]SAM_PROTO_ClearQueue [11:04:37]wFMCommunicate request_size=4 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 09 00 00 [11:04:37]Write to MH i2c: E2 08 00 C4 02 80 09 00 00 00 00 00 00 38 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [11:04:37]RAPDU: 90 00 [11:04:37]wFMCommunicate OK [11:04:37]SAM_PROTO_ClearQueue done [11:04:37]KKMCreateOFDPacket [11:04:37]OFDProtocolAddRootSTLVToBuf [11:04:37]FM_MakeSignedData [11:04:37]FM_MakeSignedData [11:04:37]SAM_PROTO_SignData [11:04:37]wFMCommunicate request_size=4 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 0D 01 02 [11:04:37]Write to MH i2c: E2 08 00 C5 02 80 0D 01 02 00 00 00 00 40 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [11:04:37]RAPDU: 90 00 [11:04:37]wFMCommunicate OK [11:04:37]wFMCommunicate request_size=255 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 45 D8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E6 94 01 00 35 04 06 00 0C [11:04:37]Write to MH i2c: E2 02 01 C6 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 45 D8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E6 94 01 00 35 04 06 00 0C 00 00 0E [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [11:04:37]RAPDU: 90 00 [11:04:37]wFMCommunicate OK [11:04:37]wFMCommunicate request_size=10 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 0D 02 02 05 7F DE D9 46 67 [11:04:37]Write to MH i2c: E2 0D 00 C7 02 80 0D 02 02 05 00 7F DE D9 46 67 00 00 30 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:38]Read from MH i2c: E2 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 03 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [11:04:38]RAPDU: 90 00 [11:04:38]wFMCommunicate OK [11:04:38]wFMCommunicate request_size=4 [11:04:38]MH_SAM_APDU [11:04:38]CAPDU: 80 0D 03 02 [11:04:38]Write to MH i2c: E2 08 00 C8 02 80 0D 03 02 00 00 00 00 45 [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:38]Read from MH i2c: E2 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 0B 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 0B 00 C8 02 00 DD 8A 2C CB 86 06 3C DF 90 00 4B [11:04:38]RAPDU: DD 8A 2C CB 86 06 3C DF 90 00 [11:04:38]wFMCommunicate OK [11:04:38]SAM_PROTO_SignData done [11:04:38]FM_MakeSignedData done [11:04:38]CreateOFDProtocolMessage [11:04:38]wFMCommunicate request_size=4 [11:04:38]MH_SAM_APDU [11:04:38]CAPDU: 80 11 00 00 [11:04:38]Write to MH i2c: E2 08 00 C9 02 80 11 00 00 00 00 00 00 45 [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:38]Read from MH i2c: E2 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 17 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: E2 17 00 C9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 92 [11:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:04:38]wFMCommunicate OK [11:04:38]CreateOFDProtocolMessage done [11:04:38]OFDSenderStorePacket 103654 [11:04:38]StoreOFDPacket docnum=103654 [11:08:24]ConnectInit Can't connect to host [11:08:26]ConnectInit Can't take IP for lk.salyk.kg [11:08:26]CommunicateWithHost connect error [11:08:26]CommunicateWithHost err = -1 [11:08:26]OFD Sender: Server communicate error [11:08:31]OFD Sender: Processing packet 103654 [packets to send 498, broken 497] [11:08:31]ProducePacketName [11:08:31]name=ofd_packets/00103654 [11:08:31]OFD Sender: To server: pG, [11:08:31]CommunicateWithHost lk.salyk.kg:30040 [11:08:31]ConnectInit lk.salyk.kg [11:08:31]accept exits with 9 [11:08:31]New connection [11:08:31]New thread 3066821988 created [11:08:31]Waiting for new connection... [11:08:31] Sock 9.Parse request [11:08:31]Sock 9.Check first char [11:08:31]Sock 9.First char is OK [11:08:31]request: POST /json_proto HTTP/1.0 [11:08:31]Method: POST [11:08:31]URL: /json_proto [11:08:31]Method is POST - this is cgi request [11:08:31]url: /json_proto [11:08:31]query_string will be loaded in cgi processing [11:08:31]execute_cgi json_proto POST (null) [11:08:31]execute_cgi path=json_proto method=POST [11:08:31]POST find Content-Length [11:08:31]Host: 172.17.51.67:8080 [11:08:31]Content-Length: 215 [11:08:31]Content-Type: application/json [11:08:31] [11:08:31]POST finish read [11:08:31]Found Content-Length = 215 [11:08:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:31]execute_script... [11:08:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:31]POST & json_proto [11:08:31]process_json_proto [11:08:31]json parsed OK: [11:08:31]protocol is kg_v1.0 [11:08:31]action value=get_value [11:08:31]process_action get_value [11:08:31]cmd_get_value [11:08:31]process_action get_value done [11:08:31]requested_data is exist [11:08:31]produce_requested_data [11:08:31]requested_item kkm.sn is exist - process it [11:08:31]requested_item kkm.ver is exist - process it [11:08:31]requested_item fm.sn is exist - process it [11:08:31]wFMCommunicate request_size=4 [11:08:31]MH_SAM_APDU [11:08:31]CAPDU: 80 11 00 00 [11:08:31]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:08:31]Write i2c OK [11:08:31]MH_I2C_Read... [11:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:31]Read from MH i2c: E2 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 17 00 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D7 [11:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:08:31]wFMCommunicate OK [11:08:31]requested_item fd.num is exist - process it [11:08:31]SAM_PROTO_GetFieldsCounters [11:08:31]wFMCommunicate request_size=4 [11:08:31]MH_SAM_APDU [11:08:31]CAPDU: 80 13 00 00 [11:08:31]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:08:31]Write i2c OK [11:08:31]MH_I2C_Read... [11:08:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:32]Read from MH i2c: E2 [11:08:32]MH_I2C_Read... [11:08:32]Read from MH i2c: E2 62 00 [11:08:32]MH_I2C_Read... [11:08:32]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E6 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [11:08: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E6 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:32]wFMCommunicate OK [11:08:32]SAM_PROTO_GetFieldsCounters done [11:08:32]requested_item shift.num is exist - process it [11:08:32]requested_item shift.opened is exist - process it [11:08:32]req_shift_opened [11:08:32]FM_GetShiftState [11:08:32]SAM_PROTO_GetShiftState [11:08:32]wFMCommunicate request_size=4 [11:08:32]MH_SAM_APDU [11:08:32]CAPDU: 80 13 01 00 [11:08:32]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:08:32]Write i2c OK [11:08:32]MH_I2C_Read... [11:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:32]Read from MH i2c: E2 [11:08:32]MH_I2C_Read... [11:08:32]Read from MH i2c: E2 0E 00 [11:08:32]MH_I2C_Read... [11:08:32]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 C8 [11:08:32]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:08:32]wFMCommunicate OK [11:08:32]SAM_PROTO_GetShiftState done [11:08:32]FM_GetShiftState done [11:08:32]req_shift_opened done [11:08:32]requested_item shift.open_date is exist - process it [11:08:32]req_shift_open_date [11:08:32]req_shift_open_date done [11:08:32]produce_requested_data done [11:08:32]produce_requested_data return {"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103654,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [11:08:32]process_action_free get_value [11:08:32]json_value_free [11:08:32]json_value_free done [11:08:32]process_json_proto returns [11:08:32]Send response to host [11:08:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103654,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [11:08:32]free response buf [11:08:32]execute_script done [11:08:32]execute_script returns [11:08:32]free content buf [11:08:32]Sock 9.Close socket [11:08:32]Sock 9.Thread stoped [11:08:32]accept exits with 12 [11:08:32]New connection [11:08:32]New thread 3066678628 created [11:08:32]Thread 3066821988 joined [11:08:32]Waiting for new connection... [11:08:32] Sock 12.Parse request [11:08:32]Sock 12.Check first char [11:08:32]Sock 12.First char is OK [11:08:32]request: POST /json_proto HTTP/1.0 [11:08:32]Method: POST [11:08:32]URL: /json_proto [11:08:32]Method is POST - this is cgi request [11:08:32]url: /json_proto [11:08:32]query_string will be loaded in cgi processing [11:08:32]execute_cgi json_proto POST (null) [11:08:32]execute_cgi path=json_proto method=POST [11:08:32]POST find Content-Length [11:08:32]Host: 172.17.51.67:8080 [11:08:32]Content-Length: 331 [11:08:32]Content-Type: application/json [11:08:32] [11:08:32]POST finish read [11:08:32]Found Content-Length = 331 [11:08: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" ] } } [11:08:32]execute_script... [11:08: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" ] } } [11:08:32]POST & json_proto [11:08:32]process_json_proto [11:08:32]json parsed OK: [11:08:32]protocol is kg_v1.0 [11:08:32]action value=get_value [11:08:32]process_action get_value [11:08:32]cmd_get_value [11:08:32]process_action get_value done [11:08:32]requested_data is exist [11:08:32]produce_requested_data [11:08:32]requested_item fm.sale.total is exist - process it [11:08:32]SAM_PROTO_GetFMData [11:08:32]wFMCommunicate request_size=4 [11:08:32]MH_SAM_APDU [11:08:32]CAPDU: 80 13 03 00 [11:08:32]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:08:32]Write i2c OK [11:08:32]MH_I2C_Read... [11:08:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:08:32]Read from MH i2c: E2 [11:08:32]MH_I2C_Read... [11:08:32]Read from MH i2c: E2 FD 00 [11:08:32]MH_I2C_Read... [11:08:32]Connected sock=10 [11:08:32]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 31 31 0F 01 00 00 6C C0 07 01 EA A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 45 D8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E6 94 01 00 35 04 06 00 0C 7F DE D9 46 67 DD 8A 2C CB 86 06 3C DF [11:08:32]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 5A 90 01 00 69 04 A3 00 6F 04 04 00 EE 8F 01 00 B1 04 05 00 5E 49 2B F9 01 70 04 05 00 64 22 68 8D 01 72 04 04 00 FA 26 C3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0E 84 A9 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 EE B7 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 B8 [11:08:32]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 5A 90 01 00 69 04 A3 00 6F 04 04 00 EE 8F 01 00 B1 04 05 00 5E 49 2B F9 01 70 04 05 00 64 22 68 8D 01 72 04 04 00 FA 26 C3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0E 84 A9 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 EE B7 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [11:08:32]wFMCommunicate OK [11:08:32]wFMCommunicate request_size=4 [11:08:32]MH_SAM_APDU [11:08:32]CAPDU: 80 17 00 00 [11:08:32]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:08:32]Write i2c OK [11:08:32]MH_I2C_Read... [11:08:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:33]Read from MH i2c: E2 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 FD 00 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [11:08:33]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:08:33]wFMCommunicate OK [11:08:33]wFMCommunicate request_size=4 [11:08:33]MH_SAM_APDU [11:08:33]CAPDU: 80 17 00 00 [11:08:33]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:08:33]Write i2c OK [11:08:33]MH_I2C_Read... [11:08:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:33]Read from MH i2c: E2 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 FD 00 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [11:08:33]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:08:33]wFMCommunicate OK [11:08:33]wFMCommunicate request_size=4 [11:08:33]MH_SAM_APDU [11:08:33]CAPDU: 80 17 00 00 [11:08:33]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:08:33]Write i2c OK [11:08:33]MH_I2C_Read... [11:08:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 4F 00 00 00 52 DC 47 00 7A 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 31 31 10 04 04 00 E6 94 01 00 F4 03 04 00 45 80 18 67 B6 04 01 00 00 16 2D C2 4B A7 57 05 F1 [11:08:33]CommunicateWithHost err = 0 [11:08:33]CheckOFDResponse [11:08:33]1017 (14) - 77093643461234 [11:08:33]1041 (16) - 0000000000871811 [11:08:33]1040 (4) - 103654 [11:08:33]1012 (4) - 23.10.2024 04:49 [11:08:33]1206 (1) - 0 [11:08:33]OFD Sender: Remove packet 103654 [11:08:33]ProducePacketName [11:08:33]name=ofd_packets/00103654 [11:08:33]NVStorageDeleteData [11:08:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:33]Read from MH i2c: E2 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 FD 00 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 FD 00 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [11:08:33]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:08:33]wFMCommunicate OK [11:08:33]wFMCommunicate request_size=4 [11:08:33]MH_SAM_APDU [11:08:33]CAPDU: 80 17 00 00 [11:08:33]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:08:33]Write i2c OK [11:08:33]MH_I2C_Read... [11:08:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [11:08:33]Read from MH i2c: E2 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 E4 00 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [11:08:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:08:33]wFMCommunicate OK [11:08:33]SAM_PROTO_GetFMData done [11:08:33]requested_item fm.sale_refund.total is exist - process it [11:08:33]requested_item fm.buy.total is exist - process it [11:08:33]requested_item shift.sale.total is exist - process it [11:08:33]SAM_PROTO_GetShiftData [11:08:33]wFMCommunicate request_size=4 [11:08:33]MH_SAM_APDU [11:08:33]CAPDU: 80 13 02 00 [11:08:33]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:08:33]OFD Sender: No OFD packet to send [11:08:33]Write i2c OK [11:08:33]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 FD 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 42 00 00 00 69 04 9B 00 6F 04 04 00 42 00 00 00 B1 04 03 00 23 89 48 70 04 03 00 F8 E1 39 72 04 03 00 2B A7 0E 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 96 B4 07 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 61 A4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 17 [11:08:34]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 42 00 00 00 69 04 9B 00 6F 04 04 00 42 00 00 00 B1 04 03 00 23 89 48 70 04 03 00 F8 E1 39 72 04 03 00 2B A7 0E 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 96 B4 07 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 61 A4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:34]wFMCommunicate OK [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 17 00 00 [11:08:34]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 FD 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [11:08:34]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [11:08:34]wFMCommunicate OK [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 17 00 00 [11:08:34]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 FD 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [11:08: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 [11:08:35]wFMCommunicate OK [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 17 00 00 [11:08:35]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 FD 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [11:08:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [11:08:35]wFMCommunicate OK [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 17 00 00 [11:08:35]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 CB 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [11:08:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:08:35]wFMCommunicate OK [11:08:35]SAM_PROTO_GetShiftData done [11:08:35]requested_item shift.sale.total_cash is exist - process it [11:08:35]requested_item shift.sale_refund.total is exist - process it [11:08:35]requested_item shift.sale_refund.total_cash is exist - process it [11:08:35]requested_item shift.buy.total is exist - process it [11:08:35]requested_item shift.buy.total_cash is exist - process it [11:08:35]produce_requested_data done [11:08:35]produce_requested_data return {"fm.sale.total":84753309.10,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":47536.99,"shift.sale.total_cash":37934.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:08:35]process_action_free get_value [11:08:35]json_value_free [11:08:35]json_value_free done [11:08:35]process_json_proto returns [11:08:35]Send response to host [11:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84753309.10,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":47536.99,"shift.sale.total_cash":37934.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:08:35]free response buf [11:08:35]execute_script done [11:08:35]execute_script returns [11:08:35]free content buf [11:08:35]Sock 12.Close socket [11:08:35]Sock 12.Thread stoped [11:08:36]accept exits with 9 [11:08:36]New connection [11:08:36]New thread 3066821988 created [11:08:36]Thread 3066678628 joined [11:08:36]Waiting for new connection... [11:08:36] Sock 9.Parse request [11:08:36]Sock 9.Check first char [11:08:36]Sock 9.First char is OK [11:08:36]request: POST /json_proto HTTP/1.0 [11:08:36]Method: POST [11:08:36]URL: /json_proto [11:08:36]Method is POST - this is cgi request [11:08:36]url: /json_proto [11:08:36]query_string will be loaded in cgi processing [11:08:36]execute_cgi json_proto POST (null) [11:08:36]execute_cgi path=json_proto method=POST [11:08:36]POST find Content-Length [11:08:36]Host: 172.17.51.67:8080 [11:08:36]Content-Length: 819 [11:08:36]Content-Type: application/json [11:08:36] [11:08:36]POST finish read [11:08:36]Found Content-Length = 819 [11:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:36]execute_script... [11:08:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:36]POST & json_proto [11:08:36]process_json_proto [11:08:36]json parsed OK: [11:08:36]protocol is kg_v1.0 [11:08:36]action value=close_receipt [11:08:36]process_action close_receipt [11:08:36]cmd_close_receipt [11:08:36]MH_GetDate [11:08:36]Write to MH i2c: F0 00 00 1D 00 0C [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: F0 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: F0 09 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: F0 09 00 1D 00 00 34 D9 18 67 1E EF FA 64 0C [11:08:36]GetLastDocTimeStamp 1729681477 [11:08:36]current date 1729681716 [11:08:36]FM_GetShiftState [11:08:36]SAM_PROTO_GetShiftState [11:08:36]wFMCommunicate request_size=4 [11:08:36]MH_SAM_APDU [11:08:36]CAPDU: 80 13 01 00 [11:08:36]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:36]Read from MH i2c: E2 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 0E 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D4 [11:08:36]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:08:36]wFMCommunicate OK [11:08:36]SAM_PROTO_GetShiftState done [11:08:36]FM_GetShiftState done [11:08:36]opened in 1729642861 [11:08:36]opened+sec_in_day 1729729261 [11:08:36]quantity*price = 200031 [11:08:36]sum+1 = 200032 [11:08:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 67 23.10.2024 11:08 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871811 ФД: 103655 ФПД: 143738940819139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110836&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103655&fm=143738940819139&tin=02508201610067®Number=0000000000091754&sum=200031 [11:08:37]StoreToDocumentArchive [11:08:37]shift 582 fd 103655 [11:08:37]save to /storage/0582/doc_00103655 [11:08:37]save last doc name /storage/0582/doc_00103655 to /storage/kkm_last_doc_name [11:08:37]save OK [11:08:37]Clear old archive folders... [11:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:37]tlvbuf is 00CCA520 [11:08:37]SAM_PROTO_ClearQueue [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 09 00 00 [11:08:37]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 03 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:08:37]RAPDU: 90 00 [11:08:37]wFMCommunicate OK [11:08:37]SAM_PROTO_ClearQueue done [11:08:37]KKMCreateOFDPacket [11:08:37]OFDProtocolAddRootSTLVToBuf [11:08:37]FM_MakeSignedData [11:08:37]FM_MakeSignedData [11:08:37]SAM_PROTO_SignData [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 0D 01 02 [11:08:37]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 03 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:08:37]RAPDU: 90 00 [11:08:37]wFMCommunicate OK [11:08:37]wFMCommunicate request_size=255 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 34 D9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E7 94 01 00 35 04 06 00 82 [11:08:37]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 34 D9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E7 94 01 00 35 04 06 00 82 00 00 C3 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:38]Read from MH i2c: E2 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 03 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:08:38]RAPDU: 90 00 [11:08:38]wFMCommunicate OK [11:08:38]wFMCommunicate request_size=10 [11:08:38]MH_SAM_APDU [11:08:38]CAPDU: 80 0D 02 02 05 BA D4 82 06 C3 [11:08:38]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 BA D4 82 06 C3 00 00 8B [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:38]Read from MH i2c: E2 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 03 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:08:38]RAPDU: 90 00 [11:08:38]wFMCommunicate OK [11:08:38]wFMCommunicate request_size=4 [11:08:38]MH_SAM_APDU [11:08:38]CAPDU: 80 0D 03 02 [11:08:38]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:38]Read from MH i2c: E2 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 0B 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 0B 00 2F 00 00 37 27 85 F7 CB D9 89 95 90 00 47 [11:08:38]RAPDU: 37 27 85 F7 CB D9 89 95 90 00 [11:08:38]wFMCommunicate OK [11:08:38]SAM_PROTO_SignData done [11:08:38]FM_MakeSignedData done [11:08:38]CreateOFDProtocolMessage [11:08:38]wFMCommunicate request_size=4 [11:08:38]MH_SAM_APDU [11:08:38]CAPDU: 80 11 00 00 [11:08:38]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:38]Read from MH i2c: E2 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 17 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 F7 [11:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:08:38]wFMCommunicate OK [11:08:38]CreateOFDProtocolMessage done [11:08:38]OFDSenderStorePacket 103655 [11:08:38]StoreOFDPacket docnum=103655 [11:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 D1 B4 07 01 54 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 34 D9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E7 94 01 00 35 04 06 00 82 BA D4 82 06 C3 37 27 85 F7 CB D9 89 95 [11:08:38]CheckFolder [11:08:38]dirname=/storage/ofd_packets [11:08:38]CheckFolder done [11:08:38]ProducePacketName [11:08:38]name=ofd_packets/00103655 [11:08:38]NVStorageSaveData ofd_packets/00103655 [11:08:38]File name is /storage/ofd_packets/00103655 [11:08:38]Write 301 bytes [11:08:38]NVStorageSaveData done [11:08:38]OFDSenderStorePacket done [11:08:38]KKMCreateOFDPacket done [11:08:38]NVStorageSaveData kkm_last_timestamp [11:08:38]File name is /storage/kkm_last_timestamp [11:08:38]Write 4 bytes [11:08:38]NVStorageSaveData done [11:08:38]ExternCall_PrintAddStr [11:08:38]wPrintStart [11:08:38]Write to MH i2c: 01 00 00 31 00 31 [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]OFD Sender: Processing packet 103655 [packets to send 498, broken 497] [11:08:38]ProducePacketName [11:08:38]name=ofd_packets/00103655 [11:08:38]OFD Sender: To server: pG, [11:08:38]CommunicateWithHost lk.salyk.kg:30040 [11:08:38]ConnectInit lk.salyk.kg [11:08:38]Read from MH i2c: 01 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: 01 07 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:08:38]RasterBufferAndPrint [11:08:38]line Счет N : (1)317869 [11:08:38]line ИНН: 02508201610067 [11:08:38]line Контрольно-Кассовый Чек [11:08:38]line ПРОДАЖА [11:08:38]line ТРК (МРК, ГНК) : 53 [11:08:38]line Товар: 2710124130 [11:08:38]line Аи-92-К-4 [11:08:38]line 29.900 * 66.90 [11:08:38]line = 2000.31 [11:08:38]line НДС 12% НСП 1% [11:08:38]line > о реализуемом товаре [11:08:38]line ИТОГО: 2000.31 [11:08:38]line НСП 1% : 17.70 [11:08:38]line НДС 12% : 212.42 [11:08:38]line Наличными: 0.00 [11:08:38]line Безнал.: 2000.31 [11:08:38]line Место: АЗС № 145 "Партнер Нефть" [11:08:38]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [11:08:38]line СНО: Общий режим [11:08:38]line Чек 67 23.10.2024 11:08 [11:08:38]line Смена: 582 ФФД: 1.0 [11:08:38]line ЗНМ: 0300000095 [11:08:38]line РНМ: 0000000000091754 [11:08:38]line Версия ККМ: 001 [11:08:38]line Платежная система: Бакай Банк [11:08:38]line ФМ: 0000000000871811 [11:08:38]line ФД: 103655 [11:08:38]line ФПД: 143738940819139 [11:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T110836&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103655&fm=143738940819139&tin=02508201610067®Number=0000000000091754&sum=200031 [11:08:38]written 0, free lines is 4095 [11:08:38]Write to MH i2c: 01 00 00 5A 00 5A [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: 01 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: 01 07 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 E7 0C 54 [11:08:38]RasterBufferAndPrint [11:08:38]line [11:08:38]line [11:08:38]line [11:08:38]line [11:08:38]line [11:08:38]written 0, free lines is 3323 [11:08:38]MH_Cut [11:08:38]Write to MH i2c: D1 01 00 61 00 01 33 [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: D1 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: D1 01 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: D1 01 00 61 00 00 32 [11:08:38]Write to MH i2c: 01 00 00 62 00 62 [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:39]*** Cut start [11:08:39]*** Partial cut [11:08:39]*** CUTSNS_PIN = 1 [11:08:39]*** CUTSNS_PIN = 0 [11:08:39]*** Brake cut motor [11:08:40]Read from MH i2c: 01 [11:08:40]MH_I2C_Read... [11:08:40]*** Stop cut motor [11:08:40]*** Cut end [11:08:40]Read from MH i2c: 01 07 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [11:08:40]process_action close_receipt done [11:08:40]requested_data is exist [11:08:40]produce_requested_data [11:08:40]requested_item fm.sn is exist - process it [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 11 00 00 [11:08:40]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 17 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 2A [11:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:08:40]wFMCommunicate OK [11:08:40]requested_item fd.num is exist - process it [11:08:40]SAM_PROTO_GetFieldsCounters [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 13 00 00 [11:08:40]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 62 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [11:08: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E7 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:40]wFMCommunicate OK [11:08:40]SAM_PROTO_GetFieldsCounters done [11:08:40]requested_item shift.num is exist - process it [11:08:40]requested_item shift.opened is exist - process it [11:08:40]req_shift_opened [11:08:40]FM_GetShiftState [11:08:40]SAM_PROTO_GetShiftState [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 13 01 00 [11:08:40]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 0E 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 1B [11:08:40]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:08:40]wFMCommunicate OK [11:08:40]SAM_PROTO_GetShiftState done [11:08:40]FM_GetShiftState done [11:08:40]req_shift_opened done [11:08:40]requested_item shift.open_date is exist - process it [11:08:40]req_shift_open_date [11:08:40]req_shift_open_date done [11:08:40]produce_requested_data done [11:08:40]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103655,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [11:08:40]process_action_free close_receipt [11:08:40]json_value_free [11:08:40]json_value_free done [11:08:40]process_json_proto returns [11:08:40]Send response to host [11:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103655,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [11:08:40]free response buf [11:08:40]execute_script done [11:08:40]execute_script returns [11:08:40]free content buf [11:08:40]Sock 9.Close socket [11:08:40]Sock 9.Thread stoped [11:08:42]recv_with_timeout no data received [11:08:43]ConnectInit Can't take IP for lk.salyk.kg [11:08:43]CommunicateWithHost connect error [11:08:43]CommunicateWithHost err = -1 [11:08:43]OFD Sender: Server communicate error [11:08:48]OFD Sender: Processing packet 103655 [packets to send 498, broken 497] [11:08:48]ProducePacketName [11:08:48]name=ofd_packets/00103655 [11:08:48]OFD Sender: To server: pG, [11:08:48]CommunicateWithHost lk.salyk.kg:30040 [11:08:48]ConnectInit lk.salyk.kg [11:08:52]Connected sock=10 [11:08: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 31 31 0F 01 00 00 D1 B4 07 01 54 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 34 D9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E7 94 01 00 35 04 06 00 82 BA D4 82 06 C3 37 27 85 F7 CB D9 89 95 [11:08: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 31 31 4F 00 00 00 BD B2 47 00 DA 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 31 31 10 04 04 00 E7 94 01 00 F4 03 04 00 58 80 18 67 B6 04 01 00 00 0D B2 56 53 DE 01 D5 19 [11:08:53]CommunicateWithHost err = 0 [11:08:53]CheckOFDResponse [11:08:53]1017 (14) - 77093643461234 [11:08:53]1041 (16) - 0000000000871811 [11:08:53]1040 (4) - 103655 [11:08:53]1012 (4) - 23.10.2024 04:49 [11:08:53]1206 (1) - 0 [11:08:53]OFD Sender: Remove packet 103655 [11:08:53]ProducePacketName [11:08:53]name=ofd_packets/00103655 [11:08:53]NVStorageDeleteData [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]recv_with_timeout no data received [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]recv_with_timeout no data received [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:09]recv_with_timeout no data received [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]recv_with_timeout no data received [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]recv_with_timeout no data received [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:38]recv_with_timeout no data received [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]recv_with_timeout no data received [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:15]recv_with_timeout no data received [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:42]recv_with_timeout no data received [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:14]recv_with_timeout no data received [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:27]accept exits with 7 [11:21:27]New connection [11:21:27]New thread 3066678628 created [11:21:27]Thread 3066821988 joined [11:21:27]Waiting for new connection... [11:21:27] Sock 7.Parse request [11:21:27]Sock 7.Check first char [11:21:27]Sock 7.First char is OK [11:21:27]request: POST /json_proto HTTP/1.0 [11:21:27]Method: POST [11:21:27]URL: /json_proto [11:21:27]Method is POST - this is cgi request [11:21:27]url: /json_proto [11:21:27]query_string will be loaded in cgi processing [11:21:27]execute_cgi json_proto POST (null) [11:21:27]execute_cgi path=json_proto method=POST [11:21:27]POST find Content-Length [11:21:27]Host: 172.17.51.67:8080 [11:21:27]Content-Length: 677 [11:21:27]Content-Type: application/json [11:21:27] [11:21:27]POST finish read [11:21:27]Found Content-Length = 677 [11:21:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:27]execute_script... [11:21:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:27]POST & json_proto [11:21:27]process_json_proto [11:21:27]json parsed OK: [11:21:27]protocol is kg_v1.0 [11:21:27]action value=close_receipt [11:21:27]process_action close_receipt [11:21:27]cmd_close_receipt [11:21:27]MH_GetDate [11:21:27]Write to MH i2c: F0 00 00 66 00 55 [11:21:27]Write i2c OK [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: F0 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: F0 09 00 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: F0 09 00 66 00 00 37 DC 18 67 1E EF FA 64 5B [11:21:27]GetLastDocTimeStamp 1729681716 [11:21:27]current date 1729682487 [11:21:27]FM_GetShiftState [11:21:27]SAM_PROTO_GetShiftState [11:21:27]wFMCommunicate request_size=4 [11:21:27]MH_SAM_APDU [11:21:27]CAPDU: 80 13 01 00 [11:21:27]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [11:21:27]Write i2c OK [11:21:27]MH_I2C_Read... [11:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:27]Read from MH i2c: E2 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: E2 0E 00 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 1D [11:21:27]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:21:27]wFMCommunicate OK [11:21:27]SAM_PROTO_GetShiftState done [11:21:27]FM_GetShiftState done [11:21:27]opened in 1729642861 [11:21:27]opened+sec_in_day 1729729261 [11:21:27]quantity*price = 30038 [11:21:27]sum+1 = 30039 [11:21:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 68 23.10.2024 11:21 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103656 ФПД: 49129568711007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112127&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103656&fm=49129568711007&tin=02508201610067®Number=0000000000091754&sum=30000 [11:21:28]StoreToDocumentArchive [11:21:28]shift 582 fd 103656 [11:21:28]save to /storage/0582/doc_00103656 [11:21:28]save last doc name /storage/0582/doc_00103656 to /storage/kkm_last_doc_name [11:21:28]save OK [11:21:28]Clear old archive folders... [11:21:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:28]tlvbuf is 00CCA110 [11:21:28]SAM_PROTO_ClearQueue [11:21:28]wFMCommunicate request_size=4 [11:21:28]MH_SAM_APDU [11:21:28]CAPDU: 80 09 00 00 [11:21:28]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:28]Read from MH i2c: E2 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 03 00 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [11:21:28]RAPDU: 90 00 [11:21:28]wFMCommunicate OK [11:21:28]SAM_PROTO_ClearQueue done [11:21:28]KKMCreateOFDPacket [11:21:28]OFDProtocolAddRootSTLVToBuf [11:21:28]FM_MakeSignedData [11:21:28]FM_MakeSignedData [11:21:28]SAM_PROTO_SignData [11:21:28]wFMCommunicate request_size=4 [11:21:28]MH_SAM_APDU [11:21:28]CAPDU: 80 0D 01 02 [11:21:28]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:28]Read from MH i2c: E2 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 03 00 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [11:21:28]RAPDU: 90 00 [11:21:28]wFMCommunicate OK [11:21:28]wFMCommunicate request_size=255 [11:21:28]MH_SAM_APDU [11:21:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 37 DC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E8 94 01 00 35 04 06 00 2C [11:21:28]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 37 DC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E8 94 01 00 35 04 06 00 2C 00 00 32 [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:28]Read from MH i2c: E2 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 03 00 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:21:28]RAPDU: 90 00 [11:21:28]wFMCommunicate OK [11:21:28]wFMCommunicate request_size=10 [11:21:28]MH_SAM_APDU [11:21:28]CAPDU: 80 0D 02 02 05 AE DE 7D B1 5F [11:21:28]Write to MH i2c: E2 0D 00 77 00 80 0D 02 02 05 00 AE DE 7D B1 5F 00 00 14 [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:28]Read from MH i2c: E2 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 03 00 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:21:28]RAPDU: 90 00 [11:21:28]wFMCommunicate OK [11:21:28]wFMCommunicate request_size=4 [11:21:28]MH_SAM_APDU [11:21:28]CAPDU: 80 0D 03 02 [11:21:28]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:28]Read from MH i2c: E2 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 0B 00 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 0B 00 78 00 00 2A 0E 00 7F BC 9C 84 56 90 00 DD [11:21:28]RAPDU: 2A 0E 00 7F BC 9C 84 56 90 00 [11:21:28]wFMCommunicate OK [11:21:28]SAM_PROTO_SignData done [11:21:28]FM_MakeSignedData done [11:21:28]CreateOFDProtocolMessage [11:21:28]wFMCommunicate request_size=4 [11:21:28]MH_SAM_APDU [11:21:28]CAPDU: 80 11 00 00 [11:21:28]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:29]Read from MH i2c: E2 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 17 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 40 [11:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:21:29]wFMCommunicate OK [11:21:29]CreateOFDProtocolMessage done [11:21:29]OFDSenderStorePacket 103656 [11:21:29]StoreOFDPacket docnum=103656 [11:21:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 92 E0 07 01 6A 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 37 DC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E8 94 01 00 35 04 06 00 2C AE DE 7D B1 5F 2A 0E 00 7F BC 9C 84 56 [11:21:29]CheckFolder [11:21:29]dirname=/storage/ofd_packets [11:21:29]CheckFolder done [11:21:29]ProducePacketName [11:21:29]name=ofd_packets/00103656 [11:21:29]NVStorageSaveData ofd_packets/00103656 [11:21:29]File name is /storage/ofd_packets/00103656 [11:21:29]Write 301 bytes [11:21:29]NVStorageSaveData done [11:21:29]OFDSenderStorePacket done [11:21:29]KKMCreateOFDPacket done [11:21:29]NVStorageSaveData kkm_last_timestamp [11:21:29]File name is /storage/kkm_last_timestamp [11:21:29]Write 4 bytes [11:21:29]NVStorageSaveData done [11:21:29]ExternCall_PrintAddStr [11:21:29]wPrintStart [11:21:29]Write to MH i2c: 01 00 00 7A 00 7A [11:21:29]Write i2c OK [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: 01 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: 01 07 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [11:21:29]RasterBufferAndPrint [11:21:29]line Счет N : (1)317872 [11:21:29]line ИНН: 02508201610067 [11:21:29]line Контрольно-Кассовый Чек [11:21:29]line ПРОДАЖА [11:21:29]line ТРК (МРК, ГНК) : 53 [11:21:29]line Товар: 2710124130 [11:21:29]line Аи-92-К-4 [11:21:29]line 4.490 * 66.90 [11:21:29]line = 300.38 [11:21:29]line НДС 12% НСП 1% [11:21:29]line > о реализуемом товаре [11:21:29]line ОКРУГЛЕНИЕ: -0.38 [11:21:29]line ИТОГО: 300.00 [11:21:29]line Внесено: 300.00 [11:21:29]line СДАЧА: 0.00 [11:21:29]line НСП 1% : 2.66 [11:21:29]line НДС 12% : 31.90 [11:21:29]line Наличными: 300.00 [11:21:29]line Безнал.: 0.00 [11:21:29]line Место: АЗС № 145 "Партнер Нефть" [11:21:29]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [11:21:29]line СНО: Общий режим [11:21:29]line Чек 68 23.10.2024 11:21 [11:21:29]line Смена: 582 ФФД: 1.0 [11:21:29]line ЗНМ: 0300000095 [11:21:29]line РНМ: 0000000000091754 [11:21:29]line Версия ККМ: 001 [11:21:29]line ФМ: 0000000000871811 [11:21:29]line ФД: 103656 [11:21:29]line ФПД: 49129568711007 [11:21:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112127&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103656&fm=49129568711007&tin=02508201610067®Number=0000000000091754&sum=30000 [11:21:29]written 0, free lines is 4095 [11:21:29]OFD Sender: Processing packet 103656 [packets to send 498, broken 497] [11:21:29]ProducePacketName [11:21:29]name=ofd_packets/00103656 [11:21:29]OFD Sender: To server: pG, [11:21:29]CommunicateWithHost lk.salyk.kg:30040 [11:21:29]ConnectInit lk.salyk.kg [11:21:29]Write to MH i2c: 01 00 00 A4 00 A4 [11:21:29]Write i2c OK [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: 01 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: 01 07 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 D2 0C 89 [11:21:29]RasterBufferAndPrint [11:21:29]line [11:21:29]line [11:21:29]line [11:21:29]line [11:21:29]line [11:21:29]written 0, free lines is 3288 [11:21:29]MH_Cut [11:21:29]Write to MH i2c: D1 01 00 AB 00 01 7D [11:21:29]Write i2c OK [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: D1 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: D1 01 00 [11:21:29]MH_I2C_Read... [11:21:29]Read from MH i2c: D1 01 00 AB 00 00 7C [11:21:29]Write to MH i2c: 01 00 00 AC 00 AC [11:21:29]Write i2c OK [11:21:29]MH_I2C_Read... [11:21:30]*** Cut start [11:21:30]*** Partial cut [11:21:30]*** CUTSNS_PIN = 1 [11:21:30]*** CUTSNS_PIN = 0 [11:21:30]Connected sock=10 [11:21: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 31 31 0F 01 00 00 92 E0 07 01 6A 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 37 DC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E8 94 01 00 35 04 06 00 2C AE DE 7D B1 5F 2A 0E 00 7F BC 9C 84 56 [11:21:30]*** Brake cut motor [11:21:30]Read from MH i2c: 01 [11:21:30]MH_I2C_Read... [11:21:30]*** Stop cut motor [11:21:30]*** Cut end [11:21:30]Read from MH i2c: 01 07 00 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [11:21:30]process_action close_receipt done [11:21:30]requested_data is exist [11:21:30]produce_requested_data [11:21:30]requested_item fm.sn is exist - process it [11:21:30]wFMCommunicate request_size=4 [11:21:30]MH_SAM_APDU [11:21:30]CAPDU: 80 11 00 00 [11:21:30]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [11:21:30]Write i2c OK [11:21:30]MH_I2C_Read... [11:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:30]Read from MH i2c: E2 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: E2 17 00 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 74 [11:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:21:30]wFMCommunicate OK [11:21:30]requested_item fd.num is exist - process it [11:21:30]SAM_PROTO_GetFieldsCounters [11:21:30]wFMCommunicate request_size=4 [11:21:30]MH_SAM_APDU [11:21:30]CAPDU: 80 13 00 00 [11:21:30]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [11:21:30]Write i2c OK [11:21:30]MH_I2C_Read... [11:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:31]Read from MH i2c: E2 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: E2 62 00 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: E2 62 00 AE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E8 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [11:21:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E8 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:31]wFMCommunicate OK [11:21:31]SAM_PROTO_GetFieldsCounters done [11:21:31]requested_item shift.num is exist - process it [11:21:31]requested_item shift.opened is exist - process it [11:21:31]req_shift_opened [11:21:31]FM_GetShiftState [11:21:31]SAM_PROTO_GetShiftState [11:21:31]wFMCommunicate request_size=4 [11:21:31]MH_SAM_APDU [11:21:31]CAPDU: 80 13 01 00 [11:21:31]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [11:21:31]Write i2c OK [11:21:31]MH_I2C_Read... [11:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:31]Read from MH i2c: E2 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: E2 0E 00 [11:21:31]MH_I2C_Read... [11:21:31]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 65 [11:21:31]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:21:31]wFMCommunicate OK [11:21:31]SAM_PROTO_GetShiftState done [11:21:31]FM_GetShiftState done [11:21:31]req_shift_opened done [11:21:31]requested_item shift.open_date is exist - process it [11:21:31]req_shift_open_date [11:21:31]req_shift_open_date done [11:21:31]produce_requested_data done [11:21:31]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103656,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [11:21:31]process_action_free close_receipt [11:21:31]json_value_free [11:21:31]json_value_free done [11:21:31]process_json_proto returns [11:21:31]Send response to host [11:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103656,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [11:21:31]free response buf [11:21:31]execute_script done [11:21:31]execute_script returns [11:21:31]free content buf [11:21:31]Sock 7.Close socket [11:21:31]Sock 7.Thread stoped [11:21:35]recv_with_timeout no data received [11:21:35]CommunicateWithHost answer receiving error [11:21:35]CommunicateWithHost err = -3 [11:21:35]OFD Sender: Server communicate error [11:21:40]OFD Sender: Processing packet 103656 [packets to send 498, broken 497] [11:21:40]ProducePacketName [11:21:40]name=ofd_packets/00103656 [11:21:40]OFD Sender: To server: pG, [11:21:40]CommunicateWithHost lk.salyk.kg:30040 [11:21:40]ConnectInit lk.salyk.kg [11:21:41]Connected sock=7 [11:21: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 31 31 0F 01 00 00 92 E0 07 01 6A 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 37 DC 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E8 94 01 00 35 04 06 00 2C AE DE 7D B1 5F 2A 0E 00 7F BC 9C 84 56 [11:21: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 31 31 4F 00 00 00 82 74 47 00 AF 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 31 31 10 04 04 00 E8 94 01 00 F4 03 04 00 59 83 18 67 B6 04 01 00 00 11 6E A2 39 AB E9 67 C7 [11:21:41]CommunicateWithHost err = 0 [11:21:41]CheckOFDResponse [11:21:41]1017 (14) - 77093643461234 [11:21:41]1041 (16) - 0000000000871811 [11:21:41]1040 (4) - 103656 [11:21:41]1012 (4) - 23.10.2024 05:02 [11:21:41]1206 (1) - 0 [11:21:41]OFD Sender: Remove packet 103656 [11:21:41]ProducePacketName [11:21:41]name=ofd_packets/00103656 [11:21:41]NVStorageDeleteData [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [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:26]recv_with_timeout no data received [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]recv_with_timeout no data received [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:32]recv_with_timeout no data received [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:08]recv_with_timeout no data received [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:44]accept exits with 9 [11:29:44]New connection [11:29:44]New thread 3066821988 created [11:29:44]Thread 3066678628 joined [11:29:44]Waiting for new connection... [11:29:44] Sock 9.Parse request [11:29:44]Sock 9.Check first char [11:29:44]Sock 9.First char is OK [11:29:44]request: POST /json_proto HTTP/1.0 [11:29:44]Method: POST [11:29:44]URL: /json_proto [11:29:44]Method is POST - this is cgi request [11:29:44]url: /json_proto [11:29:44]query_string will be loaded in cgi processing [11:29:44]execute_cgi json_proto POST (null) [11:29:44]execute_cgi path=json_proto method=POST [11:29:44]POST find Content-Length [11:29:44]Host: 172.17.51.67:8080 [11:29:44]Content-Length: 817 [11:29:44]Content-Type: application/json [11:29:44] [11:29:44]POST finish read [11:29:44]Found Content-Length = 817 [11:29:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:44]execute_script... [11:29:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:44]POST & json_proto [11:29:44]process_json_proto [11:29:44]json parsed OK: [11:29:44]protocol is kg_v1.0 [11:29:44]action value=close_receipt [11:29:44]process_action close_receipt [11:29:44]cmd_close_receipt [11:29:44]MH_GetDate [11:29:44]Write to MH i2c: F0 00 00 B0 00 9F [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: F0 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: F0 09 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: F0 09 00 B0 00 00 28 DE 18 67 1E EF FA 64 98 [11:29:44]GetLastDocTimeStamp 1729682487 [11:29:44]current date 1729682984 [11:29:44]FM_GetShiftState [11:29:44]SAM_PROTO_GetShiftState [11:29:44]wFMCommunicate request_size=4 [11:29:44]MH_SAM_APDU [11:29:44]CAPDU: 80 13 01 00 [11:29:44]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:44]Read from MH i2c: E2 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 0E 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 67 [11:29:44]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:29:44]wFMCommunicate OK [11:29:44]SAM_PROTO_GetShiftState done [11:29:44]FM_GetShiftState done [11:29:44]opened in 1729642861 [11:29:44]opened+sec_in_day 1729729261 [11:29:44]quantity*price = 70044 [11:29:44]sum+1 = 70045 [11:29:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 69 23.10.2024 11:29 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871811 ФД: 103657 ФПД: 177956299604100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112944&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103657&fm=177956299604100&tin=02508201610067®Number=0000000000091754&sum=70044 [11:29:45]StoreToDocumentArchive [11:29:45]shift 582 fd 103657 [11:29:45]save to /storage/0582/doc_00103657 [11:29:45]save last doc name /storage/0582/doc_00103657 to /storage/kkm_last_doc_name [11:29:45]save OK [11:29:45]Clear old archive folders... [11:29:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:45]tlvbuf is 00C62250 [11:29:45]SAM_PROTO_ClearQueue [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 09 00 00 [11:29:45]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [11:29:45]RAPDU: 90 00 [11:29:45]wFMCommunicate OK [11:29:45]SAM_PROTO_ClearQueue done [11:29:45]KKMCreateOFDPacket [11:29:45]OFDProtocolAddRootSTLVToBuf [11:29:45]FM_MakeSignedData [11:29:45]FM_MakeSignedData [11:29:45]SAM_PROTO_SignData [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 0D 01 02 [11:29:45]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [11:29:45]RAPDU: 90 00 [11:29:45]wFMCommunicate OK [11:29:45]wFMCommunicate request_size=255 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 28 DE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E9 94 01 00 35 04 06 00 A1 [11:29:45]Write to MH i2c: E2 02 01 C0 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 28 DE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E9 94 01 00 35 04 06 00 A1 00 00 5A [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [11:29:45]RAPDU: 90 00 [11:29:45]wFMCommunicate OK [11:29:45]wFMCommunicate request_size=10 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 0D 02 02 05 D9 AE 06 00 84 [11:29:45]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 D9 AE 06 00 84 00 00 56 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [11:29:45]RAPDU: 90 00 [11:29:45]wFMCommunicate OK [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 0D 03 02 [11:29:45]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 0B 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 0B 00 C2 00 00 1D DF A9 BD 93 FF 9A E8 90 00 B4 [11:29:45]RAPDU: 1D DF A9 BD 93 FF 9A E8 90 00 [11:29:45]wFMCommunicate OK [11:29:45]SAM_PROTO_SignData done [11:29:45]FM_MakeSignedData done [11:29:45]CreateOFDProtocolMessage [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 11 00 00 [11:29:45]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 17 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 8A [11:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:29:45]wFMCommunicate OK [11:29:45]CreateOFDProtocolMessage done [11:29:45]OFDSenderStorePacket 103657 [11:29:45]StoreOFDPacket docnum=103657 [11:29:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 4E 03 07 01 F3 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 28 DE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E9 94 01 00 35 04 06 00 A1 D9 AE 06 00 84 1D DF A9 BD 93 FF 9A E8 [11:29:45]CheckFolder [11:29:45]dirname=/storage/ofd_packets [11:29:45]CheckFolder done [11:29:45]ProducePacketName [11:29:45]name=ofd_packets/00103657 [11:29:45]NVStorageSaveData ofd_packets/00103657 [11:29:45]File name is /storage/ofd_packets/00103657 [11:29:45]Write 301 bytes [11:29:45]NVStorageSaveData done [11:29:45]OFDSenderStorePacket done [11:29:45]KKMCreateOFDPacket done [11:29:45]NVStorageSaveData kkm_last_timestamp [11:29:45]File name is /storage/kkm_last_timestamp [11:29:45]Write 4 bytes [11:29:45]NVStorageSaveData done [11:29:45]ExternCall_PrintAddStr [11:29:45]wPrintStart [11:29:45]Write to MH i2c: 01 00 00 C4 00 C4 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: 01 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: 01 07 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [11:29:45]RasterBufferAndPrint [11:29:45]line Счет N : (1)317873 [11:29:45]line ИНН: 02508201610067 [11:29:45]line Контрольно-Кассовый Чек [11:29:45]line ПРОДАЖА [11:29:45]line ТРК (МРК, ГНК) : 53 [11:29:45]line Товар: 2710124130 [11:29:45]line Аи-92-К-4 [11:29:45]line 10.470 * 66.90 [11:29:45]line = 700.44 [11:29:45]line НДС 12% НСП 1% [11:29:45]line > о реализуемом товаре [11:29:45]line ИТОГО: 700.44 [11:29:45]line НСП 1% : 6.20 [11:29:45]line НДС 12% : 74.38 [11:29:45]line Наличными: 0.00 [11:29:45]line Безнал.: 700.44 [11:29:45]line Место: АЗС № 145 "Партнер Нефть" [11:29:45]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [11:29:45]line СНО: Общий режим [11:29:45]line Чек 69 23.10.2024 11:29 [11:29:45]line Смена: 582 ФФД: 1.0 [11:29:45]line ЗНМ: 0300000095 [11:29:45]line РНМ: 0000000000091754 [11:29:45]line Версия ККМ: 001 [11:29:45]line Платежная система: Бакай Банк [11:29:45]line ФМ: 0000000000871811 [11:29:45]line ФД: 103657 [11:29:45]line ФПД: 177956299604100 [11:29:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112944&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103657&fm=177956299604100&tin=02508201610067®Number=0000000000091754&sum=70044 [11:29:46]OFD Sender: Processing packet 103657 [packets to send 498, broken 497] [11:29:46]ProducePacketName [11:29:46]name=ofd_packets/00103657 [11:29:46]OFD Sender: To server: pG, [11:29:46]CommunicateWithHost lk.salyk.kg:30040 [11:29:46]ConnectInit lk.salyk.kg [11:29:46]written 0, free lines is 4095 [11:29:46]Write to MH i2c: 01 00 00 ED 00 ED [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: 01 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: 01 07 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 D8 0C D8 [11:29:46]RasterBufferAndPrint [11:29:46]line [11:29:46]line [11:29:46]line [11:29:46]line [11:29:46]line [11:29:46]written 0, free lines is 3294 [11:29:46]MH_Cut [11:29:46]Write to MH i2c: D1 01 00 F4 00 01 C6 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: D1 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: D1 01 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: D1 01 00 F4 00 00 C5 [11:29:46]Write to MH i2c: 01 00 00 F5 00 F5 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]Connected sock=11 [11:29: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 31 31 0F 01 00 00 4E 03 07 01 F3 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 28 DE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E9 94 01 00 35 04 06 00 A1 D9 AE 06 00 84 1D DF A9 BD 93 FF 9A E8 [11:29:47]*** Cut start [11:29:47]*** Partial cut [11:29:47]*** CUTSNS_PIN = 1 [11:29:47]*** CUTSNS_PIN = 0 [11:29:47]*** Brake cut motor [11:29:47]Read from MH i2c: 01 [11:29:47]MH_I2C_Read... [11:29:47]*** Stop cut motor [11:29:47]*** Cut end [11:29:47]Read from MH i2c: 01 07 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [11:29:47]process_action close_receipt done [11:29:47]requested_data is exist [11:29:47]produce_requested_data [11:29:47]requested_item fm.sn is exist - process it [11:29:47]wFMCommunicate request_size=4 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 11 00 00 [11:29:47]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 17 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 BD [11:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:29:48]wFMCommunicate OK [11:29:48]requested_item fd.num is exist - process it [11:29:48]SAM_PROTO_GetFieldsCounters [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 13 00 00 [11:29:48]Write to MH i2c: E2 08 00 F7 00 80 13 00 00 00 00 00 00 73 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 62 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 62 00 F7 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E9 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [11:29: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 E9 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:48]wFMCommunicate OK [11:29:48]SAM_PROTO_GetFieldsCounters done [11:29:48]requested_item shift.num is exist - process it [11:29:48]requested_item shift.opened is exist - process it [11:29:48]req_shift_opened [11:29:48]FM_GetShiftState [11:29:48]SAM_PROTO_GetShiftState [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 13 01 00 [11:29:48]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 0E 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 AE [11:29:48]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:29:48]wFMCommunicate OK [11:29:48]SAM_PROTO_GetShiftState done [11:29:48]FM_GetShiftState done [11:29:48]req_shift_opened done [11:29:48]requested_item shift.open_date is exist - process it [11:29:48]req_shift_open_date [11:29:48]req_shift_open_date done [11:29:48]produce_requested_data done [11:29:48]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103657,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [11:29:48]process_action_free close_receipt [11:29:48]json_value_free [11:29:48]json_value_free done [11:29:48]process_json_proto returns [11:29:48]Send response to host [11:29:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103657,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [11:29:48]free response buf [11:29:48]execute_script done [11:29:48]execute_script returns [11:29:48]free content buf [11:29:48]Sock 9.Close socket [11:29:48]Sock 9.Thread stoped [11:29:51]recv_with_timeout no data received [11:29:51]CommunicateWithHost answer receiving error [11:29:51]CommunicateWithHost err = -3 [11:29:51]OFD Sender: Server communicate error [11:29:53]recv_with_timeout no data received [11:29:57]OFD Sender: Processing packet 103657 [packets to send 498, broken 497] [11:29:57]ProducePacketName [11:29:57]name=ofd_packets/00103657 [11:29:57]OFD Sender: To server: pG, [11:29:57]CommunicateWithHost lk.salyk.kg:30040 [11:29:57]ConnectInit lk.salyk.kg [11:32:14]ConnectInit Can't connect to host [11:32:14]CommunicateWithHost connect error [11:32:14]CommunicateWithHost err = -1 [11:32:14]OFD Sender: Server communicate error [11:32:19]OFD Sender: Processing packet 103657 [packets to send 498, broken 497] [11:32:19]ProducePacketName [11:32:19]name=ofd_packets/00103657 [11:32:19]OFD Sender: To server: pG, [11:32:19]CommunicateWithHost lk.salyk.kg:30040 [11:32:19]ConnectInit lk.salyk.kg [11:32:20]Connected sock=9 [11:32: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 31 31 0F 01 00 00 4E 03 07 01 F3 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 28 DE 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 E9 94 01 00 35 04 06 00 A1 D9 AE 06 00 84 1D DF A9 BD 93 FF 9A E8 [11:32: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 31 31 4F 00 00 00 5D 4C 47 00 0D 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 31 31 10 04 04 00 E9 94 01 00 F4 03 04 00 D9 85 18 67 B6 04 01 00 00 4F BF 0F FE E6 31 5B 26 [11:32:21]CommunicateWithHost err = 0 [11:32:21]CheckOFDResponse [11:32:21]1017 (14) - 77093643461234 [11:32:21]1041 (16) - 0000000000871811 [11:32:21]1040 (4) - 103657 [11:32:21]1012 (4) - 23.10.2024 05:12 [11:32:21]1206 (1) - 0 [11:32:21]OFD Sender: Remove packet 103657 [11:32:21]ProducePacketName [11:32:21]name=ofd_packets/00103657 [11:32:21]NVStorageDeleteData [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:55]recv_with_timeout no data received [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:09]accept exits with 7 [11:34:09]New connection [11:34:09]New thread 3066678628 created [11:34:09]Thread 3066821988 joined [11:34:09]Waiting for new connection... [11:34:09] Sock 7.Parse request [11:34:09]Sock 7.Check first char [11:34:09]Sock 7.First char is OK [11:34:09]request: POST /json_proto HTTP/1.0 [11:34:09]Method: POST [11:34:09]URL: /json_proto [11:34:09]Method is POST - this is cgi request [11:34:09]url: /json_proto [11:34:09]query_string will be loaded in cgi processing [11:34:09]execute_cgi json_proto POST (null) [11:34:09]execute_cgi path=json_proto method=POST [11:34:09]POST find Content-Length [11:34:09]Host: 172.17.51.67:8080 [11:34:09]Content-Length: 843 [11:34:09]Content-Type: application/json [11:34:09] [11:34:09]POST finish read [11:34:09]Found Content-Length = 843 [11:34:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:09]execute_script... [11:34:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:09]POST & json_proto [11:34:09]process_json_proto [11:34:09]json parsed OK: [11:34:09]protocol is kg_v1.0 [11:34:09]action value=close_receipt [11:34:09]process_action close_receipt [11:34:09]cmd_close_receipt [11:34:09]MH_GetDate [11:34:09]Write to MH i2c: F0 00 00 F9 00 E8 [11:34:09]Write i2c OK [11:34:09]MH_I2C_Read... [11:34:09]Read from MH i2c: F0 [11:34:09]MH_I2C_Read... [11:34:09]Read from MH i2c: F0 09 00 [11:34:09]MH_I2C_Read... [11:34:09]Read from MH i2c: F0 09 00 F9 00 00 32 DF 18 67 1E EF FA 64 EC [11:34:09]GetLastDocTimeStamp 1729682984 [11:34:09]current date 1729683250 [11:34:09]FM_GetShiftState [11:34:09]SAM_PROTO_GetShiftState [11:34:09]wFMCommunicate request_size=4 [11:34:09]MH_SAM_APDU [11:34:09]CAPDU: 80 13 01 00 [11:34:09]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [11:34:09]Write i2c OK [11:34:09]MH_I2C_Read... [11:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:09]Read from MH i2c: E2 [11:34:09]MH_I2C_Read... [11:34:09]Read from MH i2c: E2 0E 00 [11:34:09]MH_I2C_Read... [11:34:09]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B0 [11:34:09]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:34:09]wFMCommunicate OK [11:34:09]SAM_PROTO_GetShiftState done [11:34:09]FM_GetShiftState done [11:34:09]opened in 1729642861 [11:34:09]opened+sec_in_day 1729729261 [11:34:09]quantity*price = 100015 [11:34:09]sum+1 = 100017 [11:34:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 70 23.10.2024 11:34 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103658 ФПД: 36589896078434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113410&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103658&fm=36589896078434&tin=02508201610067®Number=0000000000091754&sum=100016 [11:34:11]StoreToDocumentArchive [11:34:11]shift 582 fd 103658 [11:34:11]save to /storage/0582/doc_00103658 [11:34:11]save last doc name /storage/0582/doc_00103658 to /storage/kkm_last_doc_name [11:34:11]save OK [11:34:11]Clear old archive folders... [11:34:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:11]tlvbuf is 00C620E0 [11:34:11]SAM_PROTO_ClearQueue [11:34:11]wFMCommunicate request_size=4 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 09 00 00 [11:34:11]Write to MH i2c: E2 08 00 07 01 80 09 00 00 00 00 00 00 7A [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [11:34:11]RAPDU: 90 00 [11:34:11]wFMCommunicate OK [11:34:11]SAM_PROTO_ClearQueue done [11:34:11]KKMCreateOFDPacket [11:34:11]OFDProtocolAddRootSTLVToBuf [11:34:11]FM_MakeSignedData [11:34:11]FM_MakeSignedData [11:34:11]SAM_PROTO_SignData [11:34:11]wFMCommunicate request_size=4 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 0D 01 02 [11:34:11]Write to MH i2c: E2 08 00 08 01 80 0D 01 02 00 00 00 00 82 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [11:34:11]RAPDU: 90 00 [11:34:11]wFMCommunicate OK [11:34:11]wFMCommunicate request_size=255 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 32 DF 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EA 94 01 00 35 04 06 00 21 [11:34:11]Write to MH i2c: E2 02 01 09 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 32 DF 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EA 94 01 00 35 04 06 00 21 00 00 E3 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [11:34:11]RAPDU: 90 00 [11:34:11]wFMCommunicate OK [11:34:11]wFMCommunicate request_size=10 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 0D 02 02 05 47 3F C2 14 62 [11:34:11]Write to MH i2c: E2 0D 00 0A 01 80 0D 02 02 05 00 47 3F C2 14 62 00 00 4D [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [11:34:11]RAPDU: 90 00 [11:34:11]wFMCommunicate OK [11:34:11]wFMCommunicate request_size=4 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 0D 03 02 [11:34:11]Write to MH i2c: E2 08 00 0B 01 80 0D 03 02 00 00 00 00 87 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]recv_with_timeout no data received [11:34:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 0B 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 0B 00 0B 01 00 C0 F5 8F 96 32 45 5C 83 90 00 B8 [11:34:11]RAPDU: C0 F5 8F 96 32 45 5C 83 90 00 [11:34:11]wFMCommunicate OK [11:34:11]SAM_PROTO_SignData done [11:34:11]FM_MakeSignedData done [11:34:11]CreateOFDProtocolMessage [11:34:11]wFMCommunicate request_size=4 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 11 00 00 [11:34:11]Write to MH i2c: E2 08 00 0C 01 80 11 00 00 00 00 00 00 87 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 17 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 17 00 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D4 [11:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:34:11]wFMCommunicate OK [11:34:11]CreateOFDProtocolMessage done [11:34:11]OFDSenderStorePacket 103658 [11:34:11]StoreOFDPacket docnum=103658 [11:34:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 2D 05 07 01 1D 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 32 DF 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EA 94 01 00 35 04 06 00 21 47 3F C2 14 62 C0 F5 8F 96 32 45 5C 83 [11:34:11]CheckFolder [11:34:11]dirname=/storage/ofd_packets [11:34:11]CheckFolder done [11:34:11]ProducePacketName [11:34:11]name=ofd_packets/00103658 [11:34:11]NVStorageSaveData ofd_packets/00103658 [11:34:11]File name is /storage/ofd_packets/00103658 [11:34:11]Write 301 bytes [11:34:11]NVStorageSaveData done [11:34:11]OFDSenderStorePacket done [11:34:11]KKMCreateOFDPacket done [11:34:11]NVStorageSaveData kkm_last_timestamp [11:34:11]File name is /storage/kkm_last_timestamp [11:34:11]Write 4 bytes [11:34:11]NVStorageSaveData done [11:34:11]ExternCall_PrintAddStr [11:34:11]wPrintStart [11:34:11]Write to MH i2c: 01 00 00 0D 01 0E [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: 01 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: 01 07 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [11:34:11]RasterBufferAndPrint [11:34:11]line Счет N : (1)317874 [11:34:11]line ИНН: 02508201610067 [11:34:11]line Контрольно-Кассовый Чек [11:34:11]line ПРОДАЖА [11:34:11]line ТРК (МРК, ГНК) : 33 [11:34:11]line Товар: 2710124130 [11:34:11]line Аи-92-К-4 [11:34:11]line 14.950 * 66.90 [11:34:11]line = 1000.16 [11:34:11]line НДС 12% НСП 1% [11:34:11]line > о реализуемом товаре [11:34:11]line ИТОГО: 1000.16 [11:34:11]line НСП 1% : 8.85 [11:34:11]line НДС 12% : 106.21 [11:34:11]line Наличными: 0.00 [11:34:11]line Безнал.: 1000.16 [11:34:11]line Место: АЗС № 145 "Партнер Нефть" [11:34:11]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [11:34:11]line СНО: Общий режим [11:34:11]line Чек 70 23.10.2024 11:34 [11:34:11]line Смена: 582 ФФД: 1.0 [11:34:11]line ЗНМ: 0300000095 [11:34:11]line РНМ: 0000000000091754 [11:34:11]line Версия ККМ: 001 [11:34:11]line Платежная система: АКБ Кыргызстан [11:34:11]line ФМ: 0000000000871811 [11:34:11]line ФД: 103658 [11:34:11]line ФПД: 36589896078434 [11:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T113410&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103658&fm=36589896078434&tin=02508201610067®Number=0000000000091754&sum=100016 [11:34:11]written 0, free lines is 4095 [11:34:11]OFD Sender: Processing packet 103658 [packets to send 498, broken 497] [11:34:11]ProducePacketName [11:34:11]name=ofd_packets/00103658 [11:34:11]OFD Sender: To server: pG, [11:34:11]CommunicateWithHost lk.salyk.kg:30040 [11:34:11]ConnectInit lk.salyk.kg [11:34:12]Write to MH i2c: 01 00 00 36 01 37 [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: 01 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: 01 07 00 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: 01 07 00 36 01 00 00 00 00 00 DE 0C 28 [11:34:12]RasterBufferAndPrint [11:34:12]line [11:34:12]line [11:34:12]line [11:34:12]line [11:34:12]line [11:34:12]written 0, free lines is 3300 [11:34:12]MH_Cut [11:34:12]Write to MH i2c: D1 01 00 3D 01 01 10 [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: D1 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: D1 01 00 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: D1 01 00 3D 01 00 0F [11:34:12]Write to MH i2c: 01 00 00 3E 01 3F [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]*** Cut start [11:34:12]*** Partial cut [11:34:12]*** CUTSNS_PIN = 1 [11:34:12]*** CUTSNS_PIN = 0 [11:34:13]*** Brake cut motor [11:34:13]Read from MH i2c: 01 [11:34:13]MH_I2C_Read... [11:34:13]*** Stop cut motor [11:34:13]*** Cut end [11:34:13]Read from MH i2c: 01 07 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: 01 07 00 3E 01 00 00 00 00 00 FF 0F 54 [11:34:13]process_action close_receipt done [11:34:13]requested_data is exist [11:34:13]produce_requested_data [11:34:13]requested_item fm.sn is exist - process it [11:34:13]wFMCommunicate request_size=4 [11:34:13]MH_SAM_APDU [11:34:13]CAPDU: 80 11 00 00 [11:34:13]Write to MH i2c: E2 08 00 3F 01 80 11 00 00 00 00 00 00 BA [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:13]Read from MH i2c: E2 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 17 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 17 00 3F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 07 [11:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:34:13]wFMCommunicate OK [11:34:13]requested_item fd.num is exist - process it [11:34:13]SAM_PROTO_GetFieldsCounters [11:34:13]wFMCommunicate request_size=4 [11:34:13]MH_SAM_APDU [11:34:13]CAPDU: 80 13 00 00 [11:34:13]Write to MH i2c: E2 08 00 40 01 80 13 00 00 00 00 00 00 BD [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:13]Read from MH i2c: E2 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 62 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 62 00 40 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 EA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [11:34:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 EA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:13]wFMCommunicate OK [11:34:13]SAM_PROTO_GetFieldsCounters done [11:34:13]requested_item shift.num is exist - process it [11:34:13]requested_item shift.opened is exist - process it [11:34:13]req_shift_opened [11:34:13]FM_GetShiftState [11:34:13]SAM_PROTO_GetShiftState [11:34:13]wFMCommunicate request_size=4 [11:34:13]MH_SAM_APDU [11:34:13]CAPDU: 80 13 01 00 [11:34:13]Write to MH i2c: E2 08 00 41 01 80 13 01 00 00 00 00 00 BF [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:13]Read from MH i2c: E2 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 0E 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 0E 00 41 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 F8 [11:34:13]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:34:13]wFMCommunicate OK [11:34:13]SAM_PROTO_GetShiftState done [11:34:13]FM_GetShiftState done [11:34:13]req_shift_opened done [11:34:13]requested_item shift.open_date is exist - process it [11:34:13]req_shift_open_date [11:34:13]req_shift_open_date done [11:34:13]produce_requested_data done [11:34:13]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103658,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [11:34:13]process_action_free close_receipt [11:34:13]json_value_free [11:34:13]json_value_free done [11:34:13]process_json_proto returns [11:34:13]Send response to host [11:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103658,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [11:34:13]free response buf [11:34:13]execute_script done [11:34:13]execute_script returns [11:34:13]free content buf [11:34:13]Sock 7.Close socket [11:34:13]Sock 7.Thread stoped [11:34:15]Connected sock=9 [11: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 31 31 0F 01 00 00 2D 05 07 01 1D 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 32 DF 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EA 94 01 00 35 04 06 00 21 47 3F C2 14 62 C0 F5 8F 96 32 45 5C 83 [11: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 31 31 4F 00 00 00 14 90 47 00 EB A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EA 94 01 00 F4 03 04 00 4B 86 18 67 B6 04 01 00 00 37 FE 47 7D 60 1E 82 7B [11:34:15]CommunicateWithHost err = 0 [11:34:15]CheckOFDResponse [11:34:15]1017 (14) - 77093643461234 [11:34:15]1041 (16) - 0000000000871811 [11:34:15]1040 (4) - 103658 [11:34:15]1012 (4) - 23.10.2024 05:14 [11:34:15]1206 (1) - 0 [11:34:15]OFD Sender: Remove packet 103658 [11:34:15]ProducePacketName [11:34:15]name=ofd_packets/00103658 [11:34:15]NVStorageDeleteData [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:28]recv_with_timeout no data received [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]recv_with_timeout no data received [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:00]recv_with_timeout no data received [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:45]recv_with_timeout no data received [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:08]recv_with_timeout no data received [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:43]recv_with_timeout no data received [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:11]accept exits with 10 [11:41:11]New connection [11:41:11]New thread 3066821988 created [11:41:11]Thread 3066678628 joined [11:41:11]Waiting for new connection... [11:41:11] Sock 10.Parse request [11:41:11]Sock 10.Check first char [11:41:11]Sock 10.First char is OK [11:41:11]request: POST /json_proto HTTP/1.0 [11:41:11]Method: POST [11:41:11]URL: /json_proto [11:41:11]Method is POST - this is cgi request [11:41:11]url: /json_proto [11:41:11]query_string will be loaded in cgi processing [11:41:11]execute_cgi json_proto POST (null) [11:41:11]execute_cgi path=json_proto method=POST [11:41:11]POST find Content-Length [11:41:11]Host: 172.17.51.67:8080 [11:41:11]Content-Length: 677 [11:41:11]Content-Type: application/json [11:41:11] [11:41:11]POST finish read [11:41:11]Found Content-Length = 677 [11:41:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:11]execute_script... [11:41:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:11]POST & json_proto [11:41:11]process_json_proto [11:41:11]json parsed OK: [11:41:11]protocol is kg_v1.0 [11:41:11]action value=close_receipt [11:41:11]process_action close_receipt [11:41:11]cmd_close_receipt [11:41:11]MH_GetDate [11:41:11]Write to MH i2c: F0 00 00 42 01 32 [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: F0 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: F0 09 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: F0 09 00 42 01 00 D8 E0 18 67 1E EF FA 64 DD [11:41:11]GetLastDocTimeStamp 1729683250 [11:41:11]current date 1729683672 [11:41:11]FM_GetShiftState [11:41:11]SAM_PROTO_GetShiftState [11:41:11]wFMCommunicate request_size=4 [11:41:11]MH_SAM_APDU [11:41:11]CAPDU: 80 13 01 00 [11:41:11]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:12]Read from MH i2c: E2 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: E2 0E 00 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 FA [11:41:12]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:41:12]wFMCommunicate OK [11:41:12]SAM_PROTO_GetShiftState done [11:41:12]FM_GetShiftState done [11:41:12]opened in 1729642861 [11:41:12]opened+sec_in_day 1729729261 [11:41:12]quantity*price = 30038 [11:41:12]sum+1 = 30039 [11:41:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 71 23.10.2024 11:41 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103659 ФПД: 81519677068372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114112&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103659&fm=81519677068372&tin=02508201610067®Number=0000000000091754&sum=30000 [11:41:13]StoreToDocumentArchive [11:41:13]shift 582 fd 103659 [11:41:13]save to /storage/0582/doc_00103659 [11:41:13]save last doc name /storage/0582/doc_00103659 to /storage/kkm_last_doc_name [11:41:13]save OK [11:41:13]Clear old archive folders... [11:41:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:13]tlvbuf is 00C62EB0 [11:41:13]SAM_PROTO_ClearQueue [11:41:13]wFMCommunicate request_size=4 [11:41:13]MH_SAM_APDU [11:41:13]CAPDU: 80 09 00 00 [11:41:13]Write to MH i2c: E2 08 00 50 01 80 09 00 00 00 00 00 00 C3 [11:41:13]Write i2c OK [11:41:13]MH_I2C_Read... [11:41:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:13]Read from MH i2c: E2 [11:41:13]MH_I2C_Read... [11:41:13]Read from MH i2c: E2 03 00 [11:41:13]MH_I2C_Read... [11:41:13]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [11:41:13]RAPDU: 90 00 [11:41:13]wFMCommunicate OK [11:41:13]SAM_PROTO_ClearQueue done [11:41:13]KKMCreateOFDPacket [11:41:13]OFDProtocolAddRootSTLVToBuf [11:41:13]FM_MakeSignedData [11:41:13]FM_MakeSignedData [11:41:13]SAM_PROTO_SignData [11:41:13]wFMCommunicate request_size=4 [11:41:13]MH_SAM_APDU [11:41:13]CAPDU: 80 0D 01 02 [11:41:13]Write to MH i2c: E2 08 00 51 01 80 0D 01 02 00 00 00 00 CB [11:41:13]Write i2c OK [11:41:13]MH_I2C_Read... [11:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:13]Read from MH i2c: E2 [11:41:13]MH_I2C_Read... [11:41:13]Read from MH i2c: E2 03 00 [11:41:13]MH_I2C_Read... [11:41:13]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [11:41:13]RAPDU: 90 00 [11:41:13]wFMCommunicate OK [11:41:13]wFMCommunicate request_size=255 [11:41:13]MH_SAM_APDU [11:41: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D8 E0 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EB 94 01 00 35 04 06 00 4A [11:41:13]Write to MH i2c: E2 02 01 52 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D8 E0 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EB 94 01 00 35 04 06 00 4A 00 00 D8 [11:41:13]Write i2c OK [11:41:13]MH_I2C_Read... [11:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:13]Read from MH i2c: E2 [11:41:13]MH_I2C_Read... [11:41:13]Read from MH i2c: E2 03 00 [11:41:13]MH_I2C_Read... [11:41:13]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [11:41:13]RAPDU: 90 00 [11:41:13]wFMCommunicate OK [11:41:13]wFMCommunicate request_size=10 [11:41:13]MH_SAM_APDU [11:41:13]CAPDU: 80 0D 02 02 05 24 47 64 D4 54 [11:41:13]Write to MH i2c: E2 0D 00 53 01 80 0D 02 02 05 00 24 47 64 D4 54 00 00 CF [11:41:13]Write i2c OK [11:41:13]MH_I2C_Read... [11:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:13]Read from MH i2c: E2 [11:41:13]MH_I2C_Read... [11:41:13]Read from MH i2c: E2 03 00 [11:41:13]MH_I2C_Read... [11:41:13]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [11:41:13]RAPDU: 90 00 [11:41:13]wFMCommunicate OK [11:41:13]wFMCommunicate request_size=4 [11:41:13]MH_SAM_APDU [11:41:13]CAPDU: 80 0D 03 02 [11:41:13]Write to MH i2c: E2 08 00 54 01 80 0D 03 02 00 00 00 00 D0 [11:41:13]Write i2c OK [11:41:13]MH_I2C_Read... [11:41:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:13]Read from MH i2c: E2 [11:41:13]MH_I2C_Read... [11:41:13]Read from MH i2c: E2 0B 00 [11:41:13]MH_I2C_Read... [11:41:13]Read from MH i2c: E2 0B 00 54 01 00 51 BB 61 58 F9 1C 8B CA 90 00 00 [11:41:13]RAPDU: 51 BB 61 58 F9 1C 8B CA 90 00 [11:41:13]wFMCommunicate OK [11:41:13]SAM_PROTO_SignData done [11:41:13]FM_MakeSignedData done [11:41:13]CreateOFDProtocolMessage [11:41:13]wFMCommunicate request_size=4 [11:41:13]MH_SAM_APDU [11:41:13]CAPDU: 80 11 00 00 [11:41:13]Write to MH i2c: E2 08 00 55 01 80 11 00 00 00 00 00 00 D0 [11:41:13]Write i2c OK [11:41:13]MH_I2C_Read... [11:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:13]Read from MH i2c: E2 [11:41:13]MH_I2C_Read... [11:41:13]Read from MH i2c: E2 17 00 [11:41:13]MH_I2C_Read... [11:41:13]Read from MH i2c: E2 17 00 55 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 1D [11:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:41:13]wFMCommunicate OK [11:41:13]CreateOFDProtocolMessage done [11:41:13]OFDSenderStorePacket 103659 [11:41:13]StoreOFDPacket docnum=103659 [11:45:55]ConnectInit Can't connect to host [11:45:57]ConnectInit Can't take IP for lk.salyk.kg [11:45:57]CommunicateWithHost connect error [11:45:57]CommunicateWithHost err = -1 [11:45:57]OFD Sender: Server communicate error [11:46:02]OFD Sender: Processing packet 103659 [packets to send 498, broken 497] [11:46:02]ProducePacketName [11:46:02]name=ofd_packets/00103659 [11:46:02]OFD Sender: To server: pG, [11:46:02]CommunicateWithHost lk.salyk.kg:30040 [11:46:02]ConnectInit lk.salyk.kg [11:46:03]Connected sock=10 [11:46: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 31 31 0F 01 00 00 B2 CC 07 01 E6 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D8 E0 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EB 94 01 00 35 04 06 00 4A 24 47 64 D4 54 51 BB 61 58 F9 1C 8B CA [11:46: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 31 31 4F 00 00 00 8F 13 47 00 1D 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EB 94 01 00 F4 03 04 00 0F 89 18 67 B6 04 01 00 00 A7 0B 12 D3 5D 6C 32 54 [11:46:04]CommunicateWithHost err = 0 [11:46:04]CheckOFDResponse [11:46:04]1017 (14) - 77093643461234 [11:46:04]1041 (16) - 0000000000871811 [11:46:04]1040 (4) - 103659 [11:46:04]1012 (4) - 23.10.2024 05:26 [11:46:04]1206 (1) - 0 [11:46:04]OFD Sender: Remove packet 103659 [11:46:04]ProducePacketName [11:46:04]name=ofd_packets/00103659 [11:46:04]NVStorageDeleteData [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:15]recv_with_timeout no data received [11:46:19]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:13]ConnectInit Can't connect to host [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:29]accept exits with 7 [11:47:29]New connection [11:47:29]New thread 3066871140 created [11:47:29]Waiting for new connection... [11:47:29] Sock 7.Parse request [11:47:29]Sock 7.Check first char [11:47:29]Sock 7.First char is OK [11:47:29]request: POST /json_proto HTTP/1.0 [11:47:29]Method: POST [11:47:29]URL: /json_proto [11:47:29]Method is POST - this is cgi request [11:47:29]url: /json_proto [11:47:29]query_string will be loaded in cgi processing [11:47:29]execute_cgi json_proto POST (null) [11:47:29]execute_cgi path=json_proto method=POST [11:47:29]POST find Content-Length [11:47:29]Host: 172.17.51.67:8080 [11:47:29]Content-Length: 215 [11:47:29]Content-Type: application/json [11:47:29] [11:47:29]POST finish read [11:47:29]Found Content-Length = 215 [11:47:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:29]execute_script... [11:47:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:29]POST & json_proto [11:47:29]process_json_proto [11:47:29]json parsed OK: [11:47:29]protocol is kg_v1.0 [11:47:29]action value=get_value [11:47:29]process_action get_value [11:47:29]cmd_get_value [11:47:29]process_action get_value done [11:47:29]requested_data is exist [11:47:29]produce_requested_data [11:47:29]requested_item kkm.sn is exist - process it [11:47:29]requested_item kkm.ver is exist - process it [11:47:29]requested_item fm.sn is exist - process it [11:47:29]wFMCommunicate request_size=4 [11:47:29]MH_SAM_APDU [11:47:29]CAPDU: 80 11 00 00 [11:47:29]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:29]Read from MH i2c: E2 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 17 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D7 [11:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:47:29]wFMCommunicate OK [11:47:29]requested_item fd.num is exist - process it [11:47:29]SAM_PROTO_GetFieldsCounters [11:47:29]wFMCommunicate request_size=4 [11:47:29]MH_SAM_APDU [11:47:29]CAPDU: 80 13 00 00 [11:47:29]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:30]Read from MH i2c: E2 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 62 00 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 EB 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [11: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 EB 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:30]wFMCommunicate OK [11:47:30]SAM_PROTO_GetFieldsCounters done [11:47:30]requested_item shift.num is exist - process it [11:47:30]requested_item shift.opened is exist - process it [11:47:30]req_shift_opened [11:47:30]FM_GetShiftState [11:47:30]SAM_PROTO_GetShiftState [11:47:30]wFMCommunicate request_size=4 [11:47:30]MH_SAM_APDU [11:47:30]CAPDU: 80 13 01 00 [11:47:30]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:47:30]Write i2c OK [11:47:30]MH_I2C_Read... [11:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:30]Read from MH i2c: E2 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 0E 00 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 C8 [11:47:30]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:47:30]wFMCommunicate OK [11:47:30]SAM_PROTO_GetShiftState done [11:47:30]FM_GetShiftState done [11:47:30]req_shift_opened done [11:47:30]requested_item shift.open_date is exist - process it [11:47:30]req_shift_open_date [11:47:30]req_shift_open_date done [11:47:30]produce_requested_data done [11:47:30]produce_requested_data return {"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103659,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [11:47:30]process_action_free get_value [11:47:30]json_value_free [11:47:30]json_value_free done [11:47:30]process_json_proto returns [11:47:30]Send response to host [11:47:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103659,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [11:47:30]free response buf [11:47:30]execute_script done [11:47:30]execute_script returns [11:47:30]free content buf [11:47:30]Sock 7.Close socket [11:47:30]Sock 7.Thread stoped [11:47:30]accept exits with 9 [11:47:30]New connection [11:47:30]New thread 3066727780 created [11:47:30]Thread 3066871140 joined [11:47:30]Waiting for new connection... [11:47:30] Sock 9.Parse request [11:47:30]Sock 9.Check first char [11:47:30]Sock 9.First char is OK [11:47:30]request: POST /json_proto HTTP/1.0 [11:47:30]Method: POST [11:47:30]URL: /json_proto [11:47:30]Method is POST - this is cgi request [11:47:30]url: /json_proto [11:47:30]query_string will be loaded in cgi processing [11:47:30]execute_cgi json_proto POST (null) [11:47:30]execute_cgi path=json_proto method=POST [11:47:30]POST find Content-Length [11:47:30]Host: 172.17.51.67:8080 [11:47:30]Content-Length: 331 [11:47:30]Content-Type: application/json [11:47:30] [11:47:30]POST finish read [11:47:30]Found Content-Length = 331 [11:47:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:47:30]execute_script... [11:47:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:47:30]POST & json_proto [11:47:30]process_json_proto [11:47:30]json parsed OK: [11:47:30]protocol is kg_v1.0 [11:47:30]action value=get_value [11:47:30]process_action get_value [11:47:30]cmd_get_value [11:47:30]process_action get_value done [11:47:30]requested_data is exist [11:47:30]produce_requested_data [11:47:30]requested_item fm.sale.total is exist - process it [11:47:30]SAM_PROTO_GetFMData [11:47:30]wFMCommunicate request_size=4 [11:47:30]MH_SAM_APDU [11:47:30]CAPDU: 80 13 03 00 [11:47:30]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:47:30]OFD Sender: No OFD packet to send [11:47:30]Write i2c OK [11:47:30]MH_I2C_Read... [11:47:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:47:30]Read from MH i2c: E2 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 FD 00 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 5F 90 01 00 69 04 A3 00 6F 04 04 00 F3 8F 01 00 B1 04 05 00 69 D9 31 F9 01 70 04 05 00 C4 0C 69 8D 01 72 04 04 00 A5 CC C8 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7F 36 AA 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CD C6 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 16 [11:47:30]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 5F 90 01 00 69 04 A3 00 6F 04 04 00 F3 8F 01 00 B1 04 05 00 69 D9 31 F9 01 70 04 05 00 C4 0C 69 8D 01 72 04 04 00 A5 CC C8 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7F 36 AA 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CD C6 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [11:47:30]wFMCommunicate OK [11:47:30]wFMCommunicate request_size=4 [11:47:30]MH_SAM_APDU [11:47:30]CAPDU: 80 17 00 00 [11:47:30]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:47:30]Write i2c OK [11:47:30]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 FD 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [11:47:31]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:47:31]wFMCommunicate OK [11:47:31]wFMCommunicate request_size=4 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 17 00 00 [11:47:31]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 FD 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [11:47:31]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:47:31]wFMCommunicate OK [11:47:31]wFMCommunicate request_size=4 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 17 00 00 [11:47:31]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 FD 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 FD 00 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [11:47:31]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:47:31]wFMCommunicate OK [11:47:31]wFMCommunicate request_size=4 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 17 00 00 [11:47:31]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 E4 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [11:47:31]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:47:31]wFMCommunicate OK [11:47:31]SAM_PROTO_GetFMData done [11:47:31]requested_item fm.sale_refund.total is exist - process it [11:47:31]requested_item fm.buy.total is exist - process it [11:47:31]requested_item shift.sale.total is exist - process it [11:47:31]SAM_PROTO_GetShiftData [11:47:31]wFMCommunicate request_size=4 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 13 02 00 [11:47:31]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:47:32]Read from MH i2c: E2 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 FD 00 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 47 00 00 00 69 04 9B 00 6F 04 04 00 47 00 00 00 B1 04 03 00 2E 19 4F 70 04 03 00 58 CC 3A 72 04 03 00 D6 4C 14 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 07 67 08 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 40 B3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [11:47:32]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 47 00 00 00 69 04 9B 00 6F 04 04 00 47 00 00 00 B1 04 03 00 2E 19 4F 70 04 03 00 58 CC 3A 72 04 03 00 D6 4C 14 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 07 67 08 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 40 B3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:47:32]wFMCommunicate OK [11:47:32]wFMCommunicate request_size=4 [11:47:32]MH_SAM_APDU [11:47:32]CAPDU: 80 17 00 00 [11:47:32]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:47:32]Read from MH i2c: E2 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 FD 00 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [11:47:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [11:47:32]wFMCommunicate OK [11:47:32]wFMCommunicate request_size=4 [11:47:32]MH_SAM_APDU [11:47:32]CAPDU: 80 17 00 00 [11:47:32]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:47:32]Read from MH i2c: E2 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 FD 00 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [11:47:32]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [11:47:32]wFMCommunicate OK [11:47:32]wFMCommunicate request_size=4 [11:47:32]MH_SAM_APDU [11:47:32]CAPDU: 80 17 00 00 [11:47:32]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:47:33]Read from MH i2c: E2 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 FD 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [11:47:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [11:47:33]wFMCommunicate OK [11:47:33]wFMCommunicate request_size=4 [11:47:33]MH_SAM_APDU [11:47:33]CAPDU: 80 17 00 00 [11:47:33]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:47:33]Write i2c OK [11:47:33]MH_I2C_Read... [11:47:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:47:33]Read from MH i2c: E2 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 CB 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [11:47:33]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:47:33]wFMCommunicate OK [11:47:33]SAM_PROTO_GetShiftData done [11:47:33]requested_item shift.sale.total_cash is exist - process it [11:47:33]requested_item shift.sale_refund.total is exist - process it [11:47:33]requested_item shift.sale_refund.total_cash is exist - process it [11:47:33]requested_item shift.buy.total is exist - process it [11:47:33]requested_item shift.buy.total_cash is exist - process it [11:47:33]produce_requested_data done [11:47:33]produce_requested_data return {"fm.sale.total":84757610.01,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":51837.90,"shift.sale.total_cash":38534.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:47:33]process_action_free get_value [11:47:33]json_value_free [11:47:33]json_value_free done [11:47:33]process_json_proto returns [11:47:33]Send response to host [11:47:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84757610.01,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":51837.90,"shift.sale.total_cash":38534.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:47:33]free response buf [11:47:33]execute_script done [11:47:33]execute_script returns [11:47:33]free content buf [11:47:33]Sock 9.Close socket [11:47:33]Sock 9.Thread stoped [11:47:33]accept exits with 7 [11:47:33]New connection [11:47:33]New thread 3066871140 created [11:47:33]Thread 3066727780 joined [11:47:33]Waiting for new connection... [11:47:33] Sock 7.Parse request [11:47:33]Sock 7.Check first char [11:47:33]Sock 7.First char is OK [11:47:33]request: POST /json_proto HTTP/1.0 [11:47:33]Method: POST [11:47:33]URL: /json_proto [11:47:33]Method is POST - this is cgi request [11:47:33]url: /json_proto [11:47:33]query_string will be loaded in cgi processing [11:47:33]execute_cgi json_proto POST (null) [11:47:33]execute_cgi path=json_proto method=POST [11:47:33]POST find Content-Length [11:47:33]Host: 172.17.51.67:8080 [11:47:33]Content-Length: 678 [11:47:33]Content-Type: application/json [11:47:33] [11:47:33]POST finish read [11:47:33]Found Content-Length = 678 [11:47:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:33]execute_script... [11:47:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:33]POST & json_proto [11:47:33]process_json_proto [11:47:33]json parsed OK: [11:47:33]protocol is kg_v1.0 [11:47:33]action value=close_receipt [11:47:33]process_action close_receipt [11:47:33]cmd_close_receipt [11:47:33]MH_GetDate [11:47:33]Write to MH i2c: F0 00 00 1D 00 0C [11:47:33]Write i2c OK [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: F0 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: F0 09 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: F0 09 00 1D 00 00 55 E2 18 67 1E EF FA 64 36 [11:47:33]GetLastDocTimeStamp 1729683672 [11:47:33]current date 1729684053 [11:47:33]FM_GetShiftState [11:47:33]SAM_PROTO_GetShiftState [11:47:33]wFMCommunicate request_size=4 [11:47:33]MH_SAM_APDU [11:47:33]CAPDU: 80 13 01 00 [11:47:33]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:47:33]Write i2c OK [11:47:33]MH_I2C_Read... [11:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:33]Read from MH i2c: E2 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 0E 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D4 [11:47:33]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:47:33]wFMCommunicate OK [11:47:33]SAM_PROTO_GetShiftState done [11:47:33]FM_GetShiftState done [11:47:33]opened in 1729642861 [11:47:33]opened+sec_in_day 1729729261 [11:47:33]quantity*price = 90047 [11:47:33]sum+1 = 90048 [11:47:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 72 23.10.2024 11:47 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103660 ФПД: 257486933670818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114734&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103660&fm=257486933670818&tin=02508201610067®Number=0000000000091754&sum=90000 [11:47:34]StoreToDocumentArchive [11:47:34]shift 582 fd 103660 [11:47:34]save to /storage/0582/doc_00103660 [11:47:34]save last doc name /storage/0582/doc_00103660 to /storage/kkm_last_doc_name [11:47:34]save OK [11:47:34]Clear old archive folders... [11:47:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:34]tlvbuf is 01C5CA20 [11:47:34]SAM_PROTO_ClearQueue [11:47:34]wFMCommunicate request_size=4 [11:47:34]MH_SAM_APDU [11:47:34]CAPDU: 80 09 00 00 [11:47:34]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:47:34]Write i2c OK [11:47:34]MH_I2C_Read... [11:47:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:34]Read from MH i2c: E2 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: E2 03 00 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:47:34]RAPDU: 90 00 [11:47:34]wFMCommunicate OK [11:47:34]SAM_PROTO_ClearQueue done [11:47:34]KKMCreateOFDPacket [11:47:34]OFDProtocolAddRootSTLVToBuf [11:47:34]FM_MakeSignedData [11:47:34]FM_MakeSignedData [11:47:34]SAM_PROTO_SignData [11:47:34]wFMCommunicate request_size=4 [11:47:34]MH_SAM_APDU [11:47:34]CAPDU: 80 0D 01 02 [11:47:34]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:47:34]Write i2c OK [11:47:34]MH_I2C_Read... [11:47:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:34]Read from MH i2c: E2 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: E2 03 00 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:47:34]RAPDU: 90 00 [11:47:34]wFMCommunicate OK [11:47:34]wFMCommunicate request_size=255 [11:47:34]MH_SAM_APDU [11:47:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 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 56 E2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EC 94 01 00 35 04 06 00 EA [11:47:34]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 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 56 E2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EC 94 01 00 35 04 06 00 EA 00 00 FD [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:47:35]RAPDU: 90 00 [11:47:35]wFMCommunicate OK [11:47:35]wFMCommunicate request_size=10 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 0D 02 02 05 2E D9 37 3B A2 [11:47:35]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 2E D9 37 3B A2 00 00 CD [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:47:35]RAPDU: 90 00 [11:47:35]wFMCommunicate OK [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 0D 03 02 [11:47:35]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:35]OFD Sender: No OFD packet to send [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 0B 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 0B 00 2F 00 00 6B A3 6F 44 27 6C A8 4D 90 00 F4 [11:47:35]RAPDU: 6B A3 6F 44 27 6C A8 4D 90 00 [11:47:35]wFMCommunicate OK [11:47:35]SAM_PROTO_SignData done [11:47:35]FM_MakeSignedData done [11:47:35]CreateOFDProtocolMessage [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 11 00 00 [11:47:35]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 17 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 F7 [11:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:47:35]wFMCommunicate OK [11:47:35]CreateOFDProtocolMessage done [11:47:35]OFDSenderStorePacket 103660 [11:47:35]StoreOFDPacket docnum=103660 [11:47:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 85 E9 07 01 6C CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 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 56 E2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EC 94 01 00 35 04 06 00 EA 2E D9 37 3B A2 6B A3 6F 44 27 6C A8 4D [11:47:35]CheckFolder [11:47:35]dirname=/storage/ofd_packets [11:47:35]CheckFolder done [11:47:35]ProducePacketName [11:47:35]name=ofd_packets/00103660 [11:47:35]NVStorageSaveData ofd_packets/00103660 [11:47:35]File name is /storage/ofd_packets/00103660 [11:47:35]Write 301 bytes [11:47:35]NVStorageSaveData done [11:47:35]OFDSenderStorePacket done [11:47:35]KKMCreateOFDPacket done [11:47:35]NVStorageSaveData kkm_last_timestamp [11:47:35]File name is /storage/kkm_last_timestamp [11:47:35]Write 4 bytes [11:47:35]NVStorageSaveData done [11:47:35]ExternCall_PrintAddStr [11:47:35]wPrintStart [11:47:35]Write to MH i2c: 01 00 00 31 00 31 [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: 01 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: 01 07 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:47:35]RasterBufferAndPrint [11:47:35]line Счет N : (1)317876 [11:47:35]line ИНН: 02508201610067 [11:47:35]line Контрольно-Кассовый Чек [11:47:35]line ПРОДАЖА [11:47:35]line ТРК (МРК, ГНК) : 33 [11:47:35]line Товар: 2710124130 [11:47:35]line Аи-92-К-4 [11:47:35]line 13.460 * 66.90 [11:47:35]line = 900.47 [11:47:35]line НДС 12% НСП 1% [11:47:35]line > о реализуемом товаре [11:47:35]line ОКРУГЛЕНИЕ: -0.47 [11:47:35]line ИТОГО: 900.00 [11:47:35]line Внесено: 900.00 [11:47:35]line СДАЧА: 0.00 [11:47:35]line НСП 1% : 7.97 [11:47:35]line НДС 12% : 95.62 [11:47:35]line Наличными: 900.00 [11:47:35]line Безнал.: 0.00 [11:47:35]line Место: АЗС № 145 "Партнер Нефть" [11:47:35]OFD Sender: Processing packet 103660 [packets to send 498, broken 497] [11:47:35]ProducePacketName [11:47:35]name=ofd_packets/00103660 [11:47:35]OFD Sender: To server: pG, [11:47:35]CommunicateWithHost lk.salyk.kg:30040 [11:47:35]ConnectInit lk.salyk.kg [11:47:35]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [11:47:35]line СНО: Общий режим [11:47:35]line Чек 72 23.10.2024 11:47 [11:47:35]line Смена: 582 ФФД: 1.0 [11:47:35]line ЗНМ: 0300000095 [11:47:35]line РНМ: 0000000000091754 [11:47:35]line Версия ККМ: 001 [11:47:35]line ФМ: 0000000000871811 [11:47:35]line ФД: 103660 [11:47:35]line ФПД: 257486933670818 [11:47:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114734&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103660&fm=257486933670818&tin=02508201610067®Number=0000000000091754&sum=90000 [11:47:35]written 0, free lines is 4095 [11:47:36]Write to MH i2c: 01 00 00 5B 00 5B [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 DA 0C 48 [11:47:36]RasterBufferAndPrint [11:47:36]line [11:47:36]line [11:47:36]line [11:47:36]line [11:47:36]line [11:47:36]written 0, free lines is 3308 [11:47:36]MH_Cut [11:47:36]Write to MH i2c: D1 01 00 62 00 01 34 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: D1 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: D1 01 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: D1 01 00 62 00 00 33 [11:47:36]Write to MH i2c: 01 00 00 63 00 63 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:37]*** Cut start [11:47:37]*** Partial cut [11:47:37]*** CUTSNS_PIN = 1 [11:47:37]*** CUTSNS_PIN = 0 [11:47:37]*** Brake cut motor [11:47:37]Read from MH i2c: 01 [11:47:37]MH_I2C_Read... [11:47:37]*** Stop cut motor [11:47:37]*** Cut end [11:47:37]Read from MH i2c: 01 07 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [11:47:37]process_action close_receipt done [11:47:37]requested_data is exist [11:47:37]produce_requested_data [11:47:37]requested_item fm.sn is exist - process it [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 11 00 00 [11:47:37]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 17 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 2B [11:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:47:37]wFMCommunicate OK [11:47:37]requested_item fd.num is exist - process it [11:47:37]SAM_PROTO_GetFieldsCounters [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 13 00 00 [11:47:37]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 62 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 EC 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [11:47: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 EC 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:37]wFMCommunicate OK [11:47:37]SAM_PROTO_GetFieldsCounters done [11:47:37]requested_item shift.num is exist - process it [11:47:37]requested_item shift.opened is exist - process it [11:47:37]req_shift_opened [11:47:37]FM_GetShiftState [11:47:37]SAM_PROTO_GetShiftState [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 13 01 00 [11:47:37]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:38]Read from MH i2c: E2 0E 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 1C [11:47:38]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:47:38]wFMCommunicate OK [11:47:38]SAM_PROTO_GetShiftState done [11:47:38]FM_GetShiftState done [11:47:38]req_shift_opened done [11:47:38]requested_item shift.open_date is exist - process it [11:47:38]req_shift_open_date [11:47:38]req_shift_open_date done [11:47:38]produce_requested_data done [11:47:38]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103660,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [11:47:38]process_action_free close_receipt [11:47:38]json_value_free [11:47:38]json_value_free done [11:47:38]process_json_proto returns [11:47:38]Send response to host [11:47:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103660,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [11:47:38]free response buf [11:47:38]execute_script done [11:47:38]execute_script returns [11:47:38]free content buf [11:47:38]Sock 7.Close socket [11:47:38]Sock 7.Thread stoped [11:47:38]accept exits with 9 [11:47:38]New connection [11:47:38]New thread 3066727780 created [11:47:38]Thread 3066871140 joined [11:47:38]Waiting for new connection... [11:47:38] Sock 9.Parse request [11:47:38]Sock 9.Check first char [11:47:38]Sock 9.First char is OK [11:47:38]request: POST /json_proto HTTP/1.0 [11:47:38]Method: POST [11:47:38]URL: /json_proto [11:47:38]Method is POST - this is cgi request [11:47:38]url: /json_proto [11:47:38]query_string will be loaded in cgi processing [11:47:38]execute_cgi json_proto POST (null) [11:47:38]execute_cgi path=json_proto method=POST [11:47:38]POST find Content-Length [11:47:38]Host: 172.17.51.67:8080 [11:47:38]Content-Length: 677 [11:47:38]Content-Type: application/json [11:47:38] [11:47:38]POST finish read [11:47:38]Found Content-Length = 677 [11:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:38]execute_script... [11:47: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)317877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:38]POST & json_proto [11:47:38]process_json_proto [11:47:38]json parsed OK: [11:47:38]protocol is kg_v1.0 [11:47:38]action value=close_receipt [11:47:38]process_action close_receipt [11:47:38]cmd_close_receipt [11:47:38]MH_GetDate [11:47:38]Write to MH i2c: F0 00 00 67 00 56 [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: F0 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: F0 09 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: F0 09 00 67 00 00 5A E2 18 67 1E EF FA 64 85 [11:47:38]GetLastDocTimeStamp 1729684054 [11:47:38]current date 1729684058 [11:47:38]FM_GetShiftState [11:47:38]SAM_PROTO_GetShiftState [11:47:38]wFMCommunicate request_size=4 [11:47:38]MH_SAM_APDU [11:47:38]CAPDU: 80 13 01 00 [11:47:38]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 0E 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 1E [11:47:38]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:47:38]wFMCommunicate OK [11:47:38]SAM_PROTO_GetShiftState done [11:47:38]FM_GetShiftState done [11:47:38]opened in 1729642861 [11:47:38]opened+sec_in_day 1729729261 [11:47:38]quantity*price = 50041 [11:47:38]sum+1 = 50042 [11:47:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 73 23.10.2024 11:47 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103661 ФПД: 40266627694601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114738&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103661&fm=40266627694601&tin=02508201610067®Number=0000000000091754&sum=50000 [11:47:40]StoreToDocumentArchive [11:47:40]shift 582 fd 103661 [11:47:40]save to /storage/0582/doc_00103661 [11:47:40]save last doc name /storage/0582/doc_00103661 to /storage/kkm_last_doc_name [11:47:40]save OK [11:47:40]Clear old archive folders... [11:47:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:40]tlvbuf is 01C67550 [11:47:40]SAM_PROTO_ClearQueue [11:47:40]wFMCommunicate request_size=4 [11:47:40]MH_SAM_APDU [11:47:40]CAPDU: 80 09 00 00 [11:47:40]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:40]OFD Sender: No OFD packet to send [11:47:40]Read from MH i2c: E2 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 03 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [11:47:40]RAPDU: 90 00 [11:47:40]wFMCommunicate OK [11:47:40]SAM_PROTO_ClearQueue done [11:47:40]KKMCreateOFDPacket [11:47:40]OFDProtocolAddRootSTLVToBuf [11:47:40]FM_MakeSignedData [11:47:40]FM_MakeSignedData [11:47:40]SAM_PROTO_SignData [11:47:40]wFMCommunicate request_size=4 [11:47:40]MH_SAM_APDU [11:47:40]CAPDU: 80 0D 01 02 [11:47:40]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: *** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:40]E2 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 03 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:47:40]RAPDU: 90 00 [11:47:40]wFMCommunicate OK [11:47:40]wFMCommunicate request_size=255 [11:47:40]MH_SAM_APDU [11:47:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 5A E2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 ED 94 01 00 35 04 06 00 24 [11:47:40]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 5A E2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 ED 94 01 00 35 04 06 00 24 00 00 6A [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:40]Read from MH i2c: E2 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 03 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:47:40]RAPDU: 90 00 [11:47:40]wFMCommunicate OK [11:47:40]wFMCommunicate request_size=10 [11:47:40]MH_SAM_APDU [11:47:40]CAPDU: 80 0D 02 02 05 9F 4E 0A 40 09 [11:47:40]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 9F 4E 0A 40 09 00 00 3C [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:40]Read from MH i2c: E2 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 03 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:47:40]RAPDU: 90 00 [11:47:40]wFMCommunicate OK [11:47:40]wFMCommunicate request_size=4 [11:47:40]MH_SAM_APDU [11:47:40]CAPDU: 80 0D 03 02 [11:47:40]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:40]Read from MH i2c: E2 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 0B 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 0B 00 79 00 00 40 5E 50 87 0C 8F 20 F1 90 00 16 [11:47:40]RAPDU: 40 5E 50 87 0C 8F 20 F1 90 00 [11:47:40]wFMCommunicate OK [11:47:40]SAM_PROTO_SignData done [11:47:40]FM_MakeSignedData done [11:47:40]CreateOFDProtocolMessage [11:47:40]wFMCommunicate request_size=4 [11:47:40]MH_SAM_APDU [11:47:40]CAPDU: 80 11 00 00 [11:47:40]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:40]Read from MH i2c: E2 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 17 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 41 [11:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:47:40]wFMCommunicate OK [11:47:40]CreateOFDProtocolMessage done [11:47:40]OFDSenderStorePacket 103661 [11:47:40]StoreOFDPacket docnum=103661 [11:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 41 EB 07 01 19 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 5A E2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 ED 94 01 00 35 04 06 00 24 9F 4E 0A 40 09 40 5E 50 87 0C 8F 20 F1 [11:47:40]CheckFolder [11:47:40]dirname=/storage/ofd_packets [11:47:40]CheckFolder done [11:47:40]ProducePacketName [11:47:40]name=ofd_packets/00103661 [11:47:40]NVStorageSaveData ofd_packets/00103661 [11:47:40]File name is /storage/ofd_packets/00103661 [11:47:40]Write 301 bytes [11:47:40]NVStorageSaveData done [11:47:40]OFDSenderStorePacket done [11:47:40]KKMCreateOFDPacket done [11:47:40]NVStorageSaveData kkm_last_timestamp [11:47:40]File name is /storage/kkm_last_timestamp [11:47:40]Write 4 bytes [11:47:40]NVStorageSaveData done [11:47:40]ExternCall_PrintAddStr [11:47:40]wPrintStart [11:47:40]Write to MH i2c: 01 00 00 7B 00 7B [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: 01 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: 01 07 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [11:47:40]RasterBufferAndPrint [11:47:40]line Счет N : (1)317877 [11:47:40]line ИНН: 02508201610067 [11:47:40]line Контрольно-Кассовый Чек [11:47:40]line ПРОДАЖА [11:47:40]line ТРК (МРК, ГНК) : 53 [11:47:40]line Товар: 2710124130 [11:47:40]line Аи-92-К-4 [11:47:40]line 7.480 * 66.90 [11:47:40]line = 500.41 [11:47:40]line НДС 12% НСП 1% [11:47:40]line > о реализуемом товаре [11:47:40]line ОКРУГЛЕНИЕ: -0.41 [11:47:40]line ИТОГО: 500.00 [11:47:40]line Внесено: 500.00 [11:47:40]line СДАЧА: 0.00 [11:47:40]line НСП 1% : 4.43 [11:47:40]line НДС 12% : 53.14 [11:47:40]line Наличными: 500.00 [11:47:40]line Безнал.: 0.00 [11:47:40]line Место: АЗС № 145 "Партнер Нефть" [11:47:40]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [11:47:40]line СНО: Общий режим [11:47:40]line Чек 73 23.10.2024 11:47 [11:47:40]line Смена: 582 ФФД: 1.0 [11:47:40]line ЗНМ: 0300000095 [11:47:40]line РНМ: 0000000000091754 [11:47:40]line Версия ККМ: 001 [11:47:40]line ФМ: 0000000000871811 [11:47:40]line ФД: 103661 [11:47:40]line ФПД: 40266627694601 [11:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114738&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103661&fm=40266627694601&tin=02508201610067®Number=0000000000091754&sum=50000 [11:47:40]written 0, free lines is 4095 [11:47:40]OFD Sender: Processing packet 103661 [packets to send 498, broken 497] [11:47:40]ProducePacketName [11:47:40]name=ofd_packets/00103661 [11:47:40]OFD Sender: To server: pG, [11:47:40]CommunicateWithHost lk.salyk.kg:30040 [11:47:40]ConnectInit lk.salyk.kg [11:47:41]Write to MH i2c: 01 00 00 A5 00 A5 [11:47:41]Write i2c OK [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: 01 [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: 01 07 00 [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 D9 0C 91 [11:47:41]RasterBufferAndPrint [11:47:41]line [11:47:41]line [11:47:41]line [11:47:41]line [11:47:41]line [11:47:41]written 0, free lines is 3314 [11:47:41]MH_Cut [11:47:41]Write to MH i2c: D1 01 00 AC 00 01 7E [11:47:41]Write i2c OK [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: D1 [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: D1 01 00 [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: D1 01 00 AC 00 00 7D [11:47:41]Write to MH i2c: 01 00 00 AD 00 AD [11:47:41]Write i2c OK [11:47:41]MH_I2C_Read... [11:47:41]Connected sock=10 [11:47: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 31 31 0F 01 00 00 41 EB 07 01 19 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 5A E2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 ED 94 01 00 35 04 06 00 24 9F 4E 0A 40 09 40 5E 50 87 0C 8F 20 F1 [11:47:42]*** Cut start [11:47:42]*** Partial cut [11:47:42]*** CUTSNS_PIN = 1 [11:47:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 *** CUTSNS_PIN = 0 [11:47:42]30 30 30 38 37 31 38 31 31 4F 00 00 00 21 A0 47 00 16 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 ED 94 01 00 F4 03 04 00 71 89 18 67 B6 04 01 00 00 39 90 5E A0 51 CE 35 2D [11:47:42]CommunicateWithHost err = 0 [11:47:42]CheckOFDResponse [11:47:42]1017 (14) - 77093643461234 [11:47:42]1041 (16) - 0000000000871811 [11:47:42]1040 (4) - 103661 [11:47:42]1012 (4) - 23.10.2024 05:28 [11:47:42]1206 (1) - 0 [11:47:42]OFD Sender: Remove packet 103661 [11:47:42]ProducePacketName [11:47:42]name=ofd_packets/00103661 [11:47:42]NVStorageDeleteData [11:47:42]*** Brake cut motor [11:47:42]Read from MH i2c: *** Stop cut motor [11:47:42]01 *** Cut end [11:47:42] [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: 01 07 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [11:47:42]process_action close_receipt done [11:47:42]requested_data is exist [11:47:42]produce_requested_data [11:47:42]requested_item fm.sn is exist - process it [11:47:42]wFMCommunicate request_size=4 [11:47:42]MH_SAM_APDU [11:47:42]CAPDU: 80 11 00 00 [11:47:42]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:42]OFD Sender: No OFD packet to send [11:47:42]Read from MH i2c: E2 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 17 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 75 [11:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:47:42]wFMCommunicate OK [11:47:42]requested_item fd.num is exist - process it [11:47:42]SAM_PROTO_GetFieldsCounters [11:47:42]wFMCommunicate request_size=4 [11:47:42]MH_SAM_APDU [11:47:42]CAPDU: 80 13 00 00 [11:47:42]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 62 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 ED 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [11:47: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 ED 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:43]wFMCommunicate OK [11:47:43]SAM_PROTO_GetFieldsCounters done [11:47:43]requested_item shift.num is exist - process it [11:47:43]requested_item shift.opened is exist - process it [11:47:43]req_shift_opened [11:47:43]FM_GetShiftState [11:47:43]SAM_PROTO_GetShiftState [11:47:43]wFMCommunicate request_size=4 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 13 01 00 [11:47:43]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 0E 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 66 [11:47:43]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:47:43]wFMCommunicate OK [11:47:43]SAM_PROTO_GetShiftState done [11:47:43]FM_GetShiftState done [11:47:43]req_shift_opened done [11:47:43]requested_item shift.open_date is exist - process it [11:47:43]req_shift_open_date [11:47:43]req_shift_open_date done [11:47:43]produce_requested_data done [11:47:43]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103661,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [11:47:43]process_action_free close_receipt [11:47:43]json_value_free [11:47:43]json_value_free done [11:47:43]process_json_proto returns [11:47:43]Send response to host [11:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103661,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [11:47:43]free response buf [11:47:43]execute_script done [11:47:43]execute_script returns [11:47:43]free content buf [11:47:43]Sock 9.Close socket [11:47:43]Sock 9.Thread stoped [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:24]recv_with_timeout no data received [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:49]recv_with_timeout no data received [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:54]accept exits with 7 [11:49:54]New connection [11:49:54]New thread 3066871140 created [11:49:54]Thread 3066727780 joined [11:49:54]Waiting for new connection... [11:49:54] Sock 7.Parse request [11:49:54]Sock 7.Check first char [11:49:54]Sock 7.First char is OK [11:49:54]request: POST /json_proto HTTP/1.0 [11:49:54]Method: POST [11:49:54]URL: /json_proto [11:49:54]Method is POST - this is cgi request [11:49:54]url: /json_proto [11:49:54]query_string will be loaded in cgi processing [11:49:54]execute_cgi json_proto POST (null) [11:49:54]execute_cgi path=json_proto method=POST [11:49:54]POST find Content-Length [11:49:54]Host: 172.17.51.67:8080 [11:49:54]Content-Length: 843 [11:49:54]Content-Type: application/json [11:49:54] [11:49:54]POST finish read [11:49:54]Found Content-Length = 843 [11:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:54]execute_script... [11:49:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:54]POST & json_proto [11:49:54]process_json_proto [11:49:54]json parsed OK: [11:49:54]protocol is kg_v1.0 [11:49:54]action value=close_receipt [11:49:54]process_action close_receipt [11:49:54]cmd_close_receipt [11:49:54]MH_GetDate [11:49:54]Write to MH i2c: F0 00 00 B1 00 A0 [11:49:54]Write i2c OK [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: F0 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: F0 09 00 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: F0 09 00 B1 00 00 E2 E2 18 67 1E EF FA 64 57 [11:49:54]GetLastDocTimeStamp 1729684058 [11:49:54]current date 1729684194 [11:49:54]FM_GetShiftState [11:49:54]SAM_PROTO_GetShiftState [11:49:54]wFMCommunicate request_size=4 [11:49:54]MH_SAM_APDU [11:49:54]CAPDU: 80 13 01 00 [11:49:54]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [11:49:54]Write i2c OK [11:49:54]MH_I2C_Read... [11:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:54]Read from MH i2c: E2 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: E2 0E 00 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 68 [11:49:54]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:49:54]wFMCommunicate OK [11:49:54]SAM_PROTO_GetShiftState done [11:49:54]FM_GetShiftState done [11:49:54]opened in 1729642861 [11:49:54]opened+sec_in_day 1729729261 [11:49:54]quantity*price = 120055 [11:49:54]sum+1 = 120057 [11:49:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.56 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 0.00 Безнал.: 1200.56 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 74 23.10.2024 11:49 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103662 ФПД: 216589429641051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114954&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103662&fm=216589429641051&tin=02508201610067®Number=0000000000091754&sum=120056 [11:49:55]StoreToDocumentArchive [11:49:55]shift 582 fd 103662 [11:49:55]save to /storage/0582/doc_00103662 [11:49:55]save last doc name /storage/0582/doc_00103662 to /storage/kkm_last_doc_name [11:49:55]save OK [11:49:55]Clear old archive folders... [11:49:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:55]tlvbuf is 01C0C850 [11:49:55]SAM_PROTO_ClearQueue [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 09 00 00 [11:49:55]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [11:49:55]RAPDU: 90 00 [11:49:55]wFMCommunicate OK [11:49:55]SAM_PROTO_ClearQueue done [11:49:55]KKMCreateOFDPacket [11:49:55]OFDProtocolAddRootSTLVToBuf [11:49:55]FM_MakeSignedData [11:49:55]FM_MakeSignedData [11:49:55]SAM_PROTO_SignData [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 0D 01 02 [11:49:55]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [11:49:55]RAPDU: 90 00 [11:49:55]wFMCommunicate OK [11:49:55]wFMCommunicate request_size=255 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 E2 E2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EE 94 01 00 35 04 06 00 C4 [11:49:55]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 E2 E2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EE 94 01 00 35 04 06 00 C4 00 00 78 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [11:49:55]RAPDU: 90 00 [11:49:55]wFMCommunicate OK [11:49:55]wFMCommunicate request_size=10 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 0D 02 02 05 FC A8 04 0F 5B [11:49:55]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 FC A8 04 0F 5B 00 00 58 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [11:49:55]RAPDU: 90 00 [11:49:55]wFMCommunicate OK [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 0D 03 02 [11:49:55]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 0B 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 0B 00 C3 00 00 CB 4B 1B 87 AD 78 58 CB 90 00 3F [11:49:55]RAPDU: CB 4B 1B 87 AD 78 58 CB 90 00 [11:49:55]wFMCommunicate OK [11:49:55]SAM_PROTO_SignData done [11:49:55]FM_MakeSignedData done [11:49:55]CreateOFDProtocolMessage [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 11 00 00 [11:49:55]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 17 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 8B [11:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:49:55]wFMCommunicate OK [11:49:55]CreateOFDProtocolMessage done [11:49:55]OFDSenderStorePacket 103662 [11:49:55]StoreOFDPacket docnum=103662 [11:49:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 4D 44 07 01 50 8F 5A 03 01 00 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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 E2 E2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EE 94 01 00 35 04 06 00 C4 FC A8 04 0F 5B CB 4B 1B 87 AD 78 58 CB [11:49:55]CheckFolder [11:49:55]dirname=/storage/ofd_packets [11:49:55]CheckFolder done [11:49:55]ProducePacketName [11:49:55]name=ofd_packets/00103662 [11:49:55]NVStorageSaveData ofd_packets/00103662 [11:49:55]File name is /storage/ofd_packets/00103662 [11:49:55]Write 301 bytes [11:49:55]NVStorageSaveData done [11:49:55]OFDSenderStorePacket done [11:49:55]KKMCreateOFDPacket done [11:49:55]NVStorageSaveData kkm_last_timestamp [11:49:55]File name is /storage/kkm_last_timestamp [11:49:55]Write 4 bytes [11:49:55]NVStorageSaveData done [11:49:55]ExternCall_PrintAddStr [11:49:55]wPrintStart [11:49:55]Write to MH i2c: 01 00 00 C5 00 C5 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: 01 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: 01 07 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [11:49:55]RasterBufferAndPrint [11:49:55]line Счет N : (1)317882 [11:49:55]line ИНН: 02508201610067 [11:49:55]line Контрольно-Кассовый Чек [11:49:55]line ПРОДАЖА [11:49:55]line ТРК (МРК, ГНК) : 64 [11:49:55]line Товар: 2710124500 [11:49:55]line Аи-95-К-5 [11:49:55]line 16.180 * 74.20 [11:49:55]line = 1200.56 [11:49:55]line НДС 12% НСП 1% [11:49:55]line > о реализуемом товаре [11:49:55]line ИТОГО: 1200.56 [11:49:55]line НСП 1% : 10.62 [11:49:55]line НДС 12% : 127.49 [11:49:55]line Наличными: 0.00 [11:49:55]line Безнал.: 1200.56 [11:49:55]line Место: АЗС № 145 "Партнер Нефть" [11:49:55]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [11:49:55]line СНО: Общий режим [11:49:55]line Чек 74 23.10.2024 11:49 [11:49:55]line Смена: 582 ФФД: 1.0 [11:49:55]line ЗНМ: 0300000095 [11:49:55]line РНМ: 0000000000091754 [11:49:55]line Версия ККМ: 001 [11:49:55]line Платежная система: АКБ Кыргызстан [11:49:55]line ФМ: 0000000000871811 [11:49:55]line ФД: 103662 [11:49:55]line ФПД: 216589429641051 [11:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114954&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103662&fm=216589429641051&tin=02508201610067®Number=0000000000091754&sum=120056 [11:49:56]OFD Sender: Processing packet 103662 [packets to send 498, broken 497] [11:49:56]ProducePacketName [11:49:56]name=ofd_packets/00103662 [11:49:56]OFD Sender: To server: pG, [11:49:56]CommunicateWithHost lk.salyk.kg:30040 [11:49:56]ConnectInit lk.salyk.kg [11:49:56]written 0, free lines is 4095 [11:49:56]Write to MH i2c: 01 00 00 EE 00 EE [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: 01 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: 01 07 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 E6 0C E7 [11:49:56]RasterBufferAndPrint [11:49:56]line [11:49:56]line [11:49:56]line [11:49:56]line [11:49:56]line [11:49:56]written 0, free lines is 3308 [11:49:56]MH_Cut [11:49:56]Write to MH i2c: D1 01 00 F5 00 01 C7 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: D1 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: D1 01 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: D1 01 00 F5 00 00 C6 [11:49:56]Write to MH i2c: 01 00 00 F6 00 F6 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]Connected sock=9 [11:49: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 31 31 0F 01 00 00 4D 44 07 01 50 8F 5A 03 01 00 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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 E2 E2 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EE 94 01 00 35 04 06 00 C4 FC A8 04 0F 5B CB 4B 1B 87 AD 78 58 CB [11:49: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 31 31 4F 00 00 00 3C F5 47 00 98 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 31 31 10 04 04 00 EE 94 01 00 F4 03 04 00 F8 89 18 67 B6 04 01 00 00 5D B2 22 99 98 CF 1F 04 [11:49:57]CommunicateWithHost err = 0 [11:49:57]CheckOFDResponse [11:49:57]1017 (14) - 77093643461234 [11:49:57]1041 (16) - 0000000000871811 [11:49:57]1040 (4) - 103662 [11:49:57]1012 (4) - 23.10.2024 05:30 [11:49:57]1206 (1) - 0 [11:49:57]OFD Sender: Remove packet 103662 [11:49:57]ProducePacketName [11:49:57]name=ofd_packets/00103662 [11:49:57]NVStorageDeleteData [11:49:57]*** Cut start [11:49:57]*** Partial cut [11:49:57]*** CUTSNS_PIN = 1 [11:49:57]*** CUTSNS_PIN = 0 [11:49:57]*** Brake cut motor [11:49:57]OFD Sender: No OFD packet to send [11:49:57]Read from MH i2c: 01 [11:49:57]MH_I2C_Read... [11:49:57]*** Stop cut motor [11:49:57]*** Cut end [11:49:57]Read from MH i2c: 01 07 00 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [11:49:57]process_action close_receipt done [11:49:57]requested_data is exist [11:49:57]produce_requested_data [11:49:57]requested_item fm.sn is exist - process it [11:49:57]wFMCommunicate request_size=4 [11:49:57]MH_SAM_APDU [11:49:57]CAPDU: 80 11 00 00 [11:49:57]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [11:49:57]Write i2c OK [11:49:57]MH_I2C_Read... [11:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:57]Read from MH i2c: E2 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: E2 17 00 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 BE [11:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:49:58]wFMCommunicate OK [11:49:58]requested_item fd.num is exist - process it [11:49:58]SAM_PROTO_GetFieldsCounters [11:49:58]wFMCommunicate request_size=4 [11:49:58]MH_SAM_APDU [11:49:58]CAPDU: 80 13 00 00 [11:49:58]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:58]Read from MH i2c: E2 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 62 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 62 00 F8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 EE 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [11:49: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 EE 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:58]wFMCommunicate OK [11:49:58]SAM_PROTO_GetFieldsCounters done [11:49:58]requested_item shift.num is exist - process it [11:49:58]requested_item shift.opened is exist - process it [11:49:58]req_shift_opened [11:49:58]FM_GetShiftState [11:49:58]SAM_PROTO_GetShiftState [11:49:58]wFMCommunicate request_size=4 [11:49:58]MH_SAM_APDU [11:49:58]CAPDU: 80 13 01 00 [11:49:58]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:58]Read from MH i2c: E2 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 0E 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 AF [11:49:58]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:49:58]wFMCommunicate OK [11:49:58]SAM_PROTO_GetShiftState done [11:49:58]FM_GetShiftState done [11:49:58]req_shift_opened done [11:49:58]requested_item shift.open_date is exist - process it [11:49:58]req_shift_open_date [11:49:58]req_shift_open_date done [11:49:58]produce_requested_data done [11:49:58]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103662,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [11:49:58]process_action_free close_receipt [11:49:58]json_value_free [11:49:58]json_value_free done [11:49:58]process_json_proto returns [11:49:58]Send response to host [11:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103662,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [11:49:58]free response buf [11:49:58]execute_script done [11:49:58]execute_script returns [11:49:58]free content buf [11:49:58]Sock 7.Close socket [11:49:58]Sock 7.Thread stoped [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:14]recv_with_timeout no data received [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]recv_with_timeout no data received [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:49]recv_with_timeout no data received [11:52:53]OFD Sender: No OFD packet to send [11:52:53]accept exits with 10 [11:52:53]New connection [11:52:53]New thread 3066727780 created [11:52:53]Thread 3066871140 joined [11:52:53]Waiting for new connection... [11:52:53] Sock 10.Parse request [11:52:53]Sock 10.Check first char [11:52:53]Sock 10.First char is OK [11:52:53]request: POST /json_proto HTTP/1.0 [11:52:53]Method: POST [11:52:53]URL: /json_proto [11:52:53]Method is POST - this is cgi request [11:52:53]url: /json_proto [11:52:53]query_string will be loaded in cgi processing [11:52:53]execute_cgi json_proto POST (null) [11:52:53]execute_cgi path=json_proto method=POST [11:52:53]POST find Content-Length [11:52:53]Host: 172.17.51.67:8080 [11:52:53]Content-Length: 677 [11:52:53]Content-Type: application/json [11:52:53] [11:52:53]POST finish read [11:52:53]Found Content-Length = 677 [11:52:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:53]execute_script... [11:52:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:53]POST & json_proto [11:52:53]process_json_proto [11:52:53]json parsed OK: [11:52:53]protocol is kg_v1.0 [11:52:53]action value=close_receipt [11:52:53]process_action close_receipt [11:52:53]cmd_close_receipt [11:52:53]MH_GetDate [11:52:53]Write to MH i2c: F0 00 00 FA 00 E9 [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: F0 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: F0 09 00 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: F0 09 00 FA 00 00 95 E3 18 67 1E EF FA 64 54 [11:52:53]GetLastDocTimeStamp 1729684194 [11:52:53]current date 1729684373 [11:52:53]FM_GetShiftState [11:52:53]SAM_PROTO_GetShiftState [11:52:53]wFMCommunicate request_size=4 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 13 01 00 [11:52:53]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:53]Read from MH i2c: E2 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 0E 00 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B1 [11:52:53]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:52:53]wFMCommunicate OK [11:52:53]SAM_PROTO_GetShiftState done [11:52:53]FM_GetShiftState done [11:52:53]opened in 1729642861 [11:52:53]opened+sec_in_day 1729729261 [11:52:53]quantity*price = 20003 [11:52:53]sum+1 = 20004 [11:52:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 75 23.10.2024 11:52 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103663 ФПД: 32948784195904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115253&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103663&fm=32948784195904&tin=02508201610067®Number=0000000000091754&sum=20000 [11:52:54]StoreToDocumentArchive [11:52:54]shift 582 fd 103663 [11:52:54]save to /storage/0582/doc_00103663 [11:52:54]save last doc name /storage/0582/doc_00103663 to /storage/kkm_last_doc_name [11:52:54]save OK [11:52:54]Clear old archive folders... [11:52:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:54]tlvbuf is 01C857C0 [11:52:54]SAM_PROTO_ClearQueue [11:52:54]wFMCommunicate request_size=4 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 09 00 00 [11:52:54]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 03 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [11:52:54]RAPDU: 90 00 [11:52:54]wFMCommunicate OK [11:52:54]SAM_PROTO_ClearQueue done [11:52:54]KKMCreateOFDPacket [11:52:54]OFDProtocolAddRootSTLVToBuf [11:52:54]FM_MakeSignedData [11:52:54]FM_MakeSignedData [11:52:54]SAM_PROTO_SignData [11:52:54]wFMCommunicate request_size=4 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 0D 01 02 [11:52:54]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 03 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [11:52:54]RAPDU: 90 00 [11:52:54]wFMCommunicate OK [11:52:54]wFMCommunicate request_size=255 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 95 E3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EF 94 01 00 35 04 06 00 1D [11:52:54]Write to MH i2c: E2 02 01 0A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 95 E3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EF 94 01 00 35 04 06 00 1D 00 00 F9 [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 03 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [11:52:54]RAPDU: 90 00 [11:52:54]wFMCommunicate OK [11:52:54]wFMCommunicate request_size=10 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 0D 02 02 05 F7 7C 93 E9 40 [11:52:54]Write to MH i2c: E2 0D 00 0B 01 80 0D 02 02 05 00 F7 7C 93 E9 40 00 00 BF [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 03 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [11:52:54]RAPDU: 90 00 [11:52:54]wFMCommunicate OK [11:52:54]wFMCommunicate request_size=4 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 0D 03 02 [11:52:54]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 0B 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 0B 00 0C 01 00 39 A2 62 B1 B6 01 0F 3D 90 00 7A [11:52:54]RAPDU: 39 A2 62 B1 B6 01 0F 3D 90 00 [11:52:54]wFMCommunicate OK [11:52:54]SAM_PROTO_SignData done [11:52:54]FM_MakeSignedData done [11:52:54]CreateOFDProtocolMessage [11:52:54]wFMCommunicate request_size=4 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 11 00 00 [11:52:54]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 17 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D5 [11:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:52:54]wFMCommunicate OK [11:52:54]CreateOFDProtocolMessage done [11:52:54]OFDSenderStorePacket 103663 [11:52:54]StoreOFDPacket docnum=103663 [11:52:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 4A 2A 07 01 10 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 95 E3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EF 94 01 00 35 04 06 00 1D F7 7C 93 E9 40 39 A2 62 B1 B6 01 0F 3D [11:52:54]CheckFolder [11:52:54]dirname=/storage/ofd_packets [11:52:54]CheckFolder done [11:52:54]ProducePacketName [11:52:54]name=ofd_packets/00103663 [11:52:54]NVStorageSaveData ofd_packets/00103663 [11:52:54]File name is /storage/ofd_packets/00103663 [11:52:54]Write 301 bytes [11:52:54]NVStorageSaveData done [11:52:54]OFDSenderStorePacket done [11:52:54]KKMCreateOFDPacket done [11:52:54]NVStorageSaveData kkm_last_timestamp [11:52:54]File name is /storage/kkm_last_timestamp [11:52:54]Write 4 bytes [11:52:54]NVStorageSaveData done [11:52:54]ExternCall_PrintAddStr [11:52:54]wPrintStart [11:52:54]Write to MH i2c: 01 00 00 0E 01 0F [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: 01 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: 01 07 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [11:52:54]RasterBufferAndPrint [11:52:54]line Счет N : (1)317883 [11:52:54]line ИНН: 02508201610067 [11:52:54]line Контрольно-Кассовый Чек [11:52:54]line ПРОДАЖА [11:52:54]line ТРК (МРК, ГНК) : 43 [11:52:54]line Товар: 2710124130 [11:52:54]line Аи-92-К-4 [11:52:54]line 2.990 * 66.90 [11:52:54]line = 200.03 [11:52:54]line НДС 12% НСП 1% [11:52:54]line > о реализуемом товаре [11:52:54]line ОКРУГЛЕНИЕ: -0.03 [11:52:54]line ИТОГО: 200.00 [11:52:54]line Внесено: 200.00 [11:52:54]line СДАЧА: 0.00 [11:52:54]line НСП 1% : 1.77 [11:52:54]line НДС 12% : 21.24 [11:52:54]line Наличными: 200.00 [11:52:54]line Безнал.: 0.00 [11:52:54]line Место: АЗС № 145 "Партнер Нефть" [11:52:54]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [11:52:54]line СНО: Общий режим [11:52:54]line Чек 75 23.10.2024 11:52 [11:52:54]line Смена: 582 ФФД: 1.0 [11:52:54]line ЗНМ: 0300000095 [11:52:54]line РНМ: 0000000000091754 [11:52:54]line Версия ККМ: 001 [11:52:54]line ФМ: 0000000000871811 [11:52:54]line ФД: 103663 [11:52:54]line ФПД: 32948784195904 [11:52:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115253&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103663&fm=32948784195904&tin=02508201610067®Number=0000000000091754&sum=20000 [11:52:55]OFD Sender: Processing packet 103663 [packets to send 498, broken 497] [11:52:55]ProducePacketName [11:52:55]name=ofd_packets/00103663 [11:52:55]OFD Sender: To server: pG, [11:52:55]CommunicateWithHost lk.salyk.kg:30040 [11:52:55]ConnectInit lk.salyk.kg [11:52:55]written 0, free lines is 4095 [11:52:55]Write to MH i2c: 01 00 00 38 01 39 [11:52:55]Write i2c OK [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: 01 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: 01 07 00 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 D6 0C 22 [11:52:55]RasterBufferAndPrint [11:52:55]line [11:52:55]line [11:52:55]line [11:52:55]line [11:52:55]line [11:52:55]written 0, free lines is 3293 [11:52:55]MH_Cut [11:52:55]Write to MH i2c: D1 01 00 3F 01 01 12 [11:52:55]Write i2c OK [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: D1 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: D1 01 00 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: D1 01 00 3F 01 00 11 [11:52:55]Write to MH i2c: 01 00 00 40 01 41 [11:52:55]Write i2c OK [11:52:55]MH_I2C_Read... [11:52:56]Connected sock=11 [11:52: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 31 31 0F 01 00 00 4A 2A 07 01 10 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 95 E3 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EF 94 01 00 35 04 06 00 1D F7 7C 93 E9 40 39 A2 62 B1 B6 01 0F 3D [11:52: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 31 31 4F 00 00 00 B2 7D 47 00 D5 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 EF 94 01 00 F4 03 04 00 AB 8A 18 67 B6 04 01 00 00 A5 A4 D7 27 0C 13 21 33 [11:52:56]CommunicateWithHost err = 0 [11:52:56]CheckOFDResponse [11:52:56]1017 (14) - 77093643461234 [11:52:56]1041 (16) - 0000000000871811 [11:52:56]1040 (4) - 103663 [11:52:56]1012 (4) - 23.10.2024 05:33 [11:52:56]1206 (1) - 0 [11:52:56]OFD Sender: Remove packet 103663 [11:52:56]ProducePacketName [11:52:56]name=ofd_packets/00103663 [11:52:56]NVStorageDeleteData [11:52:56]*** Cut start [11:52:56]*** Partial cut [11:52:56]*** CUTSNS_PIN = 1 [11:52:56]*** CUTSNS_PIN = 0 [11:52:56]*** Brake cut motor [11:52:56]OFD Sender: No OFD packet to send [11:52:57]Read from MH i2c: 01 [11:52:57]MH_I2C_Read... [11:52:57]*** Stop cut motor [11:52:57]*** Cut end [11:52:57]Read from MH i2c: 01 07 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [11:52:57]process_action close_receipt done [11:52:57]requested_data is exist [11:52:57]produce_requested_data [11:52:57]requested_item fm.sn is exist - process it [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 11 00 00 [11:52:57]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 17 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 09 [11:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:52:57]wFMCommunicate OK [11:52:57]requested_item fd.num is exist - process it [11:52:57]SAM_PROTO_GetFieldsCounters [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 13 00 00 [11:52:57]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 62 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 62 00 42 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 EF 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [11:52: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 EF 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:57]wFMCommunicate OK [11:52:57]SAM_PROTO_GetFieldsCounters done [11:52:57]requested_item shift.num is exist - process it [11:52:57]requested_item shift.opened is exist - process it [11:52:57]req_shift_opened [11:52:57]FM_GetShiftState [11:52:57]SAM_PROTO_GetShiftState [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 13 01 00 [11:52:57]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0E 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 FA [11:52:57]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:52:57]wFMCommunicate OK [11:52:57]SAM_PROTO_GetShiftState done [11:52:57]FM_GetShiftState done [11:52:57]req_shift_opened done [11:52:57]requested_item shift.open_date is exist - process it [11:52:57]req_shift_open_date [11:52:57]req_shift_open_date done [11:52:57]produce_requested_data done [11:52:57]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103663,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [11:52:57]process_action_free close_receipt [11:52:57]json_value_free [11:52:57]json_value_free done [11:52:57]process_json_proto returns [11:52:57]Send response to host [11:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103663,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [11:52:57]free response buf [11:52:57]execute_script done [11:52:57]execute_script returns [11:52:57]free content buf [11:52:57]Sock 10.Close socket [11:52:57]Sock 10.Thread stoped [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:07]recv_with_timeout no data received [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:03]recv_with_timeout no data received [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:16]accept exits with 7 [11:55:16]New connection [11:55:16]New thread 3066871140 created [11:55:16]Thread 3066727780 joined [11:55:16]Waiting for new connection... [11:55:16] Sock 7.Parse request [11:55:16]Sock 7.Check first char [11:55:16]Sock 7.First char is OK [11:55:16]request: POST /json_proto HTTP/1.0 [11:55:16]Method: POST [11:55:16]URL: /json_proto [11:55:16]Method is POST - this is cgi request [11:55:16]url: /json_proto [11:55:16]query_string will be loaded in cgi processing [11:55:16]execute_cgi json_proto POST (null) [11:55:16]execute_cgi path=json_proto method=POST [11:55:16]POST find Content-Length [11:55:16]Host: 172.17.51.67:8080 [11:55:16]Content-Length: 841 [11:55:16]Content-Type: application/json [11:55:16] [11:55:16]POST finish read [11:55:16]Found Content-Length = 841 [11:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:16]execute_script... [11: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 : (1)317884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:16]POST & json_proto [11:55:16]process_json_proto [11:55:16]json parsed OK: [11:55:16]protocol is kg_v1.0 [11:55:16]action value=close_receipt [11:55:16]process_action close_receipt [11:55:16]cmd_close_receipt [11:55:16]MH_GetDate [11:55:16]Write to MH i2c: F0 00 00 44 01 34 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: F0 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: F0 09 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: F0 09 00 44 01 00 24 E4 18 67 1E EF FA 64 2F [11:55:16]GetLastDocTimeStamp 1729684373 [11:55:16]current date 1729684516 [11:55:16]FM_GetShiftState [11:55:16]SAM_PROTO_GetShiftState [11:55:16]wFMCommunicate request_size=4 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 13 01 00 [11:55:16]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:16]Read from MH i2c: E2 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 0E 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 FC [11:55:16]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:55:16]wFMCommunicate OK [11:55:16]SAM_PROTO_GetShiftState done [11:55:16]FM_GetShiftState done [11:55:16]opened in 1729642861 [11:55:16]opened+sec_in_day 1729729261 [11:55:16]quantity*price = 80012 [11:55:16]sum+1 = 80013 [11:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 76 23.10.2024 11:55 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103664 ФПД: 234339476296805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115516&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103664&fm=234339476296805&tin=02508201610067®Number=0000000000091754&sum=80012 [11:55:17]StoreToDocumentArchive [11:55:17]shift 582 fd 103664 [11:55:17]save to /storage/0582/doc_00103664 [11:55:17]save last doc name /storage/0582/doc_00103664 to /storage/kkm_last_doc_name [11:55:17]save OK [11:55:17]Clear old archive folders... [11:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:17]tlvbuf is 01C870D0 [11:55:17]SAM_PROTO_ClearQueue [11:55:17]wFMCommunicate request_size=4 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 09 00 00 [11:55:17]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [11:55:17]RAPDU: 90 00 [11:55:17]wFMCommunicate OK [11:55:17]SAM_PROTO_ClearQueue done [11:55:17]KKMCreateOFDPacket [11:55:17]OFDProtocolAddRootSTLVToBuf [11:55:17]FM_MakeSignedData [11:55:17]FM_MakeSignedData [11:55:17]SAM_PROTO_SignData [11:55:17]wFMCommunicate request_size=4 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 0D 01 02 [11:55:17]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [11:55:17]RAPDU: 90 00 [11:55:17]wFMCommunicate OK [11:55:17]wFMCommunicate request_size=255 [11:55:17]MH_SAM_APDU [11:55: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 24 E4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F0 94 01 00 35 04 06 00 D5 [11:55:17]Write to MH i2c: E2 02 01 54 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 24 E4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F0 94 01 00 35 04 06 00 D5 00 00 CF [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [11:55:17]RAPDU: 90 00 [11:55:17]wFMCommunicate OK [11:55:17]wFMCommunicate request_size=10 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 0D 02 02 05 21 69 3D D4 65 [11:55:17]Write to MH i2c: E2 0D 00 55 01 80 0D 02 02 05 00 21 69 3D D4 65 00 00 DA [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [11:55:17]RAPDU: 90 00 [11:55:17]wFMCommunicate OK [11:55:17]wFMCommunicate request_size=4 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 0D 03 02 [11:55:17]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 0B 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 0B 00 56 01 00 A7 75 8F 5E 35 B0 E5 68 90 00 0E [11:55:17]RAPDU: A7 75 8F 5E 35 B0 E5 68 90 00 [11:55:17]wFMCommunicate OK [11:55:17]SAM_PROTO_SignData done [11:55:17]FM_MakeSignedData done [11:55:17]CreateOFDProtocolMessage [11:55:17]wFMCommunicate request_size=4 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 11 00 00 [11:55:17]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 17 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 1F [11:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:55:17]wFMCommunicate OK [11:55:17]CreateOFDProtocolMessage done [11:55:17]OFDSenderStorePacket 103664 [11:55:17]StoreOFDPacket docnum=103664 [11:55:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 55 21 07 01 48 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 24 E4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F0 94 01 00 35 04 06 00 D5 21 69 3D D4 65 A7 75 8F 5E 35 B0 E5 68 [11:55:17]CheckFolder [11:55:17]dirname=/storage/ofd_packets [11:55:17]CheckFolder done [11:55:17]ProducePacketName [11:55:17]name=ofd_packets/00103664 [11:55:17]NVStorageSaveData ofd_packets/00103664 [11:55:17]File name is /storage/ofd_packets/00103664 [11:55:17]Write 301 bytes [11:55:17]NVStorageSaveData done [11:55:17]OFDSenderStorePacket done [11:55:17]KKMCreateOFDPacket done [11:55:17]NVStorageSaveData kkm_last_timestamp [11:55:17]File name is /storage/kkm_last_timestamp [11:55:17]Write 4 bytes [11:55:17]NVStorageSaveData done [11:55:17]ExternCall_PrintAddStr [11:55:17]wPrintStart [11:55:17]Write to MH i2c: 01 00 00 58 01 59 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 07 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [11:55:17]RasterBufferAndPrint [11:55:17]line Счет N : (1)317884 [11:55:17]line ИНН: 02508201610067 [11:55:17]line Контрольно-Кассовый Чек [11:55:17]line ПРОДАЖА [11:55:17]line ТРК (МРК, ГНК) : 63 [11:55:17]line Товар: 2710124130 [11:55:17]line Аи-92-К-4 [11:55:17]line 11.960 * 66.90 [11:55:17]line = 800.12 [11:55:17]line НДС 12% НСП 1% [11:55:17]line > о реализуемом товаре [11:55:17]line ИТОГО: 800.12 [11:55:17]line НСП 1% : 7.08 [11:55:17]line НДС 12% : 84.97 [11:55:17]line Наличными: 0.00 [11:55:17]line Безнал.: 800.12 [11:55:17]line Место: АЗС № 145 "Партнер Нефть" [11:55:17]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [11:55:17]line СНО: Общий режим [11:55:17]line Чек 76 23.10.2024 11:55 [11:55:17]line Смена: 582 ФФД: 1.0 [11:55:17]line ЗНМ: 0300000095 [11:55:17]line РНМ: 0000000000091754 [11:55:17]line Версия ККМ: 001 [11:55:17]line Платежная система: АКБ Кыргызстан [11:55:17]line ФМ: 0000000000871811 [11:55:17]line ФД: 103664 [11:55:17]line ФПД: 234339476296805 [11:55:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115516&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103664&fm=234339476296805&tin=02508201610067®Number=0000000000091754&sum=80012 [11:55:17]written 0, free lines is 4095 [11:55:17]OFD Sender: Processing packet 103664 [packets to send 498, broken 497] [11:55:17]ProducePacketName [11:55:17]name=ofd_packets/00103664 [11:55:17]OFD Sender: To server: pG, [11:55:17]CommunicateWithHost lk.salyk.kg:30040 [11:55:17]ConnectInit lk.salyk.kg [11:55:18]Write to MH i2c: 01 00 00 81 01 82 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: 01 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: 01 07 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 E9 0C 7E [11:55:18]RasterBufferAndPrint [11:55:18]line [11:55:18]line [11:55:18]line [11:55:18]line [11:55:18]line [11:55:18]written 0, free lines is 3311 [11:55:18]MH_Cut [11:55:18]Write to MH i2c: D1 01 00 88 01 01 5B [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: D1 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: D1 01 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: D1 01 00 88 01 00 5A [11:55:18]Write to MH i2c: 01 00 00 89 01 8A [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:19]*** Cut start [11:55:19]*** Partial cut [11:55:19]*** CUTSNS_PIN = 1 [11:55:19]*** CUTSNS_PIN = 0 [11:55:19]*** Brake cut motor [11:55:19]Read from MH i2c: 01 [11:55:19]MH_I2C_Read... [11:55:19]*** Stop cut motor [11:55:19]*** Cut end [11:55:19]Read from MH i2c: 01 07 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: 01 07 00 89 01 00 00 00 00 00 FF 0F 9F [11:55:19]process_action close_receipt done [11:55:19]requested_data is exist [11:55:19]produce_requested_data [11:55:19]requested_item fm.sn is exist - process it [11:55:19]wFMCommunicate request_size=4 [11:55:19]MH_SAM_APDU [11:55:19]CAPDU: 80 11 00 00 [11:55:19]Write to MH i2c: E2 08 00 8A 01 80 11 00 00 00 00 00 00 05 [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:19]Read from MH i2c: E2 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 17 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 17 00 8A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 52 [11:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [11:55:19]wFMCommunicate OK [11:55:19]requested_item fd.num is exist - process it [11:55:19]SAM_PROTO_GetFieldsCounters [11:55:19]wFMCommunicate request_size=4 [11:55:19]MH_SAM_APDU [11:55:19]CAPDU: 80 13 00 00 [11:55:19]Write to MH i2c: E2 08 00 8B 01 80 13 00 00 00 00 00 00 08 [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:19]Read from MH i2c: E2 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 62 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 62 00 8B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F0 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [11:55:19]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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F0 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:19]wFMCommunicate OK [11:55:19]SAM_PROTO_GetFieldsCounters done [11:55:19]requested_item shift.num is exist - process it [11:55:19]requested_item shift.opened is exist - process it [11:55:19]req_shift_opened [11:55:19]FM_GetShiftState [11:55:19]SAM_PROTO_GetShiftState [11:55:19]wFMCommunicate request_size=4 [11:55:19]MH_SAM_APDU [11:55:19]CAPDU: 80 13 01 00 [11:55:19]Write to MH i2c: E2 08 00 8C 01 80 13 01 00 00 00 00 00 0A [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:19]Read from MH i2c: E2 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 0E 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: E2 0E 00 8C 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 43 [11:55:19]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [11:55:19]wFMCommunicate OK [11:55:19]SAM_PROTO_GetShiftState done [11:55:19]FM_GetShiftState done [11:55:19]req_shift_opened done [11:55:19]requested_item shift.open_date is exist - process it [11:55:19]req_shift_open_date [11:55:19]req_shift_open_date done [11:55:19]produce_requested_data done [11:55:19]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103664,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [11:55:19]process_action_free close_receipt [11:55:19]json_value_free [11:55:19]json_value_free done [11:55:19]process_json_proto returns [11:55:19]Send response to host [11:55:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103664,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [11:55:19]free response buf [11:55:19]execute_script done [11:55:19]execute_script returns [11:55:19]free content buf [11:55:19]Sock 7.Close socket [11:55:19]Sock 7.Thread stoped [11:55:23]recv_with_timeout no data received [11:55:26]Connected sock=11 [11:55: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 31 31 0F 01 00 00 55 21 07 01 48 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 24 E4 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F0 94 01 00 35 04 06 00 D5 21 69 3D D4 65 A7 75 8F 5E 35 B0 E5 68 [11:55: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 31 31 4F 00 00 00 92 3E 47 00 7D 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 31 31 10 04 04 00 F0 94 01 00 F4 03 04 00 42 8B 18 67 B6 04 01 00 00 BE 5E C3 67 3F FA 21 97 [11:55:27]CommunicateWithHost err = 0 [11:55:27]CheckOFDResponse [11:55:27]1017 (14) - 77093643461234 [11:55:27]1041 (16) - 0000000000871811 [11:55:27]1040 (4) - 103664 [11:55:27]1012 (4) - 23.10.2024 05:36 [11:55:27]1206 (1) - 0 [11:55:27]OFD Sender: Remove packet 103664 [11:55:27]ProducePacketName [11:55:27]name=ofd_packets/00103664 [11:55:27]NVStorageDeleteData [11:55:27]OFD Sender: No OFD packet to send [11:55:32]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:52]recv_with_timeout no data received [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:09]recv_with_timeout no data received [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:14]recv_with_timeout no data received [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:18]recv_with_timeout no data received [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]recv_with_timeout no data received [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:25]recv_with_timeout no data received [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:34]recv_with_timeout no data received [12:02:39]OFD Sender: No OFD packet to send [12:02:39]accept exits with 10 [12:02:39]New connection [12:02:39]New thread 3066727780 created [12:02:39]Thread 3066871140 joined [12:02:39]Waiting for new connection... [12:02:39] Sock 10.Parse request [12:02:39]Sock 10.Check first char [12:02:39]Sock 10.First char is OK [12:02:39]request: POST /json_proto HTTP/1.0 [12:02:39]Method: POST [12:02:39]URL: /json_proto [12:02:39]Method is POST - this is cgi request [12:02:39]url: /json_proto [12:02:39]query_string will be loaded in cgi processing [12:02:39]execute_cgi json_proto POST (null) [12:02:39]execute_cgi path=json_proto method=POST [12:02:39]POST find Content-Length [12:02:39]Host: 172.17.51.67:8080 [12:02:39]Content-Length: 840 [12:02:39]Content-Type: application/json [12:02:39] [12:02:39]POST finish read [12:02:39]Found Content-Length = 840 [12:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 75.20, "quantity" : 15.960, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:39]execute_script... [12:02:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 75.20, "quantity" : 15.960, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:39]POST & json_proto [12:02:39]process_json_proto [12:02:39]json parsed OK: [12:02:39]protocol is kg_v1.0 [12:02:39]action value=close_receipt [12:02:39]process_action close_receipt [12:02:39]cmd_close_receipt [12:02:39]MH_GetDate [12:02:39]Write to MH i2c: F0 00 00 8D 01 7D [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: F0 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: F0 09 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: F0 09 00 8D 01 00 DF E5 18 67 1E EF FA 64 34 [12:02:39]GetLastDocTimeStamp 1729684516 [12:02:39]current date 1729684959 [12:02:39]FM_GetShiftState [12:02:39]SAM_PROTO_GetShiftState [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 13 01 00 [12:02:39]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 0E 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 45 [12:02:39]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:02:39]wFMCommunicate OK [12:02:39]SAM_PROTO_GetShiftState done [12:02:39]FM_GetShiftState done [12:02:39]opened in 1729642861 [12:02:39]opened+sec_in_day 1729729261 [12:02:39]quantity*price = 120019 [12:02:39]sum+1 = 120020 [12:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.19 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.19 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 77 23.10.2024 12:02 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103665 ФПД: 156113860647058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120239&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103665&fm=156113860647058&tin=02508201610067®Number=0000000000091754&sum=120019 [12:02:40]StoreToDocumentArchive [12:02:40]shift 582 fd 103665 [12:02:40]save to /storage/0582/doc_00103665 [12:02:40]save last doc name /storage/0582/doc_00103665 to /storage/kkm_last_doc_name [12:02:40]save OK [12:02:40]Clear old archive folders... [12:02:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:02:40]tlvbuf is 01C80AA0 [12:02:40]SAM_PROTO_ClearQueue [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 09 00 00 [12:02:40]Write to MH i2c: E2 08 00 9B 01 80 09 00 00 00 00 00 00 0E [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [12:02:40]RAPDU: 90 00 [12:02:40]wFMCommunicate OK [12:02:40]SAM_PROTO_ClearQueue done [12:02:40]KKMCreateOFDPacket [12:02:40]OFDProtocolAddRootSTLVToBuf [12:02:40]FM_MakeSignedData [12:02:40]FM_MakeSignedData [12:02:40]SAM_PROTO_SignData [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 0D 01 02 [12:02:40]Write to MH i2c: E2 08 00 9C 01 80 0D 01 02 00 00 00 00 16 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [12:02:40]RAPDU: 90 00 [12:02:40]wFMCommunicate OK [12:02:40]wFMCommunicate request_size=255 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 58 3E 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DF E5 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F1 94 01 00 35 04 06 00 8D FC 17 35 [12:02:40]Write to MH i2c: E2 02 01 9D 01 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 34 FF 03 08 00 03 58 3E 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DF E5 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F1 94 01 00 35 04 06 00 8D FC 17 35 00 00 CF [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [12:02:40]RAPDU: 90 00 [12:02:40]wFMCommunicate OK [12:02:40]wFMCommunicate request_size=7 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 0D 02 02 02 58 92 [12:02:40]Write to MH i2c: E2 0A 00 9E 01 80 0D 02 02 02 00 58 92 00 00 07 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [12:02:40]RAPDU: 90 00 [12:02:40]wFMCommunicate OK [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 0D 03 02 [12:02:40]Write to MH i2c: E2 08 00 9F 01 80 0D 03 02 00 00 00 00 1B [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 0B 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 0B 00 9F 01 00 FD 39 39 5A 0A 1E CF 42 90 00 1E [12:02:40]RAPDU: FD 39 39 5A 0A 1E CF 42 90 00 [12:02:40]wFMCommunicate OK [12:02:40]SAM_PROTO_SignData done [12:02:40]FM_MakeSignedData done [12:02:40]CreateOFDProtocolMessage [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 11 00 00 [12:02:40]Write to MH i2c: E2 08 00 A0 01 80 11 00 00 00 00 00 00 1B [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 17 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 17 00 A0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 68 [12:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:02:40]wFMCommunicate OK [12:02:40]CreateOFDProtocolMessage done [12:02:40]OFDSenderStorePacket 103665 [12:02:40]StoreOFDPacket docnum=103665 [12:02:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0C 01 00 00 04 37 04 01 9C 03 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 34 FF 03 08 00 03 58 3E 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DF E5 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F1 94 01 00 35 04 06 00 8D FC 17 35 58 92 FD 39 39 5A 0A 1E CF 42 [12:02:40]CheckFolder [12:02:40]dirname=/storage/ofd_packets [12:02:40]CheckFolder done [12:02:40]ProducePacketName [12:02:40]name=ofd_packets/00103665 [12:02:40]NVStorageSaveData ofd_packets/00103665 [12:02:40]File name is /storage/ofd_packets/00103665 [12:02:40]Write 298 bytes [12:02:40]NVStorageSaveData done [12:02:40]OFDSenderStorePacket done [12:02:40]KKMCreateOFDPacket done [12:02:40]NVStorageSaveData kkm_last_timestamp [12:02:40]File name is /storage/kkm_last_timestamp [12:02:40]Write 4 bytes [12:02:40]NVStorageSaveData done [12:02:40]ExternCall_PrintAddStr [12:02:40]wPrintStart [12:02:40]Write to MH i2c: 01 00 00 A1 01 A2 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: 01 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: 01 07 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [12:02:40]RasterBufferAndPrint [12:02:40]line Счет N : (1)317885 [12:02:40]line ИНН: 02508201610067 [12:02:40]line Контрольно-Кассовый Чек [12:02:40]line ПРОДАЖА [12:02:40]line ТРК (МРК, ГНК) : 41 [12:02:40]line Товар: 2710194210 [12:02:40]line ДТ-К-4 [12:02:40]line 15.960 * 75.20 [12:02:40]line = 1200.19 [12:02:40]line НДС 12% НСП 1% [12:02:40]line > о реализуемом товаре [12:02:40]line ИТОГО: 1200.19 [12:02:40]line НСП 1% : 10.62 [12:02:40]line НДС 12% : 127.45 [12:02:40]line Наличными: 0.00 [12:02:40]line Безнал.: 1200.19 [12:02:40]line Место: АЗС № 145 "Партнер Нефть" [12:02:40]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [12:02:40]line СНО: Общий режим [12:02:40]line Чек 77 23.10.2024 12:02 [12:02:40]line Смена: 582 ФФД: 1.0 [12:02:40]line ЗНМ: 0300000095 [12:02:40]line РНМ: 0000000000091754 [12:02:40]line Версия ККМ: 001 [12:02:40]line Платежная система: АКБ Кыргызстан [12:02:40]line ФМ: 0000000000871811 [12:02:40]line ФД: 103665 [12:02:40]line ФПД: 156113860647058 [12:02:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120239&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103665&fm=156113860647058&tin=02508201610067®Number=0000000000091754&sum=120019 [12:02:41]OFD Sender: Processing packet 103665 [packets to send 498, broken 497] [12:02:41]ProducePacketName [12:02:41]name=ofd_packets/00103665 [12:02:41]OFD Sender: To server: pG, [12:02:41]CommunicateWithHost lk.salyk.kg:30040 [12:02:41]ConnectInit lk.salyk.kg [12:02:41]written 0, free lines is 4095 [12:02:41]Write to MH i2c: 01 00 00 CA 01 CB [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: 01 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: 01 07 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: 01 07 00 CA 01 00 00 00 00 00 E7 0C C5 [12:02:41]RasterBufferAndPrint [12:02:41]line [12:02:41]line [12:02:41]line [12:02:41]line [12:02:41]line [12:02:41]written 0, free lines is 3307 [12:02:41]MH_Cut [12:02:41]Write to MH i2c: D1 01 00 D1 01 01 A4 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: D1 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: D1 01 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: D1 01 00 D1 01 00 A3 [12:02:41]Write to MH i2c: 01 00 00 D2 01 D3 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:42]Connected sock=11 [12:02: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 31 31 0C 01 00 00 04 37 04 01 9C 03 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 34 FF 03 08 00 03 58 3E 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DF E5 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F1 94 01 00 35 04 06 00 8D FC 17 35 58 92 FD 39 39 5A 0A 1E CF 42 [12:02: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 31 31 4F 00 00 00 16 86 47 00 85 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F1 94 01 00 F4 03 04 00 F5 8C 18 67 B6 04 01 00 00 90 F5 B9 81 1D 56 53 42 [12:02:42]CommunicateWithHost err = 0 [12:02:42]CheckOFDResponse [12:02:42]1017 (14) - 77093643461234 [12:02:42]1041 (16) - 0000000000871811 [12:02:42]1040 (4) - 103665 [12:02:42]1012 (4) - 23.10.2024 05:43 [12:02:42]1206 (1) - 0 [12:02:42]OFD Sender: Remove packet 103665 [12:02:42]ProducePacketName [12:02:42]name=ofd_packets/00103665 [12:02:42]NVStorageDeleteData [12:02:42]*** Cut start [12:02:42]*** Partial cut [12:02:42]*** CUTSNS_PIN = 1 [12:02:42]*** CUTSNS_PIN = 0 [12:02:42]*** Brake cut motor [12:02:42]OFD Sender: No OFD packet to send [12:02:43]Read from MH i2c: 01 [12:02:43]MH_I2C_Read... [12:02:43]*** Stop cut motor [12:02:43]*** Cut end [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 D2 01 00 00 00 00 00 FF 0F E8 [12:02:43]process_action close_receipt done [12:02:43]requested_data is exist [12:02:43]produce_requested_data [12:02:43]requested_item fm.sn is exist - process it [12:02:43]wFMCommunicate request_size=4 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 11 00 00 [12:02:43]Write to MH i2c: E2 08 00 D3 01 80 11 00 00 00 00 00 00 4E [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 17 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 17 00 D3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 9B [12:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:02:43]wFMCommunicate OK [12:02:43]requested_item fd.num is exist - process it [12:02:43]SAM_PROTO_GetFieldsCounters [12:02:43]wFMCommunicate request_size=4 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 13 00 00 [12:02:43]Write to MH i2c: E2 08 00 D4 01 80 13 00 00 00 00 00 00 51 [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 62 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 62 00 D4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F1 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [12:02: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F1 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:43]wFMCommunicate OK [12:02:43]SAM_PROTO_GetFieldsCounters done [12:02:43]requested_item shift.num is exist - process it [12:02:43]requested_item shift.opened is exist - process it [12:02:43]req_shift_opened [12:02:43]FM_GetShiftState [12:02:43]SAM_PROTO_GetShiftState [12:02:43]wFMCommunicate request_size=4 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 13 01 00 [12:02:43]Write to MH i2c: E2 08 00 D5 01 80 13 01 00 00 00 00 00 53 [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 0E 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 0E 00 D5 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 8C [12:02:43]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:02:43]wFMCommunicate OK [12:02:43]SAM_PROTO_GetShiftState done [12:02:43]FM_GetShiftState done [12:02:43]req_shift_opened done [12:02:43]requested_item shift.open_date is exist - process it [12:02:43]req_shift_open_date [12:02:43]req_shift_open_date done [12:02:43]produce_requested_data done [12:02:43]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103665,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:02:43]process_action_free close_receipt [12:02:43]json_value_free [12:02:43]json_value_free done [12:02:43]process_json_proto returns [12:02:43]Send response to host [12:02:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103665,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:02:43]free response buf [12:02:43]execute_script done [12:02:43]execute_script returns [12:02:43]free content buf [12:02:43]Sock 10.Close socket [12:02:43]Sock 10.Thread stoped [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:39]recv_with_timeout no data received [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:55]recv_with_timeout no data received [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:35]recv_with_timeout no data received [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:21]recv_with_timeout no data received [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:52]recv_with_timeout no data received [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:11]accept exits with 7 [12:07:11]New connection [12:07:11]New thread 3066871140 created [12:07:11]Thread 3066727780 joined [12:07:11]Waiting for new connection... [12:07:11] Sock 7.Parse request [12:07:11]Sock 7.Check first char [12:07:11]Sock 7.First char is OK [12:07:11]request: POST /json_proto HTTP/1.0 [12:07:11]Method: POST [12:07:11]URL: /json_proto [12:07:11]Method is POST - this is cgi request [12:07:11]url: /json_proto [12:07:11]query_string will be loaded in cgi processing [12:07:11]execute_cgi json_proto POST (null) [12:07:11]execute_cgi path=json_proto method=POST [12:07:11]POST find Content-Length [12:07:11]Host: 172.17.51.67:8080 [12:07:11]Content-Length: 841 [12:07:11]Content-Type: application/json [12:07:11] [12:07:11]POST finish read [12:07:11]Found Content-Length = 841 [12:07:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:11]execute_script... [12:07:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:11]POST & json_proto [12:07:11]process_json_proto [12:07:11]json parsed OK: [12:07:11]protocol is kg_v1.0 [12:07:11]action value=close_receipt [12:07:11]process_action close_receipt [12:07:11]cmd_close_receipt [12:07:11]MH_GetDate [12:07:11]Write to MH i2c: F0 00 00 D6 01 C6 [12:07:11]Write i2c OK [12:07:11]MH_I2C_Read... [12:07:11]Read from MH i2c: F0 [12:07:11]MH_I2C_Read... [12:07:11]Read from MH i2c: F0 09 00 [12:07:11]MH_I2C_Read... [12:07:11]Read from MH i2c: F0 09 00 D6 01 00 EF E6 18 67 1E EF FA 64 8E [12:07:11]GetLastDocTimeStamp 1729684959 [12:07:11]current date 1729685231 [12:07:11]FM_GetShiftState [12:07:11]SAM_PROTO_GetShiftState [12:07:11]wFMCommunicate request_size=4 [12:07:11]MH_SAM_APDU [12:07:11]CAPDU: 80 13 01 00 [12:07:11]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [12:07:11]Write i2c OK [12:07:11]MH_I2C_Read... [12:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:11]Read from MH i2c: E2 [12:07:11]MH_I2C_Read... [12:07:11]Read from MH i2c: E2 0E 00 [12:07:11]MH_I2C_Read... [12:07:11]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 8E [12:07:11]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:07:11]wFMCommunicate OK [12:07:11]SAM_PROTO_GetShiftState done [12:07:11]FM_GetShiftState done [12:07:11]opened in 1729642861 [12:07:11]opened+sec_in_day 1729729261 [12:07:11]quantity*price = 70044 [12:07:11]sum+1 = 70045 [12:07:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 78 23.10.2024 12:07 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103666 ФПД: 41126663359432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120711&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103666&fm=41126663359432&tin=02508201610067®Number=0000000000091754&sum=70044 [12:07:12]StoreToDocumentArchive [12:07:12]shift 582 fd 103666 [12:07:12]save to /storage/0582/doc_00103666 [12:07:12]save last doc name /storage/0582/doc_00103666 to /storage/kkm_last_doc_name [12:07:12]save OK [12:07:12]Clear old archive folders... [12:07:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:12]tlvbuf is 01C849A0 [12:07:12]SAM_PROTO_ClearQueue [12:07:12]wFMCommunicate request_size=4 [12:07:12]MH_SAM_APDU [12:07:12]CAPDU: 80 09 00 00 [12:07:12]Write to MH i2c: E2 08 00 E4 01 80 09 00 00 00 00 00 00 57 [12:07:12]Write i2c OK [12:07:12]MH_I2C_Read... [12:07:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:12]Read from MH i2c: E2 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 03 00 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [12:07:12]RAPDU: 90 00 [12:07:12]wFMCommunicate OK [12:07:12]SAM_PROTO_ClearQueue done [12:07:12]KKMCreateOFDPacket [12:07:12]OFDProtocolAddRootSTLVToBuf [12:07:12]FM_MakeSignedData [12:07:12]FM_MakeSignedData [12:07:12]SAM_PROTO_SignData [12:07:12]wFMCommunicate request_size=4 [12:07:12]MH_SAM_APDU [12:07:12]CAPDU: 80 0D 01 02 [12:07:12]Write to MH i2c: E2 08 00 E5 01 80 0D 01 02 00 00 00 00 5F [12:07:12]Write i2c OK [12:07:12]MH_I2C_Read... [12:07:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:12]Read from MH i2c: E2 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 03 00 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [12:07:12]RAPDU: 90 00 [12:07:12]wFMCommunicate OK [12:07:12]wFMCommunicate request_size=255 [12:07:12]MH_SAM_APDU [12:07:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 EF E6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F2 94 01 00 35 04 06 00 25 [12:07:12]Write to MH i2c: E2 02 01 E6 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 EF E6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F2 94 01 00 35 04 06 00 25 00 00 E6 [12:07:12]Write i2c OK [12:07:12]MH_I2C_Read... [12:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:13]Read from MH i2c: E2 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 03 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [12:07:13]RAPDU: 90 00 [12:07:13]wFMCommunicate OK [12:07:13]wFMCommunicate request_size=10 [12:07:13]MH_SAM_APDU [12:07:13]CAPDU: 80 0D 02 02 05 67 8C 29 0B C8 [12:07:13]Write to MH i2c: E2 0D 00 E7 01 80 0D 02 02 05 00 67 8C 29 0B C8 00 00 5B [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:13]Read from MH i2c: E2 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 03 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [12:07:13]RAPDU: 90 00 [12:07:13]wFMCommunicate OK [12:07:13]wFMCommunicate request_size=4 [12:07:13]MH_SAM_APDU [12:07:13]CAPDU: 80 0D 03 02 [12:07:13]Write to MH i2c: E2 08 00 E8 01 80 0D 03 02 00 00 00 00 64 [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:13]Read from MH i2c: E2 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 0B 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 0B 00 E8 01 00 70 3E D7 58 70 53 8D 46 90 00 D8 [12:07:13]RAPDU: 70 3E D7 58 70 53 8D 46 90 00 [12:07:13]wFMCommunicate OK [12:07:13]SAM_PROTO_SignData done [12:07:13]FM_MakeSignedData done [12:07:13]CreateOFDProtocolMessage [12:07:13]wFMCommunicate request_size=4 [12:07:13]MH_SAM_APDU [12:07:13]CAPDU: 80 11 00 00 [12:07:13]Write to MH i2c: E2 08 00 E9 01 80 11 00 00 00 00 00 00 64 [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:13]Read from MH i2c: E2 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 17 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 17 00 E9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 B1 [12:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:07:13]wFMCommunicate OK [12:07:13]CreateOFDProtocolMessage done [12:07:13]OFDSenderStorePacket 103666 [12:07:13]StoreOFDPacket docnum=103666 [12:07:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 1A 7A 07 01 45 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 EF E6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F2 94 01 00 35 04 06 00 25 67 8C 29 0B C8 70 3E D7 58 70 53 8D 46 [12:07:13]CheckFolder [12:07:13]dirname=/storage/ofd_packets [12:07:13]CheckFolder done [12:07:13]ProducePacketName [12:07:13]name=ofd_packets/00103666 [12:07:13]NVStorageSaveData ofd_packets/00103666 [12:07:13]File name is /storage/ofd_packets/00103666 [12:07:13]Write 301 bytes [12:07:13]NVStorageSaveData done [12:07:13]OFDSenderStorePacket done [12:07:13]KKMCreateOFDPacket done [12:07:13]NVStorageSaveData kkm_last_timestamp [12:07:13]File name is /storage/kkm_last_timestamp [12:07:13]Write 4 bytes [12:07:13]NVStorageSaveData done [12:07:13]ExternCall_PrintAddStr [12:07:13]wPrintStart [12:07:13]Write to MH i2c: 01 00 00 EA 01 EB [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: 01 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: 01 07 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 FF 0F 00 [12:07:13]RasterBufferAndPrint [12:07:13]line Счет N : (1)317887 [12:07:13]line ИНН: 02508201610067 [12:07:13]line Контрольно-Кассовый Чек [12:07:13]line ПРОДАЖА [12:07:13]line ТРК (МРК, ГНК) : 53 [12:07:13]line Товар: 2710124130 [12:07:13]line Аи-92-К-4 [12:07:13]line 10.470 * 66.90 [12:07:13]line = 700.44 [12:07:13]line НДС 12% НСП 1% [12:07:13]line > о реализуемом товаре [12:07:13]line ИТОГО: 700.44 [12:07:13]line НСП 1% : 6.20 [12:07:13]line НДС 12% : 74.38 [12:07:13]line Наличными: 0.00 [12:07:13]line Безнал.: 700.44 [12:07:13]line Место: АЗС № 145 "Партнер Нефть" [12:07:13]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [12:07:13]line СНО: Общий режим [12:07:13]line Чек 78 23.10.2024 12:07 [12:07:13]line Смена: 582 ФФД: 1.0 [12:07:13]line ЗНМ: 0300000095 [12:07:13]line РНМ: 0000000000091754 [12:07:13]line Версия ККМ: 001 [12:07:13]line Платежная система: АКБ Кыргызстан [12:07:13]line ФМ: 0000000000871811 [12:07:13]line ФД: 103666 [12:07:13]line ФПД: 41126663359432 [12:07:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120711&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103666&fm=41126663359432&tin=02508201610067®Number=0000000000091754&sum=70044 [12:07:13]written 0, free lines is 4095 [12:07:13]OFD Sender: Processing packet 103666 [packets to send 498, broken 497] [12:07:13]ProducePacketName [12:07:13]name=ofd_packets/00103666 [12:07:13]OFD Sender: To server: pG, [12:07:13]CommunicateWithHost lk.salyk.kg:30040 [12:07:13]ConnectInit lk.salyk.kg [12:07:13]Write to MH i2c: 01 00 00 13 02 15 [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: 01 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: 01 07 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: 01 07 00 13 02 00 00 00 00 00 E6 0C 0E [12:07:13]RasterBufferAndPrint [12:07:13]line [12:07:13]line [12:07:13]line [12:07:13]line [12:07:13]line [12:07:13]written 0, free lines is 3308 [12:07:13]MH_Cut [12:07:13]Write to MH i2c: D1 01 00 1A 02 01 EE [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: D1 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: D1 01 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: D1 01 00 1A 02 00 ED [12:07:13]Write to MH i2c: 01 00 00 1B 02 1D [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:14]*** Cut start [12:07:14]*** Partial cut [12:07:14]*** CUTSNS_PIN = 1 [12:07:14]*** CUTSNS_PIN = 0 [12:07:14]*** Brake cut motor [12:07:15]Read from MH i2c: 01 [12:07:15]MH_I2C_Read... [12:07:15]*** Stop cut motor [12:07:15]*** Cut end [12:07:15]Read from MH i2c: 01 07 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 FF 0F 32 [12:07:15]process_action close_receipt done [12:07:15]requested_data is exist [12:07:15]produce_requested_data [12:07:15]requested_item fm.sn is exist - process it [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 11 00 00 [12:07:15]Write to MH i2c: E2 08 00 1C 02 80 11 00 00 00 00 00 00 98 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]Connected sock=10 [12:07: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 31 31 0F 01 00 00 1A 7A 07 01 45 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 EF E6 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F2 94 01 00 35 04 06 00 25 67 8C 29 0B C8 70 3E D7 58 70 53 8D 46 [12:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 17 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 17 00 1C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 E5 [12:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:07:15]wFMCommunicate OK [12:07:15]requested_item fd.num is exist - process it [12:07:15]SAM_PROTO_GetFieldsCounters [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 13 00 00 [12:07:15]Write to MH i2c: E2 08 00 1D 02 80 13 00 00 00 00 00 00 9B [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 62 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 62 00 1D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F2 94 01 00 0E 04 04 00 46 02 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 70 [12:07: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F2 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:15]wFMCommunicate OK [12:07:15]SAM_PROTO_GetFieldsCounters done [12:07:15]requested_item shift.num is exist - process it [12:07:15]requested_item shift.opened is exist - process it [12:07:15]req_shift_opened [12:07:15]FM_GetShiftState [12:07:15]SAM_PROTO_GetShiftState [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 13 01 00 [12:07:15]Write to MH i2c: E2 08 00 1E 02 80 13 01 00 00 00 00 00 9D [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 0E 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 0E 00 1E 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D6 [12:07:15]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:07:15]wFMCommunicate OK [12:07:15]SAM_PROTO_GetShiftState done [12:07:15]FM_GetShiftState done [12:07:15]req_shift_opened done [12:07:15]requested_item shift.open_date is exist - process it [12:07:15]req_shift_open_date [12:07:15]req_shift_open_date done [12:07:15]produce_requested_data done [12:07:15]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103666,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:07:15]process_action_free close_receipt [12:07:15]json_value_free [12:07:15]json_value_free done [12:07:15]process_json_proto returns [12:07:15]Send response to host [12:07:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103666,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:07:15]free response buf [12:07:15]execute_script done [12:07:15]execute_script returns [12:07:15]free content buf [12:07:15]Sock 7.Close socket [12:07:15]Sock 7.Thread stoped [12:07: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 31 31 4F 00 00 00 99 EE 47 00 36 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 31 31 10 04 04 00 F2 94 01 00 F4 03 04 00 07 8E 18 67 B6 04 01 00 00 BC 1F 8F EC 42 24 42 A7 [12:07:15]CommunicateWithHost err = 0 [12:07:15]CheckOFDResponse [12:07:15]1017 (14) - 77093643461234 [12:07:15]1041 (16) - 0000000000871811 [12:07:15]1040 (4) - 103666 [12:07:15]1012 (4) - 23.10.2024 05:47 [12:07:15]1206 (1) - 0 [12:07:15]OFD Sender: Remove packet 103666 [12:07:15]ProducePacketName [12:07:15]name=ofd_packets/00103666 [12:07:15]NVStorageDeleteData [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:15]accept exits with 9 [12:08:15]New connection [12:08:15]New thread 3066727780 created [12:08:15]Thread 3066871140 joined [12:08:15]Waiting for new connection... [12:08:15] Sock 9.Parse request [12:08:15]Sock 9.Check first char [12:08:15]Sock 9.First char is OK [12:08:15]request: POST /json_proto HTTP/1.0 [12:08:15]Method: POST [12:08:15]URL: /json_proto [12:08:15]Method is POST - this is cgi request [12:08:15]url: /json_proto [12:08:15]query_string will be loaded in cgi processing [12:08:15]execute_cgi json_proto POST (null) [12:08:15]execute_cgi path=json_proto method=POST [12:08:15]POST find Content-Length [12:08:15]Host: 172.17.51.67:8080 [12:08:15]Content-Length: 840 [12:08:15]Content-Type: application/json [12:08:15] [12:08:15]POST finish read [12:08:15]Found Content-Length = 840 [12:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:15]execute_script... [12:08:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:15]POST & json_proto [12:08:15]process_json_proto [12:08:15]json parsed OK: [12:08:15]protocol is kg_v1.0 [12:08:15]action value=close_receipt [12:08:15]process_action close_receipt [12:08:15]cmd_close_receipt [12:08:15]MH_GetDate [12:08:15]Write to MH i2c: F0 00 00 1F 02 10 [12:08:15]Write i2c OK [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: F0 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: F0 09 00 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: F0 09 00 1F 02 00 2F E7 18 67 1E EF FA 64 19 [12:08:15]GetLastDocTimeStamp 1729685231 [12:08:15]current date 1729685295 [12:08:15]FM_GetShiftState [12:08:15]SAM_PROTO_GetShiftState [12:08:15]wFMCommunicate request_size=4 [12:08:15]MH_SAM_APDU [12:08:15]CAPDU: 80 13 01 00 [12:08:15]Write to MH i2c: E2 08 00 20 02 80 13 01 00 00 00 00 00 9F [12:08:15]Write i2c OK [12:08:15]MH_I2C_Read... [12:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:15]Read from MH i2c: E2 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: E2 0E 00 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: E2 0E 00 20 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 D8 [12:08:15]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:08:15]wFMCommunicate OK [12:08:15]SAM_PROTO_GetShiftState done [12:08:15]FM_GetShiftState done [12:08:15]opened in 1729642861 [12:08:15]opened+sec_in_day 1729729261 [12:08:15]quantity*price = 50041 [12:08:15]sum+1 = 50042 [12:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 79 23.10.2024 12:08 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103667 ФПД: 194004464144202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120815&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103667&fm=194004464144202&tin=02508201610067®Number=0000000000091754&sum=50041 [12:08:16]StoreToDocumentArchive [12:08:16]shift 582 fd 103667 [12:08:16]save to /storage/0582/doc_00103667 [12:08:16]save last doc name /storage/0582/doc_00103667 to /storage/kkm_last_doc_name [12:08:16]save OK [12:08:16]Clear old archive folders... [12:08:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:16]tlvbuf is 01C095B0 [12:08:16]SAM_PROTO_ClearQueue [12:08:16]wFMCommunicate request_size=4 [12:08:16]MH_SAM_APDU [12:08:16]CAPDU: 80 09 00 00 [12:08:16]Write to MH i2c: E2 08 00 2D 02 80 09 00 00 00 00 00 00 A1 [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:16]Read from MH i2c: E2 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 03 00 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [12:08:16]RAPDU: 90 00 [12:08:16]wFMCommunicate OK [12:08:16]SAM_PROTO_ClearQueue done [12:08:16]KKMCreateOFDPacket [12:08:16]OFDProtocolAddRootSTLVToBuf [12:08:16]FM_MakeSignedData [12:08:16]FM_MakeSignedData [12:08:16]SAM_PROTO_SignData [12:08:16]wFMCommunicate request_size=4 [12:08:16]MH_SAM_APDU [12:08:16]CAPDU: 80 0D 01 02 [12:08:16]Write to MH i2c: E2 08 00 2E 02 80 0D 01 02 00 00 00 00 A9 [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:16]Read from MH i2c: E2 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 03 00 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [12:08:16]RAPDU: 90 00 [12:08:16]wFMCommunicate OK [12:08:16]wFMCommunicate request_size=255 [12:08:16]MH_SAM_APDU [12:08: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 2F E7 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F3 94 01 00 35 04 06 00 B0 [12:08:16]Write to MH i2c: E2 02 01 2F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 2F E7 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F3 94 01 00 35 04 06 00 B0 00 00 E8 [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:17]Read from MH i2c: E2 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 03 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [12:08:17]RAPDU: 90 00 [12:08:17]wFMCommunicate OK [12:08:17]wFMCommunicate request_size=10 [12:08:17]MH_SAM_APDU [12:08:17]CAPDU: 80 0D 02 02 05 72 2F 2B 8F 4A [12:08:17]Write to MH i2c: E2 0D 00 30 02 80 0D 02 02 05 00 72 2F 2B 8F 4A 00 00 5B [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:17]Read from MH i2c: E2 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 03 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [12:08:17]RAPDU: 90 00 [12:08:17]wFMCommunicate OK [12:08:17]wFMCommunicate request_size=4 [12:08:17]MH_SAM_APDU [12:08:17]CAPDU: 80 0D 03 02 [12:08:17]Write to MH i2c: E2 08 00 31 02 80 0D 03 02 00 00 00 00 AE [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:17]Read from MH i2c: E2 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 0B 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 0B 00 31 02 00 E6 10 E4 09 58 8D 3F CA 90 00 80 [12:08:17]RAPDU: E6 10 E4 09 58 8D 3F CA 90 00 [12:08:17]wFMCommunicate OK [12:08:17]SAM_PROTO_SignData done [12:08:17]FM_MakeSignedData done [12:08:17]CreateOFDProtocolMessage [12:08:17]wFMCommunicate request_size=4 [12:08:17]MH_SAM_APDU [12:08:17]CAPDU: 80 11 00 00 [12:08:17]Write to MH i2c: E2 08 00 32 02 80 11 00 00 00 00 00 00 AE [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:17]Read from MH i2c: E2 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 17 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 17 00 32 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 FB [12:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:08:17]wFMCommunicate OK [12:08:17]CreateOFDProtocolMessage done [12:08:17]OFDSenderStorePacket 103667 [12:08:17]StoreOFDPacket docnum=103667 [12:08:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 7B D1 07 01 44 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 2F E7 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F3 94 01 00 35 04 06 00 B0 72 2F 2B 8F 4A E6 10 E4 09 58 8D 3F CA [12:08:17]CheckFolder [12:08:17]dirname=/storage/ofd_packets [12:08:17]CheckFolder done [12:08:17]ProducePacketName [12:08:17]name=ofd_packets/00103667 [12:08:17]NVStorageSaveData ofd_packets/00103667 [12:08:17]File name is /storage/ofd_packets/00103667 [12:08:17]Write 301 bytes [12:08:17]NVStorageSaveData done [12:08:17]OFDSenderStorePacket done [12:08:17]KKMCreateOFDPacket done [12:08:17]NVStorageSaveData kkm_last_timestamp [12:08:17]File name is /storage/kkm_last_timestamp [12:08:17]Write 4 bytes [12:08:17]NVStorageSaveData done [12:08:17]ExternCall_PrintAddStr [12:08:17]wPrintStart [12:08:17]Write to MH i2c: 01 00 00 33 02 35 [12:08:17]OFD Sender: Processing packet 103667 [packets to send 498, broken 497] [12:08:17]ProducePacketName [12:08:17]name=ofd_packets/00103667 [12:08:17]OFD Sender: To server: pG, [12:08:17]CommunicateWithHost lk.salyk.kg:30040 [12:08:17]ConnectInit lk.salyk.kg [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: 01 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: 01 07 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 FF 0F 4A [12:08:17]RasterBufferAndPrint [12:08:17]line Счет N : (1)317888 [12:08:17]line ИНН: 02508201610067 [12:08:17]line Контрольно-Кассовый Чек [12:08:17]line ПРОДАЖА [12:08:17]line ТРК (МРК, ГНК) : 43 [12:08:17]line Товар: 2710124130 [12:08:17]line Аи-92-К-4 [12:08:17]line 7.480 * 66.90 [12:08:17]line = 500.41 [12:08:17]line НДС 12% НСП 1% [12:08:17]line > о реализуемом товаре [12:08:17]line ИТОГО: 500.41 [12:08:17]line НСП 1% : 4.43 [12:08:17]line НДС 12% : 53.14 [12:08:17]line Наличными: 0.00 [12:08:17]line Безнал.: 500.41 [12:08:17]line Место: АЗС № 145 "Партнер Нефть" [12:08:17]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [12:08:17]line СНО: Общий режим [12:08:17]line Чек 79 23.10.2024 12:08 [12:08:17]line Смена: 582 ФФД: 1.0 [12:08:17]line ЗНМ: 0300000095 [12:08:17]line РНМ: 0000000000091754 [12:08:17]line Версия ККМ: 001 [12:08:17]line Платежная система: АКБ Кыргызстан [12:08:17]line ФМ: 0000000000871811 [12:08:17]line ФД: 103667 [12:08:17]line ФПД: 194004464144202 [12:08:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120815&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103667&fm=194004464144202&tin=02508201610067®Number=0000000000091754&sum=50041 [12:08:17]written 0, free lines is 4095 [12:08:17]Write to MH i2c: 01 00 00 5C 02 5E [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: 01 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: 01 07 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: 01 07 00 5C 02 00 00 00 00 00 DF 0C 50 [12:08:17]RasterBufferAndPrint [12:08:17]line [12:08:17]line [12:08:17]line [12:08:17]line [12:08:17]line [12:08:17]written 0, free lines is 3301 [12:08:17]MH_Cut [12:08:17]Write to MH i2c: D1 01 00 63 02 01 37 [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: D1 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: D1 01 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: D1 01 00 63 02 00 36 [12:08:17]Write to MH i2c: 01 00 00 64 02 66 [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:18]*** Cut start [12:08:18]*** Partial cut [12:08:18]*** CUTSNS_PIN = 1 [12:08:18]*** CUTSNS_PIN = 0 [12:08:18]*** Brake cut motor [12:08:18]Connected sock=7 [12:08: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 31 31 0F 01 00 00 7B D1 07 01 44 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 2F E7 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F3 94 01 00 35 04 06 00 B0 72 2F 2B 8F 4A E6 10 E4 09 58 8D 3F CA [12:08:19]Read from MH i2c: 01 [12:08:19]MH_I2C_Read... [12:08:19]*** Stop cut motor [12:08:19]*** Cut end [12:08:19]Read from MH i2c: 01 07 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 FF 0F 7B [12:08:19]process_action close_receipt done [12:08:19]requested_data is exist [12:08:19]produce_requested_data [12:08:19]requested_item fm.sn is exist - process it [12:08:19]wFMCommunicate request_size=4 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 11 00 00 [12:08:19]Write to MH i2c: E2 08 00 65 02 80 11 00 00 00 00 00 00 E1 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08: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 31 31 4F 00 00 00 77 18 47 00 E3 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 31 31 10 04 04 00 F3 94 01 00 F4 03 04 00 46 8E 18 67 B6 04 01 00 00 29 BB D2 10 82 01 8B B7 [12:08:19]CommunicateWithHost err = 0 [12:08:19]CheckOFDResponse [12:08:19]1017 (14) - 77093643461234 [12:08:19]1041 (16) - 0000000000871811 [12:08:19]1040 (4) - 103667 [12:08:19]1012 (4) - 23.10.2024 05:48 [12:08:19]1206 (1) - 0 [12:08:19]OFD Sender: Remove packet 103667 [12:08:19]ProducePacketName [12:08:19]name=ofd_packets/00103667 [12:08:19]NVStorageDeleteData [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 17 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 17 00 65 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 2E [12:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:08:19]wFMCommunicate OK [12:08:19]requested_item fd.num is exist - process it [12:08:19]SAM_PROTO_GetFieldsCounters [12:08:19]wFMCommunicate request_size=4 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 13 00 00 [12:08:19]Write to MH i2c: E2 08 00 66 02 80 13 00 00 00 00 00 00 E4 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 62 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 62 00 66 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F3 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [12:08:19]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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F3 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:19]wFMCommunicate OK [12:08:19]SAM_PROTO_GetFieldsCounters done [12:08:19]requested_item shift.num is exist - process it [12:08:19]requested_item shift.opened is exist - process it [12:08:19]req_shift_opened [12:08:19]FM_GetShiftState [12:08:19]SAM_PROTO_GetShiftState [12:08:19]wFMCommunicate request_size=4 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 13 01 00 [12:08:19]Write to MH i2c: E2 08 00 67 02 80 13 01 00 00 00 00 00 E6 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 0E 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 0E 00 67 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 1F [12:08:19]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:08:19]wFMCommunicate OK [12:08:19]SAM_PROTO_GetShiftState done [12:08:19]FM_GetShiftState done [12:08:19]req_shift_opened done [12:08:19]requested_item shift.open_date is exist - process it [12:08:19]req_shift_open_date [12:08:19]req_shift_open_date done [12:08:19]produce_requested_data done [12:08:19]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103667,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:08:19]process_action_free close_receipt [12:08:19]json_value_free [12:08:19]json_value_free done [12:08:19]process_json_proto returns [12:08:19]Send response to host [12:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103667,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:08:19]free response buf [12:08:19]execute_script done [12:08:19]execute_script returns [12:08:19]free content buf [12:08:19]Sock 9.Close socket [12:08:19]Sock 9.Thread stoped [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:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]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:15]recv_with_timeout no data received [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:38]recv_with_timeout no data received [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:33]accept exits with 10 [12:12:33]New connection [12:12:33]New thread 3066871140 created [12:12:33]Thread 3066727780 joined [12:12:33]Waiting for new connection... [12:12:33] Sock 10.Parse request [12:12:33]Sock 10.Check first char [12:12:33]Sock 10.First char is OK [12:12:33]request: POST /json_proto HTTP/1.0 [12:12:33]Method: POST [12:12:33]URL: /json_proto [12:12:33]Method is POST - this is cgi request [12:12:33]url: /json_proto [12:12:33]query_string will be loaded in cgi processing [12:12:33]execute_cgi json_proto POST (null) [12:12:33]execute_cgi path=json_proto method=POST [12:12:33]POST find Content-Length [12:12:33]Host: 172.17.51.67:8080 [12:12:33]Content-Length: 677 [12:12:33]Content-Type: application/json [12:12:33] [12:12:33]POST finish read [12:12:33]Found Content-Length = 677 [12:12:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:33]execute_script... [12:12:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:33]POST & json_proto [12:12:33]process_json_proto [12:12:33]json parsed OK: [12:12:33]protocol is kg_v1.0 [12:12:33]action value=close_receipt [12:12:33]process_action close_receipt [12:12:33]cmd_close_receipt [12:12:33]MH_GetDate [12:12:33]Write to MH i2c: F0 00 00 68 02 59 [12:12:33]Write i2c OK [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: F0 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: F0 09 00 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: F0 09 00 68 02 00 31 E8 18 67 1E EF FA 64 65 [12:12:33]GetLastDocTimeStamp 1729685295 [12:12:33]current date 1729685553 [12:12:33]FM_GetShiftState [12:12:33]SAM_PROTO_GetShiftState [12:12:33]wFMCommunicate request_size=4 [12:12:33]MH_SAM_APDU [12:12:33]CAPDU: 80 13 01 00 [12:12:33]Write to MH i2c: E2 08 00 69 02 80 13 01 00 00 00 00 00 E8 [12:12:33]Write i2c OK [12:12:33]MH_I2C_Read... [12:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:33]Read from MH i2c: E2 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: E2 0E 00 [12:12:33]MH_I2C_Read... [12:12:33]Read from MH i2c: E2 0E 00 69 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 21 [12:12:33]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:12:33]wFMCommunicate OK [12:12:33]SAM_PROTO_GetShiftState done [12:12:33]FM_GetShiftState done [12:12:33]opened in 1729642861 [12:12:33]opened+sec_in_day 1729729261 [12:12:33]quantity*price = 50041 [12:12:33]sum+1 = 50042 [12:12:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 80 23.10.2024 12:12 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103668 ФПД: 96295607348798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121233&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103668&fm=96295607348798&tin=02508201610067®Number=0000000000091754&sum=50000 [12:12:34]StoreToDocumentArchive [12:12:34]shift 582 fd 103668 [12:12:34]save to /storage/0582/doc_00103668 [12:12:34]save last doc name /storage/0582/doc_00103668 to /storage/kkm_last_doc_name [12:12:34]save OK [12:12:34]Clear old archive folders... [12:12:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:34]tlvbuf is 01C0FA80 [12:12:34]SAM_PROTO_ClearQueue [12:12:34]wFMCommunicate request_size=4 [12:12:34]MH_SAM_APDU [12:12:34]CAPDU: 80 09 00 00 [12:12:34]Write to MH i2c: E2 08 00 76 02 80 09 00 00 00 00 00 00 EA [12:12:34]Write i2c OK [12:12:34]MH_I2C_Read... [12:12:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:34]Read from MH i2c: E2 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 03 00 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [12:12:34]RAPDU: 90 00 [12:12:34]wFMCommunicate OK [12:12:34]SAM_PROTO_ClearQueue done [12:12:34]KKMCreateOFDPacket [12:12:34]OFDProtocolAddRootSTLVToBuf [12:12:34]FM_MakeSignedData [12:12:34]FM_MakeSignedData [12:12:34]SAM_PROTO_SignData [12:12:34]wFMCommunicate request_size=4 [12:12:34]MH_SAM_APDU [12:12:34]CAPDU: 80 0D 01 02 [12:12:34]Write to MH i2c: E2 08 00 77 02 80 0D 01 02 00 00 00 00 F2 [12:12:34]Write i2c OK [12:12:34]MH_I2C_Read... [12:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:34]Read from MH i2c: E2 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 03 00 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [12:12:34]RAPDU: 90 00 [12:12:34]wFMCommunicate OK [12:12:34]wFMCommunicate request_size=255 [12:12:34]MH_SAM_APDU [12:12:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 31 E8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F4 94 01 00 35 04 06 00 57 [12:12:34]Write to MH i2c: E2 02 01 78 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 31 E8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F4 94 01 00 35 04 06 00 57 00 00 8B [12:12:34]Write i2c OK [12:12:34]MH_I2C_Read... [12:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:35]Read from MH i2c: E2 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: E2 03 00 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [12:12:35]RAPDU: 90 00 [12:12:35]wFMCommunicate OK [12:12:35]wFMCommunicate request_size=10 [12:12:35]MH_SAM_APDU [12:12:35]CAPDU: 80 0D 02 02 05 94 91 78 2E 3E [12:12:35]Write to MH i2c: E2 0D 00 79 02 80 0D 02 02 05 00 94 91 78 2E 3E 00 00 08 [12:12:35]Write i2c OK [12:12:35]MH_I2C_Read... [12:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:35]Read from MH i2c: E2 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: E2 03 00 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [12:12:35]RAPDU: 90 00 [12:12:35]wFMCommunicate OK [12:12:35]wFMCommunicate request_size=4 [12:12:35]MH_SAM_APDU [12:12:35]CAPDU: 80 0D 03 02 [12:12:35]Write to MH i2c: E2 08 00 7A 02 80 0D 03 02 00 00 00 00 F7 [12:12:35]Write i2c OK [12:12:35]MH_I2C_Read... [12:12:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:35]Read from MH i2c: E2 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: E2 0B 00 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: E2 0B 00 7A 02 00 22 B9 CA 4F A8 FE BE DA 90 00 2A [12:12:35]RAPDU: 22 B9 CA 4F A8 FE BE DA 90 00 [12:12:35]wFMCommunicate OK [12:12:35]SAM_PROTO_SignData done [12:12:35]FM_MakeSignedData done [12:12:35]CreateOFDProtocolMessage [12:12:35]wFMCommunicate request_size=4 [12:12:35]MH_SAM_APDU [12:12:35]CAPDU: 80 11 00 00 [12:12:35]Write to MH i2c: E2 08 00 7B 02 80 11 00 00 00 00 00 00 F7 [12:12:35]Write i2c OK [12:12:35]MH_I2C_Read... [12:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:35]Read from MH i2c: E2 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: E2 17 00 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: E2 17 00 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 44 [12:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:12:35]wFMCommunicate OK [12:12:35]CreateOFDProtocolMessage done [12:12:35]OFDSenderStorePacket 103668 [12:12:35]StoreOFDPacket docnum=103668 [12:12:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 1A 2F 07 01 5A BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 31 E8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F4 94 01 00 35 04 06 00 57 94 91 78 2E 3E 22 B9 CA 4F A8 FE BE DA [12:12:35]CheckFolder [12:12:35]dirname=/storage/ofd_packets [12:12:35]CheckFolder done [12:12:35]ProducePacketName [12:12:35]name=ofd_packets/00103668 [12:12:35]NVStorageSaveData ofd_packets/00103668 [12:12:35]File name is /storage/ofd_packets/00103668 [12:12:35]Write 301 bytes [12:12:35]NVStorageSaveData done [12:12:35]OFDSenderStorePacket done [12:12:35]KKMCreateOFDPacket done [12:12:35]NVStorageSaveData kkm_last_timestamp [12:12:35]File name is /storage/kkm_last_timestamp [12:12:35]Write 4 bytes [12:12:35]NVStorageSaveData done [12:12:35]ExternCall_PrintAddStr [12:12:35]wPrintStart [12:12:35]Write to MH i2c: 01 00 00 7C 02 7E [12:12:35]OFD Sender: Processing packet 103668 [packets to send 498, broken 497] [12:12:35]ProducePacketName [12:12:35]name=ofd_packets/00103668 [12:12:35]OFD Sender: To server: pG, [12:12:35]CommunicateWithHost lk.salyk.kg:30040 [12:12:35]ConnectInit lk.salyk.kg [12:12:35]Write i2c OK [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: 01 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: 01 07 00 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: 01 07 00 7C 02 00 00 00 00 00 FF 0F 93 [12:12:35]RasterBufferAndPrint [12:12:35]line Счет N : (1)317891 [12:12:35]line ИНН: 02508201610067 [12:12:35]line Контрольно-Кассовый Чек [12:12:35]line ПРОДАЖА [12:12:35]line ТРК (МРК, ГНК) : 63 [12:12:35]line Товар: 2710124130 [12:12:35]line Аи-92-К-4 [12:12:35]line 7.480 * 66.90 [12:12:35]line = 500.41 [12:12:35]line НДС 12% НСП 1% [12:12:35]line > о реализуемом товаре [12:12:35]line ОКРУГЛЕНИЕ: -0.41 [12:12:35]line ИТОГО: 500.00 [12:12:35]line Внесено: 500.00 [12:12:35]line СДАЧА: 0.00 [12:12:35]line НСП 1% : 4.43 [12:12:35]line НДС 12% : 53.14 [12:12:35]line Наличными: 500.00 [12:12:35]line Безнал.: 0.00 [12:12:35]line Место: АЗС № 145 "Партнер Нефть" [12:12:35]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [12:12:35]line СНО: Общий режим [12:12:35]line Чек 80 23.10.2024 12:12 [12:12:35]line Смена: 582 ФФД: 1.0 [12:12:35]line ЗНМ: 0300000095 [12:12:35]line РНМ: 0000000000091754 [12:12:35]line Версия ККМ: 001 [12:12:35]line ФМ: 0000000000871811 [12:12:35]line ФД: 103668 [12:12:35]line ФПД: 96295607348798 [12:12:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121233&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103668&fm=96295607348798&tin=02508201610067®Number=0000000000091754&sum=50000 [12:12:35]written 0, free lines is 4095 [12:12:35]Write to MH i2c: 01 00 00 A6 02 A8 [12:12:35]Write i2c OK [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: 01 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: 01 07 00 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: 01 07 00 A6 02 00 00 00 00 00 D7 0C 92 [12:12:35]RasterBufferAndPrint [12:12:35]line [12:12:35]line [12:12:35]line [12:12:35]line [12:12:35]line [12:12:35]written 0, free lines is 3293 [12:12:35]MH_Cut [12:12:35]Write to MH i2c: D1 01 00 AD 02 01 81 [12:12:35]Write i2c OK [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: D1 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: D1 01 00 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: D1 01 00 AD 02 00 80 [12:12:35]Write to MH i2c: 01 00 00 AE 02 B0 [12:12:35]Write i2c OK [12:12:35]MH_I2C_Read... [12:12:36]*** Cut start [12:12:36]*** Partial cut [12:12:36]*** CUTSNS_PIN = 1 [12:12:36]*** CUTSNS_PIN = 0 [12:12:36]*** Brake cut motor [12:12:37]Read from MH i2c: 01 [12:12:37]MH_I2C_Read... [12:12:37]*** Stop cut motor [12:12:37]*** Cut end [12:12:37]Read from MH i2c: 01 07 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 FF 0F C5 [12:12:37]process_action close_receipt done [12:12:37]requested_data is exist [12:12:37]produce_requested_data [12:12:37]requested_item fm.sn is exist - process it [12:12:37]wFMCommunicate request_size=4 [12:12:37]MH_SAM_APDU [12:12:37]CAPDU: 80 11 00 00 [12:12:37]Write to MH i2c: E2 08 00 AF 02 80 11 00 00 00 00 00 00 2B [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:37]Read from MH i2c: E2 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 17 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 17 00 AF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 78 [12:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:12:37]wFMCommunicate OK [12:12:37]requested_item fd.num is exist - process it [12:12:37]SAM_PROTO_GetFieldsCounters [12:12:37]wFMCommunicate request_size=4 [12:12:37]MH_SAM_APDU [12:12:37]CAPDU: 80 13 00 00 [12:12:37]Write to MH i2c: E2 08 00 B0 02 80 13 00 00 00 00 00 00 2E [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:37]Read from MH i2c: E2 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 62 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 62 00 B0 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F4 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [12:12: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F4 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:37]wFMCommunicate OK [12:12:37]SAM_PROTO_GetFieldsCounters done [12:12:37]requested_item shift.num is exist - process it [12:12:37]requested_item shift.opened is exist - process it [12:12:37]req_shift_opened [12:12:37]FM_GetShiftState [12:12:37]SAM_PROTO_GetShiftState [12:12:37]wFMCommunicate request_size=4 [12:12:37]MH_SAM_APDU [12:12:37]CAPDU: 80 13 01 00 [12:12:37]Write to MH i2c: E2 08 00 B1 02 80 13 01 00 00 00 00 00 30 [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:37]Read from MH i2c: E2 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 0E 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 0E 00 B1 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 69 [12:12:37]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:12:37]wFMCommunicate OK [12:12:37]SAM_PROTO_GetShiftState done [12:12:37]FM_GetShiftState done [12:12:37]req_shift_opened done [12:12:37]requested_item shift.open_date is exist - process it [12:12:37]req_shift_open_date [12:12:37]req_shift_open_date done [12:12:37]produce_requested_data done [12:12:37]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103668,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:12:37]process_action_free close_receipt [12:12:37]json_value_free [12:12:37]json_value_free done [12:12:37]process_json_proto returns [12:12:37]Send response to host [12:12:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103668,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:12:37]free response buf [12:12:37]execute_script done [12:12:37]execute_script returns [12:12:37]free content buf [12:12:37]Sock 10.Close socket [12:12:37]Sock 10.Thread stoped [12:12:42]recv_with_timeout no data received [12:13:02]recv_with_timeout no data received [12:14:08]accept exits with 7 [12:14:08]New connection [12:14:08]New thread 3066727780 created [12:14:08]Thread 3066871140 joined [12:14:08]Waiting for new connection... [12:14:08] Sock 7.Parse request [12:14:08]Sock 7.Check first char [12:14:08]Sock 7.First char is OK [12:14:08]request: POST /json_proto HTTP/1.0 [12:14:08]Method: POST [12:14:08]URL: /json_proto [12:14:08]Method is POST - this is cgi request [12:14:08]url: /json_proto [12:14:08]query_string will be loaded in cgi processing [12:14:08]execute_cgi json_proto POST (null) [12:14:08]execute_cgi path=json_proto method=POST [12:14:08]POST find Content-Length [12:14:08]Host: 172.17.51.67:8080 [12:14:08]Content-Length: 792 [12:14:08]Content-Type: application/json [12:14:08] [12:14:08]POST finish read [12:14:08]Found Content-Length = 792 [12:14:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 72.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53539", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:08]execute_script... [12:14:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 72.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53539", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:08]POST & json_proto [12:14:08]process_json_proto [12:14:08]json parsed OK: [12:14:08]protocol is kg_v1.0 [12:14:08]action value=close_receipt [12:14:08]process_action close_receipt [12:14:08]cmd_close_receipt [12:14:08]MH_GetDate [12:14:08]Write to MH i2c: F0 00 00 B2 02 A3 [12:14:08]Write i2c OK [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: F0 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: F0 09 00 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: F0 09 00 B2 02 00 90 E8 18 67 1E EF FA 64 0E [12:14:08]GetLastDocTimeStamp 1729685553 [12:14:08]current date 1729685648 [12:14:08]FM_GetShiftState [12:14:08]SAM_PROTO_GetShiftState [12:14:08]wFMCommunicate request_size=4 [12:14:08]MH_SAM_APDU [12:14:08]CAPDU: 80 13 01 00 [12:14:08]Write to MH i2c: E2 08 00 B3 02 80 13 01 00 00 00 00 00 32 [12:14:08]Write i2c OK [12:14:08]MH_I2C_Read... [12:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:08]Read from MH i2c: E2 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: E2 0E 00 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: E2 0E 00 B3 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 6B [12:14:08]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:14:08]wFMCommunicate OK [12:14:08]SAM_PROTO_GetShiftState done [12:14:08]FM_GetShiftState done [12:14:08]opened in 1729642861 [12:14:08]opened+sec_in_day 1729729261 [12:14:08]quantity*price = 0 [12:14:08]sum+1 = 1 [12:14:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 81 23.10.2024 12:14 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Талоны: Топливная Карта 53539 ФМ: 0000000000871811 ФД: 103669 ФПД: 277363768645101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121408&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103669&fm=277363768645101&tin=02508201610067®Number=0000000000091754&sum=0 [12:14:09]StoreToDocumentArchive [12:14:09]shift 582 fd 103669 [12:14:09]save to /storage/0582/doc_00103669 [12:14:09]save last doc name /storage/0582/doc_00103669 to /storage/kkm_last_doc_name [12:14:09]save OK [12:14:09]Clear old archive folders... [12:14:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:09]tlvbuf is 01C084E0 [12:14:09]SAM_PROTO_ClearQueue [12:14:09]wFMCommunicate request_size=4 [12:14:09]MH_SAM_APDU [12:14:09]CAPDU: 80 09 00 00 [12:14:09]Write to MH i2c: E2 08 00 C0 02 80 09 00 00 00 00 00 00 34 [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:09]Read from MH i2c: E2 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [12:14:09]RAPDU: 90 00 [12:14:09]wFMCommunicate OK [12:14:09]SAM_PROTO_ClearQueue done [12:14:09]KKMCreateOFDPacket [12:14:09]OFDProtocolAddRootSTLVToBuf [12:14:09]FM_MakeSignedData [12:14:09]FM_MakeSignedData [12:14:09]SAM_PROTO_SignData [12:14:09]wFMCommunicate request_size=4 [12:14:09]MH_SAM_APDU [12:14:09]CAPDU: 80 0D 01 02 [12:14:09]Write to MH i2c: E2 08 00 C1 02 80 0D 01 02 00 00 00 00 3C [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:09]Read from MH i2c: E2 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [12:14:09]RAPDU: 90 00 [12:14:09]wFMCommunicate OK [12:14:09]wFMCommunicate request_size=255 [12:14:09]MH_SAM_APDU [12:14:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 19 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 90 E8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F5 94 01 00 35 04 06 00 FC [12:14:09]Write to MH i2c: E2 02 01 C2 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 19 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 90 E8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F5 94 01 00 35 04 06 00 FC 00 00 B5 [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:09]Read from MH i2c: E2 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [12:14:09]RAPDU: 90 00 [12:14:09]wFMCommunicate OK [12:14:09]wFMCommunicate request_size=10 [12:14:09]MH_SAM_APDU [12:14:09]CAPDU: 80 0D 02 02 05 42 C8 E7 55 ED [12:14:09]Write to MH i2c: E2 0D 00 C3 02 80 0D 02 02 05 00 42 C8 E7 55 ED 00 00 7C [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:09]Read from MH i2c: E2 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [12:14:09]RAPDU: 90 00 [12:14:09]wFMCommunicate OK [12:14:09]wFMCommunicate request_size=4 [12:14:09]MH_SAM_APDU [12:14:09]CAPDU: 80 0D 03 02 [12:14:09]Write to MH i2c: E2 08 00 C4 02 80 0D 03 02 00 00 00 00 41 [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:10]Read from MH i2c: E2 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: E2 0B 00 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: E2 0B 00 C4 02 00 F0 67 38 BF EB EB CD 43 90 00 76 [12:14:10]RAPDU: F0 67 38 BF EB EB CD 43 90 00 [12:14:10]wFMCommunicate OK [12:14:10]SAM_PROTO_SignData done [12:14:10]FM_MakeSignedData done [12:14:10]CreateOFDProtocolMessage [12:14:10]wFMCommunicate request_size=4 [12:14:10]MH_SAM_APDU [12:14:10]CAPDU: 80 11 00 00 [12:14:10]Write to MH i2c: E2 08 00 C5 02 80 11 00 00 00 00 00 00 41 [12:14:10]Write i2c OK [12:14:10]MH_I2C_Read... [12:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:10]Read from MH i2c: E2 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: E2 17 00 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: E2 17 00 C5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 8E [12:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:14:10]wFMCommunicate OK [12:14:10]CreateOFDProtocolMessage done [12:14:10]OFDSenderStorePacket 103669 [12:14:10]StoreOFDPacket docnum=103669 [12:14:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 74 24 07 01 A3 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 19 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 90 E8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F5 94 01 00 35 04 06 00 FC 42 C8 E7 55 ED F0 67 38 BF EB EB CD 43 [12:14:10]CheckFolder [12:14:10]dirname=/storage/ofd_packets [12:14:10]CheckFolder done [12:14:10]ProducePacketName [12:14:10]name=ofd_packets/00103669 [12:14:10]NVStorageSaveData ofd_packets/00103669 [12:14:10]File name is /storage/ofd_packets/00103669 [12:14:10]Write 301 bytes [12:14:10]NVStorageSaveData done [12:14:10]OFDSenderStorePacket done [12:14:10]KKMCreateOFDPacket done [12:14:10]NVStorageSaveData kkm_last_timestamp [12:14:10]File name is /storage/kkm_last_timestamp [12:14:10]Write 4 bytes [12:14:10]NVStorageSaveData done [12:14:10]ExternCall_PrintAddStr [12:14:10]wPrintStart [12:14:10]Write to MH i2c: 01 00 00 C6 02 C8 [12:14:10]Write i2c OK [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: 01 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: 01 07 00 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [12:14:10]RasterBufferAndPrint [12:14:10]line Счет N : (1)317890 [12:14:10]line ИНН: 02508201610067 [12:14:10]line Контрольно-Кассовый Чек [12:14:10]line ПРОДАЖА [12:14:10]line ТРК (МРК, ГНК) : 44 [12:14:10]line Товар: 2710124500 [12:14:10]line Аи-95-К-5 [12:14:10]line 72.000 * 0.00 [12:14:10]line = 0.00 [12:14:10]line НДС 12% НСП 1% [12:14:10]line > о реализуемом товаре [12:14:10]line ИТОГО: 0.00 [12:14:10]line НСП 1% : 0.00 [12:14:10]line НДС 12% : 0.00 [12:14:10]line Наличными: 0.00 [12:14:10]line Безнал.: 0.00 [12:14:10]line Место: АЗС № 145 "Партнер Нефть" [12:14:10]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [12:14:10]line СНО: Общий режим [12:14:10]line Чек 81 23.10.2024 12:14 [12:14:10]line Смена: 582 ФФД: 1.0 [12:14:10]line ЗНМ: 0300000095 [12:14:10]line РНМ: 0000000000091754 [12:14:10]line Версия ККМ: 001 [12:14:10]line Талоны: Топливная Карта [12:14:10]line 53539 [12:14:10]line ФМ: 0000000000871811 [12:14:10]line ФД: 103669 [12:14:10]line ФПД: 277363768645101 [12:14:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121408&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103669&fm=277363768645101&tin=02508201610067®Number=0000000000091754&sum=0 [12:14:10]written 0, free lines is 4095 [12:14:10]Write to MH i2c: 01 00 00 EF 02 F1 [12:14:10]Write i2c OK [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: 01 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: 01 07 00 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: 01 07 00 EF 02 00 00 00 00 00 E1 0C E5 [12:14:10]RasterBufferAndPrint [12:14:10]line [12:14:10]line [12:14:10]line [12:14:10]line [12:14:10]line [12:14:10]written 0, free lines is 3301 [12:14:10]MH_Cut [12:14:10]Write to MH i2c: D1 01 00 F6 02 01 CA [12:14:10]Write i2c OK [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: D1 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: D1 01 00 [12:14:10]MH_I2C_Read... [12:14:10]Read from MH i2c: D1 01 00 F6 02 00 C9 [12:14:10]Write to MH i2c: 01 00 00 F7 02 F9 [12:14:10]Write i2c OK [12:14:10]MH_I2C_Read... [12:14:11]*** Cut start [12:14:11]*** Partial cut [12:14:11]*** CUTSNS_PIN = 1 [12:14:11]*** CUTSNS_PIN = 0 [12:14:11]*** Brake cut motor [12:14:11]Read from MH i2c: 01 [12:14:11]MH_I2C_Read... [12:14:11]*** Stop cut motor [12:14:11]*** Cut end [12:14:11]Read from MH i2c: 01 07 00 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 FF 0F 0E [12:14:11]process_action close_receipt done [12:14:11]requested_data is exist [12:14:11]produce_requested_data [12:14:11]requested_item fm.sn is exist - process it [12:14:11]wFMCommunicate request_size=4 [12:14:11]MH_SAM_APDU [12:14:11]CAPDU: 80 11 00 00 [12:14:11]Write to MH i2c: E2 08 00 F8 02 80 11 00 00 00 00 00 00 74 [12:14:11]Write i2c OK [12:14:11]MH_I2C_Read... [12:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:11]Read from MH i2c: E2 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: E2 17 00 [12:14:11]MH_I2C_Read... [12:14:11]Read from MH i2c: E2 17 00 F8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 C1 [12:14:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:14:11]wFMCommunicate OK [12:14:11]requested_item fd.num is exist - process it [12:14:11]SAM_PROTO_GetFieldsCounters [12:14:11]wFMCommunicate request_size=4 [12:14:11]MH_SAM_APDU [12:14:11]CAPDU: 80 13 00 00 [12:14:11]Write to MH i2c: E2 08 00 F9 02 80 13 00 00 00 00 00 00 77 [12:14:11]Write i2c OK [12:14:11]MH_I2C_Read... [12:14:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:12]Read from MH i2c: E2 [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: E2 62 00 [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: E2 62 00 F9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F5 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [12:14:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F5 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:12]wFMCommunicate OK [12:14:12]SAM_PROTO_GetFieldsCounters done [12:14:12]requested_item shift.num is exist - process it [12:14:12]requested_item shift.opened is exist - process it [12:14:12]req_shift_opened [12:14:12]FM_GetShiftState [12:14:12]SAM_PROTO_GetShiftState [12:14:12]wFMCommunicate request_size=4 [12:14:12]MH_SAM_APDU [12:14:12]CAPDU: 80 13 01 00 [12:14:12]Write to MH i2c: E2 08 00 FA 02 80 13 01 00 00 00 00 00 79 [12:14:12]Write i2c OK [12:14:12]MH_I2C_Read... [12:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:12]Read from MH i2c: E2 [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: E2 0E 00 [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: E2 0E 00 FA 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B2 [12:14:12]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:14:12]wFMCommunicate OK [12:14:12]SAM_PROTO_GetShiftState done [12:14:12]FM_GetShiftState done [12:14:12]req_shift_opened done [12:14:12]requested_item shift.open_date is exist - process it [12:14:12]req_shift_open_date [12:14:12]req_shift_open_date done [12:14:12]produce_requested_data done [12:14:12]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103669,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:14:12]process_action_free close_receipt [12:14:12]json_value_free [12:14:12]json_value_free done [12:14:12]process_json_proto returns [12:14:12]Send response to host [12:14:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103669,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:14:12]free response buf [12:14:12]execute_script done [12:14:12]execute_script returns [12:14:12]free content buf [12:14:12]Sock 7.Close socket [12:14:12]Sock 7.Thread stoped [12:14:16]recv_with_timeout no data received [12:14:35]recv_with_timeout no data received [12:14:47]ConnectInit Can't connect to host [12:14:47]CommunicateWithHost connect error [12:14:47]CommunicateWithHost err = -1 [12:14:47]OFD Sender: Server communicate error [12:14:48]OFD Sender: Processing packet 103668 [packets to send 499, broken 497] [12:14:48]ProducePacketName [12:14:48]name=ofd_packets/00103668 [12:14:48]OFD Sender: To server: pG, [12:14:48]CommunicateWithHost lk.salyk.kg:30040 [12:14:48]ConnectInit lk.salyk.kg [12:14:53]ConnectInit Can't take IP for lk.salyk.kg [12:14:53]CommunicateWithHost connect error [12:14:53]CommunicateWithHost err = -1 [12:14:53]OFD Sender: Server communicate error [12:14:58]OFD Sender: Processing packet 103668 [packets to send 499, broken 497] [12:14:58]ProducePacketName [12:14:58]name=ofd_packets/00103668 [12:14:58]OFD Sender: To server: pG, [12:14:58]CommunicateWithHost lk.salyk.kg:30040 [12:14:58]ConnectInit lk.salyk.kg [12:15:03]Connected sock=9 [12:15:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 1A 2F 07 01 5A BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 31 E8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F4 94 01 00 35 04 06 00 57 94 91 78 2E 3E 22 B9 CA 4F A8 FE BE DA [12:15:03]recv_with_timeout no data received [12:15: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 31 31 4F 00 00 00 E5 E0 47 00 51 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F4 94 01 00 F4 03 04 00 DB 8F 18 67 B6 04 01 00 00 2A 04 36 9D 6D AD AD 53 [12:15:04]CommunicateWithHost err = 0 [12:15:04]CheckOFDResponse [12:15:04]1017 (14) - 77093643461234 [12:15:04]1041 (16) - 0000000000871811 [12:15:04]1040 (4) - 103668 [12:15:04]1012 (4) - 23.10.2024 05:55 [12:15:04]1206 (1) - 0 [12:15:04]OFD Sender: Remove packet 103668 [12:15:04]ProducePacketName [12:15:04]name=ofd_packets/00103668 [12:15:04]NVStorageDeleteData [12:15:04]OFD Sender: Processing packet 103669 [packets to send 498, broken 497] [12:15:04]ProducePacketName [12:15:04]name=ofd_packets/00103669 [12:15:04]OFD Sender: To server: pG, [12:15:04]CommunicateWithHost lk.salyk.kg:30040 [12:15:04]ConnectInit lk.salyk.kg [12:15:05]Connected sock=7 [12:15:05]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 31 31 0F 01 00 00 74 24 07 01 A3 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 19 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 90 E8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F5 94 01 00 35 04 06 00 FC 42 C8 E7 55 ED F0 67 38 BF EB EB CD 43 [12:15:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 4F 00 00 00 CC AF 47 00 D9 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 31 31 10 04 04 00 F5 94 01 00 F4 03 04 00 DD 8F 18 67 B6 04 01 00 00 71 D7 E2 56 17 13 55 B0 [12:15:05]CommunicateWithHost err = 0 [12:15:05]CheckOFDResponse [12:15:05]1017 (14) - 77093643461234 [12:15:05]1041 (16) - 0000000000871811 [12:15:05]1040 (4) - 103669 [12:15:05]1012 (4) - 23.10.2024 05:55 [12:15:05]1206 (1) - 0 [12:15:05]OFD Sender: Remove packet 103669 [12:15:05]ProducePacketName [12:15:05]name=ofd_packets/00103669 [12:15:05]NVStorageDeleteData [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:14]recv_with_timeout no data received [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:22]accept exits with 10 [12:15:22]New connection [12:15:22]New thread 3066871140 created [12:15:22]Thread 3066727780 joined [12:15:22]Waiting for new connection... [12:15:22] Sock 10.Parse request [12:15:22]Sock 10.Check first char [12:15:22]Sock 10.First char is OK [12:15:22]request: POST /json_proto HTTP/1.0 [12:15:22]Method: POST [12:15:22]URL: /json_proto [12:15:22]Method is POST - this is cgi request [12:15:22]url: /json_proto [12:15:22]query_string will be loaded in cgi processing [12:15:22]execute_cgi json_proto POST (null) [12:15:22]execute_cgi path=json_proto method=POST [12:15:22]POST find Content-Length [12:15:22]Host: 172.17.51.67:8080 [12:15:22]Content-Length: 840 [12:15:22]Content-Type: application/json [12:15:22] [12:15:22]POST finish read [12:15:22]Found Content-Length = 840 [12:15:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:22]execute_script... [12:15: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)317893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:22]POST & json_proto [12:15:22]process_json_proto [12:15:22]json parsed OK: [12:15:22]protocol is kg_v1.0 [12:15:22]action value=close_receipt [12:15:22]process_action close_receipt [12:15:22]cmd_close_receipt [12:15:22]MH_GetDate [12:15:22]Write to MH i2c: F0 00 00 FB 02 EC [12:15:22]Write i2c OK [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: F0 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: F0 09 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: F0 09 00 FB 02 00 DA E8 18 67 1E EF FA 64 A1 [12:15:22]GetLastDocTimeStamp 1729685648 [12:15:22]current date 1729685722 [12:15:22]FM_GetShiftState [12:15:22]SAM_PROTO_GetShiftState [12:15:22]wFMCommunicate request_size=4 [12:15:22]MH_SAM_APDU [12:15:22]CAPDU: 80 13 01 00 [12:15:22]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [12:15:22]Write i2c OK [12:15:22]MH_I2C_Read... [12:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:22]Read from MH i2c: E2 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 0E 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B4 [12:15:22]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:15:22]wFMCommunicate OK [12:15:22]SAM_PROTO_GetShiftState done [12:15:22]FM_GetShiftState done [12:15:22]opened in 1729642861 [12:15:22]opened+sec_in_day 1729729261 [12:15:22]quantity*price = 50041 [12:15:22]sum+1 = 50042 [12:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 82 23.10.2024 12:15 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103670 ФПД: 16550235711539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121523&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103670&fm=16550235711539&tin=02508201610067®Number=0000000000091754&sum=50041 [12:15:23]StoreToDocumentArchive [12:15:23]shift 582 fd 103670 [12:15:23]save to /storage/0582/doc_00103670 [12:15:23]save last doc name /storage/0582/doc_00103670 to /storage/kkm_last_doc_name [12:15:23]save OK [12:15:23]Clear old archive folders... [12:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:23]tlvbuf is 01C0ADE0 [12:15:23]SAM_PROTO_ClearQueue [12:15:23]wFMCommunicate request_size=4 [12:15:23]MH_SAM_APDU [12:15:23]CAPDU: 80 09 00 00 [12:15:23]Write to MH i2c: E2 08 00 09 03 80 09 00 00 00 00 00 00 7E [12:15:23]Write i2c OK [12:15:23]MH_I2C_Read... [12:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:23]Read from MH i2c: E2 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 03 00 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [12:15:23]RAPDU: 90 00 [12:15:23]wFMCommunicate OK [12:15:23]SAM_PROTO_ClearQueue done [12:15:23]KKMCreateOFDPacket [12:15:23]OFDProtocolAddRootSTLVToBuf [12:15:23]FM_MakeSignedData [12:15:23]FM_MakeSignedData [12:15:23]SAM_PROTO_SignData [12:15:23]wFMCommunicate request_size=4 [12:15:23]MH_SAM_APDU [12:15:23]CAPDU: 80 0D 01 02 [12:15:23]Write to MH i2c: E2 08 00 0A 03 80 0D 01 02 00 00 00 00 86 [12:15:23]Write i2c OK [12:15:23]MH_I2C_Read... [12:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:23]Read from MH i2c: E2 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 03 00 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [12:15:23]RAPDU: 90 00 [12:15:23]wFMCommunicate OK [12:15:23]wFMCommunicate request_size=255 [12:15:23]MH_SAM_APDU [12:15: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 DB E8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F6 94 01 00 35 04 06 00 0F [12:15:23]Write to MH i2c: E2 02 01 0B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 DB E8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F6 94 01 00 35 04 06 00 0F 00 00 D7 [12:15:23]Write i2c OK [12:15:23]MH_I2C_Read... [12:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [12:15:24]RAPDU: 90 00 [12:15:24]wFMCommunicate OK [12:15:24]wFMCommunicate request_size=10 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 0D 02 02 05 0D 66 EB A8 33 [12:15:24]Write to MH i2c: E2 0D 00 0C 03 80 0D 02 02 05 00 0D 66 EB A8 33 00 00 CC [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [12:15:24]RAPDU: 90 00 [12:15:24]wFMCommunicate OK [12:15:24]wFMCommunicate request_size=4 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 0D 03 02 [12:15:24]Write to MH i2c: E2 08 00 0D 03 80 0D 03 02 00 00 00 00 8B [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 0B 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 0B 00 0D 03 00 01 D1 DA 38 51 0F 59 22 90 00 4B [12:15:24]RAPDU: 01 D1 DA 38 51 0F 59 22 90 00 [12:15:24]wFMCommunicate OK [12:15:24]SAM_PROTO_SignData done [12:15:24]FM_MakeSignedData done [12:15:24]CreateOFDProtocolMessage [12:15:24]wFMCommunicate request_size=4 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 11 00 00 [12:15:24]Write to MH i2c: E2 08 00 0E 03 80 11 00 00 00 00 00 00 8B [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 17 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 17 00 0E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D8 [12:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:15:24]wFMCommunicate OK [12:15:24]CreateOFDProtocolMessage done [12:15:24]OFDSenderStorePacket 103670 [12:15:24]StoreOFDPacket docnum=103670 [12:15:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 8E 8E 07 01 A4 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 DB E8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F6 94 01 00 35 04 06 00 0F 0D 66 EB A8 33 01 D1 DA 38 51 0F 59 22 [12:15:24]CheckFolder [12:15:24]dirname=/storage/ofd_packets [12:15:24]CheckFolder done [12:15:24]ProducePacketName [12:15:24]name=ofd_packets/00103670 [12:15:24]NVStorageSaveData ofd_packets/00103670 [12:15:24]File name is /storage/ofd_packets/00103670 [12:15:24]Write 301 bytes [12:15:24]NVStorageSaveData done [12:15:24]OFDSenderStorePacket done [12:15:24]KKMCreateOFDPacket done [12:15:24]NVStorageSaveData kkm_last_timestamp [12:15:24]File name is /storage/kkm_last_timestamp [12:15:24]Write 4 bytes [12:15:24]NVStorageSaveData done [12:15:24]ExternCall_PrintAddStr [12:15:24]wPrintStart [12:15:24]Write to MH i2c: 01 00 00 0F 03 12 [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: 01 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: 01 07 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: 01 07 00 0F 03 00 00 00 00 00 FF 0F 27 [12:15:24]RasterBufferAndPrint [12:15:24]line Счет N : (1)317893 [12:15:24]line ИНН: 02508201610067 [12:15:24]line Контрольно-Кассовый Чек [12:15:24]line ПРОДАЖА [12:15:24]line ТРК (МРК, ГНК) : 63 [12:15:24]line Товар: 2710124130 [12:15:24]line Аи-92-К-4 [12:15:24]line 7.480 * 66.90 [12:15:24]line = 500.41 [12:15:24]line НДС 12% НСП 1% [12:15:24]line > о реализуемом товаре [12:15:24]line ИТОГО: 500.41 [12:15:24]line НСП 1% : 4.43 [12:15:24]line НДС 12% : 53.14 [12:15:24]line Наличными: 0.00 [12:15:24]line Безнал.: 500.41 [12:15:24]line Место: АЗС № 145 "Партнер Нефть" [12:15:24]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [12:15:24]line СНО: Общий режим [12:15:24]line Чек 82 23.10.2024 12:15 [12:15:24]line Смена: 582 ФФД: 1.0 [12:15:24]line ЗНМ: 0300000095 [12:15:24]line РНМ: 0000000000091754 [12:15:24]line Версия ККМ: 001 [12:15:24]line Платежная система: АКБ Кыргызстан [12:15:24]line ФМ: 0000000000871811 [12:15:24]line ФД: 103670 [12:15:24]line ФПД: 16550235711539 [12:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121523&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103670&fm=16550235711539&tin=02508201610067®Number=0000000000091754&sum=50041 [12:15:24]written 0, free lines is 4095 [12:15:24]OFD Sender: Processing packet 103670 [packets to send 498, broken 497] [12:15:24]ProducePacketName [12:15:24]name=ofd_packets/00103670 [12:15:24]OFD Sender: To server: pG, [12:15:24]CommunicateWithHost lk.salyk.kg:30040 [12:15:24]ConnectInit lk.salyk.kg [12:15:24]Write to MH i2c: 01 00 00 38 03 3B [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: 01 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: 01 07 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 E2 0C 30 [12:15:24]RasterBufferAndPrint [12:15:24]line [12:15:24]line [12:15:24]line [12:15:24]line [12:15:24]line [12:15:24]written 0, free lines is 3304 [12:15:24]MH_Cut [12:15:24]Write to MH i2c: D1 01 00 3F 03 01 14 [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: D1 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: D1 01 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: D1 01 00 3F 03 00 13 [12:15:24]Write to MH i2c: 01 00 00 40 03 43 [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:25]Connected sock=9 [12:15: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 31 31 0F 01 00 00 8E 8E 07 01 A4 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 DB E8 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F6 94 01 00 35 04 06 00 0F 0D 66 EB A8 33 01 D1 DA 38 51 0F 59 22 [12:15:25]*** Cut start [12:15:25]*** Partial cut [12:15:25]*** CUTSNS_PIN = 1 [12:15:25]*** CUTSNS_PIN = 0 [12:15: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 31 31 4F 00 00 00 BF 83 47 00 47 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 31 31 10 04 04 00 F6 94 01 00 F4 03 04 00 F1 8F 18 67 B6 04 01 00 00 58 EC 2C 55 20 70 98 BD [12:15:25]CommunicateWithHost err = 0 [12:15:25]CheckOFDResponse [12:15:25]1017 (14) - 77093643461234 [12:15:25]1041 (16) - 0000000000871811 [12:15:25]1040 (4) - 103670 [12:15:25]1012 (4) - 23.10.2024 05:56 [12:15:25]1206 (1) - 0 [12:15:25]OFD Sender: Remove packet 103670 [12:15:25]ProducePacketName [12:15:25]name=ofd_packets/00103670 [12:15:25]NVStorageDeleteData [12:15:25]*** Brake cut motor [12:15:26]Read from MH i2c: 01 [12:15:26]MH_I2C_Read... [12:15:26]*** Stop cut motor [12:15:26]*** Cut end [12:15:26]Read from MH i2c: 01 07 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 FF 0F 58 [12:15:26]process_action close_receipt done [12:15:26]requested_data is exist [12:15:26]produce_requested_data [12:15:26]requested_item fm.sn is exist - process it [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 11 00 00 [12:15:26]Write to MH i2c: E2 08 00 41 03 80 11 00 00 00 00 00 00 BE [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 17 00 [12:15:26]MH_I2C_Read... [12:15:26]OFD Sender: No OFD packet to send [12:15:26]Read from MH i2c: E2 17 00 41 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 0B [12:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:15:26]wFMCommunicate OK [12:15:26]requested_item fd.num is exist - process it [12:15:26]SAM_PROTO_GetFieldsCounters [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 13 00 00 [12:15:26]Write to MH i2c: E2 08 00 42 03 80 13 00 00 00 00 00 00 C1 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 62 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 62 00 42 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F6 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [12:15: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F6 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:26]wFMCommunicate OK [12:15:26]SAM_PROTO_GetFieldsCounters done [12:15:26]requested_item shift.num is exist - process it [12:15:26]requested_item shift.opened is exist - process it [12:15:26]req_shift_opened [12:15:26]FM_GetShiftState [12:15:26]SAM_PROTO_GetShiftState [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 13 01 00 [12:15:26]Write to MH i2c: E2 08 00 43 03 80 13 01 00 00 00 00 00 C3 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 0E 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 0E 00 43 03 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 FC [12:15:26]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:15:26]wFMCommunicate OK [12:15:26]SAM_PROTO_GetShiftState done [12:15:26]FM_GetShiftState done [12:15:26]req_shift_opened done [12:15:26]requested_item shift.open_date is exist - process it [12:15:26]req_shift_open_date [12:15:26]req_shift_open_date done [12:15:26]produce_requested_data done [12:15:26]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103670,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:15:26]process_action_free close_receipt [12:15:26]json_value_free [12:15:26]json_value_free done [12:15:26]process_json_proto returns [12:15:26]Send response to host [12:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103670,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:15:26]free response buf [12:15:26]execute_script done [12:15:26]execute_script returns [12:15:26]free content buf [12:15:26]Sock 10.Close socket [12:15:26]Sock 10.Thread stoped [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:39]recv_with_timeout no data received [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:03]accept exits with 7 [12:17:03]New connection [12:17:03]New thread 3066727780 created [12:17:03]Thread 3066871140 joined [12:17:03]Waiting for new connection... [12:17:03] Sock 7.Parse request [12:17:03]Sock 7.Check first char [12:17:03]Sock 7.First char is OK [12:17:03]request: POST /json_proto HTTP/1.0 [12:17:03]Method: POST [12:17:03]URL: /json_proto [12:17:03]Method is POST - this is cgi request [12:17:03]url: /json_proto [12:17:03]query_string will be loaded in cgi processing [12:17:03]execute_cgi json_proto POST (null) [12:17:03]execute_cgi path=json_proto method=POST [12:17:03]POST find Content-Length [12:17:03]Host: 172.17.51.67:8080 [12:17:03]Content-Length: 984 [12:17:03]Content-Type: application/json [12:17:03] [12:17:03]POST finish read [12:17:03]Found Content-Length = 984 [12:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 145\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:03]execute_script... [12:17:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 145\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:03]POST & json_proto [12:17:03]process_json_proto [12:17:03]json parsed OK: [12:17:03]protocol is kg_v1.0 [12:17:03]action value=close_receipt [12:17:03]process_action close_receipt [12:17:03]cmd_close_receipt [12:17:03]MH_GetDate [12:17:03]Write to MH i2c: F0 00 00 44 03 36 [12:17:03]Write i2c OK [12:17:03]MH_I2C_Read... [12:17:03]Read from MH i2c: F0 [12:17:03]MH_I2C_Read... [12:17:03]Read from MH i2c: F0 09 00 [12:17:03]MH_I2C_Read... [12:17:03]Read from MH i2c: F0 09 00 44 03 00 3F E9 18 67 1E EF FA 64 51 [12:17:03]GetLastDocTimeStamp 1729685723 [12:17:03]current date 1729685823 [12:17:03]FM_GetShiftState [12:17:03]SAM_PROTO_GetShiftState [12:17:03]wFMCommunicate request_size=4 [12:17:03]MH_SAM_APDU [12:17:03]CAPDU: 80 13 01 00 [12:17:03]Write to MH i2c: E2 08 00 45 03 80 13 01 00 00 00 00 00 C5 [12:17:03]Write i2c OK [12:17:03]MH_I2C_Read... [12:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:03]Read from MH i2c: E2 [12:17:03]MH_I2C_Read... [12:17:03]Read from MH i2c: E2 0E 00 [12:17:03]MH_I2C_Read... [12:17:03]Read from MH i2c: E2 0E 00 45 03 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 FE [12:17:03]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:17:03]wFMCommunicate OK [12:17:03]SAM_PROTO_GetShiftState done [12:17:03]FM_GetShiftState done [12:17:03]opened in 1729642861 [12:17:03]opened+sec_in_day 1729729261 [12:17:03]quantity*price = 200006 [12:17:03]sum+1 = 200008 [12:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 83 23.10.2024 12:17 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Дисконтная программа АИ-92 номер 145 сэкономлено 30.35 сом ФМ: 0000000000871811 ФД: 103671 ФПД: 222244788463531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121703&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103671&fm=222244788463531&tin=02508201610067®Number=0000000000091754&sum=200000 [12:17:04]StoreToDocumentArchive [12:17:04]shift 582 fd 103671 [12:17:04]save to /storage/0582/doc_00103671 [12:17:04]save last doc name /storage/0582/doc_00103671 to /storage/kkm_last_doc_name [12:17:04]save OK [12:17:04]Clear old archive folders... [12:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:04]tlvbuf is 01C0ECE0 [12:17:04]SAM_PROTO_ClearQueue [12:17:04]wFMCommunicate request_size=4 [12:17:04]MH_SAM_APDU [12:17:04]CAPDU: 80 09 00 00 [12:17:04]Write to MH i2c: E2 08 00 52 03 80 09 00 00 00 00 00 00 C7 [12:17:04]Write i2c OK [12:17:04]MH_I2C_Read... [12:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:04]Read from MH i2c: E2 [12:17:04]MH_I2C_Read... [12:17:04]Read from MH i2c: E2 03 00 [12:17:04]MH_I2C_Read... [12:17:04]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [12:17:04]RAPDU: 90 00 [12:17:04]wFMCommunicate OK [12:17:04]SAM_PROTO_ClearQueue done [12:17:04]KKMCreateOFDPacket [12:17:04]OFDProtocolAddRootSTLVToBuf [12:17:04]FM_MakeSignedData [12:17:04]FM_MakeSignedData [12:17:04]SAM_PROTO_SignData [12:17:04]wFMCommunicate request_size=4 [12:17:04]MH_SAM_APDU [12:17:04]CAPDU: 80 0D 01 02 [12:17:04]Write to MH i2c: E2 08 00 53 03 80 0D 01 02 00 00 00 00 CF [12:17:04]Write i2c OK [12:17:04]MH_I2C_Read... [12:17:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:04]Read from MH i2c: E2 [12:17:04]MH_I2C_Read... [12:17:04]Read from MH i2c: E2 03 00 [12:17:04]MH_I2C_Read... [12:17:04]Read from MH i2c: E2 03 00 53 03 00 90 00 CA [12:17:04]RAPDU: 90 00 [12:17:04]wFMCommunicate OK [12:17:04]wFMCommunicate request_size=255 [12:17:04]MH_SAM_APDU [12:17: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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3F E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F7 94 01 00 35 04 06 00 CA [12:17:04]Write to MH i2c: E2 02 01 54 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3F E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F7 94 01 00 35 04 06 00 CA 00 00 77 [12:17:04]Write i2c OK [12:17:04]MH_I2C_Read... [12:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:05]Read from MH i2c: E2 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: E2 03 00 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [12:17:05]RAPDU: 90 00 [12:17:05]wFMCommunicate OK [12:17:05]wFMCommunicate request_size=10 [12:17:05]MH_SAM_APDU [12:17:05]CAPDU: 80 0D 02 02 05 21 65 AB 67 AB [12:17:05]Write to MH i2c: E2 0D 00 55 03 80 0D 02 02 05 00 21 65 AB 67 AB 00 00 1F [12:17:05]Write i2c OK [12:17:05]MH_I2C_Read... [12:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:05]Read from MH i2c: E2 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: E2 03 00 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [12:17:05]RAPDU: 90 00 [12:17:05]wFMCommunicate OK [12:17:05]wFMCommunicate request_size=4 [12:17:05]MH_SAM_APDU [12:17:05]CAPDU: 80 0D 03 02 [12:17:05]Write to MH i2c: E2 08 00 56 03 80 0D 03 02 00 00 00 00 D4 [12:17:05]Write i2c OK [12:17:05]MH_I2C_Read... [12:17:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:05]Read from MH i2c: E2 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: E2 0B 00 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: E2 0B 00 56 03 00 6F 23 CB DE 63 99 5B 49 90 00 B0 [12:17:05]RAPDU: 6F 23 CB DE 63 99 5B 49 90 00 [12:17:05]wFMCommunicate OK [12:17:05]SAM_PROTO_SignData done [12:17:05]FM_MakeSignedData done [12:17:05]CreateOFDProtocolMessage [12:17:05]wFMCommunicate request_size=4 [12:17:05]MH_SAM_APDU [12:17:05]CAPDU: 80 11 00 00 [12:17:05]Write to MH i2c: E2 08 00 57 03 80 11 00 00 00 00 00 00 D4 [12:17:05]Write i2c OK [12:17:05]MH_I2C_Read... [12:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:05]Read from MH i2c: E2 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: E2 17 00 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: E2 17 00 57 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 21 [12:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:17:05]wFMCommunicate OK [12:17:05]CreateOFDProtocolMessage done [12:17:05]OFDSenderStorePacket 103671 [12:17:05]StoreOFDPacket docnum=103671 [12:17:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 9B 7A 07 01 F7 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3F E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F7 94 01 00 35 04 06 00 CA 21 65 AB 67 AB 6F 23 CB DE 63 99 5B 49 [12:17:05]CheckFolder [12:17:05]dirname=/storage/ofd_packets [12:17:05]CheckFolder done [12:17:05]ProducePacketName [12:17:05]name=ofd_packets/00103671 [12:17:05]NVStorageSaveData ofd_packets/00103671 [12:17:05]File name is /storage/ofd_packets/00103671 [12:17:05]Write 301 bytes [12:17:05]NVStorageSaveData done [12:17:05]OFDSenderStorePacket done [12:17:05]KKMCreateOFDPacket done [12:17:05]NVStorageSaveData kkm_last_timestamp [12:17:05]File name is /storage/kkm_last_timestamp [12:17:05]Write 4 bytes [12:17:05]NVStorageSaveData done [12:17:05]ExternCall_PrintAddStr [12:17:05]wPrintStart [12:17:05]Write to MH i2c: 01 00 00 58 03 5B [12:17:05]Write i2c OK [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: 01 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: 01 07 00 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: 01 07 00 58 03 00 00 00 00 00 FF 0F 70 [12:17:05]RasterBufferAndPrint [12:17:05]line Счет N : (1)317892 [12:17:05]line ИНН: 02508201610067 [12:17:05]line Контрольно-Кассовый Чек [12:17:05]line ПРОДАЖА [12:17:05]line ТРК (МРК, ГНК) : 33 [12:17:05]line Товар: 2710124130 [12:17:05]line Аи-92-К-4 [12:17:05]line 30.350 * 65.90 [12:17:05]line = 2000.07 [12:17:05]line НДС 12% НСП 1% [12:17:05]line > о реализуемом товаре [12:17:05]line ОКРУГЛЕНИЕ: -0.07 [12:17:05]line ИТОГО: 2000.00 [12:17:05]line Внесено: 2000.00 [12:17:05]line СДАЧА: 0.00 [12:17:05]line НСП 1% : 17.70 [12:17:05]line НДС 12% : 212.40 [12:17:05]line Наличными: 2000.00 [12:17:05]line Безнал.: 0.00 [12:17:05]line Место: АЗС № 145 "Партнер Нефть" [12:17:05]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [12:17:05]line СНО: Общий режим [12:17:05]line Чек 83 23.10.2024 12:17 [12:17:05]line Смена: 582 ФФД: 1.0 [12:17:05]line ЗНМ: 0300000095 [12:17:05]line РНМ: 0000000000091754 [12:17:05]line Версия ККМ: 001 [12:17:05]line [12:17:05]line Дисконтная программа [12:17:05]line АИ-92 [12:17:05]line номер 145 [12:17:05]line сэкономлено 30.35 сом [12:17:05]line ФМ: 0000000000871811 [12:17:05]line ФД: 103671 [12:17:05]line ФПД: 222244788463531 [12:17:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121703&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103671&fm=222244788463531&tin=02508201610067®Number=0000000000091754&sum=200000 [12:17:05]written 0, free lines is 4095 [12:17:05]OFD Sender: Processing packet 103671 [packets to send 498, broken 497] [12:17:05]ProducePacketName [12:17:05]name=ofd_packets/00103671 [12:17:05]OFD Sender: To server: pG, [12:17:05]CommunicateWithHost lk.salyk.kg:30040 [12:17:05]ConnectInit lk.salyk.kg [12:17:05]Write to MH i2c: 01 00 00 87 03 8A [12:17:05]Write i2c OK [12:17:05]MH_I2C_Read... [12:17:06]Read from MH i2c: 01 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: 01 07 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 84 0C 21 [12:17:06]RasterBufferAndPrint [12:17:06]line [12:17:06]line [12:17:06]line [12:17:06]line [12:17:06]line [12:17:06]written 0, free lines is 3210 [12:17:06]MH_Cut [12:17:06]Write to MH i2c: D1 01 00 8E 03 01 63 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: D1 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: D1 01 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: D1 01 00 8E 03 00 62 [12:17:06]Write to MH i2c: 01 00 00 8F 03 92 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** Cut start [12:17:06]*** Partial cut [12:17:06]*** CUTSNS_PIN = 1 [12:17:06]*** CUTSNS_PIN = 0 [12:17:07]*** Brake cut motor [12:17:07]Read from MH i2c: 01 [12:17:07]MH_I2C_Read... [12:17:07]*** Stop cut motor [12:17:07]*** Cut end [12:17:07]Read from MH i2c: 01 07 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [12:17:07]process_action close_receipt done [12:17:07]requested_data is exist [12:17:07]produce_requested_data [12:17:07]requested_item fm.sn is exist - process it [12:17:07]wFMCommunicate request_size=4 [12:17:07]MH_SAM_APDU [12:17:07]CAPDU: 80 11 00 00 [12:17:07]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:07]Read from MH i2c: E2 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 17 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 17 00 90 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 5A [12:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:17:07]wFMCommunicate OK [12:17:07]requested_item fd.num is exist - process it [12:17:07]SAM_PROTO_GetFieldsCounters [12:17:07]wFMCommunicate request_size=4 [12:17:07]MH_SAM_APDU [12:17:07]CAPDU: 80 13 00 00 [12:17:07]Write to MH i2c: E2 08 00 91 03 80 13 00 00 00 00 00 00 10 [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:07]Read from MH i2c: E2 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 62 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 62 00 91 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F7 94 01 00 0E 04 04 00 46 02 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 F9 [12:17:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F7 94 01 00 0E 04 04 00 46 02 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 [12:17:07]wFMCommunicate OK [12:17:07]SAM_PROTO_GetFieldsCounters done [12:17:07]requested_item shift.num is exist - process it [12:17:07]requested_item shift.opened is exist - process it [12:17:07]req_shift_opened [12:17:07]FM_GetShiftState [12:17:07]SAM_PROTO_GetShiftState [12:17:07]wFMCommunicate request_size=4 [12:17:07]MH_SAM_APDU [12:17:07]CAPDU: 80 13 01 00 [12:17:07]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:07]Read from MH i2c: E2 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 0E 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 4B [12:17:07]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:17:07]wFMCommunicate OK [12:17:07]SAM_PROTO_GetShiftState done [12:17:07]FM_GetShiftState done [12:17:07]req_shift_opened done [12:17:07]requested_item shift.open_date is exist - process it [12:17:07]req_shift_open_date [12:17:07]req_shift_open_date done [12:17:07]produce_requested_data done [12:17:07]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103671,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:17:07]process_action_free close_receipt [12:17:07]json_value_free [12:17:07]json_value_free done [12:17:07]process_json_proto returns [12:17:07]Send response to host [12:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103671,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:17:07]free response buf [12:17:07]execute_script done [12:17:07]execute_script returns [12:17:07]free content buf [12:17:07]Sock 7.Close socket [12:17:07]Sock 7.Thread stoped [12:17:11]recv_with_timeout no data received [12:17:13]Connected sock=11 [12:17: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 31 31 0F 01 00 00 9B 7A 07 01 F7 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3F E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F7 94 01 00 35 04 06 00 CA 21 65 AB 67 AB 6F 23 CB DE 63 99 5B 49 [12:17:18]recv_with_timeout no data received [12:17:18]CommunicateWithHost answer receiving error [12:17:18]CommunicateWithHost err = -3 [12:17:18]OFD Sender: Server communicate error [12:17:18]accept exits with 10 [12:17:18]New connection [12:17:18]New thread 3066871140 created [12:17:18]Thread 3066727780 joined [12:17:18]Waiting for new connection... [12:17:18] Sock 10.Parse request [12:17:18]Sock 10.Check first char [12:17:18]Sock 10.First char is OK [12:17:18]request: POST /json_proto HTTP/1.0 [12:17:18]Method: POST [12:17:18]URL: /json_proto [12:17:18]Method is POST - this is cgi request [12:17:18]url: /json_proto [12:17:18]query_string will be loaded in cgi processing [12:17:18]execute_cgi json_proto POST (null) [12:17:18]execute_cgi path=json_proto method=POST [12:17:18]POST find Content-Length [12:17:18]Host: 172.17.51.67:8080 [12:17:18]Content-Length: 840 [12:17:18]Content-Type: application/json [12:17:18] [12:17:18]POST finish read [12:17:18]Found Content-Length = 840 [12:17:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 75.20, "quantity" : 19.950, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:18]execute_script... [12:17:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-4", "price" : 75.20, "quantity" : 19.950, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:18]POST & json_proto [12:17:18]process_json_proto [12:17:18]json parsed OK: [12:17:18]protocol is kg_v1.0 [12:17:18]action value=close_receipt [12:17:18]process_action close_receipt [12:17:18]cmd_close_receipt [12:17:18]MH_GetDate [12:17:18]Write to MH i2c: F0 00 00 93 03 85 [12:17:18]Write i2c OK [12:17:18]MH_I2C_Read... [12:17:18]Read from MH i2c: F0 [12:17:18]MH_I2C_Read... [12:17:18]Read from MH i2c: F0 09 00 [12:17:18]MH_I2C_Read... [12:17:18]Read from MH i2c: F0 09 00 93 03 00 4F E9 18 67 1E EF FA 64 B0 [12:17:18]GetLastDocTimeStamp 1729685823 [12:17:18]current date 1729685839 [12:17:18]FM_GetShiftState [12:17:18]SAM_PROTO_GetShiftState [12:17:18]wFMCommunicate request_size=4 [12:17:18]MH_SAM_APDU [12:17:18]CAPDU: 80 13 01 00 [12:17:18]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [12:17:19]Write i2c OK [12:17:19]MH_I2C_Read... [12:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:19]Read from MH i2c: E2 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: E2 0E 00 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 4D [12:17:19]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:17:19]wFMCommunicate OK [12:17:19]SAM_PROTO_GetShiftState done [12:17:19]FM_GetShiftState done [12:17:19]opened in 1729642861 [12:17:19]opened+sec_in_day 1729729261 [12:17:19]quantity*price = 150024 [12:17:19]sum+1 = 150025 [12:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.24 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.24 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 84 23.10.2024 12:17 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103672 ФПД: 44861283659000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121719&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103672&fm=44861283659000&tin=02508201610067®Number=0000000000091754&sum=150024 [12:17:20]StoreToDocumentArchive [12:17:20]shift 582 fd 103672 [12:17:20]save to /storage/0582/doc_00103672 [12:17:20]save last doc name /storage/0582/doc_00103672 to /storage/kkm_last_doc_name [12:17:20]save OK [12:17:20]Clear old archive folders... [12:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:17:20]tlvbuf is 01C0E880 [12:17:20]SAM_PROTO_ClearQueue [12:17:20]wFMCommunicate request_size=4 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 09 00 00 [12:17:20]Write to MH i2c: E2 08 00 A1 03 80 09 00 00 00 00 00 00 16 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [12:17:20]RAPDU: 90 00 [12:17:20]wFMCommunicate OK [12:17:20]SAM_PROTO_ClearQueue done [12:17:20]KKMCreateOFDPacket [12:17:20]OFDProtocolAddRootSTLVToBuf [12:17:20]FM_MakeSignedData [12:17:20]FM_MakeSignedData [12:17:20]SAM_PROTO_SignData [12:17:20]wFMCommunicate request_size=4 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 0D 01 02 [12:17:20]Write to MH i2c: E2 08 00 A2 03 80 0D 01 02 00 00 00 00 1E [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [12:17:20]RAPDU: 90 00 [12:17:20]wFMCommunicate OK [12:17:20]wFMCommunicate request_size=255 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 34 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 4F E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F8 94 01 00 35 04 06 00 28 CD 14 E0 [12:17:20]Write to MH i2c: E2 02 01 A3 03 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 34 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 4F E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F8 94 01 00 35 04 06 00 28 CD 14 E0 00 00 A1 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [12:17:20]RAPDU: 90 00 [12:17:20]wFMCommunicate OK [12:17:20]wFMCommunicate request_size=7 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 0D 02 02 02 6C F8 [12:17:20]Write to MH i2c: E2 0A 00 A4 03 80 0D 02 02 02 00 6C F8 00 00 89 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [12:17:20]RAPDU: 90 00 [12:17:20]wFMCommunicate OK [12:17:20]wFMCommunicate request_size=4 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 0D 03 02 [12:17:20]Write to MH i2c: E2 08 00 A5 03 80 0D 03 02 00 00 00 00 23 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 0B 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 0B 00 A5 03 00 BD 04 E7 BB 49 01 62 62 90 00 95 [12:17:20]RAPDU: BD 04 E7 BB 49 01 62 62 90 00 [12:17:20]wFMCommunicate OK [12:17:20]SAM_PROTO_SignData done [12:17:20]FM_MakeSignedData done [12:17:20]CreateOFDProtocolMessage [12:17:20]wFMCommunicate request_size=4 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 11 00 00 [12:17:20]Write to MH i2c: E2 08 00 A6 03 80 11 00 00 00 00 00 00 23 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 17 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 17 00 A6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 70 [12:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:17:20]wFMCommunicate OK [12:17:20]CreateOFDProtocolMessage done [12:17:20]OFDSenderStorePacket 103672 [12:17:20]StoreOFDPacket docnum=103672 [12:17:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0C 01 00 00 EE 42 04 01 F8 D1 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 34 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 4F E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F8 94 01 00 35 04 06 00 28 CD 14 E0 6C F8 BD 04 E7 BB 49 01 62 62 [12:17:20]CheckFolder [12:17:20]dirname=/storage/ofd_packets [12:17:20]CheckFolder done [12:17:20]ProducePacketName [12:17:20]name=ofd_packets/00103672 [12:17:20]NVStorageSaveData ofd_packets/00103672 [12:17:20]File name is /storage/ofd_packets/00103672 [12:17:20]Write 298 bytes [12:17:20]NVStorageSaveData done [12:17:20]OFDSenderStorePacket done [12:17:20]KKMCreateOFDPacket done [12:17:20]NVStorageSaveData kkm_last_timestamp [12:17:20]File name is /storage/kkm_last_timestamp [12:17:20]Write 4 bytes [12:17:20]NVStorageSaveData done [12:17:20]ExternCall_PrintAddStr [12:17:20]wPrintStart [12:17:20]Write to MH i2c: 01 00 00 A7 03 AA [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: 01 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: 01 07 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 FF 0F BF [12:17:20]RasterBufferAndPrint [12:17:20]line Счет N : (1)317894 [12:17:20]line ИНН: 02508201610067 [12:17:20]line Контрольно-Кассовый Чек [12:17:20]line ПРОДАЖА [12:17:20]line ТРК (МРК, ГНК) : 51 [12:17:20]line Товар: 2710194210 [12:17:20]line ДТ-К-4 [12:17:20]line 19.950 * 75.20 [12:17:20]line = 1500.24 [12:17:20]line НДС 12% НСП 1% [12:17:20]line > о реализуемом товаре [12:17:20]line ИТОГО: 1500.24 [12:17:20]line НСП 1% : 13.28 [12:17:20]line НДС 12% : 159.32 [12:17:20]line Наличными: 0.00 [12:17:20]line Безнал.: 1500.24 [12:17:20]line Место: АЗС № 145 "Партнер Нефть" [12:17:20]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [12:17:20]line СНО: Общий режим [12:17:20]line Чек 84 23.10.2024 12:17 [12:17:20]line Смена: 582 ФФД: 1.0 [12:17:20]line ЗНМ: 0300000095 [12:17:20]line РНМ: 0000000000091754 [12:17:20]line Версия ККМ: 001 [12:17:20]line Платежная система: АКБ Кыргызстан [12:17:20]line ФМ: 0000000000871811 [12:17:20]line ФД: 103672 [12:17:20]line ФПД: 44861283659000 [12:17:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121719&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103672&fm=44861283659000&tin=02508201610067®Number=0000000000091754&sum=150024 [12:17:20]written 0, free lines is 4095 [12:17:20]OFD Sender: Processing packet 103671 [packets to send 499, broken 497] [12:17:20]ProducePacketName [12:17:20]name=ofd_packets/00103671 [12:17:20]OFD Sender: To server: pG, [12:17:20]CommunicateWithHost lk.salyk.kg:30040 [12:17:20]ConnectInit lk.salyk.kg [12:17:21]Write to MH i2c: 01 00 00 D0 03 D3 [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: 01 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: 01 07 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: 01 07 00 D0 03 00 00 00 00 00 F6 0C DC [12:17:21]RasterBufferAndPrint [12:17:21]line [12:17:21]line [12:17:21]line [12:17:21]line [12:17:21]line [12:17:21]written 0, free lines is 3329 [12:17:21]MH_Cut [12:17:21]Write to MH i2c: D1 01 00 D7 03 01 AC [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: D1 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: D1 01 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: D1 01 00 D7 03 00 AB [12:17:21]Write to MH i2c: 01 00 00 D8 03 DB [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:22]*** Cut start [12:17:22]*** Partial cut [12:17:22]*** CUTSNS_PIN = 1 [12:17:22]*** CUTSNS_PIN = 0 [12:17:22]*** Brake cut motor [12:17:22]Read from MH i2c: 01 [12:17:22]MH_I2C_Read... [12:17:22]*** Stop cut motor [12:17:22]*** Cut end [12:17:22]Read from MH i2c: 01 07 00 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: 01 07 00 D8 03 00 00 00 00 00 FF 0F F0 [12:17:22]process_action close_receipt done [12:17:22]requested_data is exist [12:17:22]produce_requested_data [12:17:22]requested_item fm.sn is exist - process it [12:17:22]wFMCommunicate request_size=4 [12:17:22]MH_SAM_APDU [12:17:22]CAPDU: 80 11 00 00 [12:17:22]Write to MH i2c: E2 08 00 D9 03 80 11 00 00 00 00 00 00 56 [12:17:22]Write i2c OK [12:17:22]MH_I2C_Read... [12:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:22]Read from MH i2c: E2 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: E2 17 00 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: E2 17 00 D9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 A3 [12:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:17:22]wFMCommunicate OK [12:17:22]requested_item fd.num is exist - process it [12:17:22]SAM_PROTO_GetFieldsCounters [12:17:22]wFMCommunicate request_size=4 [12:17:22]MH_SAM_APDU [12:17:22]CAPDU: 80 13 00 00 [12:17:22]Write to MH i2c: E2 08 00 DA 03 80 13 00 00 00 00 00 00 59 [12:17:22]Write i2c OK [12:17:22]MH_I2C_Read... [12:17:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:22]Read from MH i2c: E2 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: E2 62 00 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: E2 62 00 DA 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F8 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [12:17: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F8 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:22]wFMCommunicate OK [12:17:22]SAM_PROTO_GetFieldsCounters done [12:17:22]requested_item shift.num is exist - process it [12:17:22]requested_item shift.opened is exist - process it [12:17:22]req_shift_opened [12:17:22]FM_GetShiftState [12:17:22]SAM_PROTO_GetShiftState [12:17:22]wFMCommunicate request_size=4 [12:17:22]MH_SAM_APDU [12:17:22]CAPDU: 80 13 01 00 [12:17:22]Write to MH i2c: E2 08 00 DB 03 80 13 01 00 00 00 00 00 5B [12:17:22]Write i2c OK [12:17:22]MH_I2C_Read... [12:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:22]Read from MH i2c: E2 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: E2 0E 00 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: E2 0E 00 DB 03 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 94 [12:17:22]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:17:22]wFMCommunicate OK [12:17:22]SAM_PROTO_GetShiftState done [12:17:22]FM_GetShiftState done [12:17:22]req_shift_opened done [12:17:22]requested_item shift.open_date is exist - process it [12:17:22]req_shift_open_date [12:17:22]req_shift_open_date done [12:17:22]produce_requested_data done [12:17:22]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103672,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:17:22]process_action_free close_receipt [12:17:22]json_value_free [12:17:22]json_value_free done [12:17:22]process_json_proto returns [12:17:22]Send response to host [12:17:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103672,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:17:22]free response buf [12:17:22]execute_script done [12:17:22]execute_script returns [12:17:22]free content buf [12:17:22]Sock 10.Close socket [12:17:22]Sock 10.Thread stoped [12:17:24]recv_with_timeout no data received [12:17:25]ConnectInit Can't take IP for lk.salyk.kg [12:17:25]CommunicateWithHost connect error [12:17:25]CommunicateWithHost err = -1 [12:17:25]OFD Sender: Server communicate error [12:17:30]OFD Sender: Processing packet 103671 [packets to send 499, broken 497] [12:17:30]ProducePacketName [12:17:30]name=ofd_packets/00103671 [12:17:30]OFD Sender: To server: pG, [12:17:30]CommunicateWithHost lk.salyk.kg:30040 [12:17:30]ConnectInit lk.salyk.kg [12:17:36]recv_with_timeout no data received [12:17:44]Connected sock=10 [12:17: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 31 31 0F 01 00 00 9B 7A 07 01 F7 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3F E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F7 94 01 00 35 04 06 00 CA 21 65 AB 67 AB 6F 23 CB DE 63 99 5B 49 [12:17:49]recv_with_timeout no data received [12:17:49]CommunicateWithHost answer receiving error [12:17:49]CommunicateWithHost err = -3 [12:17:49]OFD Sender: Server communicate error [12:17:49]recv_with_timeout no data received [12:17:54]OFD Sender: Processing packet 103671 [packets to send 499, broken 497] [12:17:54]ProducePacketName [12:17:54]name=ofd_packets/00103671 [12:17:54]OFD Sender: To server: pG, [12:17:54]CommunicateWithHost lk.salyk.kg:30040 [12:17:54]ConnectInit lk.salyk.kg [12:17:57]Connected sock=10 [12:17: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 31 31 0F 01 00 00 9B 7A 07 01 F7 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3F E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F7 94 01 00 35 04 06 00 CA 21 65 AB 67 AB 6F 23 CB DE 63 99 5B 49 [12:18:01]recv_with_timeout no data received [12:18:02]recv_with_timeout no data received [12:18:02]CommunicateWithHost answer receiving error [12:18:02]CommunicateWithHost err = -3 [12:18:02]OFD Sender: Server communicate error [12:18:07]OFD Sender: Processing packet 103671 [packets to send 499, broken 497] [12:18:07]ProducePacketName [12:18:07]name=ofd_packets/00103671 [12:18:07]OFD Sender: To server: pG, [12:18:07]CommunicateWithHost lk.salyk.kg:30040 [12:18:07]ConnectInit lk.salyk.kg [12:18:15]recv_with_timeout no data received [12:18:23]Connected sock=10 [12:18: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 31 31 0F 01 00 00 9B 7A 07 01 F7 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3F E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F7 94 01 00 35 04 06 00 CA 21 65 AB 67 AB 6F 23 CB DE 63 99 5B 49 [12:18: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 31 31 4F 00 00 00 1E 09 47 00 54 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F7 94 01 00 F4 03 04 00 A5 90 18 67 B6 04 01 00 00 EF 98 08 E3 3D 7A 28 76 [12:18:25]CommunicateWithHost err = 0 [12:18:25]CheckOFDResponse [12:18:25]1017 (14) - 77093643461234 [12:18:25]1041 (16) - 0000000000871811 [12:18:25]1040 (4) - 103671 [12:18:25]1012 (4) - 23.10.2024 05:59 [12:18:25]1206 (1) - 0 [12:18:25]OFD Sender: Remove packet 103671 [12:18:25]ProducePacketName [12:18:25]name=ofd_packets/00103671 [12:18:25]NVStorageDeleteData [12:18:26]OFD Sender: Processing packet 103672 [packets to send 498, broken 497] [12:18:26]ProducePacketName [12:18:26]name=ofd_packets/00103672 [12:18:26]OFD Sender: To server: pG, [12:18:26]CommunicateWithHost lk.salyk.kg:30040 [12:18:26]ConnectInit lk.salyk.kg [12:18:29]recv_with_timeout no data received [12:18:31]ConnectInit Can't take IP for lk.salyk.kg [12:18:31]CommunicateWithHost connect error [12:18:31]CommunicateWithHost err = -1 [12:18:31]OFD Sender: Server communicate error [12:18:33]accept exits with 9 [12:18:33]New connection [12:18:33]New thread 3066727780 created [12:18:33]Thread 3066871140 joined [12:18:33]Waiting for new connection... [12:18:33] Sock 9.Parse request [12:18:33]Sock 9.Check first char [12:18:33]Sock 9.First char is OK [12:18:33]request: POST /json_proto HTTP/1.0 [12:18:33]Method: POST [12:18:33]URL: /json_proto [12:18:33]Method is POST - this is cgi request [12:18:33]url: /json_proto [12:18:33]query_string will be loaded in cgi processing [12:18:33]execute_cgi json_proto POST (null) [12:18:33]execute_cgi path=json_proto method=POST [12:18:33]POST find Content-Length [12:18:33]Host: 172.17.51.67:8080 [12:18:33]Content-Length: 840 [12:18:33]Content-Type: application/json [12:18:33] [12:18:33]POST finish read [12:18:33]Found Content-Length = 840 [12:18:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:33]execute_script... [12:18:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:33]POST & json_proto [12:18:33]process_json_proto [12:18:33]json parsed OK: [12:18:33]protocol is kg_v1.0 [12:18:33]action value=close_receipt [12:18:33]process_action close_receipt [12:18:33]cmd_close_receipt [12:18:33]MH_GetDate [12:18:33]Write to MH i2c: F0 00 00 DC 03 CE [12:18:33]Write i2c OK [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: F0 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: F0 09 00 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: F0 09 00 DC 03 00 99 E9 18 67 1E EF FA 64 43 [12:18:33]GetLastDocTimeStamp 1729685839 [12:18:33]current date 1729685913 [12:18:33]FM_GetShiftState [12:18:33]SAM_PROTO_GetShiftState [12:18:33]wFMCommunicate request_size=4 [12:18:33]MH_SAM_APDU [12:18:33]CAPDU: 80 13 01 00 [12:18:33]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [12:18:33]Write i2c OK [12:18:33]MH_I2C_Read... [12:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:33]Read from MH i2c: E2 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 0E 00 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 96 [12:18:33]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:18:33]wFMCommunicate OK [12:18:33]SAM_PROTO_GetShiftState done [12:18:33]FM_GetShiftState done [12:18:33]opened in 1729642861 [12:18:33]opened+sec_in_day 1729729261 [12:18:33]quantity*price = 50041 [12:18:33]sum+1 = 50042 [12:18:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 85 23.10.2024 12:18 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000871811 ФД: 103673 ФПД: 257736559366878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121833&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103673&fm=257736559366878&tin=02508201610067®Number=0000000000091754&sum=50041 [12:18:34]StoreToDocumentArchive [12:18:34]shift 582 fd 103673 [12:18:34]save to /storage/0582/doc_00103673 [12:18:34]save last doc name /storage/0582/doc_00103673 to /storage/kkm_last_doc_name [12:18:34]save OK [12:18:34]Clear old archive folders... [12:18:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:34]tlvbuf is 01BEC6E0 [12:18:34]SAM_PROTO_ClearQueue [12:18:34]wFMCommunicate request_size=4 [12:18:34]MH_SAM_APDU [12:18:34]CAPDU: 80 09 00 00 [12:18:34]Write to MH i2c: E2 08 00 EA 03 80 09 00 00 00 00 00 00 5F [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:34]Read from MH i2c: E2 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 03 00 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [12:18:34]RAPDU: 90 00 [12:18:34]wFMCommunicate OK [12:18:34]SAM_PROTO_ClearQueue done [12:18:34]KKMCreateOFDPacket [12:18:34]OFDProtocolAddRootSTLVToBuf [12:18:34]FM_MakeSignedData [12:18:34]FM_MakeSignedData [12:18:34]SAM_PROTO_SignData [12:18:34]wFMCommunicate request_size=4 [12:18:34]MH_SAM_APDU [12:18:34]CAPDU: 80 0D 01 02 [12:18:34]Write to MH i2c: E2 08 00 EB 03 80 0D 01 02 00 00 00 00 67 [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:34]Read from MH i2c: E2 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 03 00 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [12:18:34]RAPDU: 90 00 [12:18:34]wFMCommunicate OK [12:18:34]wFMCommunicate request_size=255 [12:18:34]MH_SAM_APDU [12:18:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 99 E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F9 94 01 00 35 04 06 00 EA [12:18:34]Write to MH i2c: E2 02 01 EC 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 99 E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F9 94 01 00 35 04 06 00 EA 00 00 58 [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:35]Read from MH i2c: E2 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 03 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [12:18:35]RAPDU: 90 00 [12:18:35]wFMCommunicate OK [12:18:35]wFMCommunicate request_size=10 [12:18:35]MH_SAM_APDU [12:18:35]CAPDU: 80 0D 02 02 05 68 F8 11 12 DE [12:18:35]Write to MH i2c: E2 0D 00 ED 03 80 0D 02 02 05 00 68 F8 11 12 DE 00 00 D5 [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:35]Read from MH i2c: E2 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 03 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [12:18:35]RAPDU: 90 00 [12:18:35]wFMCommunicate OK [12:18:35]wFMCommunicate request_size=4 [12:18:35]MH_SAM_APDU [12:18:35]CAPDU: 80 0D 03 02 [12:18:35]Write to MH i2c: E2 08 00 EE 03 80 0D 03 02 00 00 00 00 6C [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:35]Read from MH i2c: E2 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 0B 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 0B 00 EE 03 00 58 A5 5E 06 E5 C5 6B B6 90 00 99 [12:18:35]RAPDU: 58 A5 5E 06 E5 C5 6B B6 90 00 [12:18:35]wFMCommunicate OK [12:18:35]SAM_PROTO_SignData done [12:18:35]FM_MakeSignedData done [12:18:35]CreateOFDProtocolMessage [12:18:35]wFMCommunicate request_size=4 [12:18:35]MH_SAM_APDU [12:18:35]CAPDU: 80 11 00 00 [12:18:35]Write to MH i2c: E2 08 00 EF 03 80 11 00 00 00 00 00 00 6C [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:35]Read from MH i2c: E2 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 17 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 17 00 EF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 B9 [12:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:18:35]wFMCommunicate OK [12:18:35]CreateOFDProtocolMessage done [12:18:35]OFDSenderStorePacket 103673 [12:18:35]StoreOFDPacket docnum=103673 [12:18:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 A3 EE 07 01 5B 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 99 E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F9 94 01 00 35 04 06 00 EA 68 F8 11 12 DE 58 A5 5E 06 E5 C5 6B B6 [12:18:35]CheckFolder [12:18:35]dirname=/storage/ofd_packets [12:18:35]CheckFolder done [12:18:35]ProducePacketName [12:18:35]name=ofd_packets/00103673 [12:18:35]NVStorageSaveData ofd_packets/00103673 [12:18:35]File name is /storage/ofd_packets/00103673 [12:18:35]Write 301 bytes [12:18:35]NVStorageSaveData done [12:18:35]OFDSenderStorePacket done [12:18:35]KKMCreateOFDPacket done [12:18:35]NVStorageSaveData kkm_last_timestamp [12:18:35]File name is /storage/kkm_last_timestamp [12:18:35]Write 4 bytes [12:18:35]NVStorageSaveData done [12:18:35]ExternCall_PrintAddStr [12:18:35]wPrintStart [12:18:35]Write to MH i2c: 01 00 00 F0 03 F3 [12:18:35]OFD Sender: Processing packet 103672 [packets to send 499, broken 497] [12:18:35]ProducePacketName [12:18:35]name=ofd_packets/00103672 [12:18:35]OFD Sender: To server: pG, [12:18:35]CommunicateWithHost lk.salyk.kg:30040 [12:18:35]ConnectInit lk.salyk.kg [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: 01 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: 01 07 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: 01 07 00 F0 03 00 00 00 00 00 FF 0F 08 [12:18:35]RasterBufferAndPrint [12:18:35]line Счет N : (1)317895 [12:18:35]line ИНН: 02508201610067 [12:18:35]line Контрольно-Кассовый Чек [12:18:35]line ПРОДАЖА [12:18:35]line ТРК (МРК, ГНК) : 63 [12:18:35]line Товар: 2710124130 [12:18:35]line Аи-92-К-4 [12:18:35]line 7.480 * 66.90 [12:18:35]line = 500.41 [12:18:35]line НДС 12% НСП 1% [12:18:35]line > о реализуемом товаре [12:18:35]line ИТОГО: 500.41 [12:18:35]line НСП 1% : 4.43 [12:18:35]line НДС 12% : 53.14 [12:18:35]line Наличными: 0.00 [12:18:35]line Безнал.: 500.41 [12:18:35]line Место: АЗС № 145 "Партнер Нефть" [12:18:35]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [12:18:35]line СНО: Общий режим [12:18:35]line Чек 85 23.10.2024 12:18 [12:18:35]line Смена: 582 ФФД: 1.0 [12:18:35]line ЗНМ: 0300000095 [12:18:35]line РНМ: 0000000000091754 [12:18:35]line Версия ККМ: 001 [12:18:35]line Платежная система: АКБ Кыргызстан [12:18:35]line ФМ: 0000000000871811 [12:18:35]line ФД: 103673 [12:18:35]line ФПД: 257736559366878 [12:18:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121833&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103673&fm=257736559366878&tin=02508201610067®Number=0000000000091754&sum=50041 [12:18:35]written 0, free lines is 4095 [12:18:35]Write to MH i2c: 01 00 00 19 04 1D [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: 01 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: 01 07 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: 01 07 00 19 04 00 00 00 00 00 E6 0C 16 [12:18:35]RasterBufferAndPrint [12:18:35]line [12:18:35]line [12:18:35]line [12:18:35]line [12:18:35]line [12:18:35]written 0, free lines is 3308 [12:18:35]MH_Cut [12:18:35]Write to MH i2c: D1 01 00 20 04 01 F6 [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: D1 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: D1 01 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: D1 01 00 20 04 00 F5 [12:18:35]Write to MH i2c: 01 00 00 21 04 25 [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:36]*** Cut start [12:18:36]*** Partial cut [12:18:36]*** CUTSNS_PIN = 1 [12:18:36]*** CUTSNS_PIN = 0 [12:18:36]*** Brake cut motor [12:18:37]Read from MH i2c: 01 [12:18:37]MH_I2C_Read... [12:18:37]*** Stop cut motor [12:18:37]*** Cut end [12:18:37]Read from MH i2c: 01 07 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: 01 07 00 21 04 00 00 00 00 00 FF 0F 3A [12:18:37]process_action close_receipt done [12:18:37]requested_data is exist [12:18:37]produce_requested_data [12:18:37]requested_item fm.sn is exist - process it [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 11 00 00 [12:18:37]Write to MH i2c: E2 08 00 22 04 80 11 00 00 00 00 00 00 A0 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 17 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 17 00 22 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 ED [12:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:18:37]wFMCommunicate OK [12:18:37]requested_item fd.num is exist - process it [12:18:37]SAM_PROTO_GetFieldsCounters [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 13 00 00 [12:18:37]Write to MH i2c: E2 08 00 23 04 80 13 00 00 00 00 00 00 A3 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 62 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 62 00 23 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F9 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [12:18: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 F9 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:37]wFMCommunicate OK [12:18:37]SAM_PROTO_GetFieldsCounters done [12:18:37]requested_item shift.num is exist - process it [12:18:37]requested_item shift.opened is exist - process it [12:18:37]req_shift_opened [12:18:37]FM_GetShiftState [12:18:37]SAM_PROTO_GetShiftState [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 13 01 00 [12:18:37]Write to MH i2c: E2 08 00 24 04 80 13 01 00 00 00 00 00 A5 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 0E 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 0E 00 24 04 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 DE [12:18:37]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:18:37]wFMCommunicate OK [12:18:37]SAM_PROTO_GetShiftState done [12:18:37]FM_GetShiftState done [12:18:37]req_shift_opened done [12:18:37]requested_item shift.open_date is exist - process it [12:18:37]req_shift_open_date [12:18:37]req_shift_open_date done [12:18:37]produce_requested_data done [12:18:37]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103673,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:18:37]process_action_free close_receipt [12:18:37]json_value_free [12:18:37]json_value_free done [12:18:37]process_json_proto returns [12:18:37]Send response to host [12:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103673,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:18:37]free response buf [12:18:37]execute_script done [12:18:37]execute_script returns [12:18:37]free content buf [12:18:37]Sock 9.Close socket [12:18:37]Sock 9.Thread stoped [12:18:43]recv_with_timeout no data received [12:18:54]Connected sock=11 [12: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 31 31 0C 01 00 00 EE 42 04 01 F8 D1 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 34 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 4F E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F8 94 01 00 35 04 06 00 28 CD 14 E0 6C F8 BD 04 E7 BB 49 01 62 62 [12: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 31 31 4F 00 00 00 59 B2 47 00 87 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 31 31 10 04 04 00 F8 94 01 00 F4 03 04 00 C2 90 18 67 B6 04 01 00 00 E8 2A A4 2F 10 AC EB E7 [12:18:55]CommunicateWithHost err = 0 [12:18:55]CheckOFDResponse [12:18:55]1017 (14) - 77093643461234 [12:18:55]1041 (16) - 0000000000871811 [12:18:55]1040 (4) - 103672 [12:18:55]1012 (4) - 23.10.2024 05:59 [12:18:55]1206 (1) - 0 [12:18:55]OFD Sender: Remove packet 103672 [12:18:55]ProducePacketName [12:18:55]name=ofd_packets/00103672 [12:18:55]NVStorageDeleteData [12:18:55]OFD Sender: Processing packet 103673 [packets to send 498, broken 497] [12:18:55]ProducePacketName [12:18:55]name=ofd_packets/00103673 [12:18:55]OFD Sender: To server: pG, [12:18:55]CommunicateWithHost lk.salyk.kg:30040 [12:18:55]ConnectInit lk.salyk.kg [12:18:57]Connected sock=10 [12:18: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 31 31 0F 01 00 00 A3 EE 07 01 5B 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 99 E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F9 94 01 00 35 04 06 00 EA 68 F8 11 12 DE 58 A5 5E 06 E5 C5 6B B6 [12:18: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 31 31 4F 00 00 00 30 F3 47 00 E1 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 F9 94 01 00 F4 03 04 00 C5 90 18 67 B6 04 01 00 00 F5 8D 9C FE ED A8 31 37 [12:18:58]CommunicateWithHost err = 0 [12:18:58]CheckOFDResponse [12:18:58]1017 (14) - 77093643461234 [12:18:58]1041 (16) - 0000000000871811 [12:18:58]1040 (4) - 103673 [12:18:58]1012 (4) - 23.10.2024 05:59 [12:18:58]1206 (1) - 0 [12:18:58]OFD Sender: Remove packet 103673 [12:18:58]ProducePacketName [12:18:58]name=ofd_packets/00103673 [12:18:58]NVStorageDeleteData [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:37]recv_with_timeout no data received [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]accept exits with 7 [12:19:58]New connection [12:19:58]New thread 3066871140 created [12:19:58]Thread 3066727780 joined [12:19:58]Waiting for new connection... [12:19:58] Sock 7.Parse request [12:19:58]Sock 7.Check first char [12:19:58]Sock 7.First char is OK [12:19:58]request: POST /json_proto HTTP/1.0 [12:19:58]Method: POST [12:19:58]URL: /json_proto [12:19:58]Method is POST - this is cgi request [12:19:58]url: /json_proto [12:19:58]query_string will be loaded in cgi processing [12:19:58]execute_cgi json_proto POST (null) [12:19:58]execute_cgi path=json_proto method=POST [12:19:58]POST find Content-Length [12:19:58]Host: 172.17.51.67:8080 [12:19:58]Content-Length: 677 [12:19:58]Content-Type: application/json [12:19:58] [12:19:58]POST finish read [12:19:58]Found Content-Length = 677 [12:19:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:58]execute_script... [12:19:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)317896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:58]POST & json_proto [12:19:58]process_json_proto [12:19:58]json parsed OK: [12:19:58]protocol is kg_v1.0 [12:19:58]action value=close_receipt [12:19:58]process_action close_receipt [12:19:58]cmd_close_receipt [12:19:58]MH_GetDate [12:19:58]Write to MH i2c: F0 00 00 25 04 18 [12:19:58]Write i2c OK [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: F0 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: F0 09 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: F0 09 00 25 04 00 EE E9 18 67 1E EF FA 64 E2 [12:19:58]GetLastDocTimeStamp 1729685913 [12:19:58]current date 1729685998 [12:19:58]FM_GetShiftState [12:19:58]SAM_PROTO_GetShiftState [12:19:58]wFMCommunicate request_size=4 [12:19:58]MH_SAM_APDU [12:19:58]CAPDU: 80 13 01 00 [12:19:58]Write to MH i2c: E2 08 00 26 04 80 13 01 00 00 00 00 00 A7 [12:19:58]Write i2c OK [12:19:58]MH_I2C_Read... [12:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:58]Read from MH i2c: E2 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 0E 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 0E 00 26 04 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 E0 [12:19:58]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:19:58]wFMCommunicate OK [12:19:58]SAM_PROTO_GetShiftState done [12:19:58]FM_GetShiftState done [12:19:58]opened in 1729642861 [12:19:58]opened+sec_in_day 1729729261 [12:19:58]quantity*price = 40006 [12:19:58]sum+1 = 40007 [12:19:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 145 "Партнер Нефть" Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 СНО: Общий режим Чек 86 23.10.2024 12:19 Смена: 582 ФФД: 1.0 ЗНМ: 0300000095 РНМ: 0000000000091754 Версия ККМ: 001 ФМ: 0000000000871811 ФД: 103674 ФПД: 237152693508908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121958&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103674&fm=237152693508908&tin=02508201610067®Number=0000000000091754&sum=40000 [12:19:59]StoreToDocumentArchive [12:19:59]shift 582 fd 103674 [12:19:59]save to /storage/0582/doc_00103674 [12:19:59]save last doc name /storage/0582/doc_00103674 to /storage/kkm_last_doc_name [12:19:59]save OK [12:19:59]Clear old archive folders... [12:19:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:59]tlvbuf is 01C05600 [12:19:59]SAM_PROTO_ClearQueue [12:19:59]wFMCommunicate request_size=4 [12:19:59]MH_SAM_APDU [12:19:59]CAPDU: 80 09 00 00 [12:19:59]Write to MH i2c: E2 08 00 33 04 80 09 00 00 00 00 00 00 A9 [12:19:59]Write i2c OK [12:19:59]MH_I2C_Read... [12:19:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:59]Read from MH i2c: E2 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 03 00 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [12:19:59]RAPDU: 90 00 [12:19:59]wFMCommunicate OK [12:19:59]SAM_PROTO_ClearQueue done [12:19:59]KKMCreateOFDPacket [12:19:59]OFDProtocolAddRootSTLVToBuf [12:19:59]FM_MakeSignedData [12:19:59]FM_MakeSignedData [12:19:59]SAM_PROTO_SignData [12:19:59]wFMCommunicate request_size=4 [12:19:59]MH_SAM_APDU [12:19:59]CAPDU: 80 0D 01 02 [12:19:59]Write to MH i2c: E2 08 00 34 04 80 0D 01 02 00 00 00 00 B1 [12:19:59]Write i2c OK [12:19:59]MH_I2C_Read... [12:19:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:59]Read from MH i2c: E2 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 03 00 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [12:19:59]RAPDU: 90 00 [12:19:59]wFMCommunicate OK [12:19:59]wFMCommunicate request_size=255 [12:19:59]MH_SAM_APDU [12:19:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 EE E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 FA 94 01 00 35 04 06 00 D7 [12:19:59]Write to MH i2c: E2 02 01 35 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 EE E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 FA 94 01 00 35 04 06 00 D7 00 00 63 [12:19:59]Write i2c OK [12:19:59]MH_I2C_Read... [12:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:59]Read from MH i2c: E2 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 03 00 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [12:19:59]RAPDU: 90 00 [12:19:59]wFMCommunicate OK [12:19:59]wFMCommunicate request_size=10 [12:19:59]MH_SAM_APDU [12:19:59]CAPDU: 80 0D 02 02 05 B0 6A 0D DB 2C [12:19:59]Write to MH i2c: E2 0D 00 36 04 80 0D 02 02 05 00 B0 6A 0D DB 2C 00 00 EC [12:19:59]Write i2c OK [12:19:59]MH_I2C_Read... [12:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:59]Read from MH i2c: E2 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 03 00 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [12:19:59]RAPDU: 90 00 [12:19:59]wFMCommunicate OK [12:19:59]wFMCommunicate request_size=4 [12:19:59]MH_SAM_APDU [12:19:59]CAPDU: 80 0D 03 02 [12:19:59]Write to MH i2c: E2 08 00 37 04 80 0D 03 02 00 00 00 00 B6 [12:19:59]Write i2c OK [12:19:59]MH_I2C_Read... [12:19:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:59]Read from MH i2c: E2 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 0B 00 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 0B 00 37 04 00 2C 2B 76 3C D7 E1 CE 6B 90 00 B1 [12:19:59]RAPDU: 2C 2B 76 3C D7 E1 CE 6B 90 00 [12:19:59]wFMCommunicate OK [12:19:59]SAM_PROTO_SignData done [12:19:59]FM_MakeSignedData done [12:19:59]CreateOFDProtocolMessage [12:19:59]wFMCommunicate request_size=4 [12:19:59]MH_SAM_APDU [12:19:59]CAPDU: 80 11 00 00 [12:19:59]Write to MH i2c: E2 08 00 38 04 80 11 00 00 00 00 00 00 B6 [12:19:59]Write i2c OK [12:19:59]MH_I2C_Read... [12:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:59]Read from MH i2c: E2 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 17 00 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: E2 17 00 38 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 03 [12:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:19:59]wFMCommunicate OK [12:19:59]CreateOFDProtocolMessage done [12:19:59]OFDSenderStorePacket 103674 [12:19:59]StoreOFDPacket docnum=103674 [12:19:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0F 01 00 00 B4 5A 07 01 2A 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 EE E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 FA 94 01 00 35 04 06 00 D7 B0 6A 0D DB 2C 2C 2B 76 3C D7 E1 CE 6B [12:19:59]CheckFolder [12:19:59]dirname=/storage/ofd_packets [12:19:59]CheckFolder done [12:19:59]ProducePacketName [12:19:59]name=ofd_packets/00103674 [12:19:59]NVStorageSaveData ofd_packets/00103674 [12:19:59]File name is /storage/ofd_packets/00103674 [12:19:59]Write 301 bytes [12:19:59]NVStorageSaveData done [12:19:59]OFDSenderStorePacket done [12:19:59]KKMCreateOFDPacket done [12:19:59]NVStorageSaveData kkm_last_timestamp [12:19:59]File name is /storage/kkm_last_timestamp [12:19:59]Write 4 bytes [12:19:59]NVStorageSaveData done [12:19:59]ExternCall_PrintAddStr [12:19:59]wPrintStart [12:19:59]Write to MH i2c: 01 00 00 39 04 3D [12:19:59]Write i2c OK [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: 01 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: 01 07 00 [12:19:59]MH_I2C_Read... [12:19:59]Read from MH i2c: 01 07 00 39 04 00 00 00 00 00 FF 0F 52 [12:19:59]RasterBufferAndPrint [12:19:59]line Счет N : (1)317896 [12:19:59]line ИНН: 02508201610067 [12:19:59]line Контрольно-Кассовый Чек [12:19:59]line ПРОДАЖА [12:19:59]line ТРК (МРК, ГНК) : 43 [12:19:59]line Товар: 2710124130 [12:19:59]line Аи-92-К-4 [12:19:59]line 5.980 * 66.90 [12:19:59]line = 400.06 [12:19:59]line НДС 12% НСП 1% [12:19:59]line > о реализуемом товаре [12:19:59]line ОКРУГЛЕНИЕ: -0.06 [12:19:59]line ИТОГО: 400.00 [12:19:59]line Внесено: 400.00 [12:19:59]line СДАЧА: 0.00 [12:19:59]line НСП 1% : 3.54 [12:19:59]line НДС 12% : 42.48 [12:19:59]line Наличными: 400.00 [12:19:59]line Безнал.: 0.00 [12:19:59]line Место: АЗС № 145 "Партнер Нефть" [12:19:59]line Адрес: 720001, с. Жерге-Тал, 41.101476, 73.222371 [12:19:59]line СНО: Общий режим [12:19:59]line Чек 86 23.10.2024 12:19 [12:19:59]line Смена: 582 ФФД: 1.0 [12:19:59]line ЗНМ: 0300000095 [12:19:59]line РНМ: 0000000000091754 [12:19:59]line Версия ККМ: 001 [12:19:59]line ФМ: 0000000000871811 [12:19:59]line ФД: 103674 [12:19:59]line ФПД: 237152693508908 [12:19:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121958&type=1&operation_type=1&fn_number=0000000000871811&fd_number=103674&fm=237152693508908&tin=02508201610067®Number=0000000000091754&sum=40000 [12:19:59]OFD Sender: Processing packet 103674 [packets to send 498, broken 497] [12:19:59]ProducePacketName [12:19:59]name=ofd_packets/00103674 [12:19:59]OFD Sender: To server: pG, [12:19:59]CommunicateWithHost lk.salyk.kg:30040 [12:19:59]ConnectInit lk.salyk.kg [12:19:59]written 0, free lines is 4095 [12:20:00]Write to MH i2c: 01 00 00 63 04 67 [12:20:00]Write i2c OK [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: 01 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: 01 07 00 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 D6 0C 50 [12:20:00]RasterBufferAndPrint [12:20:00]line [12:20:00]line [12:20:00]line [12:20:00]line [12:20:00]line [12:20:00]written 0, free lines is 3293 [12:20:00]MH_Cut [12:20:00]Write to MH i2c: D1 01 00 6A 04 01 40 [12:20:00]Write i2c OK [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: D1 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: D1 01 00 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: D1 01 00 6A 04 00 3F [12:20:00]Write to MH i2c: 01 00 00 6B 04 6F [12:20:00]Write i2c OK [12:20:00]MH_I2C_Read... [12:20:00]Connected sock=11 [12:20: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 31 31 0F 01 00 00 B4 5A 07 01 2A 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 EE E9 18 67 0E 04 04 00 46 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 10 04 04 00 FA 94 01 00 35 04 06 00 D7 B0 6A 0D DB 2C 2C 2B 76 3C D7 E1 CE 6B [12:20:01]*** Cut start [12:20:01]*** Partial cut [12:20:01]*** CUTSNS_PIN = 1 [12:20:01]*** CUTSNS_PIN = 0 [12:20:01]*** Brake cut motor [12:20:01]Read from MH i2c: 01 [12:20:01]MH_I2C_Read... [12:20:01]*** Stop cut motor [12:20:01]*** Cut end [12:20:01]Read from MH i2c: 01 07 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 FF 0F 84 [12:20:01]process_action close_receipt done [12:20:01]requested_data is exist [12:20:01]produce_requested_data [12:20:01]requested_item fm.sn is exist - process it [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 11 00 00 [12:20:01]Write to MH i2c: E2 08 00 6C 04 80 11 00 00 00 00 00 00 EA [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 17 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 17 00 6C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 37 [12:20:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:20:01]wFMCommunicate OK [12:20:01]requested_item fd.num is exist - process it [12:20:01]SAM_PROTO_GetFieldsCounters [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 13 00 00 [12:20:01]Write to MH i2c: E2 08 00 6D 04 80 13 00 00 00 00 00 00 ED [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 62 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 62 00 6D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [12:20: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:01]wFMCommunicate OK [12:20:01]SAM_PROTO_GetFieldsCounters done [12:20:01]requested_item shift.num is exist - process it [12:20:01]requested_item shift.opened is exist - process it [12:20:01]req_shift_opened [12:20:01]FM_GetShiftState [12:20:01]SAM_PROTO_GetShiftState [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 13 01 00 [12:20:01]Write to MH i2c: E2 08 00 6E 04 80 13 01 00 00 00 00 00 EF [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 0E 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 0E 00 6E 04 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 28 [12:20:01]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:20:01]wFMCommunicate OK [12:20:01]SAM_PROTO_GetShiftState done [12:20:01]FM_GetShiftState done [12:20:01]req_shift_opened done [12:20:01]requested_item shift.open_date is exist - process it [12:20:01]req_shift_open_date [12:20:01]req_shift_open_date done [12:20:01]produce_requested_data done [12:20:01]produce_requested_data return {"fm.sn":"0000000000871811","fd.num":103674,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:20:01]process_action_free close_receipt [12:20:01]json_value_free [12:20:01]json_value_free done [12:20:01]process_json_proto returns [12:20:01]Send response to host [12:20:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871811","fd.num":103674,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:20:01]free response buf [12:20:01]execute_script done [12:20:01]execute_script returns [12:20:01]free content buf [12:20:01]Sock 7.Close socket [12:20:01]Sock 7.Thread stoped [12:20:05]recv_with_timeout no data received [12:20:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 4F 00 00 00 40 F4 47 00 75 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 31 31 10 04 04 00 FA 94 01 00 F4 03 04 00 09 91 18 67 B6 04 01 00 00 78 17 B7 15 FA 34 B1 BD [12:20:05]CommunicateWithHost err = 0 [12:20:05]CheckOFDResponse [12:20:05]1017 (14) - 77093643461234 [12:20:05]1041 (16) - 0000000000871811 [12:20:05]1040 (4) - 103674 [12:20:05]1012 (4) - 23.10.2024 06:00 [12:20:05]1206 (1) - 0 [12:20:05]OFD Sender: Remove packet 103674 [12:20:05]ProducePacketName [12:20:05]name=ofd_packets/00103674 [12:20:05]NVStorageDeleteData [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:38]recv_with_timeout no data received [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:43]recv_with_timeout no data received [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:13]recv_with_timeout no data received [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:37]recv_with_timeout no data received [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:19]recv_with_timeout no data received [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:29]recv_with_timeout no data received [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:25:59]recv_with_timeout no data received [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]recv_with_timeout no data received [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:49]recv_with_timeout no data received [12:26:51]accept exits with 9 [12:26:51]New connection [12:26:51]New thread 3066727780 created [12:26:51]Thread 3066871140 joined [12:26:51]Waiting for new connection... [12:26:51] Sock 9.Parse request [12:26:51]Sock 9.Check first char [12:26:51]Sock 9.First char is OK [12:26:51]request: POST /json_proto HTTP/1.0 [12:26:51]Method: POST [12:26:51]URL: /json_proto [12:26:51]Method is POST - this is cgi request [12:26:51]url: /json_proto [12:26:51]query_string will be loaded in cgi processing [12:26:51]execute_cgi json_proto POST (null) [12:26:51]execute_cgi path=json_proto method=POST [12:26:51]POST find Content-Length [12:26:51]Host: 172.17.51.67:8080 [12:26:51]Content-Length: 215 [12:26:51]Content-Type: application/json [12:26:51] [12:26:51]POST finish read [12:26:51]Found Content-Length = 215 [12:26:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:51]execute_script... [12:26:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:51]POST & json_proto [12:26:51]process_json_proto [12:26:51]json parsed OK: [12:26:51]protocol is kg_v1.0 [12:26:51]action value=get_value [12:26:51]process_action get_value [12:26:51]cmd_get_value [12:26:51]process_action get_value done [12:26:51]requested_data is exist [12:26:51]produce_requested_data [12:26:51]requested_item kkm.sn is exist - process it [12:26:51]requested_item kkm.ver is exist - process it [12:26:51]requested_item fm.sn is exist - process it [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 11 00 00 [12:26:51]Write to MH i2c: E2 08 00 6F 04 80 11 00 00 00 00 00 00 ED [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 17 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 17 00 6F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 3A [12:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:26:51]wFMCommunicate OK [12:26:51]requested_item fd.num is exist - process it [12:26:51]SAM_PROTO_GetFieldsCounters [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 13 00 00 [12:26:51]Write to MH i2c: E2 08 00 70 04 80 13 00 00 00 00 00 00 F0 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 62 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 62 00 70 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [12:26: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:51]wFMCommunicate OK [12:26:51]SAM_PROTO_GetFieldsCounters done [12:26:51]requested_item shift.num is exist - process it [12:26:51]requested_item shift.opened is exist - process it [12:26:51]req_shift_opened [12:26:51]FM_GetShiftState [12:26:51]SAM_PROTO_GetShiftState [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 13 01 00 [12:26:51]Write to MH i2c: E2 08 00 71 04 80 13 01 00 00 00 00 00 F2 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:52]Read from MH i2c: E2 [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: E2 0E 00 [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: E2 0E 00 71 04 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 2B [12:26:52]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:26:52]wFMCommunicate OK [12:26:52]SAM_PROTO_GetShiftState done [12:26:52]FM_GetShiftState done [12:26:52]req_shift_opened done [12:26:52]requested_item shift.open_date is exist - process it [12:26:52]req_shift_open_date [12:26:52]req_shift_open_date done [12:26:52]produce_requested_data done [12:26:52]produce_requested_data return {"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103674,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:26:52]process_action_free get_value [12:26:52]json_value_free [12:26:52]json_value_free done [12:26:52]process_json_proto returns [12:26:52]Send response to host [12:26:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103674,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:26:52]free response buf [12:26:52]execute_script done [12:26:52]execute_script returns [12:26:52]free content buf [12:26:52]Sock 9.Close socket [12:26:52]Sock 9.Thread stoped [12:26:52]accept exits with 7 [12:26:52]New connection [12:26:52]New thread 3066871140 created [12:26:52]Thread 3066727780 joined [12:26:52]Waiting for new connection... [12:26:52] Sock 7.Parse request [12:26:52]Sock 7.Check first char [12:26:52]Sock 7.First char is OK [12:26:52]request: POST /json_proto HTTP/1.0 [12:26:52]Method: POST [12:26:52]URL: /json_proto [12:26:52]Method is POST - this is cgi request [12:26:52]url: /json_proto [12:26:52]query_string will be loaded in cgi processing [12:26:52]execute_cgi json_proto POST (null) [12:26:52]execute_cgi path=json_proto method=POST [12:26:52]POST find Content-Length [12:26:52]Host: 172.17.51.67:8080 [12:26:52]Content-Length: 331 [12:26:52]Content-Type: application/json [12:26:52] [12:26:52]POST finish read [12:26:52]Found Content-Length = 331 [12:26:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:26:52]execute_script... [12:26:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:26:52]POST & json_proto [12:26:52]process_json_proto [12:26:52]json parsed OK: [12:26:52]protocol is kg_v1.0 [12:26:52]action value=get_value [12:26:52]process_action get_value [12:26:52]cmd_get_value [12:26:52]process_action get_value done [12:26:52]requested_data is exist [12:26:52]produce_requested_data [12:26:52]requested_item fm.sale.total is exist - process it [12:26:52]SAM_PROTO_GetFMData [12:26:52]wFMCommunicate request_size=4 [12:26:52]MH_SAM_APDU [12:26:52]CAPDU: 80 13 03 00 [12:26:52]Write to MH i2c: E2 08 00 72 04 80 13 03 00 00 00 00 00 F5 [12:26:52]Write i2c OK [12:26:52]MH_I2C_Read... [12:26:52]OFD Sender: No OFD packet to send [12:26:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:26:52]Read from MH i2c: E2 [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: E2 FD 00 [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: E2 FD 00 72 04 00 C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 75 [12:26:52]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [12:26:52]wFMCommunicate OK [12:26:52]wFMCommunicate request_size=4 [12:26:52]MH_SAM_APDU [12:26:52]CAPDU: 80 17 00 00 [12:26:52]Write to MH i2c: E2 08 00 73 04 80 17 00 00 00 00 00 00 F7 [12:26:52]Write i2c OK [12:26:52]MH_I2C_Read... [12:26:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:26:53]Read from MH i2c: E2 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 FD 00 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 FD 00 73 04 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [12:26:53]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:26:53]wFMCommunicate OK [12:26:53]wFMCommunicate request_size=4 [12:26:53]MH_SAM_APDU [12:26:53]CAPDU: 80 17 00 00 [12:26:53]Write to MH i2c: E2 08 00 74 04 80 17 00 00 00 00 00 00 F8 [12:26:53]Write i2c OK [12:26:53]MH_I2C_Read... [12:26:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:26:53]Read from MH i2c: E2 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 FD 00 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 FD 00 74 04 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [12:26:53]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:26:53]wFMCommunicate OK [12:26:53]wFMCommunicate request_size=4 [12:26:53]MH_SAM_APDU [12:26:53]CAPDU: 80 17 00 00 [12:26:53]Write to MH i2c: E2 08 00 75 04 80 17 00 00 00 00 00 00 F9 [12:26:53]Write i2c OK [12:26:53]MH_I2C_Read... [12:26:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:26:53]Read from MH i2c: E2 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 FD 00 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 FD 00 75 04 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 74 [12:26:53]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:26:53]wFMCommunicate OK [12:26:53]wFMCommunicate request_size=4 [12:26:53]MH_SAM_APDU [12:26:53]CAPDU: 80 17 00 00 [12:26:53]Write to MH i2c: E2 08 00 76 04 80 17 00 00 00 00 00 00 FA [12:26:53]Write i2c OK [12:26:53]MH_I2C_Read... [12:26:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:26:53]Read from MH i2c: E2 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 E4 00 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 E4 00 76 04 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DA [12:26:53]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:26:53]wFMCommunicate OK [12:26:53]SAM_PROTO_GetFMData done [12:26:53]requested_item fm.sale_refund.total is exist - process it [12:26:53]requested_item fm.buy.total is exist - process it [12:26:53]requested_item shift.sale.total is exist - process it [12:26:53]SAM_PROTO_GetShiftData [12:26:53]wFMCommunicate request_size=4 [12:26:53]MH_SAM_APDU [12:26:53]CAPDU: 80 13 02 00 [12:26:53]Write to MH i2c: E2 08 00 77 04 80 13 02 00 00 00 00 00 F9 [12:26:53]Write i2c OK [12:26:53]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 FD 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 FD 00 77 04 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D4 [12:26:54]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:26:54]wFMCommunicate OK [12:26:54]wFMCommunicate request_size=4 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 17 00 00 [12:26:54]Write to MH i2c: E2 08 00 78 04 80 17 00 00 00 00 00 00 FC [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 FD 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 FD 00 78 04 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 1E [12:26:54]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 [12:26:54]wFMCommunicate OK [12:26:54]wFMCommunicate request_size=4 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 17 00 00 [12:26:54]Write to MH i2c: E2 08 00 79 04 80 17 00 00 00 00 00 00 FD [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 FD 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 FD 00 79 04 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B4 [12:26:54]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 [12:26:54]wFMCommunicate OK [12:26:54]wFMCommunicate request_size=4 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 17 00 00 [12:26:54]Write to MH i2c: E2 08 00 7A 04 80 17 00 00 00 00 00 00 FE [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:26:55]Read from MH i2c: E2 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 FD 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 FD 00 7A 04 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 70 [12:26:55]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 [12:26:55]wFMCommunicate OK [12:26:55]wFMCommunicate request_size=4 [12:26:55]MH_SAM_APDU [12:26:55]CAPDU: 80 17 00 00 [12:26:55]Write to MH i2c: E2 08 00 7B 04 80 17 00 00 00 00 00 00 FF [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:26:55]Read from MH i2c: E2 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 CB 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 CB 00 7B 04 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 E8 [12:26:55]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 [12:26:55]wFMCommunicate OK [12:26:55]SAM_PROTO_GetShiftData done [12:26:55]requested_item shift.sale.total_cash is exist - process it [12:26:55]requested_item shift.sale_refund.total is exist - process it [12:26:55]requested_item shift.sale_refund.total_cash is exist - process it [12:26:55]requested_item shift.buy.total is exist - process it [12:26:55]requested_item shift.buy.total_cash is exist - process it [12:26:55]produce_requested_data done [12:26:55]produce_requested_data return {"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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} [12:26:55]process_action_free get_value [12:26:55]json_value_free [12:26:55]json_value_free done [12:26:55]process_json_proto returns [12:26:55]Send response to host [12:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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}}} [12:26:55]free response buf [12:26:55]execute_script done [12:26:55]execute_script returns [12:26:55]free content buf [12:26:55]Sock 7.Close socket [12:26:55]Sock 7.Thread stoped [12:26:55]accept exits with 9 [12:26:55]New connection [12:26:55]New thread 3066727780 created [12:26:55]Thread 3066871140 joined [12:26:55]Waiting for new connection... [12:26:55] Sock 9.Parse request [12:26:55]Sock 9.Check first char [12:26:55]Sock 9.First char is OK [12:26:55]request: POST /json_proto HTTP/1.0 [12:26:55]Method: POST [12:26:55]URL: /json_proto [12:26:55]Method is POST - this is cgi request [12:26:55]url: /json_proto [12:26:55]query_string will be loaded in cgi processing [12:26:55]execute_cgi json_proto POST (null) [12:26:55]execute_cgi path=json_proto method=POST [12:26:55]POST find Content-Length [12:26:55]Host: 172.17.51.67:8080 [12:26:55]Content-Length: 331 [12:26:55]Content-Type: application/json [12:26:55] [12:26:55]POST finish read [12:26:55]Found Content-Length = 331 [12:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:26:55]execute_script... [12:26:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:26:55]POST & json_proto [12:26:55]process_json_proto [12:26:55]json parsed OK: [12:26:55]protocol is kg_v1.0 [12:26:55]action value=get_value [12:26:55]process_action get_value [12:26:55]cmd_get_value [12:26:55]process_action get_value done [12:26:55]requested_data is exist [12:26:55]produce_requested_data [12:26:55]requested_item fm.sale.total is exist - process it [12:26:55]SAM_PROTO_GetFMData [12:26:55]wFMCommunicate request_size=4 [12:26:55]MH_SAM_APDU [12:26:55]CAPDU: 80 13 03 00 [12:26:55]Write to MH i2c: E2 08 00 7C 04 80 13 03 00 00 00 00 00 FF [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 [12:26:56]MH_I2C_Read... [12:26:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:26:56]Read from MH i2c: E2 FD 00 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 FD 00 7C 04 00 C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 7F [12:26:56]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [12:26:56]wFMCommunicate OK [12:26:56]wFMCommunicate request_size=4 [12:26:56]MH_SAM_APDU [12:26:56]CAPDU: 80 17 00 00 [12:26:56]Write to MH i2c: E2 08 00 7D 04 80 17 00 00 00 00 00 00 01 [12:26:56]Write i2c OK [12:26:56]MH_I2C_Read... [12:26:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:26:56]Read from MH i2c: E2 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 FD 00 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 FD 00 7D 04 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [12:26:56]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:26:56]wFMCommunicate OK [12:26:56]wFMCommunicate request_size=4 [12:26:56]MH_SAM_APDU [12:26:56]CAPDU: 80 17 00 00 [12:26:56]Write to MH i2c: E2 08 00 7E 04 80 17 00 00 00 00 00 00 02 [12:26:56]Write i2c OK [12:26:56]MH_I2C_Read... [12:26:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:26:56]Read from MH i2c: E2 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 FD 00 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 FD 00 7E 04 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [12:26:56]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:26:56]wFMCommunicate OK [12:26:56]wFMCommunicate request_size=4 [12:26:56]MH_SAM_APDU [12:26:56]CAPDU: 80 17 00 00 [12:26:56]Write to MH i2c: E2 08 00 7F 04 80 17 00 00 00 00 00 00 03 [12:26:56]Write i2c OK [12:26:56]MH_I2C_Read... [12:26:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:26:57]Read from MH i2c: E2 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 FD 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 FD 00 7F 04 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7E [12:26:57]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:26:57]wFMCommunicate OK [12:26:57]wFMCommunicate request_size=4 [12:26:57]MH_SAM_APDU [12:26:57]CAPDU: 80 17 00 00 [12:26:57]Write to MH i2c: E2 08 00 80 04 80 17 00 00 00 00 00 00 04 [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:26:57]Read from MH i2c: E2 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 E4 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 E4 00 80 04 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E4 [12:26:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:26:57]wFMCommunicate OK [12:26:57]SAM_PROTO_GetFMData done [12:26:57]requested_item fm.sale_refund.total is exist - process it [12:26:57]requested_item fm.buy.total is exist - process it [12:26:57]requested_item shift.sale.total is exist - process it [12:26:57]SAM_PROTO_GetShiftData [12:26:57]wFMCommunicate request_size=4 [12:26:57]MH_SAM_APDU [12:26:57]CAPDU: 80 13 02 00 [12:26:57]Write to MH i2c: E2 08 00 81 04 80 13 02 00 00 00 00 00 03 [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]OFD Sender: No OFD packet to send [12:26:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:26:57]Read from MH i2c: E2 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 FD 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 FD 00 81 04 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DE [12:26:58]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:26:58]wFMCommunicate OK [12:26:58]wFMCommunicate request_size=4 [12:26:58]MH_SAM_APDU [12:26:58]CAPDU: 80 17 00 00 [12:26:58]Write to MH i2c: E2 08 00 82 04 80 17 00 00 00 00 00 00 06 [12:26:58]Write i2c OK [12:26:58]MH_I2C_Read... [12:26:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:26:58]Read from MH i2c: E2 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: E2 FD 00 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: E2 FD 00 82 04 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 28 [12:26:58]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 [12:26:58]wFMCommunicate OK [12:26:58]wFMCommunicate request_size=4 [12:26:58]MH_SAM_APDU [12:26:58]CAPDU: 80 17 00 00 [12:26:58]Write to MH i2c: E2 08 00 83 04 80 17 00 00 00 00 00 00 07 [12:26:58]Write i2c OK [12:26:58]MH_I2C_Read... [12:26:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:26:58]Read from MH i2c: E2 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: E2 FD 00 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: E2 FD 00 83 04 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [12:26:58]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [12:26:58]wFMCommunicate OK [12:26:58]wFMCommunicate request_size=4 [12:26:58]MH_SAM_APDU [12:26:58]CAPDU: 80 17 00 00 [12:26:58]Write to MH i2c: E2 08 00 84 04 80 17 00 00 00 00 00 00 08 [12:26:58]Write i2c OK [12:26:58]MH_I2C_Read... [12:26:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:26:59]Read from MH i2c: E2 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 FD 00 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 FD 00 84 04 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 7A [12:26:59]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 [12:26:59]wFMCommunicate OK [12:26:59]wFMCommunicate request_size=4 [12:26:59]MH_SAM_APDU [12:26:59]CAPDU: 80 17 00 00 [12:26:59]Write to MH i2c: E2 08 00 85 04 80 17 00 00 00 00 00 00 09 [12:26:59]Write i2c OK [12:26:59]MH_I2C_Read... [12:26:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:26:59]Read from MH i2c: E2 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 CB 00 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 CB 00 85 04 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 F2 [12:26:59]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 [12:26:59]wFMCommunicate OK [12:26:59]SAM_PROTO_GetShiftData done [12:26:59]requested_item shift.sale.total_cash is exist - process it [12:26:59]requested_item shift.sale_refund.total is exist - process it [12:26:59]requested_item shift.sale_refund.total_cash is exist - process it [12:26:59]requested_item shift.buy.total is exist - process it [12:26:59]requested_item shift.buy.total_cash is exist - process it [12:26:59]produce_requested_data done [12:26:59]produce_requested_data return {"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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} [12:26:59]process_action_free get_value [12:26:59]json_value_free [12:26:59]json_value_free done [12:26:59]process_json_proto returns [12:26:59]Send response to host [12:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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}}} [12:26:59]free response buf [12:26:59]execute_script done [12:26:59]execute_script returns [12:26:59]free content buf [12:26:59]Sock 9.Close socket [12:26:59]Sock 9.Thread stoped [12:26:59]accept exits with 7 [12:26:59]New connection [12:26:59]New thread 3066871140 created [12:26:59]Thread 3066727780 joined [12:26:59]Waiting for new connection... [12:26:59] Sock 7.Parse request [12:26:59]Sock 7.Check first char [12:26:59]Sock 7.First char is OK [12:26:59]request: POST /json_proto HTTP/1.0 [12:26:59]Method: POST [12:26:59]URL: /json_proto [12:26:59]Method is POST - this is cgi request [12:26:59]url: /json_proto [12:26:59]query_string will be loaded in cgi processing [12:26:59]execute_cgi json_proto POST (null) [12:26:59]execute_cgi path=json_proto method=POST [12:26:59]POST find Content-Length [12:26:59]Host: 172.17.51.67:8080 [12:26:59]Content-Length: 257 [12:26:59]Content-Type: application/json [12:26:59] [12:26:59]POST finish read [12:26:59]Found Content-Length = 257 [12:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u043E\u043E\u0440\u043E\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:59]execute_script... [12:26:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u043E\u043E\u0440\u043E\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:59]POST & json_proto [12:26:59]process_json_proto [12:26:59]json parsed OK: [12:26:59]protocol is kg_v1.0 [12:26:59]action value=x_report [12:26:59]process_action x_report [12:26:59]cmd_x_report [12:26:59]MH_GetDate [12:26:59]Write to MH i2c: F0 00 00 86 04 79 [12:26:59]Write i2c OK [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: F0 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: F0 09 00 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: F0 09 00 86 04 00 94 EB 18 67 1E EF FA 64 EB [12:26:59]GetLastDocTimeStamp 1729685998 [12:26:59]current date 1729686420 [12:26:59]FM_GetShiftState [12:26:59]SAM_PROTO_GetShiftState [12:26:59]wFMCommunicate request_size=4 [12:26:59]MH_SAM_APDU [12:26:59]CAPDU: 80 13 01 00 [12:26:59]Write to MH i2c: E2 08 00 87 04 80 13 01 00 00 00 00 00 08 [12:26:59]Write i2c OK [12:26:59]MH_I2C_Read... [12:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:59]Read from MH i2c: E2 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 0E 00 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 0E 00 87 04 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 41 [12:26:59]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:26:59]wFMCommunicate OK [12:26:59]SAM_PROTO_GetShiftState done [12:26:59]FM_GetShiftState done [12:26:59]KKMCreateXReportDocument [12:26:59]Load OK [12:26:59]Malloc new data [12:26:59]MH_GetDate [12:26:59]Write to MH i2c: F0 00 00 88 04 7B [12:26:59]Write i2c OK [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: F0 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: F0 09 00 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: F0 09 00 88 04 00 94 EB 18 67 1E EF FA 64 ED [12:26:59]Malloc new data [12:26:59]Malloc new data [12:26:59]wFMCommunicate request_size=4 [12:26:59]MH_SAM_APDU [12:26:59]CAPDU: 80 11 00 00 [12:26:59]Write to MH i2c: E2 08 00 89 04 80 11 00 00 00 00 00 00 07 [12:26:59]Write i2c OK [12:26:59]MH_I2C_Read... [12:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:59]Read from MH i2c: E2 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 17 00 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: E2 17 00 89 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 54 [12:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:26:59]wFMCommunicate OK [12:26:59]SAM_PROTO_GetFieldsCounters [12:26:59]wFMCommunicate request_size=4 [12:26:59]MH_SAM_APDU [12:26:59]CAPDU: 80 13 00 00 [12:26:59]Write to MH i2c: E2 08 00 8A 04 80 13 00 00 00 00 00 00 0A [12:26:59]Write i2c OK [12:26:59]MH_I2C_Read... [12:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:00]Read from MH i2c: E2 [12:27:00]MH_I2C_Read... [12:27:00]Read from MH i2c: E2 62 00 [12:27:00]MH_I2C_Read... [12:27:00]Read from MH i2c: E2 62 00 8A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [12:27: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:00]wFMCommunicate OK [12:27:00]SAM_PROTO_GetFieldsCounters done [12:27:00]Malloc new data [12:27:00]Malloc new data [12:27:00]Malloc new data [12:27:00]KKMCreateXReportDocument OK [12:27:00]KKMSetXReportData OK [12:27:00]KKMPrepareXReportFMData [12:27:00]SAM_PROTO_GetShiftData [12:27:00]wFMCommunicate request_size=4 [12:27:00]MH_SAM_APDU [12:27:00]CAPDU: 80 13 02 00 [12:27:00]Write to MH i2c: E2 08 00 8B 04 80 13 02 00 00 00 00 00 0D [12:27:00]Write i2c OK [12:27:00]MH_I2C_Read... [12:27:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:27:00]Read from MH i2c: E2 [12:27:00]MH_I2C_Read... [12:27:00]Read from MH i2c: E2 FD 00 [12:27:00]MH_I2C_Read... [12:27:00]Read from MH i2c: E2 FD 00 8B 04 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E8 [12:27:00]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:27:00]wFMCommunicate OK [12:27:00]wFMCommunicate request_size=4 [12:27:00]MH_SAM_APDU [12:27:00]CAPDU: 80 17 00 00 [12:27:00]Write to MH i2c: E2 08 00 8C 04 80 17 00 00 00 00 00 00 10 [12:27:00]Write i2c OK [12:27:00]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 FD 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 FD 00 8C 04 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 32 [12:27:01]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 [12:27:01]wFMCommunicate OK [12:27:01]wFMCommunicate request_size=4 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 17 00 00 [12:27:01]Write to MH i2c: E2 08 00 8D 04 80 17 00 00 00 00 00 00 11 [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 FD 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 FD 00 8D 04 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [12:27:01]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 [12:27:01]wFMCommunicate OK [12:27:01]wFMCommunicate request_size=4 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 17 00 00 [12:27:01]Write to MH i2c: E2 08 00 8E 04 80 17 00 00 00 00 00 00 12 [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:27:02]Read from MH i2c: E2 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 FD 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 FD 00 8E 04 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 84 [12:27:02]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 [12:27:02]wFMCommunicate OK [12:27:02]wFMCommunicate request_size=4 [12:27:02]MH_SAM_APDU [12:27:02]CAPDU: 80 17 00 00 [12:27:02]Write to MH i2c: E2 08 00 8F 04 80 17 00 00 00 00 00 00 13 [12:27:02]recv_with_timeout no data received [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:27:02]Read from MH i2c: E2 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 CB 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: E2 CB 00 8F 04 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 FC [12:27:02]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 [12:27:02]wFMCommunicate OK [12:27:02]SAM_PROTO_GetShiftData done [12:27:02]1194 (1194) - счетчики итогов смены [12:27:02] 1134 (4) - 86 - количество чеков со всеми признаками расчетов [12:27:02] OFD Sender: No OFD packet to send [12:27:02]1129 (155) - счетчики операций «приход» [12:27:02] 1135 (4) - 86 - количество чеков по признаку расчетов [12:27:02] 1201 (3) - 63240.68 - общая итоговая сумма в чеках [12:27:02] 1136 (3) - 43034.00 - итоговая сумма в чеках наличными [12:27:02] 1138 (3) - 20206.68 - итоговая сумма в чеках безналичными [12:27:02] 1024 (122) - суммы налогов [12:27:02] 1006 (9) - суммы НДС [12:27:02] 1010 (1) - 0% - код ставки НДС [12:27:02] 1011 (0) - 0.00 - сумма НДС по ставке [12:27:02] 1006 (12) - суммы НДС [12:27:02] 1010 (1) - 12% - код ставки НДС [12:27:02] 1011 (3) - 6717.68 - сумма НДС по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 0% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (11) - суммы НСП [12:27:02] 1014 (1) - 1% - код ставки НСП [12:27:02] 1015 (2) - 559.81 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 2% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 3% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 5% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 0,50% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 1,50% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1130 (141) - счетчики операций «возврат прихода» [12:27:02] 1135 (4) - 0 - количество чеков по признаку расчетов [12:27:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:27:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:27:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:27:02] 1024 (117) - суммы налогов [12:27:02] 1006 (9) - суммы НДС [12:27:02] 1010 (1) - 0% - код ставки НДС [12:27:02] 1011 (0) - 0.00 - сумма НДС по ставке [12:27:02] 1006 (9) - суммы НДС [12:27:02] 1010 (1) - 12% - код ставки НДС [12:27:02] 1011 (0) - 0.00 - сумма НДС по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 0% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 1% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 2% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 3% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 5% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 0,50% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 1,50% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1131 (141) - счетчики операций «расход» [12:27:02] 1135 (4) - 0 - количество чеков по признаку расчетов [12:27:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:27:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:27:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:27:02] 1024 (117) - суммы налогов [12:27:02] 1006 (9) - суммы НДС [12:27:02] 1010 (1) - 0% - код ставки НДС [12:27:02] 1011 (0) - 0.00 - сумма НДС по ставке [12:27:02] 1006 (9) - суммы НДС [12:27:02] 1010 (1) - 12% - код ставки НДС [12:27:02] 1011 (0) - 0.00 - сумма НДС по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 0% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 1% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 2% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 3% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:02] 1014 (1) - 5% - код ставки НСП [12:27:02] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:02] 1007 (9) - суммы НСП [12:27:03] 1014 (1) - 0,50% - код ставки НСП [12:27:03] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:03] 1007 (9) - суммы НСП [12:27:03] 1014 (1) - 1,50% - код ставки НСП [12:27:03] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:03] 1132 (141) - счетчики операций «возврат расхода» [12:27:03] 1135 (4) - 0 - количество чеков по признаку расчетов [12:27:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:27:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:27:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:27:03] 1024 (117) - суммы налогов [12:27:03] 1006 (9) - суммы НДС [12:27:03] 1010 (1) - 0% - код ставки НДС [12:27:03] 1011 (0) - 0.00 - сумма НДС по ставке [12:27:03] 1006 (9) - суммы НДС [12:27:03] 1010 (1) - 12% - код ставки НДС [12:27:03] 1011 (0) - 0.00 - сумма НДС по ставке [12:27:03] 1007 (9) - суммы НСП [12:27:03] 1014 (1) - 0% - код ставки НСП [12:27:03] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:03] 1007 (9) - суммы НСП [12:27:03] 1014 (1) - 1% - код ставки НСП [12:27:03] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:03] 1007 (9) - суммы НСП [12:27:03] 1014 (1) - 2% - код ставки НСП [12:27:03] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:03] 1007 (9) - суммы НСП [12:27:03] 1014 (1) - 3% - код ставки НСП [12:27:03] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:03] 1007 (9) - суммы НСП [12:27:03] 1014 (1) - 5% - код ставки НСП [12:27:03] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:03] 1007 (9) - суммы НСП [12:27:03] 1014 (1) - 0,50% - код ставки НСП [12:27:03] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:03] 1007 (9) - суммы НСП [12:27:03] 1014 (1) - 1,50% - код ставки НСП [12:27:03] 1015 (0) - 0.00 - сумма НСП по ставке [12:27:03] 1133 (588) - - счетчики коррекции - не используются [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1194 (04AA) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1134 (046E) [12:27:03]Malloc new data [12:27:03]Processing tag 1129 (0469) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1135 (046F) [12:27:03]Malloc new data [12:27:03]Processing tag 1201 (04B1) [12:27:03]Malloc new data [12:27:03]Processing tag 1136 (0470) [12:27:03]Malloc new data [12:27:03]Processing tag 1138 (0472) [12:27:03]Malloc new data [12:27:03]Processing tag 1024 (0400) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1006 (03EE) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1010 (03F2) [12:27:03]Malloc new data [12:27:03]Processing tag 1011 (03F3) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1006 (03EE) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1010 (03F2) [12:27:03]Malloc new data [12:27:03]Processing tag 1011 (03F3) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]SetTLVBufToDocument err=0 [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1130 (046A) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1135 (046F) [12:27:03]Malloc new data [12:27:03]Processing tag 1201 (04B1) [12:27:03]Malloc new data [12:27:03]Processing tag 1136 (0470) [12:27:03]Malloc new data [12:27:03]Processing tag 1138 (0472) [12:27:03]Malloc new data [12:27:03]Processing tag 1024 (0400) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1006 (03EE) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1010 (03F2) [12:27:03]Malloc new data [12:27:03]Processing tag 1011 (03F3) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1006 (03EE) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1010 (03F2) [12:27:03]Malloc new data [12:27:03]Processing tag 1011 (03F3) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]SetTLVBufToDocument err=0 [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1131 (046B) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1135 (046F) [12:27:03]Malloc new data [12:27:03]Processing tag 1201 (04B1) [12:27:03]Malloc new data [12:27:03]Processing tag 1136 (0470) [12:27:03]Malloc new data [12:27:03]Processing tag 1138 (0472) [12:27:03]Malloc new data [12:27:03]Processing tag 1024 (0400) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1006 (03EE) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1010 (03F2) [12:27:03]Malloc new data [12:27:03]Processing tag 1011 (03F3) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1006 (03EE) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1010 (03F2) [12:27:03]Malloc new data [12:27:03]Processing tag 1011 (03F3) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]SetTLVBufToDocument err=0 [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1132 (046C) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1135 (046F) [12:27:03]Malloc new data [12:27:03]Processing tag 1201 (04B1) [12:27:03]Malloc new data [12:27:03]Processing tag 1136 (0470) [12:27:03]Malloc new data [12:27:03]Processing tag 1138 (0472) [12:27:03]Malloc new data [12:27:03]Processing tag 1024 (0400) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1006 (03EE) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1010 (03F2) [12:27:03]Malloc new data [12:27:03]Processing tag 1011 (03F3) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1006 (03EE) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1010 (03F2) [12:27:03]Malloc new data [12:27:03]Processing tag 1011 (03F3) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1007 (03EF) [12:27:03]Load OK [12:27:03]SetTLVBufToDocument [12:27:03]Processing tag 1014 (03F6) [12:27:03]Malloc new data [12:27:03]Processing tag 1015 (03F7) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]SetTLVBufToDocument err=0 [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Processing tag 1133 (046D) [12:27:03]Malloc new data [12:27:03]SetTLVBufToDocument err=0 [12:27:03]SetTLVBufToDocument err=0 [12:27:03]Malloc new data [12:27:03]SAM_PROTO_GetFMData [12:27:03]wFMCommunicate request_size=4 [12:27:03]MH_SAM_APDU [12:27:03]CAPDU: 80 13 03 00 [12:27:03]Write to MH i2c: E2 08 00 90 04 80 13 03 00 00 00 00 00 13 [12:27:04]Write i2c OK [12:27:04]MH_I2C_Read... [12:27:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:27:04]Read from MH i2c: E2 [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: E2 FD 00 [12:27:04]MH_I2C_Read... [12:27:04]Read from MH i2c: E2 FD 00 90 04 00 C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 93 [12:27:04]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [12:27:04]wFMCommunicate OK [12:27:04]wFMCommunicate request_size=4 [12:27:04]MH_SAM_APDU [12:27:04]CAPDU: 80 17 00 00 [12:27:04]Write to MH i2c: E2 08 00 91 04 80 17 00 00 00 00 00 00 15 [12:27:04]Write i2c OK [12:27:04]MH_I2C_Read... [12:27:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:27:04]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 FD 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 FD 00 91 04 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [12:27:05]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:27:05]wFMCommunicate OK [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 17 00 00 [12:27:05]Write to MH i2c: E2 08 00 92 04 80 17 00 00 00 00 00 00 16 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 FD 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 FD 00 92 04 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [12:27:05]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:27:05]wFMCommunicate OK [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 17 00 00 [12:27:05]Write to MH i2c: E2 08 00 93 04 80 17 00 00 00 00 00 00 17 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:27:06]Read from MH i2c: E2 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 FD 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 FD 00 93 04 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 92 [12:27:06]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:27:06]wFMCommunicate OK [12:27:06]wFMCommunicate request_size=4 [12:27:06]MH_SAM_APDU [12:27:06]CAPDU: 80 17 00 00 [12:27:06]Write to MH i2c: E2 08 00 94 04 80 17 00 00 00 00 00 00 18 [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:27:06]Read from MH i2c: E2 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 E4 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 E4 00 94 04 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F8 [12:27:06]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:27:07]wFMCommunicate OK [12:27:07]SAM_PROTO_GetFMData done [12:27:07]FM_GetFMData:85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [12:27:08]03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:27:08]oper:6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:27:08]total:9F 3F 43 F9 01 [12:27:08]Malloc new data [12:27:08]oper:6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:27:08]total:7C F5 CB 03 [12:27:08]Malloc new data [12:27:08]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 [12:27:08]total: [12:27:08]Malloc new data [12:27:08]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 [12:27:08]total: [12:27:08]Malloc new data [12:27:08]KKMPrepareXReportFMData err=0 [12:27:08]Х отчет ИНН: 02508201610067 Кассир: Дооронов М. 23.10.2024 12:27 Смена: 522 РНМ: 0000000000091754 ЗНМ: 0300000095 СНО: Общий режим Всего чеков: 86 ИТОГИ ПРИХОД Чеков: 86 Общий итог: 63240.68 Итого наличными: 43034.00 Итого безнал.: 20206.68 НДС 0% : 0.00 НДС 12% : 6717.68 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 559.81 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 43034.00 НС Приход: 84769012.79 НС Возвр.Прихода: 636983.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871811 [12:27:08]StoreToDocumentArchive [12:27:08]MH_GetDate [12:27:08]Write to MH i2c: F0 00 00 95 04 88 [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: F0 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: F0 09 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: F0 09 00 95 04 00 9C EB 18 67 1E EF FA 64 02 [12:27:08]shift 522 fd 1729686428 [12:27:08]Create dir for shift 0522 [12:27:08]save to /storage/0522/doc_1729686428 [12:27:08]save last doc name /storage/0522/doc_1729686428 to /storage/kkm_last_doc_name [12:27:08]save OK [12:27:08]Clear old archive folders... [12:27:08]NVStorageSaveData kkm_last_timestamp [12:27:08]File name is /storage/kkm_last_timestamp [12:27:08]Write 4 bytes [12:27:08]NVStorageSaveData done [12:27:08]ExternCall_PrintAddStr [12:27:08]wPrintStart [12:27:08]Write to MH i2c: 01 00 00 96 04 9A [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 07 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 07 00 96 04 00 00 00 00 00 FF 0F AF [12:27:08]RasterBufferAndPrint [12:27:08]line Х отчет [12:27:08]line ИНН: 02508201610067 [12:27:08]line Кассир: Дооронов М. [12:27:08]line 23.10.2024 12:27 [12:27:08]line Смена: 522 [12:27:08]line РНМ: 0000000000091754 [12:27:08]line ЗНМ: 0300000095 [12:27:08]line СНО: Общий режим [12:27:08]line Всего чеков: 86 [12:27:08]line ИТОГИ ПРИХОД [12:27:08]line Чеков: 86 [12:27:08]line Общий итог: 63240.68 [12:27:08]line Итого наличными: 43034.00 [12:27:08]line Итого безнал.: 20206.68 [12:27:08]line НДС 0% : 0.00 [12:27:08]line НДС 12% : 6717.68 [12:27:08]line НСП 0% : 0.00 [12:27:08]line НСП 1,50% : 0.00 [12:27:08]line НСП 0,50% : 0.00 [12:27:08]line НСП 5% : 0.00 [12:27:08]line НСП 3% : 0.00 [12:27:08]line НСП 2% : 0.00 [12:27:08]line НСП 1% : 559.81 [12:27:08]line ИТОГИ ВОЗВРАТ ПРИХОДА [12:27:08]line Чеков: 0 [12:27:08]line Общий итог: 0.00 [12:27:08]line Итого наличными: 0.00 [12:27:08]line Итого безнал.: 0.00 [12:27:08]line НДС 0% : 0.00 [12:27:08]line НДС 12% : 0.00 [12:27:08]line НСП 0% : 0.00 [12:27:08]line НСП 1,50% : 0.00 [12:27:08]line НСП 0,50% : 0.00 [12:27:08]line НСП 5% : 0.00 [12:27:08]line НСП 3% : 0.00 [12:27:08]line НСП 2% : 0.00 [12:27:08]line НСП 1% : 0.00 [12:27:08]line ИТОГИ РАСХОД [12:27:08]line Чеков: 0 [12:27:08]line Общий итог: 0.00 [12:27:08]line Итого наличными: 0.00 [12:27:08]line Итого безнал.: 0.00 [12:27:08]line НДС 0% : 0.00 [12:27:08]line НДС 12% : 0.00 [12:27:08]line НСП 0% : 0.00 [12:27:08]line НСП 1,50% : 0.00 [12:27:08]line НСП 0,50% : 0.00 [12:27:08]line НСП 5% : 0.00 [12:27:08]line НСП 3% : 0.00 [12:27:08]line НСП 2% : 0.00 [12:27:08]line НСП 1% : 0.00 [12:27:08]line ИТОГИ ВОЗВРАТ РАСХОДА [12:27:08]line Чеков: 0 [12:27:08]line Общий итог: 0.00 [12:27:08]line Итого наличными: 0.00 [12:27:08]line Итого безнал.: 0.00 [12:27:08]line НДС 0% : 0.00 [12:27:08]line НДС 12% : 0.00 [12:27:08]line НСП 0% : 0.00 [12:27:08]line НСП 1,50% : 0.00 [12:27:08]line НСП 0,50% : 0.00 [12:27:08]line НСП 5% : 0.00 [12:27:08]line НСП 3% : 0.00 [12:27:08]line НСП 2% : 0.00 [12:27:08]line НСП 1% : 0.00 [12:27:08]line Сумма внесений: 0.00 [12:27:08]line Сумма выплат: 0.00 [12:27:08]line Нал. в кассе: 43034.00 [12:27:08]line НС Приход: 84769012.79 [12:27:08]line НС Возвр.Прихода: 636983.00 [12:27:08]line НС Расход: 0.00 [12:27:08]line НС Возвр.Расхода: 0.00 [12:27:08]line ФМ: 0000000000871811 [12:27:08]written 0, free lines is 4095 [12:27:09]Write to MH i2c: 01 00 00 E1 04 E5 [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: 01 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: 01 07 00 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: 01 07 00 E1 04 00 00 00 00 00 94 0A 8A [12:27:09]RasterBufferAndPrint [12:27:09]line [12:27:09]line [12:27:09]line [12:27:09]line [12:27:09]line [12:27:09]written 0, free lines is 2738 [12:27:09]MH_Cut [12:27:09]Write to MH i2c: D1 01 00 E8 04 01 BE [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: D1 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: D1 01 00 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: D1 01 00 E8 04 00 BD [12:27:09]Write to MH i2c: 01 00 00 E9 04 ED [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:10]*** Cut start [12:27:10]*** Partial cut [12:27:10]*** CUTSNS_PIN = 1 [12:27:10]*** CUTSNS_PIN = 0 [12:27:10]*** Brake cut motor [12:27:11]Read from MH i2c: 01 [12:27:11]MH_I2C_Read... [12:27:11]*** Stop cut motor [12:27:11]*** Cut end [12:27:11]Read from MH i2c: 01 07 00 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: 01 07 00 E9 04 00 00 00 00 00 FF 0F 02 [12:27:11]process_action x_report done [12:27:11]requested_data is exist [12:27:11]produce_requested_data [12:27:11]requested_item fd.num is exist - process it [12:27:11]SAM_PROTO_GetFieldsCounters [12:27:11]wFMCommunicate request_size=4 [12:27:11]MH_SAM_APDU [12:27:11]CAPDU: 80 13 00 00 [12:27:11]Write to MH i2c: E2 08 00 EA 04 80 13 00 00 00 00 00 00 6A [12:27:11]Write i2c OK [12:27:11]MH_I2C_Read... [12:27:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:11]Read from MH i2c: E2 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: E2 62 00 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: E2 62 00 EA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [12:27:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:11]wFMCommunicate OK [12:27:11]SAM_PROTO_GetFieldsCounters done [12:27:11]requested_item shift.num is exist - process it [12:27:11]requested_item shift.opened is exist - process it [12:27:11]req_shift_opened [12:27:11]FM_GetShiftState [12:27:11]SAM_PROTO_GetShiftState [12:27:11]wFMCommunicate request_size=4 [12:27:11]MH_SAM_APDU [12:27:11]CAPDU: 80 13 01 00 [12:27:11]Write to MH i2c: E2 08 00 EB 04 80 13 01 00 00 00 00 00 6C [12:27:11]Write i2c OK [12:27:11]MH_I2C_Read... [12:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:11]Read from MH i2c: E2 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: E2 0E 00 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: E2 0E 00 EB 04 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 A5 [12:27:11]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:27:11]wFMCommunicate OK [12:27:11]SAM_PROTO_GetShiftState done [12:27:11]FM_GetShiftState done [12:27:11]req_shift_opened done [12:27:11]requested_item shift.open_date is exist - process it [12:27:11]req_shift_open_date [12:27:11]req_shift_open_date done [12:27:11]produce_requested_data done [12:27:11]produce_requested_data return {"fd.num":103674,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:27:11]process_action_free x_report [12:27:11]json_value_free [12:27:11]json_value_free done [12:27:11]process_json_proto returns [12:27:11]Send response to host [12:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103674,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:27:11]free response buf [12:27:11]execute_script done [12:27:11]execute_script returns [12:27:11]free content buf [12:27:11]Sock 7.Close socket [12:27:11]Sock 7.Thread stoped [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:20]recv_with_timeout no data received [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:37]recv_with_timeout no data received [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:55]recv_with_timeout no data received [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:56]ConnectInit Can't connect to host [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:31]accept exits with 9 [12:31:31]New connection [12:31:31]New thread 3066727780 created [12:31:31]Thread 3066871140 joined [12:31:31]Waiting for new connection... [12:31:31] Sock 9.Parse request [12:31:31]Sock 9.Check first char [12:31:31]Sock 9.First char is OK [12:31:31]request: POST /json_proto HTTP/1.0 [12:31:31]Method: POST [12:31:31]URL: /json_proto [12:31:31]Method is POST - this is cgi request [12:31:31]url: /json_proto [12:31:31]query_string will be loaded in cgi processing [12:31:31]execute_cgi json_proto POST (null) [12:31:31]execute_cgi path=json_proto method=POST [12:31:31]POST find Content-Length [12:31:31]Host: 172.17.51.67:8080 [12:31:31]Content-Length: 215 [12:31:31]Content-Type: application/json [12:31:31] [12:31:31]POST finish read [12:31:31]Found Content-Length = 215 [12:31:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:31]execute_script... [12:31:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:31]POST & json_proto [12:31:31]process_json_proto [12:31:31]json parsed OK: [12:31:31]protocol is kg_v1.0 [12:31:31]action value=get_value [12:31:31]process_action get_value [12:31:31]cmd_get_value [12:31:31]process_action get_value done [12:31:31]requested_data is exist [12:31:31]produce_requested_data [12:31:31]requested_item kkm.sn is exist - process it [12:31:31]requested_item kkm.ver is exist - process it [12:31:31]requested_item fm.sn is exist - process it [12:31:31]wFMCommunicate request_size=4 [12:31:31]MH_SAM_APDU [12:31:31]CAPDU: 80 11 00 00 [12:31:31]Write to MH i2c: E2 08 00 EC 04 80 11 00 00 00 00 00 00 6A [12:31:31]Write i2c OK [12:31:31]MH_I2C_Read... [12:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:31]Read from MH i2c: E2 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 17 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 17 00 EC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 B7 [12:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:31:31]wFMCommunicate OK [12:31:31]requested_item fd.num is exist - process it [12:31:31]SAM_PROTO_GetFieldsCounters [12:31:31]wFMCommunicate request_size=4 [12:31:31]MH_SAM_APDU [12:31:31]CAPDU: 80 13 00 00 [12:31:31]Write to MH i2c: E2 08 00 ED 04 80 13 00 00 00 00 00 00 6D [12:31:31]Write i2c OK [12:31:31]MH_I2C_Read... [12:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:31]Read from MH i2c: E2 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 62 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 62 00 ED 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:31:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:31]wFMCommunicate OK [12:31:31]SAM_PROTO_GetFieldsCounters done [12:31:31]requested_item shift.num is exist - process it [12:31:31]requested_item shift.opened is exist - process it [12:31:31]req_shift_opened [12:31:31]FM_GetShiftState [12:31:31]SAM_PROTO_GetShiftState [12:31:31]wFMCommunicate request_size=4 [12:31:31]MH_SAM_APDU [12:31:31]CAPDU: 80 13 01 00 [12:31:31]Write to MH i2c: E2 08 00 EE 04 80 13 01 00 00 00 00 00 6F [12:31:31]Write i2c OK [12:31:31]MH_I2C_Read... [12:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:31]Read from MH i2c: E2 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 0E 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 0E 00 EE 04 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 A8 [12:31:31]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:31:31]wFMCommunicate OK [12:31:31]SAM_PROTO_GetShiftState done [12:31:31]FM_GetShiftState done [12:31:31]req_shift_opened done [12:31:31]requested_item shift.open_date is exist - process it [12:31:31]req_shift_open_date [12:31:31]req_shift_open_date done [12:31:31]produce_requested_data done [12:31:31]produce_requested_data return {"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103674,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:31:31]process_action_free get_value [12:31:31]json_value_free [12:31:31]json_value_free done [12:31:31]process_json_proto returns [12:31:31]Send response to host [12:31:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103674,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:31:31]free response buf [12:31:31]execute_script done [12:31:31]execute_script returns [12:31:31]free content buf [12:31:31]Sock 9.Close socket [12:31:31]Sock 9.Thread stoped [12:31:32]accept exits with 7 [12:31:32]New connection [12:31:32]New thread 3066871140 created [12:31:32]Thread 3066727780 joined [12:31:32]Waiting for new connection... [12:31:32] Sock 7.Parse request [12:31:32]Sock 7.Check first char [12:31:32]Sock 7.First char is OK [12:31:32]request: POST /json_proto HTTP/1.0 [12:31:32]Method: POST [12:31:32]URL: /json_proto [12:31:32]Method is POST - this is cgi request [12:31:32]url: /json_proto [12:31:32]query_string will be loaded in cgi processing [12:31:32]execute_cgi json_proto POST (null) [12:31:32]execute_cgi path=json_proto method=POST [12:31:32]POST find Content-Length [12:31:32]Host: 172.17.51.67:8080 [12:31:32]Content-Length: 331 [12:31:32]Content-Type: application/json [12:31:32] [12:31:32]POST finish read [12:31:32]Found Content-Length = 331 [12:31: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" ] } } [12:31:32]execute_script... [12:31: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" ] } } [12:31:32]POST & json_proto [12:31:32]process_json_proto [12:31:32]json parsed OK: [12:31:32]protocol is kg_v1.0 [12:31:32]action value=get_value [12:31:32]process_action get_value [12:31:32]cmd_get_value [12:31:32]process_action get_value done [12:31:32]requested_data is exist [12:31:32]produce_requested_data [12:31:32]requested_item fm.sale.total is exist - process it [12:31:32]SAM_PROTO_GetFMData [12:31:32]wFMCommunicate request_size=4 [12:31:32]MH_SAM_APDU [12:31:32]CAPDU: 80 13 03 00 [12:31:32]Write to MH i2c: E2 08 00 EF 04 80 13 03 00 00 00 00 00 72 [12:31:32]Write i2c OK [12:31:32]MH_I2C_Read... [12:31:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:31:32]Read from MH i2c: E2 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: E2 FD 00 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: E2 FD 00 EF 04 00 C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 F2 [12:31:32]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [12:31:32]wFMCommunicate OK [12:31:32]wFMCommunicate request_size=4 [12:31:32]MH_SAM_APDU [12:31:32]CAPDU: 80 17 00 00 [12:31:32]Write to MH i2c: E2 08 00 F0 04 80 17 00 00 00 00 00 00 74 [12:31:32]Write i2c OK [12:31:32]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 FD 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 FD 00 F0 04 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2F [12:31:33]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:31:33]wFMCommunicate OK [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 17 00 00 [12:31:33]Write to MH i2c: E2 08 00 F1 04 80 17 00 00 00 00 00 00 75 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 FD 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 FD 00 F1 04 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4D [12:31:33]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:31:33]wFMCommunicate OK [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 17 00 00 [12:31:33]Write to MH i2c: E2 08 00 F2 04 80 17 00 00 00 00 00 00 76 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 FD 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 FD 00 F2 04 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F1 [12:31:33]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:31:33]wFMCommunicate OK [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 17 00 00 [12:31:33]Write to MH i2c: E2 08 00 F3 04 80 17 00 00 00 00 00 00 77 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 E4 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 E4 00 F3 04 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 57 [12:31:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:31:33]wFMCommunicate OK [12:31:33]SAM_PROTO_GetFMData done [12:31:33]requested_item fm.sale_refund.total is exist - process it [12:31:33]requested_item fm.buy.total is exist - process it [12:31:33]requested_item shift.sale.total is exist - process it [12:31:33]SAM_PROTO_GetShiftData [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 13 02 00 [12:31:33]Write to MH i2c: E2 08 00 F4 04 80 13 02 00 00 00 00 00 76 [12:31:33]OFD Sender: No OFD packet to send [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:31:34]Read from MH i2c: E2 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: E2 FD 00 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: E2 FD 00 F4 04 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [12:31:34]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:31:34]wFMCommunicate OK [12:31:34]wFMCommunicate request_size=4 [12:31:34]MH_SAM_APDU [12:31:34]CAPDU: 80 17 00 00 [12:31:34]Write to MH i2c: E2 08 00 F5 04 80 17 00 00 00 00 00 00 79 [12:31:34]Write i2c OK [12:31:34]MH_I2C_Read... [12:31:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:34]Read from MH i2c: E2 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: E2 FD 00 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: E2 FD 00 F5 04 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 9B [12:31:34]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 [12:31:34]wFMCommunicate OK [12:31:34]wFMCommunicate request_size=4 [12:31:34]MH_SAM_APDU [12:31:34]CAPDU: 80 17 00 00 [12:31:34]Write to MH i2c: E2 08 00 F6 04 80 17 00 00 00 00 00 00 7A [12:31:34]Write i2c OK [12:31:34]MH_I2C_Read... [12:31:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:34]Read from MH i2c: E2 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: E2 FD 00 [12:31:34]MH_I2C_Read... [12:31:34]Read from MH i2c: E2 FD 00 F6 04 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 31 [12:31:34]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 [12:31:34]wFMCommunicate OK [12:31:34]wFMCommunicate request_size=4 [12:31:34]MH_SAM_APDU [12:31:34]CAPDU: 80 17 00 00 [12:31:34]Write to MH i2c: E2 08 00 F7 04 80 17 00 00 00 00 00 00 7B [12:31:34]Write i2c OK [12:31:34]MH_I2C_Read... [12:31:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:35]Read from MH i2c: E2 [12:31:35]MH_I2C_Read... [12:31:35]Read from MH i2c: E2 FD 00 [12:31:35]MH_I2C_Read... [12:31:35]Read from MH i2c: E2 FD 00 F7 04 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 ED [12:31:35]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 [12:31:35]wFMCommunicate OK [12:31:35]wFMCommunicate request_size=4 [12:31:35]MH_SAM_APDU [12:31:35]CAPDU: 80 17 00 00 [12:31:35]Write to MH i2c: E2 08 00 F8 04 80 17 00 00 00 00 00 00 7C [12:31:35]Write i2c OK [12:31:35]MH_I2C_Read... [12:31:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:31:35]Read from MH i2c: E2 [12:31:35]MH_I2C_Read... [12:31:35]Read from MH i2c: E2 CB 00 [12:31:35]MH_I2C_Read... [12:31:35]Read from MH i2c: E2 CB 00 F8 04 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 65 [12:31:35]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 [12:31:35]wFMCommunicate OK [12:31:35]SAM_PROTO_GetShiftData done [12:31:35]requested_item shift.sale.total_cash is exist - process it [12:31:35]requested_item shift.sale_refund.total is exist - process it [12:31:35]requested_item shift.sale_refund.total_cash is exist - process it [12:31:35]requested_item shift.buy.total is exist - process it [12:31:35]requested_item shift.buy.total_cash is exist - process it [12:31:35]produce_requested_data done [12:31:35]produce_requested_data return {"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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} [12:31:35]process_action_free get_value [12:31:35]json_value_free [12:31:35]json_value_free done [12:31:35]process_json_proto returns [12:31:35]Send response to host [12:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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}}} [12:31:35]free response buf [12:31:35]execute_script done [12:31:35]execute_script returns [12:31:35]free content buf [12:31:35]Sock 7.Close socket [12:31:35]Sock 7.Thread stoped [12:31:35]accept exits with 9 [12:31:35]New connection [12:31:35]New thread 3066727780 created [12:31:35]Thread 3066871140 joined [12:31:35]Waiting for new connection... [12:31:35] Sock 9.Parse request [12:31:35]Sock 9.Check first char [12:31:35]Sock 9.First char is OK [12:31:35]request: POST /json_proto HTTP/1.0 [12:31:35]Method: POST [12:31:35]URL: /json_proto [12:31:35]Method is POST - this is cgi request [12:31:35]url: /json_proto [12:31:35]query_string will be loaded in cgi processing [12:31:35]execute_cgi json_proto POST (null) [12:31:35]execute_cgi path=json_proto method=POST [12:31:35]POST find Content-Length [12:31:35]Host: 172.17.51.67:8080 [12:31:35]Content-Length: 331 [12:31:35]Content-Type: application/json [12:31:35] [12:31:35]POST finish read [12:31:35]Found Content-Length = 331 [12:31:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:31:35]execute_script... [12:31:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:31:35]POST & json_proto [12:31:35]process_json_proto [12:31:35]json parsed OK: [12:31:35]protocol is kg_v1.0 [12:31:35]action value=get_value [12:31:35]process_action get_value [12:31:35]cmd_get_value [12:31:35]process_action get_value done [12:31:35]requested_data is exist [12:31:35]produce_requested_data [12:31:35]requested_item fm.sale.total is exist - process it [12:31:35]SAM_PROTO_GetFMData [12:31:35]wFMCommunicate request_size=4 [12:31:35]MH_SAM_APDU [12:31:35]CAPDU: 80 13 03 00 [12:31:35]Write to MH i2c: E2 08 00 F9 04 80 13 03 00 00 00 00 00 7C [12:31:35]Write i2c OK [12:31:35]MH_I2C_Read... [12:31:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:31:35]Read from MH i2c: E2 [12:31:35]MH_I2C_Read... [12:31:35]Read from MH i2c: E2 FD 00 [12:31:35]MH_I2C_Read... [12:31:35]Read from MH i2c: E2 FD 00 F9 04 00 C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 FC [12:31:35]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [12:31:35]wFMCommunicate OK [12:31:35]wFMCommunicate request_size=4 [12:31:35]MH_SAM_APDU [12:31:35]CAPDU: 80 17 00 00 [12:31:35]Write to MH i2c: E2 08 00 FA 04 80 17 00 00 00 00 00 00 7E [12:31:35]Write i2c OK [12:31:35]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 FD 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 FD 00 FA 04 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 39 [12:31:36]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:31:36]wFMCommunicate OK [12:31:36]wFMCommunicate request_size=4 [12:31:36]MH_SAM_APDU [12:31:36]CAPDU: 80 17 00 00 [12:31:36]Write to MH i2c: E2 08 00 FB 04 80 17 00 00 00 00 00 00 7F [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 FD 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 FD 00 FB 04 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [12:31:36]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:31:36]wFMCommunicate OK [12:31:36]wFMCommunicate request_size=4 [12:31:36]MH_SAM_APDU [12:31:36]CAPDU: 80 17 00 00 [12:31:36]Write to MH i2c: E2 08 00 FC 04 80 17 00 00 00 00 00 00 80 [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 FD 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 FD 00 FC 04 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FB [12:31:36]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:31:37]wFMCommunicate OK [12:31:37]wFMCommunicate request_size=4 [12:31:37]MH_SAM_APDU [12:31:37]CAPDU: 80 17 00 00 [12:31:37]Write to MH i2c: E2 08 00 FD 04 80 17 00 00 00 00 00 00 81 [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:31:37]Read from MH i2c: E2 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 E4 00 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 E4 00 FD 04 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 61 [12:31:37]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:31:37]wFMCommunicate OK [12:31:37]SAM_PROTO_GetFMData done [12:31:37]requested_item fm.sale_refund.total is exist - process it [12:31:37]requested_item fm.buy.total is exist - process it [12:31:37]requested_item shift.sale.total is exist - process it [12:31:37]SAM_PROTO_GetShiftData [12:31:37]wFMCommunicate request_size=4 [12:31:37]MH_SAM_APDU [12:31:37]CAPDU: 80 13 02 00 [12:31:37]Write to MH i2c: E2 08 00 FE 04 80 13 02 00 00 00 00 00 80 [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:31:37]Read from MH i2c: E2 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 FD 00 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 FD 00 FE 04 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5B [12:31:37]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:31:37]wFMCommunicate OK [12:31:37]wFMCommunicate request_size=4 [12:31:37]MH_SAM_APDU [12:31:37]CAPDU: 80 17 00 00 [12:31:37]Write to MH i2c: E2 08 00 FF 04 80 17 00 00 00 00 00 00 83 [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:38]Read from MH i2c: E2 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 FD 00 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 FD 00 FF 04 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 A5 [12:31: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 [12:31:38]wFMCommunicate OK [12:31:38]wFMCommunicate request_size=4 [12:31:38]MH_SAM_APDU [12:31:38]CAPDU: 80 17 00 00 [12:31:38]Write to MH i2c: E2 08 00 00 05 80 17 00 00 00 00 00 00 85 [12:31:38]Write i2c OK [12:31:38]MH_I2C_Read... [12:31:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:38]Read from MH i2c: E2 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 FD 00 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 FD 00 00 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3C [12:31: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 [12:31:38]wFMCommunicate OK [12:31:38]wFMCommunicate request_size=4 [12:31:38]MH_SAM_APDU [12:31:38]CAPDU: 80 17 00 00 [12:31:38]Write to MH i2c: E2 08 00 01 05 80 17 00 00 00 00 00 00 86 [12:31:38]Write i2c OK [12:31:38]MH_I2C_Read... [12:31:38]OFD Sender: No OFD packet to send [12:31:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:39]Read from MH i2c: E2 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: E2 FD 00 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: E2 FD 00 01 05 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 F8 [12:31: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 [12:31:39]wFMCommunicate OK [12:31:39]wFMCommunicate request_size=4 [12:31:39]MH_SAM_APDU [12:31:39]CAPDU: 80 17 00 00 [12:31:39]Write to MH i2c: E2 08 00 02 05 80 17 00 00 00 00 00 00 87 [12:31:39]Write i2c OK [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: E2 [12:31:39]MH_I2C_Read... [12:31:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:31:39]Read from MH i2c: E2 CB 00 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: E2 CB 00 02 05 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 70 [12:31: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 [12:31:39]wFMCommunicate OK [12:31:39]SAM_PROTO_GetShiftData done [12:31:39]requested_item shift.sale.total_cash is exist - process it [12:31:39]requested_item shift.sale_refund.total is exist - process it [12:31:39]requested_item shift.sale_refund.total_cash is exist - process it [12:31:39]requested_item shift.buy.total is exist - process it [12:31:39]requested_item shift.buy.total_cash is exist - process it [12:31:39]produce_requested_data done [12:31:39]produce_requested_data return {"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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} [12:31:39]process_action_free get_value [12:31:39]json_value_free [12:31:39]json_value_free done [12:31:39]process_json_proto returns [12:31:39]Send response to host [12:31:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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}}} [12:31:39]free response buf [12:31:39]execute_script done [12:31:39]execute_script returns [12:31:39]free content buf [12:31:39]Sock 9.Close socket [12:31:39]Sock 9.Thread stoped [12:31:39]accept exits with 7 [12:31:39]New connection [12:31:39]New thread 3066871140 created [12:31:39]Thread 3066727780 joined [12:31:39]Waiting for new connection... [12:31:39] Sock 7.Parse request [12:31:39]Sock 7.Check first char [12:31:39]Sock 7.First char is OK [12:31:39]request: POST /json_proto HTTP/1.0 [12:31:39]Method: POST [12:31:39]URL: /json_proto [12:31:39]Method is POST - this is cgi request [12:31:39]url: /json_proto [12:31:39]query_string will be loaded in cgi processing [12:31:39]execute_cgi json_proto POST (null) [12:31:39]execute_cgi path=json_proto method=POST [12:31:39]POST find Content-Length [12:31:39]Host: 172.17.51.67:8080 [12:31:39]Content-Length: 257 [12:31:39]Content-Type: application/json [12:31:39] [12:31:39]POST finish read [12:31:39]Found Content-Length = 257 [12:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u043E\u043E\u0440\u043E\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:39]execute_script... [12:31:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u043E\u043E\u0440\u043E\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:39]POST & json_proto [12:31:39]process_json_proto [12:31:39]json parsed OK: [12:31:39]protocol is kg_v1.0 [12:31:39]action value=x_report [12:31:39]process_action x_report [12:31:39]cmd_x_report [12:31:39]MH_GetDate [12:31:39]Write to MH i2c: F0 00 00 03 05 F7 [12:31:39]Write i2c OK [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: F0 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: F0 09 00 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: F0 09 00 03 05 00 AB EC 18 67 1E EF FA 64 81 [12:31:39]GetLastDocTimeStamp 1729686420 [12:31:39]current date 1729686699 [12:31:39]FM_GetShiftState [12:31:39]SAM_PROTO_GetShiftState [12:31:39]wFMCommunicate request_size=4 [12:31:39]MH_SAM_APDU [12:31:39]CAPDU: 80 13 01 00 [12:31:39]Write to MH i2c: E2 08 00 04 05 80 13 01 00 00 00 00 00 86 [12:31:39]Write i2c OK [12:31:39]MH_I2C_Read... [12:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:39]Read from MH i2c: E2 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: E2 0E 00 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: E2 0E 00 04 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 BF [12:31:39]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:31:39]wFMCommunicate OK [12:31:39]SAM_PROTO_GetShiftState done [12:31:39]FM_GetShiftState done [12:31:39]KKMCreateXReportDocument [12:31:39]Load OK [12:31:39]Malloc new data [12:31:39]MH_GetDate [12:31:39]Write to MH i2c: F0 00 00 05 05 F9 [12:31:39]Write i2c OK [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: F0 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: F0 09 00 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: F0 09 00 05 05 00 AC EC 18 67 1E EF FA 64 84 [12:31:39]Malloc new data [12:31:39]Malloc new data [12:31:39]wFMCommunicate request_size=4 [12:31:39]MH_SAM_APDU [12:31:39]CAPDU: 80 11 00 00 [12:31:39]Write to MH i2c: E2 08 00 06 05 80 11 00 00 00 00 00 00 85 [12:31:39]Write i2c OK [12:31:39]MH_I2C_Read... [12:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:39]Read from MH i2c: E2 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: E2 17 00 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: E2 17 00 06 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 D2 [12:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:31:39]wFMCommunicate OK [12:31:39]SAM_PROTO_GetFieldsCounters [12:31:39]wFMCommunicate request_size=4 [12:31:39]MH_SAM_APDU [12:31:39]CAPDU: 80 13 00 00 [12:31:39]Write to MH i2c: E2 08 00 07 05 80 13 00 00 00 00 00 00 88 [12:31:39]Write i2c OK [12:31:39]MH_I2C_Read... [12:31:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:39]Read from MH i2c: E2 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: E2 62 00 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: E2 62 00 07 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [12:31: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:40]wFMCommunicate OK [12:31:40]SAM_PROTO_GetFieldsCounters done [12:31:40]Malloc new data [12:31:40]Malloc new data [12:31:40]Malloc new data [12:31:40]KKMCreateXReportDocument OK [12:31:40]KKMSetXReportData OK [12:31:40]KKMPrepareXReportFMData [12:31:40]SAM_PROTO_GetShiftData [12:31:40]wFMCommunicate request_size=4 [12:31:40]MH_SAM_APDU [12:31:40]CAPDU: 80 13 02 00 [12:31:40]Write to MH i2c: E2 08 00 08 05 80 13 02 00 00 00 00 00 8B [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:31:40]Read from MH i2c: E2 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 FD 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 FD 00 08 05 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 66 [12:31:40]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:31:40]wFMCommunicate OK [12:31:40]wFMCommunicate request_size=4 [12:31:40]MH_SAM_APDU [12:31:40]CAPDU: 80 17 00 00 [12:31:40]Write to MH i2c: E2 08 00 09 05 80 17 00 00 00 00 00 00 8E [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:40]Read from MH i2c: E2 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 FD 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 FD 00 09 05 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 B0 [12:31:41]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 [12:31:41]wFMCommunicate OK [12:31:41]wFMCommunicate request_size=4 [12:31:41]MH_SAM_APDU [12:31:41]CAPDU: 80 17 00 00 [12:31:41]Write to MH i2c: E2 08 00 0A 05 80 17 00 00 00 00 00 00 8F [12:31:41]Write i2c OK [12:31:41]MH_I2C_Read... [12:31:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:41]Read from MH i2c: E2 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: E2 FD 00 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: E2 FD 00 0A 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 [12:31:41]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 [12:31:41]wFMCommunicate OK [12:31:41]wFMCommunicate request_size=4 [12:31:41]MH_SAM_APDU [12:31:41]CAPDU: 80 17 00 00 [12:31:41]Write to MH i2c: E2 08 00 0B 05 80 17 00 00 00 00 00 00 90 [12:31:41]Write i2c OK [12:31:41]MH_I2C_Read... [12:31:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:41]Read from MH i2c: E2 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: E2 FD 00 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: E2 FD 00 0B 05 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 02 [12:31:42]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 [12:31:42]wFMCommunicate OK [12:31:42]wFMCommunicate request_size=4 [12:31:42]MH_SAM_APDU [12:31:42]CAPDU: 80 17 00 00 [12:31:42]Write to MH i2c: E2 08 00 0C 05 80 17 00 00 00 00 00 00 91 [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:31:42]Read from MH i2c: E2 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 CB 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 CB 00 0C 05 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 7A [12:31:42]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 [12:31:42]wFMCommunicate OK [12:31:42]SAM_PROTO_GetShiftData done [12:31:42]1194 (1194) - счетчики итогов смены [12:31:42] 1134 (4) - 86 - количество чеков со всеми признаками расчетов [12:31:42] 1129 (155) - счетчики операций «приход» [12:31:42] 1135 (4) - 86 - количество чеков по признаку расчетов [12:31:42] 1201 (3) - 63240.68 - общая итоговая сумма в чеках [12:31:42] 1136 (3) - 43034.00 - итоговая сумма в чеках наличными [12:31:42] 1138 (3) - 20206.68 - итоговая сумма в чеках безналичными [12:31:42] 1024 (122) - суммы налогов [12:31:42] 1006 (9) - суммы НДС [12:31:42] 1010 (1) - 0% - код ставки НДС [12:31:42] 1011 (0) - 0.00 - сумма НДС по ставке [12:31:42] 1006 (12) - суммы НДС [12:31:42] 1010 (1) - 12% - код ставки НДС [12:31:42] 1011 (3) - 6717.68 - сумма НДС по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 0% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (11) - суммы НСП [12:31:42] 1014 (1) - 1% - код ставки НСП [12:31:42] 1015 (2) - 559.81 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 2% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 3% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 5% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 0,50% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 1,50% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1130 (141) - счетчики операций «возврат прихода» [12:31:42] 1135 (4) - 0 - количество чеков по признаку расчетов [12:31:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:31:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:31:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:31:42] 1024 (117) - суммы налогов [12:31:42] 1006 (9) - суммы НДС [12:31:42] 1010 (1) - 0% - код ставки НДС [12:31:42] 1011 (0) - 0.00 - сумма НДС по ставке [12:31:42] 1006 (9) - суммы НДС [12:31:42] 1010 (1) - 12% - код ставки НДС [12:31:42] 1011 (0) - 0.00 - сумма НДС по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 0% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 1% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 2% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 3% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 5% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 0,50% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 1,50% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1131 (141) - счетчики операций «расход» [12:31:42] 1135 (4) - 0 - количество чеков по признаку расчетов [12:31:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:31:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:31:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:31:42] 1024 (117) - суммы налогов [12:31:42] 1006 (9) - суммы НДС [12:31:42] 1010 (1) - 0% - код ставки НДС [12:31:42] 1011 (0) - 0.00 - сумма НДС по ставке [12:31:42] 1006 (9) - суммы НДС [12:31:42] 1010 (1) - 12% - код ставки НДС [12:31:42] 1011 (0) - 0.00 - сумма НДС по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 0% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 1% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 2% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 3% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 5% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 0,50% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 1,50% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1132 (141) - счетчики операций «возврат расхода» [12:31:42] 1135 (4) - 0 - количество чеков по признаку расчетов [12:31:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:31:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:31:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:31:42] 1024 (117) - суммы налогов [12:31:42] 1006 (9) - суммы НДС [12:31:42] 1010 (1) - 0% - код ставки НДС [12:31:42] 1011 (0) - 0.00 - сумма НДС по ставке [12:31:42] 1006 (9) - суммы НДС [12:31:42] 1010 (1) - 12% - код ставки НДС [12:31:42] 1011 (0) - 0.00 - сумма НДС по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 0% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 1% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 2% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 3% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 5% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 0,50% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1007 (9) - суммы НСП [12:31:42] 1014 (1) - 1,50% - код ставки НСП [12:31:42] 1015 (0) - 0.00 - сумма НСП по ставке [12:31:42] 1133 (588) - - счетчики коррекции - не используются [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1194 (04AA) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1134 (046E) [12:31:42]Malloc new data [12:31:42]Processing tag 1129 (0469) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1135 (046F) [12:31:42]Malloc new data [12:31:42]Processing tag 1201 (04B1) [12:31:42]Malloc new data [12:31:42]Processing tag 1136 (0470) [12:31:42]Malloc new data [12:31:42]Processing tag 1138 (0472) [12:31:42]Malloc new data [12:31:42]Processing tag 1024 (0400) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1006 (03EE) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1010 (03F2) [12:31:42]Malloc new data [12:31:42]Processing tag 1011 (03F3) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1006 (03EE) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1010 (03F2) [12:31:42]Malloc new data [12:31:42]Processing tag 1011 (03F3) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]SetTLVBufToDocument err=0 [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1130 (046A) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1135 (046F) [12:31:42]Malloc new data [12:31:42]Processing tag 1201 (04B1) [12:31:42]Malloc new data [12:31:42]Processing tag 1136 (0470) [12:31:42]Malloc new data [12:31:42]Processing tag 1138 (0472) [12:31:42]Malloc new data [12:31:42]Processing tag 1024 (0400) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1006 (03EE) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1010 (03F2) [12:31:42]Malloc new data [12:31:42]Processing tag 1011 (03F3) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1006 (03EE) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1010 (03F2) [12:31:42]Malloc new data [12:31:42]Processing tag 1011 (03F3) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]SetTLVBufToDocument err=0 [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1131 (046B) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1135 (046F) [12:31:42]Malloc new data [12:31:42]Processing tag 1201 (04B1) [12:31:42]Malloc new data [12:31:42]Processing tag 1136 (0470) [12:31:42]Malloc new data [12:31:42]Processing tag 1138 (0472) [12:31:42]Malloc new data [12:31:42]Processing tag 1024 (0400) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1006 (03EE) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1010 (03F2) [12:31:42]Malloc new data [12:31:42]Processing tag 1011 (03F3) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1006 (03EE) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1010 (03F2) [12:31:42]Malloc new data [12:31:42]Processing tag 1011 (03F3) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:42]Malloc new data [12:31:42]SetTLVBufToDocument err=0 [12:31:42]Processing tag 1007 (03EF) [12:31:42]Load OK [12:31:42]SetTLVBufToDocument [12:31:42]Processing tag 1014 (03F6) [12:31:42]Malloc new data [12:31:42]Processing tag 1015 (03F7) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1007 (03EF) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1014 (03F6) [12:31:43]Malloc new data [12:31:43]Processing tag 1015 (03F7) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1007 (03EF) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1014 (03F6) [12:31:43]Malloc new data [12:31:43]Processing tag 1015 (03F7) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1007 (03EF) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1014 (03F6) [12:31:43]Malloc new data [12:31:43]Processing tag 1015 (03F7) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1007 (03EF) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1014 (03F6) [12:31:43]Malloc new data [12:31:43]Processing tag 1015 (03F7) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]SetTLVBufToDocument err=0 [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1132 (046C) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1135 (046F) [12:31:43]Malloc new data [12:31:43]Processing tag 1201 (04B1) [12:31:43]Malloc new data [12:31:43]Processing tag 1136 (0470) [12:31:43]Malloc new data [12:31:43]Processing tag 1138 (0472) [12:31:43]Malloc new data [12:31:43]Processing tag 1024 (0400) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1006 (03EE) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1010 (03F2) [12:31:43]Malloc new data [12:31:43]Processing tag 1011 (03F3) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1006 (03EE) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1010 (03F2) [12:31:43]Malloc new data [12:31:43]Processing tag 1011 (03F3) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1007 (03EF) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1014 (03F6) [12:31:43]Malloc new data [12:31:43]Processing tag 1015 (03F7) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1007 (03EF) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1014 (03F6) [12:31:43]Malloc new data [12:31:43]Processing tag 1015 (03F7) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1007 (03EF) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1014 (03F6) [12:31:43]Malloc new data [12:31:43]Processing tag 1015 (03F7) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1007 (03EF) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1014 (03F6) [12:31:43]Malloc new data [12:31:43]Processing tag 1015 (03F7) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1007 (03EF) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1014 (03F6) [12:31:43]Malloc new data [12:31:43]Processing tag 1015 (03F7) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1007 (03EF) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1014 (03F6) [12:31:43]Malloc new data [12:31:43]Processing tag 1015 (03F7) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1007 (03EF) [12:31:43]Load OK [12:31:43]SetTLVBufToDocument [12:31:43]Processing tag 1014 (03F6) [12:31:43]Malloc new data [12:31:43]Processing tag 1015 (03F7) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]SetTLVBufToDocument err=0 [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Processing tag 1133 (046D) [12:31:43]Malloc new data [12:31:43]SetTLVBufToDocument err=0 [12:31:43]SetTLVBufToDocument err=0 [12:31:43]Malloc new data [12:31:43]SAM_PROTO_GetFMData [12:31:43]wFMCommunicate request_size=4 [12:31:43]MH_SAM_APDU [12:31:43]CAPDU: 80 13 03 00 [12:31:43]Write to MH i2c: E2 08 00 0D 05 80 13 03 00 00 00 00 00 91 [12:31:43]Write i2c OK [12:31:43]MH_I2C_Read... [12:31:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:31:43]Read from MH i2c: E2 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: E2 FD 00 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: E2 FD 00 0D 05 00 C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 11 [12:31:43]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [12:31:44]wFMCommunicate OK [12:31:44]wFMCommunicate request_size=4 [12:31:44]MH_SAM_APDU [12:31:44]CAPDU: 80 17 00 00 [12:31:44]Write to MH i2c: E2 08 00 0E 05 80 17 00 00 00 00 00 00 93 [12:31:44]OFD Sender: No OFD packet to send [12:31:44]Write i2c OK [12:31:44]MH_I2C_Read... [12:31:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:44]Read from MH i2c: E2 [12:31:44]MH_I2C_Read... [12:31:44]Read from MH i2c: E2 FD 00 [12:31:44]MH_I2C_Read... [12:31:44]Read from MH i2c: E2 FD 00 0E 05 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [12:31:44]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:31:44]wFMCommunicate OK [12:31:44]wFMCommunicate request_size=4 [12:31:44]MH_SAM_APDU [12:31:44]CAPDU: 80 17 00 00 [12:31:44]Write to MH i2c: E2 08 00 0F 05 80 17 00 00 00 00 00 00 94 [12:31:44]Write i2c OK [12:31:44]MH_I2C_Read... [12:31:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:44]Read from MH i2c: E2 [12:31:44]MH_I2C_Read... [12:31:44]Read from MH i2c: E2 FD 00 [12:31:44]MH_I2C_Read... [12:31:44]Read from MH i2c: E2 FD 00 0F 05 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6C [12:31:44]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:31:45]wFMCommunicate OK [12:31:45]wFMCommunicate request_size=4 [12:31:45]MH_SAM_APDU [12:31:45]CAPDU: 80 17 00 00 [12:31:45]Write to MH i2c: E2 08 00 10 05 80 17 00 00 00 00 00 00 95 [12:31:45]Write i2c OK [12:31:45]MH_I2C_Read... [12:31:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:31:45]Read from MH i2c: E2 [12:31:45]MH_I2C_Read... [12:31:45]Read from MH i2c: E2 FD 00 [12:31:45]MH_I2C_Read... [12:31:45]Read from MH i2c: E2 FD 00 10 05 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 10 [12:31:45]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:31:45]wFMCommunicate OK [12:31:45]wFMCommunicate request_size=4 [12:31:45]MH_SAM_APDU [12:31:45]CAPDU: 80 17 00 00 [12:31:45]Write to MH i2c: E2 08 00 11 05 80 17 00 00 00 00 00 00 96 [12:31:45]Write i2c OK [12:31:45]MH_I2C_Read... [12:31:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:31:45]Read from MH i2c: E2 [12:31:45]MH_I2C_Read... [12:31:45]Read from MH i2c: E2 E4 00 [12:31:45]MH_I2C_Read... [12:31:45]Read from MH i2c: E2 E4 00 11 05 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [12:31:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:31:46]wFMCommunicate OK [12:31:46]SAM_PROTO_GetFMData done [12:31:46]FM_GetFMData:85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:31:46]oper:6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:31:46]total:9F 3F 43 F9 01 [12:31:46]Malloc new data [12:31:46]oper:6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:31:47]total:7C F5 CB 03 [12:31:47]Malloc new data [12:31:47]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 [12:31:47]total: [12:31:47]Malloc new data [12:31:47]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 [12:31:47]total: [12:31:47]Malloc new data [12:31:47]KKMPrepareXReportFMData err=0 [12:31:47]Х отчет ИНН: 02508201610067 Кассир: Дооронов М. 23.10.2024 12:31 Смена: 522 РНМ: 0000000000091754 ЗНМ: 0300000095 СНО: Общий режим Всего чеков: 86 ИТОГИ ПРИХОД Чеков: 86 Общий итог: 63240.68 Итого наличными: 43034.00 Итого безнал.: 20206.68 НДС 0% : 0.00 НДС 12% : 6717.68 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 559.81 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 43034.00 НС Приход: 84769012.79 НС Возвр.Прихода: 636983.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871811 [12:31:47]StoreToDocumentArchive [12:31:47]MH_GetDate [12:31:47]Write to MH i2c: F0 00 00 12 05 06 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: F0 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: F0 09 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: F0 09 00 12 05 00 B3 EC 18 67 1E EF FA 64 98 [12:31:47]shift 522 fd 1729686707 [12:31:47]save to /storage/0522/doc_1729686707 [12:31:47]save last doc name /storage/0522/doc_1729686707 to /storage/kkm_last_doc_name [12:31:47]save OK [12:31:47]Clear old archive folders... [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 13 05 18 [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 13 05 00 00 00 00 00 FF 0F 2D [12:31:47]RasterBufferAndPrint [12:31:47]line Х отчет [12:31:47]line ИНН: 02508201610067 [12:31:47]line Кассир: Дооронов М. [12:31:47]line 23.10.2024 12:31 [12:31:47]line Смена: 522 [12:31:47]line РНМ: 0000000000091754 [12:31:47]line ЗНМ: 0300000095 [12:31:47]line СНО: Общий режим [12:31:47]line Всего чеков: 86 [12:31:47]line ИТОГИ ПРИХОД [12:31:47]line Чеков: 86 [12:31:47]line Общий итог: 63240.68 [12:31:47]line Итого наличными: 43034.00 [12:31:47]line Итого безнал.: 20206.68 [12:31:47]line НДС 0% : 0.00 [12:31:47]line НДС 12% : 6717.68 [12:31:47]line НСП 0% : 0.00 [12:31:47]line НСП 1,50% : 0.00 [12:31:47]line НСП 0,50% : 0.00 [12:31:47]line НСП 5% : 0.00 [12:31:47]line НСП 3% : 0.00 [12:31:47]line НСП 2% : 0.00 [12:31:47]line НСП 1% : 559.81 [12:31:47]line ИТОГИ ВОЗВРАТ ПРИХОДА [12:31:47]line Чеков: 0 [12:31:47]line Общий итог: 0.00 [12:31:47]line Итого наличными: 0.00 [12:31:47]line Итого безнал.: 0.00 [12:31:47]line НДС 0% : 0.00 [12:31:47]line НДС 12% : 0.00 [12:31:47]line НСП 0% : 0.00 [12:31:47]line НСП 1,50% : 0.00 [12:31:47]line НСП 0,50% : 0.00 [12:31:47]line НСП 5% : 0.00 [12:31:47]line НСП 3% : 0.00 [12:31:47]line НСП 2% : 0.00 [12:31:47]line НСП 1% : 0.00 [12:31:47]line ИТОГИ РАСХОД [12:31:47]line Чеков: 0 [12:31:47]line Общий итог: 0.00 [12:31:47]line Итого наличными: 0.00 [12:31:47]line Итого безнал.: 0.00 [12:31:47]line НДС 0% : 0.00 [12:31:47]line НДС 12% : 0.00 [12:31:47]line НСП 0% : 0.00 [12:31:47]line НСП 1,50% : 0.00 [12:31:47]line НСП 0,50% : 0.00 [12:31:47]line НСП 5% : 0.00 [12:31:47]line НСП 3% : 0.00 [12:31:47]line НСП 2% : 0.00 [12:31:47]line НСП 1% : 0.00 [12:31:47]line ИТОГИ ВОЗВРАТ РАСХОДА [12:31:47]line Чеков: 0 [12:31:47]line Общий итог: 0.00 [12:31:47]line Итого наличными: 0.00 [12:31:47]line Итого безнал.: 0.00 [12:31:47]line НДС 0% : 0.00 [12:31:47]line НДС 12% : 0.00 [12:31:47]line НСП 0% : 0.00 [12:31:47]line НСП 1,50% : 0.00 [12:31:47]line НСП 0,50% : 0.00 [12:31:47]line НСП 5% : 0.00 [12:31:47]line НСП 3% : 0.00 [12:31:47]line НСП 2% : 0.00 [12:31:47]line НСП 1% : 0.00 [12:31:47]line Сумма внесений: 0.00 [12:31:47]line Сумма выплат: 0.00 [12:31:47]line Нал. в кассе: 43034.00 [12:31:47]line НС Приход: 84769012.79 [12:31:47]line НС Возвр.Прихода: 636983.00 [12:31:47]line НС Расход: 0.00 [12:31:47]line НС Возвр.Расхода: 0.00 [12:31:47]line ФМ: 0000000000871811 [12:31:47]written 0, free lines is 4095 [12:31:48]Write to MH i2c: 01 00 00 5E 05 63 [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 5E 05 00 00 00 00 00 88 0A FC [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 2726 [12:31:48]MH_Cut [12:31:48]Write to MH i2c: D1 01 00 65 05 01 3C [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 65 05 00 3B [12:31:48]Write to MH i2c: 01 00 00 66 05 6B [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:49]OFD Sender: No OFD packet to send [12:31:49]*** Cut start [12:31:49]*** Partial cut [12:31:49]*** CUTSNS_PIN = 1 [12:31:49]*** CUTSNS_PIN = 0 [12:31:49]*** Brake cut motor [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 66 05 00 00 00 00 00 FF 0F 80 [12:31:49]process_action x_report done [12:31:49]requested_data is exist [12:31:49]produce_requested_data [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 67 05 80 13 00 00 00 00 00 00 E8 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 62 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 62 00 67 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [12:31: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:50]wFMCommunicate OK [12:31:50]SAM_PROTO_GetFieldsCounters done [12:31:50]requested_item shift.num is exist - process it [12:31:50]requested_item shift.opened is exist - process it [12:31:50]req_shift_opened [12:31:50]FM_GetShiftState [12:31:50]SAM_PROTO_GetShiftState [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 13 01 00 [12:31:50]Write to MH i2c: E2 08 00 68 05 80 13 01 00 00 00 00 00 EA [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 0E 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 0E 00 68 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 23 [12:31:50]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:31:50]wFMCommunicate OK [12:31:50]SAM_PROTO_GetShiftState done [12:31:50]FM_GetShiftState done [12:31:50]req_shift_opened done [12:31:50]requested_item shift.open_date is exist - process it [12:31:50]req_shift_open_date [12:31:50]req_shift_open_date done [12:31:50]produce_requested_data done [12:31:50]produce_requested_data return {"fd.num":103674,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:31:50]process_action_free x_report [12:31:50]json_value_free [12:31:50]json_value_free done [12:31:50]process_json_proto returns [12:31:50]Send response to host [12:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103674,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:31:50]free response buf [12:31:50]execute_script done [12:31:50]execute_script returns [12:31:50]free content buf [12:31:50]Sock 7.Close socket [12:31:50]Sock 7.Thread stoped [12:31:54]OFD Sender: No OFD packet to send [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]recv_with_timeout no data received [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:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:47]recv_with_timeout no data received [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:39]recv_with_timeout no data received [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:18]recv_with_timeout no data received [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]accept exits with 9 [12:42:10]New connection [12:42:10]New thread 3066727780 created [12:42:10]Thread 3066871140 joined [12:42:10]Waiting for new connection... [12:42:10] Sock 9.Parse request [12:42:10]Sock 9.Check first char [12:42:10]Sock 9.First char is OK [12:42:10]request: POST /json_proto HTTP/1.0 [12:42:10]Method: POST [12:42:10]URL: /json_proto [12:42:10]Method is POST - this is cgi request [12:42:10]url: /json_proto [12:42:10]query_string will be loaded in cgi processing [12:42:10]execute_cgi json_proto POST (null) [12:42:10]execute_cgi path=json_proto method=POST [12:42:10]POST find Content-Length [12:42:10]Host: 172.17.51.67:8080 [12:42:10]Content-Length: 215 [12:42:10]Content-Type: application/json [12:42:10] [12:42:10]POST finish read [12:42:10]Found Content-Length = 215 [12:42:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:10]execute_script... [12:42:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:10]POST & json_proto [12:42:10]process_json_proto [12:42:10]json parsed OK: [12:42:10]protocol is kg_v1.0 [12:42:10]action value=get_value [12:42:10]process_action get_value [12:42:10]cmd_get_value [12:42:10]process_action get_value done [12:42:10]requested_data is exist [12:42:10]produce_requested_data [12:42:10]requested_item kkm.sn is exist - process it [12:42:10]requested_item kkm.ver is exist - process it [12:42:10]requested_item fm.sn is exist - process it [12:42:10]wFMCommunicate request_size=4 [12:42:10]MH_SAM_APDU [12:42:10]CAPDU: 80 11 00 00 [12:42:10]Write to MH i2c: E2 08 00 69 05 80 11 00 00 00 00 00 00 E8 [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:10]Read from MH i2c: E2 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 17 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 17 00 69 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 35 [12:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:42:10]wFMCommunicate OK [12:42:10]requested_item fd.num is exist - process it [12:42:10]SAM_PROTO_GetFieldsCounters [12:42:10]wFMCommunicate request_size=4 [12:42:10]MH_SAM_APDU [12:42:10]CAPDU: 80 13 00 00 [12:42:10]Write to MH i2c: E2 08 00 6A 05 80 13 00 00 00 00 00 00 EB [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:10]Read from MH i2c: E2 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 62 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 62 00 6A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [12:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:10]wFMCommunicate OK [12:42:10]SAM_PROTO_GetFieldsCounters done [12:42:10]requested_item shift.num is exist - process it [12:42:10]requested_item shift.opened is exist - process it [12:42:10]req_shift_opened [12:42:10]FM_GetShiftState [12:42:10]SAM_PROTO_GetShiftState [12:42:10]wFMCommunicate request_size=4 [12:42:10]MH_SAM_APDU [12:42:10]CAPDU: 80 13 01 00 [12:42:10]Write to MH i2c: E2 08 00 6B 05 80 13 01 00 00 00 00 00 ED [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:10]Read from MH i2c: E2 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 0E 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 0E 00 6B 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 26 [12:42:10]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:42:10]wFMCommunicate OK [12:42:10]SAM_PROTO_GetShiftState done [12:42:10]FM_GetShiftState done [12:42:10]req_shift_opened done [12:42:10]requested_item shift.open_date is exist - process it [12:42:10]req_shift_open_date [12:42:10]req_shift_open_date done [12:42:10]produce_requested_data done [12:42:10]produce_requested_data return {"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103674,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861} [12:42:10]process_action_free get_value [12:42:10]json_value_free [12:42:10]json_value_free done [12:42:10]process_json_proto returns [12:42:10]Send response to host [12:42:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000095","kkm.ver":"001","fm.sn":"0000000000871811","fd.num":103674,"shift.num":582,"shift.opened":1,"shift.open_date":1729642861}}} [12:42:10]free response buf [12:42:10]execute_script done [12:42:10]execute_script returns [12:42:10]free content buf [12:42:10]Sock 9.Close socket [12:42:10]Sock 9.Thread stoped [12:42:10]accept exits with 7 [12:42:10]New connection [12:42:10]New thread 3066871140 created [12:42:10]Thread 3066727780 joined [12:42:10]Waiting for new connection... [12:42:10]OFD Sender: No OFD packet to send [12:42:10] Sock 7.Parse request [12:42:10]Sock 7.Check first char [12:42:10]Sock 7.First char is OK [12:42:10]request: POST /json_proto HTTP/1.0 [12:42:10]Method: POST [12:42:10]URL: /json_proto [12:42:10]Method is POST - this is cgi request [12:42:10]url: /json_proto [12:42:10]query_string will be loaded in cgi processing [12:42:10]execute_cgi json_proto POST (null) [12:42:10]execute_cgi path=json_proto method=POST [12:42:10]POST find Content-Length [12:42:10]Host: 172.17.51.67:8080 [12:42:10]Content-Length: 331 [12:42:10]Content-Type: application/json [12:42:10] [12:42:10]POST finish read [12:42:10]Found Content-Length = 331 [12:42:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:42:10]execute_script... [12:42:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:42:10]POST & json_proto [12:42:10]process_json_proto [12:42:10]json parsed OK: [12:42:10]protocol is kg_v1.0 [12:42:10]action value=get_value [12:42:10]process_action get_value [12:42:10]cmd_get_value [12:42:10]process_action get_value done [12:42:10]requested_data is exist [12:42:10]produce_requested_data [12:42:10]requested_item fm.sale.total is exist - process it [12:42:10]SAM_PROTO_GetFMData [12:42:10]wFMCommunicate request_size=4 [12:42:10]MH_SAM_APDU [12:42:10]CAPDU: 80 13 03 00 [12:42:10]Write to MH i2c: E2 08 00 6C 05 80 13 03 00 00 00 00 00 F0 [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:42:11]Read from MH i2c: E2 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: E2 FD 00 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: E2 FD 00 6C 05 00 C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 70 [12:42:11]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [12:42:11]wFMCommunicate OK [12:42:11]wFMCommunicate request_size=4 [12:42:11]MH_SAM_APDU [12:42:11]CAPDU: 80 17 00 00 [12:42:11]Write to MH i2c: E2 08 00 6D 05 80 17 00 00 00 00 00 00 F2 [12:42:11]Write i2c OK [12:42:11]MH_I2C_Read... [12:42:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:11]Read from MH i2c: E2 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: E2 FD 00 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: E2 FD 00 6D 05 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [12:42:11]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:42:11]wFMCommunicate OK [12:42:11]wFMCommunicate request_size=4 [12:42:11]MH_SAM_APDU [12:42:11]CAPDU: 80 17 00 00 [12:42:11]Write to MH i2c: E2 08 00 6E 05 80 17 00 00 00 00 00 00 F3 [12:42:11]Write i2c OK [12:42:11]MH_I2C_Read... [12:42:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:11]Read from MH i2c: E2 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: E2 FD 00 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: E2 FD 00 6E 05 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CB [12:42:11]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:42:11]wFMCommunicate OK [12:42:11]wFMCommunicate request_size=4 [12:42:11]MH_SAM_APDU [12:42:11]CAPDU: 80 17 00 00 [12:42:11]Write to MH i2c: E2 08 00 6F 05 80 17 00 00 00 00 00 00 F4 [12:42:11]Write i2c OK [12:42:11]MH_I2C_Read... [12:42:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:12]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 FD 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 FD 00 6F 05 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6F [12:42:12]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:42:12]wFMCommunicate OK [12:42:12]wFMCommunicate request_size=4 [12:42:12]MH_SAM_APDU [12:42:12]CAPDU: 80 17 00 00 [12:42:12]Write to MH i2c: E2 08 00 70 05 80 17 00 00 00 00 00 00 F5 [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:42:12]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 E4 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 E4 00 70 05 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D5 [12:42:12]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:42:12]wFMCommunicate OK [12:42:12]SAM_PROTO_GetFMData done [12:42:12]requested_item fm.sale_refund.total is exist - process it [12:42:12]requested_item fm.buy.total is exist - process it [12:42:12]requested_item shift.sale.total is exist - process it [12:42:12]SAM_PROTO_GetShiftData [12:42:12]wFMCommunicate request_size=4 [12:42:12]MH_SAM_APDU [12:42:12]CAPDU: 80 13 02 00 [12:42:12]Write to MH i2c: E2 08 00 71 05 80 13 02 00 00 00 00 00 F4 [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:42:12]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 FD 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 FD 00 71 05 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CF [12:42:12]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:42:12]wFMCommunicate OK [12:42:12]wFMCommunicate request_size=4 [12:42:12]MH_SAM_APDU [12:42:12]CAPDU: 80 17 00 00 [12:42:12]Write to MH i2c: E2 08 00 72 05 80 17 00 00 00 00 00 00 F7 [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:13]Read from MH i2c: E2 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 FD 00 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 FD 00 72 05 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 19 [12:42:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:42:13]wFMCommunicate OK [12:42:13]wFMCommunicate request_size=4 [12:42:13]MH_SAM_APDU [12:42:13]CAPDU: 80 17 00 00 [12:42:13]Write to MH i2c: E2 08 00 73 05 80 17 00 00 00 00 00 00 F8 [12:42:13]Write i2c OK [12:42:13]MH_I2C_Read... [12:42:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:13]Read from MH i2c: E2 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 FD 00 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 FD 00 73 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AF [12:42:13]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 [12:42:13]wFMCommunicate OK [12:42:13]wFMCommunicate request_size=4 [12:42:13]MH_SAM_APDU [12:42:13]CAPDU: 80 17 00 00 [12:42:13]Write to MH i2c: E2 08 00 74 05 80 17 00 00 00 00 00 00 F9 [12:42:13]Write i2c OK [12:42:13]MH_I2C_Read... [12:42:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:13]Read from MH i2c: E2 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 FD 00 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 FD 00 74 05 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 6B [12:42:13]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 [12:42:13]wFMCommunicate OK [12:42:13]wFMCommunicate request_size=4 [12:42:13]MH_SAM_APDU [12:42:13]CAPDU: 80 17 00 00 [12:42:13]Write to MH i2c: E2 08 00 75 05 80 17 00 00 00 00 00 00 FA [12:42:13]Write i2c OK [12:42:13]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 CB 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 CB 00 75 05 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 E3 [12:42:14]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 [12:42:14]wFMCommunicate OK [12:42:14]SAM_PROTO_GetShiftData done [12:42:14]requested_item shift.sale.total_cash is exist - process it [12:42:14]requested_item shift.sale_refund.total is exist - process it [12:42:14]requested_item shift.sale_refund.total_cash is exist - process it [12:42:14]requested_item shift.buy.total is exist - process it [12:42:14]requested_item shift.buy.total_cash is exist - process it [12:42:14]produce_requested_data done [12:42:14]produce_requested_data return {"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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} [12:42:14]process_action_free get_value [12:42:14]json_value_free [12:42:14]json_value_free done [12:42:14]process_json_proto returns [12:42:14]Send response to host [12:42:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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}}} [12:42:14]free response buf [12:42:14]execute_script done [12:42:14]execute_script returns [12:42:14]free content buf [12:42:14]Sock 7.Close socket [12:42:14]Sock 7.Thread stoped [12:42:14]accept exits with 10 [12:42:14]New connection [12:42:14]New thread 3066727780 created [12:42:14]Thread 3066871140 joined [12:42:14]Waiting for new connection... [12:42:14] Sock 10.Parse request [12:42:14]Sock 10.Check first char [12:42:14]Sock 10.First char is OK [12:42:14]request: POST /json_proto HTTP/1.0 [12:42:14]Method: POST [12:42:14]URL: /json_proto [12:42:14]Method is POST - this is cgi request [12:42:14]url: /json_proto [12:42:14]query_string will be loaded in cgi processing [12:42:14]execute_cgi json_proto POST (null) [12:42:14]execute_cgi path=json_proto method=POST [12:42:14]POST find Content-Length [12:42:14]Host: 172.17.51.67:8080 [12:42:14]Content-Length: 331 [12:42:14]Content-Type: application/json [12:42:14] [12:42:14]POST finish read [12:42:14]Found Content-Length = 331 [12:42:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:42:14]execute_script... [12:42:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:42:14]POST & json_proto [12:42:14]process_json_proto [12:42:14]json parsed OK: [12:42:14]protocol is kg_v1.0 [12:42:14]action value=get_value [12:42:14]process_action get_value [12:42:14]cmd_get_value [12:42:14]process_action get_value done [12:42:14]requested_data is exist [12:42:14]produce_requested_data [12:42:14]requested_item fm.sale.total is exist - process it [12:42:14]SAM_PROTO_GetFMData [12:42:14]wFMCommunicate request_size=4 [12:42:14]MH_SAM_APDU [12:42:14]CAPDU: 80 13 03 00 [12:42:14]Write to MH i2c: E2 08 00 76 05 80 13 03 00 00 00 00 00 FA [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 FD 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 FD 00 76 05 00 C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 7A [12:42:14]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [12:42:14]wFMCommunicate OK [12:42:14]wFMCommunicate request_size=4 [12:42:14]MH_SAM_APDU [12:42:14]CAPDU: 80 17 00 00 [12:42:14]Write to MH i2c: E2 08 00 77 05 80 17 00 00 00 00 00 00 FC [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 FD 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 FD 00 77 05 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B7 [12:42:15]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:42:15]wFMCommunicate OK [12:42:15]wFMCommunicate request_size=4 [12:42:15]MH_SAM_APDU [12:42:15]CAPDU: 80 17 00 00 [12:42:15]Write to MH i2c: E2 08 00 78 05 80 17 00 00 00 00 00 00 FD [12:42:15]Write i2c OK [12:42:15]MH_I2C_Read... [12:42:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:15]Read from MH i2c: E2 [12:42:15]MH_I2C_Read... [12:42:15]Read from MH i2c: E2 FD 00 [12:42:15]MH_I2C_Read... [12:42:15]Read from MH i2c: E2 FD 00 78 05 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D5 [12:42:15]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:42:15]wFMCommunicate OK [12:42:15]wFMCommunicate request_size=4 [12:42:15]MH_SAM_APDU [12:42:15]CAPDU: 80 17 00 00 [12:42:15]Write to MH i2c: E2 08 00 79 05 80 17 00 00 00 00 00 00 FE [12:42:15]Write i2c OK [12:42:15]MH_I2C_Read... [12:42:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:15]Read from MH i2c: E2 [12:42:15]MH_I2C_Read... [12:42:15]Read from MH i2c: E2 FD 00 [12:42:15]MH_I2C_Read... [12:42:15]Read from MH i2c: E2 FD 00 79 05 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [12:42:15]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:42:15]wFMCommunicate OK [12:42:15]wFMCommunicate request_size=4 [12:42:15]MH_SAM_APDU [12:42:15]CAPDU: 80 17 00 00 [12:42:15]Write to MH i2c: E2 08 00 7A 05 80 17 00 00 00 00 00 00 FF [12:42:15]OFD Sender: No OFD packet to send [12:42:15]Write i2c OK [12:42:15]MH_I2C_Read... [12:42:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:42:16]Read from MH i2c: E2 [12:42:16]MH_I2C_Read... [12:42:16]Read from MH i2c: E2 E4 00 [12:42:16]MH_I2C_Read... [12:42:16]Read from MH i2c: E2 E4 00 7A 05 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DF [12:42:16]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:42:16]wFMCommunicate OK [12:42:16]SAM_PROTO_GetFMData done [12:42:16]requested_item fm.sale_refund.total is exist - process it [12:42:16]requested_item fm.buy.total is exist - process it [12:42:16]requested_item shift.sale.total is exist - process it [12:42:16]SAM_PROTO_GetShiftData [12:42:16]wFMCommunicate request_size=4 [12:42:16]MH_SAM_APDU [12:42:16]CAPDU: 80 13 02 00 [12:42:16]Write to MH i2c: E2 08 00 7B 05 80 13 02 00 00 00 00 00 FE [12:42:16]Write i2c OK [12:42:16]MH_I2C_Read... [12:42:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:42:16]Read from MH i2c: E2 [12:42:16]MH_I2C_Read... [12:42:16]Read from MH i2c: E2 FD 00 [12:42:16]MH_I2C_Read... [12:42:16]Read from MH i2c: E2 FD 00 7B 05 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D9 [12:42:16]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:42:16]wFMCommunicate OK [12:42:16]wFMCommunicate request_size=4 [12:42:16]MH_SAM_APDU [12:42:16]CAPDU: 80 17 00 00 [12:42:16]Write to MH i2c: E2 08 00 7C 05 80 17 00 00 00 00 00 00 01 [12:42:16]Write i2c OK [12:42:16]MH_I2C_Read... [12:42:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:17]Read from MH i2c: E2 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: E2 FD 00 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: E2 FD 00 7C 05 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 23 [12:42:17]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [12:42:17]wFMCommunicate OK [12:42:17]wFMCommunicate request_size=4 [12:42:17]MH_SAM_APDU [12:42:17]CAPDU: 80 17 00 00 [12:42:17]Write to MH i2c: E2 08 00 7D 05 80 17 00 00 00 00 00 00 02 [12:42:17]Write i2c OK [12:42:17]MH_I2C_Read... [12:42:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:17]Read from MH i2c: E2 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: E2 FD 00 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: E2 FD 00 7D 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B9 [12:42:17]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [12:42:17]wFMCommunicate OK [12:42:17]wFMCommunicate request_size=4 [12:42:17]MH_SAM_APDU [12:42:17]CAPDU: 80 17 00 00 [12:42:17]Write to MH i2c: E2 08 00 7E 05 80 17 00 00 00 00 00 00 03 [12:42:17]Write i2c OK [12:42:17]MH_I2C_Read... [12:42:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:17]Read from MH i2c: E2 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: E2 FD 00 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: E2 FD 00 7E 05 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 75 [12:42:17]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [12:42:18]wFMCommunicate OK [12:42:18]wFMCommunicate request_size=4 [12:42:18]MH_SAM_APDU [12:42:18]CAPDU: 80 17 00 00 [12:42:18]Write to MH i2c: E2 08 00 7F 05 80 17 00 00 00 00 00 00 04 [12:42:18]Write i2c OK [12:42:18]MH_I2C_Read... [12:42:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:42:18]Read from MH i2c: E2 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: E2 CB 00 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: E2 CB 00 7F 05 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 ED [12:42:18]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 [12:42:18]wFMCommunicate OK [12:42:18]SAM_PROTO_GetShiftData done [12:42:18]requested_item shift.sale.total_cash is exist - process it [12:42:18]requested_item shift.sale_refund.total is exist - process it [12:42:18]requested_item shift.sale_refund.total_cash is exist - process it [12:42:18]requested_item shift.buy.total is exist - process it [12:42:18]requested_item shift.buy.total_cash is exist - process it [12:42:18]produce_requested_data done [12:42:18]produce_requested_data return {"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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} [12:42:18]process_action_free get_value [12:42:18]json_value_free [12:42:18]json_value_free done [12:42:18]process_json_proto returns [12:42:18]Send response to host [12:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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}}} [12:42:18]free response buf [12:42:18]execute_script done [12:42:18]execute_script returns [12:42:18]free content buf [12:42:18]Sock 10.Close socket [12:42:18]Sock 10.Thread stoped [12:42:18]accept exits with 7 [12:42:18]New connection [12:42:18]New thread 3066871140 created [12:42:18]Thread 3066727780 joined [12:42:18]Waiting for new connection... [12:42:18] Sock 7.Parse request [12:42:18]Sock 7.Check first char [12:42:18]Sock 7.First char is OK [12:42:18]request: POST /json_proto HTTP/1.0 [12:42:18]Method: POST [12:42:18]URL: /json_proto [12:42:18]Method is POST - this is cgi request [12:42:18]url: /json_proto [12:42:18]query_string will be loaded in cgi processing [12:42:18]execute_cgi json_proto POST (null) [12:42:18]execute_cgi path=json_proto method=POST [12:42:18]POST find Content-Length [12:42:18]Host: 172.17.51.67:8080 [12:42:18]Content-Length: 257 [12:42:18]Content-Type: application/json [12:42:18] [12:42:18]POST finish read [12:42:18]Found Content-Length = 257 [12:42:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u043E\u043E\u0440\u043E\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:18]execute_script... [12:42:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u043E\u043E\u0440\u043E\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:18]POST & json_proto [12:42:18]process_json_proto [12:42:18]json parsed OK: [12:42:18]protocol is kg_v1.0 [12:42:18]action value=x_report [12:42:18]process_action x_report [12:42:18]cmd_x_report [12:42:18]MH_GetDate [12:42:18]Write to MH i2c: F0 00 00 80 05 74 [12:42:18]Write i2c OK [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: F0 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: F0 09 00 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: F0 09 00 80 05 00 2A EF 18 67 1E EF FA 64 80 [12:42:18]GetLastDocTimeStamp 1729686700 [12:42:18]current date 1729687338 [12:42:18]FM_GetShiftState [12:42:18]SAM_PROTO_GetShiftState [12:42:18]wFMCommunicate request_size=4 [12:42:18]MH_SAM_APDU [12:42:18]CAPDU: 80 13 01 00 [12:42:18]Write to MH i2c: E2 08 00 81 05 80 13 01 00 00 00 00 00 03 [12:42:18]Write i2c OK [12:42:18]MH_I2C_Read... [12:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:18]Read from MH i2c: E2 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: E2 0E 00 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: E2 0E 00 81 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 3C [12:42:18]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:42:18]wFMCommunicate OK [12:42:18]SAM_PROTO_GetShiftState done [12:42:18]FM_GetShiftState done [12:42:18]KKMCreateXReportDocument [12:42:18]Load OK [12:42:18]Malloc new data [12:42:18]MH_GetDate [12:42:18]Write to MH i2c: F0 00 00 82 05 76 [12:42:18]Write i2c OK [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: F0 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: F0 09 00 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: F0 09 00 82 05 00 2A EF 18 67 1E EF FA 64 82 [12:42:18]Malloc new data [12:42:18]Malloc new data [12:42:18]wFMCommunicate request_size=4 [12:42:18]MH_SAM_APDU [12:42:18]CAPDU: 80 11 00 00 [12:42:18]Write to MH i2c: E2 08 00 83 05 80 11 00 00 00 00 00 00 02 [12:42:18]Write i2c OK [12:42:18]MH_I2C_Read... [12:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:18]Read from MH i2c: E2 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: E2 17 00 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: E2 17 00 83 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 4F [12:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:42:18]wFMCommunicate OK [12:42:18]SAM_PROTO_GetFieldsCounters [12:42:18]wFMCommunicate request_size=4 [12:42:18]MH_SAM_APDU [12:42:18]CAPDU: 80 13 00 00 [12:42:18]Write to MH i2c: E2 08 00 84 05 80 13 00 00 00 00 00 00 05 [12:42:18]Write i2c OK [12:42:18]MH_I2C_Read... [12:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:18]Read from MH i2c: E2 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: E2 62 00 [12:42:18]MH_I2C_Read... [12:42:18]Read from MH i2c: E2 62 00 84 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [12:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FA 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:18]wFMCommunicate OK [12:42:18]SAM_PROTO_GetFieldsCounters done [12:42:18]Malloc new data [12:42:18]Malloc new data [12:42:18]Malloc new data [12:42:18]KKMCreateXReportDocument OK [12:42:18]KKMSetXReportData OK [12:42:18]KKMPrepareXReportFMData [12:42:18]SAM_PROTO_GetShiftData [12:42:18]wFMCommunicate request_size=4 [12:42:18]MH_SAM_APDU [12:42:18]CAPDU: 80 13 02 00 [12:42:18]Write to MH i2c: E2 08 00 85 05 80 13 02 00 00 00 00 00 08 [12:42:18]Write i2c OK [12:42:18]MH_I2C_Read... [12:42:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:42:19]Read from MH i2c: E2 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 FD 00 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 FD 00 85 05 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E3 [12:42:19]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:42:19]wFMCommunicate OK [12:42:19]wFMCommunicate request_size=4 [12:42:19]MH_SAM_APDU [12:42:19]CAPDU: 80 17 00 00 [12:42:19]Write to MH i2c: E2 08 00 86 05 80 17 00 00 00 00 00 00 0B [12:42:19]Write i2c OK [12:42:19]MH_I2C_Read... [12:42:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:19]Read from MH i2c: E2 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 FD 00 [12:42:19]MH_I2C_Read... [12:42:19]Read from MH i2c: E2 FD 00 86 05 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 2D [12:42:19]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [12:42:20]wFMCommunicate OK [12:42:20]wFMCommunicate request_size=4 [12:42:20]MH_SAM_APDU [12:42:20]CAPDU: 80 17 00 00 [12:42:20]Write to MH i2c: E2 08 00 87 05 80 17 00 00 00 00 00 00 0C [12:42:20]Write i2c OK [12:42:20]MH_I2C_Read... [12:42:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:20]Read from MH i2c: E2 [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: E2 FD 00 [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: E2 FD 00 87 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C3 [12:42:20]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 [12:42:20]wFMCommunicate OK [12:42:20]wFMCommunicate request_size=4 [12:42:20]MH_SAM_APDU [12:42:20]CAPDU: 80 17 00 00 [12:42:20]Write to MH i2c: E2 08 00 88 05 80 17 00 00 00 00 00 00 0D [12:42:20]Write i2c OK [12:42:20]MH_I2C_Read... [12:42:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:20]Read from MH i2c: E2 [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: E2 FD 00 [12:42:20]MH_I2C_Read... [12:42:20]Read from MH i2c: E2 FD 00 88 05 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 7F [12:42:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [12:42:21]wFMCommunicate OK [12:42:21]wFMCommunicate request_size=4 [12:42:21]MH_SAM_APDU [12:42:21]CAPDU: 80 17 00 00 [12:42:21]Write to MH i2c: E2 08 00 89 05 80 17 00 00 00 00 00 00 0E [12:42:21]OFD Sender: No OFD packet to send [12:42:21]Write i2c OK [12:42:21]MH_I2C_Read... [12:42:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:42:21]Read from MH i2c: E2 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: E2 CB 00 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: E2 CB 00 89 05 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 F7 [12:42:21]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 [12:42:21]wFMCommunicate OK [12:42:21]SAM_PROTO_GetShiftData done [12:42:21]1194 (1194) - счетчики итогов смены [12:42:21] 1134 (4) - 86 - количество чеков со всеми признаками расчетов [12:42:21] 1129 (155) - счетчики операций «приход» [12:42:21] 1135 (4) - 86 - количество чеков по признаку расчетов [12:42:21] 1201 (3) - 63240.68 - общая итоговая сумма в чеках [12:42:21] 1136 (3) - 43034.00 - итоговая сумма в чеках наличными [12:42:21] 1138 (3) - 20206.68 - итоговая сумма в чеках безналичными [12:42:21] 1024 (122) - суммы налогов [12:42:21] 1006 (9) - суммы НДС [12:42:21] 1010 (1) - 0% - код ставки НДС [12:42:21] 1011 (0) - 0.00 - сумма НДС по ставке [12:42:21] 1006 (12) - суммы НДС [12:42:21] 1010 (1) - 12% - код ставки НДС [12:42:21] 1011 (3) - 6717.68 - сумма НДС по ставке [12:42:21] 1007 (9) - суммы НСП [12:42:21] 1014 (1) - 0% - код ставки НСП [12:42:21] 1015 (0) - 0.00 - сумма НСП по ставке [12:42:21] 1007 (11) - суммы НСП [12:42:21] 1014 (1) - 1% - код ставки НСП [12:42:21] 1015 (2) - 559.81 - сумма НСП по ставке [12:42:21] 1007 (9) - суммы НСП [12:42:21] 1014 (1) - 2% - код ставки НСП [12:42:21] 1015 (0) - 0.00 - сумма НСП по ставке [12:42:21] 1007 (9) - суммы НСП [12:42:21] 1014 (1) - 3% - код ставки НСП [12:42:21] 1015 (0) - 0.00 - сумма НСП по ставке [12:42:21] 1007 (9) - суммы НСП [12:42:21] 1014 (1) - 5% - код ставки НСП [12:42:21] 1015 (0) - 0.00 - сумма НСП по ставке [12:42:21] 1007 (9) - суммы НСП [12:42:21] 1014 (1) - 0,50% - код ставки НСП [12:42:21] 1015 (0) - 0.00 - сумма НСП по ставке [12:42:21] 1007 (9) - суммы НСП [12:42:21] 1014 (1) - 1,50% - код ставки НСП [12:42:21] 1015 (0) - 0.00 - сумма НСП по ставке [12:42:21] 1130 (141) - счетчики операций «возврат прихода» [12:42:21] 1135 (4) - 001 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 52 [12:42:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:42:57]wFMCommunicate OK [12:42:57]SAM_PROTO_GetFMData done [12:42:57]requested_item fm.sale_refund.total is exist - process it [12:42:57]requested_item fm.buy.total is exist - process it [12:42:57]requested_item shift.sale.total is exist - process it [12:42:57]SAM_PROTO_GetShiftData [12:42:57]wFMCommunicate request_size=4 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 13 02 00 [12:42:57]Write to MH i2c: E2 08 00 EE 05 80 13 02 00 00 00 00 00 71 [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 FD 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 FD 00 EE 05 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4C [12:42:57]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:42:58]wFMCommunicate OK [12:42:58]wFMCommunicate request_size=4 [12:42:58]MH_SAM_APDU [12:42:58]CAPDU: 80 17 00 00 [12:42:58]Write to MH i2c: E2 08 00 EF 05 80 17 00 00 00 00 00 00 74 [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:58]Read from MH i2c: E2 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 FD 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: E2 FD 00 EF 05 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 96 [12:42:58]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 [12:42:58]wFMCommunicate OK [12:42:58]wFMCommunicate request_size=4 [12:42:58]MH_SAM_APDU [12:42:58]CAPDU: 80 17 00 00 [12:42:58]Write to MH i2c: E2 08 00 F0 05 80 17 00 00 00 00 00 00 75 [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:59]Read from MH i2c: E2 [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: E2 FD 00 [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: E2 FD 00 F0 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C [12:42:59]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 [12:42:59]wFMCommunicate OK [12:42:59]wFMCommunicate request_size=4 [12:42:59]MH_SAM_APDU [12:42:59]CAPDU: 80 17 00 00 [12:42:59]Write to MH i2c: E2 08 00 F1 05 80 17 00 00 00 00 00 00 76 [12:42:59]Write i2c OK [12:42:59]MH_I2C_Read... [12:42:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:42:59]Read from MH i2c: E2 [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: E2 FD 00 [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: E2 FD 00 F1 05 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 E8 [12:43:00]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 [12:43:00]wFMCommunicate OK [12:43:00]wFMCommunicate request_size=4 [12:43:00]MH_SAM_APDU [12:43:00]CAPDU: 80 17 00 00 [12:43:00]Write to MH i2c: E2 08 00 F2 05 80 17 00 00 00 00 00 00 77 [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:43:00]Read from MH i2c: E2 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 CB 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 CB 00 F2 05 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 60 [12:43:00]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 [12:43:00]wFMCommunicate OK [12:43:00]SAM_PROTO_GetShiftData done [12:43:00]requested_item shift.sale.total_cash is exist - process it [12:43:00]requested_item shift.sale_refund.total is exist - process it [12:43:00]requested_item shift.sale_refund.total_cash is exist - process it [12:43:00]requested_item shift.buy.total is exist - process it [12:43:00]requested_item shift.buy.total_cash is exist - process it [12:43:00]produce_requested_data done [12:43:00]produce_requested_data return {"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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} [12:43:00]process_action_free get_value [12:43:00]json_value_free [12:43:00]json_value_free done [12:43:00]process_json_proto returns [12:43:00]Send response to host [12:43:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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}}} [12:43:00]free response buf [12:43:00]execute_script done [12:43:00]execute_script returns [12:43:00]free content buf [12:43:00]Sock 9.Close socket [12:43:00]Sock 9.Thread stoped [12:43:00]accept exits with 10 [12:43:00]New connection [12:43:00]New thread 3066727780 created [12:43:00]Thread 3066871140 joined [12:43:00]Waiting for new connection... [12:43:00] Sock 10.Parse request [12:43:00]Sock 10.Check first char [12:43:00]Sock 10.First char is OK [12:43:00]request: POST /json_proto HTTP/1.0 [12:43:00]Method: POST [12:43:00]URL: /json_proto [12:43:00]Method is POST - this is cgi request [12:43:00]url: /json_proto [12:43:00]query_string will be loaded in cgi processing [12:43:00]execute_cgi json_proto POST (null) [12:43:00]execute_cgi path=json_proto method=POST [12:43:00]POST find Content-Length [12:43:00]Host: 172.17.51.67:8080 [12:43:00]Content-Length: 331 [12:43:00]Content-Type: application/json [12:43:00] [12:43:00]POST finish read [12:43:00]Found Content-Length = 331 [12:43:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:43:00]execute_script... [12:43:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:43:00]POST & json_proto [12:43:00]process_json_proto [12:43:00]json parsed OK: [12:43:00]protocol is kg_v1.0 [12:43:00]action value=get_value [12:43:00]process_action get_value [12:43:00]cmd_get_value [12:43:00]process_action get_value done [12:43:00]requested_data is exist [12:43:00]produce_requested_data [12:43:00]requested_item fm.sale.total is exist - process it [12:43:00]SAM_PROTO_GetFMData [12:43:00]wFMCommunicate request_size=4 [12:43:00]MH_SAM_APDU [12:43:00]CAPDU: 80 13 03 00 [12:43:00]Write to MH i2c: E2 08 00 F3 05 80 13 03 00 00 00 00 00 77 [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:43:01]Read from MH i2c: E2 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 FD 00 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 FD 00 F3 05 00 C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 F7 [12:43:01]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [12:43:01]wFMCommunicate OK [12:43:01]wFMCommunicate request_size=4 [12:43:01]MH_SAM_APDU [12:43:01]CAPDU: 80 17 00 00 [12:43:01]Write to MH i2c: E2 08 00 F4 05 80 17 00 00 00 00 00 00 79 [12:43:01]OFD Sender: No OFD packet to send [12:43:01]Write i2c OK [12:43:01]MH_I2C_Read... [12:43:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:02]Read from MH i2c: E2 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 FD 00 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 FD 00 F4 05 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 34 [12:43:02]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:43:02]wFMCommunicate OK [12:43:02]wFMCommunicate request_size=4 [12:43:02]MH_SAM_APDU [12:43:02]CAPDU: 80 17 00 00 [12:43:02]Write to MH i2c: E2 08 00 F5 05 80 17 00 00 00 00 00 00 7A [12:43:02]Write i2c OK [12:43:02]MH_I2C_Read... [12:43:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:02]Read from MH i2c: E2 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 FD 00 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: E2 FD 00 F5 05 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 52 [12:43:02]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:43:03]wFMCommunicate OK [12:43:03]wFMCommunicate request_size=4 [12:43:03]MH_SAM_APDU [12:43:03]CAPDU: 80 17 00 00 [12:43:03]Write to MH i2c: E2 08 00 F6 05 80 17 00 00 00 00 00 00 7B [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:03]Read from MH i2c: E2 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 FD 00 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 FD 00 F6 05 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F6 [12:43:03]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:43:03]wFMCommunicate OK [12:43:03]wFMCommunicate request_size=4 [12:43:03]MH_SAM_APDU [12:43:03]CAPDU: 80 17 00 00 [12:43:03]Write to MH i2c: E2 08 00 F7 05 80 17 00 00 00 00 00 00 7C [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:43:04]Read from MH i2c: E2 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 E4 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 E4 00 F7 05 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5C [12:43:04]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:43:04]wFMCommunicate OK [12:43:04]SAM_PROTO_GetFMData done [12:43:04]requested_item fm.sale_refund.total is exist - process it [12:43:04]requested_item fm.buy.total is exist - process it [12:43:04]requested_item shift.sale.total is exist - process it [12:43:04]SAM_PROTO_GetShiftData [12:43:04]wFMCommunicate request_size=4 [12:43:04]MH_SAM_APDU [12:43:04]CAPDU: 80 13 02 00 [12:43:04]Write to MH i2c: E2 08 00 F8 05 80 13 02 00 00 00 00 00 7B [12:43:04]Write i2c OK [12:43:04]MH_I2C_Read... [12:43:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:43:04]Read from MH i2c: E2 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 FD 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 FD 00 F8 05 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 56 [12:43:05]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:43:05]wFMCommunicate OK [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 17 00 00 [12:43:05]Write to MH i2c: E2 08 00 F9 05 80 17 00 00 00 00 00 00 7E [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 FD 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 FD 00 F9 05 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 A0 [12:43:05]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 [12:43:06]wFMCommunicate OK [12:43:06]wFMCommunicate request_size=4 [12:43:06]MH_SAM_APDU [12:43:06]CAPDU: 80 17 00 00 [12:43:06]Write to MH i2c: E2 08 00 FA 05 80 17 00 00 00 00 00 00 7F [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:06]Read from MH i2c: E2 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: E2 FD 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: E2 FD 00 FA 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 36 [12:43:06]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 [12:43:06]wFMCommunicate OK [12:43:06]wFMCommunicate request_size=4 [12:43:06]MH_SAM_APDU [12:43:06]CAPDU: 80 17 00 00 [12:43:06]Write to MH i2c: E2 08 00 FB 05 80 17 00 00 00 00 00 00 80 [12:43:06]OFD Sender: No OFD packet to send [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:07]Read from MH i2c: E2 [12:43:07]MH_I2C_Read... [12:43:07]Read from MH i2c: E2 FD 00 [12:43:07]MH_I2C_Read... [12:43:07]Read from MH i2c: E2 FD 00 FB 05 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 F2 [12:43:07]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 [12:43:07]wFMCommunicate OK [12:43:07]wFMCommunicate request_size=4 [12:43:07]MH_SAM_APDU [12:43:07]CAPDU: 80 17 00 00 [12:43:07]Write to MH i2c: E2 08 00 FC 05 80 17 00 00 00 00 00 00 81 [12:43:07]Write i2c OK [12:43:07]MH_I2C_Read... [12:43:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:43:07]Read from MH i2c: E2 [12:43:07]MH_I2C_Read... [12:43:07]Read from MH i2c: E2 CB 00 [12:43:07]MH_I2C_Read... [12:43:07]Read from MH i2c: E2 CB 00 FC 05 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 6A [12:43:07]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 [12:43:08]wFMCommunicate OK [12:43:08]SAM_PROTO_GetShiftData done [12:43:08]requested_item shift.sale.total_cash is exist - process it [12:43:08]requested_item shift.sale_refund.total is exist - process it [12:43:08]requested_item shift.sale_refund.total_cash is exist - process it [12:43:08]requested_item shift.buy.total is exist - process it [12:43:08]requested_item shift.buy.total_cash is exist - process it [12:43:08]produce_requested_data done [12:43:08]produce_requested_data return {"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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} [12:43:08]process_action_free get_value [12:43:08]json_value_free [12:43:08]json_value_free done [12:43:08]process_json_proto returns [12:43:08]Send response to host [12:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84769012.79,"fm.sale_refund.total":636983.00,"fm.buy.total":0.00,"shift.sale.total":63240.68,"shift.sale.total_cash":43034.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}}} [12:43:08]free response buf [12:43:08]execute_script done [12:43:08]execute_script returns [12:43:08]free content buf [12:43:08]Sock 10.Close socket [12:43:08]Sock 10.Thread stoped [12:43:08]accept exits with 9 [12:43:08]New connection [12:43:08]New thread 3066871140 created [12:43:08]Thread 3066727780 joined [12:43:08]Waiting for new connection... [12:43:08] Sock 9.Parse request [12:43:08]Sock 9.Check first char [12:43:08]Sock 9.First char is OK [12:43:08]request: POST /json_proto HTTP/1.0 [12:43:08]Method: POST [12:43:08]URL: /json_proto [12:43:08]Method is POST - this is cgi request [12:43:08]url: /json_proto [12:43:08]query_string will be loaded in cgi processing [12:43:08]execute_cgi json_proto POST (null) [12:43:08]execute_cgi path=json_proto method=POST [12:43:08]POST find Content-Length [12:43:08]Host: 172.17.51.67:8080 [12:43:08]Content-Length: 260 [12:43:08]Content-Type: application/json [12:43:08] [12:43:08]POST finish read [12:43:08]Found Content-Length = 260 [12:43:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u043E\u043E\u0440\u043E\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:08]execute_script... [12:43:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u043E\u043E\u0440\u043E\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:08]POST & json_proto [12:43:08]process_json_proto [12:43:08]json parsed OK: [12:43:08]protocol is kg_v1.0 [12:43:08]action value=close_shift [12:43:08]process_action close_shift [12:43:08]cmd_close_shift [12:43:08]MH_GetDate [12:43:08]Write to MH i2c: F0 00 00 FD 05 F1 [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: F0 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: F0 09 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: F0 09 00 FD 05 00 5C EF 18 67 1E EF FA 64 2F [12:43:08]GetLastDocTimeStamp 1729687338 [12:43:08]current date 1729687388 [12:43:08]FM_GetShiftState [12:43:08]SAM_PROTO_GetShiftState [12:43:08]wFMCommunicate request_size=4 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 13 01 00 [12:43:08]Write to MH i2c: E2 08 00 FE 05 80 13 01 00 00 00 00 00 80 [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 0E 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 0E 00 FE 05 00 09 00 01 6D 41 18 67 00 00 00 00 90 00 B9 [12:43:08]RAPDU: 09 00 01 6D 41 18 67 00 00 00 00 90 00 [12:43:08]wFMCommunicate OK [12:43:08]SAM_PROTO_GetShiftState done [12:43:08]FM_GetShiftState done [12:43:08]KKMCreateCloseShiftDocument [12:43:08]Load OK [12:43:08]Malloc new data [12:43:08]MH_GetDate [12:43:08]Write to MH i2c: F0 00 00 FF 05 F3 [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: F0 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: F0 09 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: F0 09 00 FF 05 00 5C EF 18 67 1E EF FA 64 31 [12:43:08]Malloc new data [12:43:08]Malloc new data [12:43:08]Malloc new data [12:43:08]Malloc new data [12:43:08]KKMCreateCloseShiftDocument OK [12:43:08]KKMSetCloseShiftData OK [12:43:08]ProcessDocumentItem done err = 0, tmpTLVsize=71 [12:43:08]tlvbuf is 01C2D510 [12:43:08]KKMLoadAndSignCloseShiftData [12:43:08]SAM_PROTO_ProcessDocument [12:43:08]wFMCommunicate request_size=9 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 15 01 00 04 05 00 47 00 [12:43:08]Write to MH i2c: E2 0C 00 00 06 80 15 01 00 04 00 05 00 47 00 00 00 D9 [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 03 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [12:43:08]RAPDU: 90 00 [12:43:08]wFMCommunicate OK [12:43:08]wFMCommunicate request_size=23 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [12:43:08]Write to MH i2c: E2 1A 00 01 06 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 7C [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 03 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [12:43:08]RAPDU: 90 00 [12:43:08]wFMCommunicate OK [12:43:08]wFMCommunicate request_size=30 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 94 D0 BE D0 BE D1 80 D0 BE D0 BD D0 BE D0 B2 20 D0 9C 2E 20 [12:43:08]Write to MH i2c: E2 21 00 02 06 80 15 02 00 19 00 FD 03 15 00 D0 94 D0 BE D0 BE D1 80 D0 BE D0 BD D0 BE D0 B2 20 D0 9C 2E 20 00 00 A5 [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 03 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [12:43:08]RAPDU: 90 00 [12:43:08]wFMCommunicate OK [12:43:08]wFMCommunicate request_size=13 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 15 02 00 08 F4 03 04 00 5C EF 18 67 [12:43:08]Write to MH i2c: E2 10 00 03 06 80 15 02 00 08 00 F4 03 04 00 5C EF 18 67 00 00 5E [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 03 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [12:43:08]RAPDU: 90 00 [12:43:08]wFMCommunicate OK [12:43:08]wFMCommunicate request_size=25 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 [12:43:08]Write to MH i2c: E2 1C 00 04 06 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 00 00 ED [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 03 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [12:43:08]RAPDU: 90 00 [12:43:08]wFMCommunicate OK [12:43:08]wFMCommunicate request_size=4 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 15 03 00 [12:43:09]Write to MH i2c: E2 08 00 05 06 80 15 03 00 00 00 00 00 8C [12:43:09]Write i2c OK [12:43:09]MH_I2C_Read... [12:43:09]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [12:43:09]Read from MH i2c: E2 [12:43:09]MH_I2C_Read... [12:43:09]Read from MH i2c: E2 FD 00 [12:43:09]MH_I2C_Read... [12:43:09]Read from MH i2c: E2 FD 00 05 06 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 31 31 10 04 04 00 FB 94 01 00 0E 04 04 00 46 02 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 58 00 00 00 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 86 [12:43:09]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 31 31 10 04 04 00 FB 94 01 00 0E 04 04 00 46 02 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 58 00 00 00 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:43:09]wFMCommunicate OK [12:43:09]SAM_PROTO_ProcessDocument answer len = 1265 [12:43:09]SAM_PROTO_ProcessDocument remain to read = 1017 [12:43:09]wFMCommunicate request_size=4 [12:43:09]MH_SAM_APDU [12:43:09]CAPDU: 80 17 00 00 [12:43:09]Write to MH i2c: E2 08 00 06 06 80 17 00 00 00 00 00 00 8C [12:43:09]Write i2c OK [12:43:09]MH_I2C_Read... [12:43:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:10]Read from MH i2c: E2 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: E2 FD 00 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: E2 FD 00 06 06 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D5 [12:43:10]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 [12:43:10]wFMCommunicate OK [12:43:10]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [12:43:10]SAM_PROTO_ProcessDocument remain to read = 767 [12:43:10]wFMCommunicate request_size=4 [12:43:10]MH_SAM_APDU [12:43:10]CAPDU: 80 17 00 00 [12:43:10]Write to MH i2c: E2 08 00 07 06 80 17 00 00 00 00 00 00 8D [12:43:10]Write i2c OK [12:43:10]MH_I2C_Read... [12:43:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:10]Read from MH i2c: E2 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: E2 FD 00 [12:43:10]MH_I2C_Read... [12:43:10]Read from MH i2c: E2 FD 00 07 06 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 EF [12:43:11]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 [12:43:11]wFMCommunicate OK [12:43:11]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [12:43:11]SAM_PROTO_ProcessDocument remain to read = 517 [12:43:11]wFMCommunicate request_size=4 [12:43:11]MH_SAM_APDU [12:43:11]CAPDU: 80 17 00 00 [12:43:11]Write to MH i2c: E2 08 00 08 06 80 17 00 00 00 00 00 00 8E [12:43:11]Write i2c OK [12:43:11]MH_I2C_Read... [12:43:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:11]Read from MH i2c: E2 [12:43:11]MH_I2C_Read... [12:43:11]Read from MH i2c: E2 FD 00 [12:43:11]MH_I2C_Read... [12:43:11]Read from MH i2c: E2 FD 00 08 06 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 OFD Sender: No OFD packet to send [12:43:11]04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 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 18 [12:43:12]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 [12:43:12]wFMCommunicate OK [12:43:12]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [12:43:12]SAM_PROTO_ProcessDocument remain to read = 267 [12:43:12]wFMCommunicate request_size=4 [12:43:12]MH_SAM_APDU [12:43:12]CAPDU: 80 17 00 00 [12:43:12]Write to MH i2c: E2 08 00 09 06 80 17 00 00 00 00 00 00 8F [12:43:12]Write i2c OK [12:43:12]MH_I2C_Read... [12:43:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:12]Read from MH i2c: E2 [12:43:12]MH_I2C_Read... [12:43:12]Read from MH i2c: E2 FD 00 [12:43:12]MH_I2C_Read... [12:43:12]Read from MH i2c: E2 FD 00 09 06 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 57 [12:43:12]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 [12:43:13]wFMCommunicate OK [12:43:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [12:43:13]SAM_PROTO_ProcessDocument remain to read = 17 [12:43:13]wFMCommunicate request_size=4 [12:43:13]MH_SAM_APDU [12:43:13]CAPDU: 80 17 00 00 [12:43:13]Write to MH i2c: E2 08 00 0A 06 80 17 00 00 00 00 00 00 90 [12:43:13]Write i2c OK [12:43:13]MH_I2C_Read... [12:43:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [12:43:13]Read from MH i2c: E2 [12:43:13]MH_I2C_Read... [12:43:13]Read from MH i2c: E2 14 00 [12:43:13]MH_I2C_Read... [12:43:13]Read from MH i2c: E2 14 00 0A 06 00 01 00 06 F7 03 00 00 35 04 06 00 3D 51 63 FC 77 7C 90 00 B5 [12:43:13]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 3D 51 63 FC 77 7C 90 00 [12:43:13]wFMCommunicate OK [12:43:13]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [12:43:13]SAM_PROTO_ProcessDocument done [12:43:13]1209 (1) - 1.0 - номер версии ФФД [12:43:13]1041 (16) - 0000000000871811 - номер ФМ [12:43:13]1040 (4) - 103675 - номер ФД [12:43:13]1038 (4) - 582 - номер смены [12:43:13]1118 (4) - 86 - количество кассовых чеков за смену [12:43:13]1111 (4) - 88 - общее количество ФД за смену [12:43:13]1194 (1194) - счетчики итогов смены [12:43:13] 1134 (4) - 86 - количество чеков со всеми признаками расчетов [12:43:13] 1129 (155) - счетчики операций «приход» [12:43:13] 1135 (4) - 86 - количество чеков по признаку расчетов [12:43:13] 1201 (3) - 63240.68 - общая итоговая сумма в чеках [12:43:13] 1136 (3) - 43034.00 - итоговая сумма в чеках наличными [12:43:13] 1138 (3) - 20206.68 - итоговая сумма в чеках безналичными [12:43:13] 1024 (122) - суммы налогов [12:43:13] 1006 (9) - суммы НДС [12:43:13] 1010 (1) - 0% - код ставки НДС [12:43:13] 1011 (0) - 0.00 - сумма НДС по ставке [12:43:13] 1006 (12) - суммы НДС [12:43:13] 1010 (1) - 12% - код ставки НДС [12:43:13] 1011 (3) - 6717.68 - сумма НДС по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 0% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (11) - суммы НСП [12:43:13] 1014 (1) - 1% - код ставки НСП [12:43:13] 1015 (2) - 559.81 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 2% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 3% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 5% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 0,50% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 1,50% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1130 (141) - счетчики операций «возврат прихода» [12:43:13] 1135 (4) - 0 - количество чеков по признаку расчетов [12:43:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:43:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:43:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:43:13] 1024 (117) - суммы налогов [12:43:13] 1006 (9) - суммы НДС [12:43:13] 1010 (1) - 0% - код ставки НДС [12:43:13] 1011 (0) - 0.00 - сумма НДС по ставке [12:43:13] 1006 (9) - суммы НДС [12:43:13] 1010 (1) - 12% - код ставки НДС [12:43:13] 1011 (0) - 0.00 - сумма НДС по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 0% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 1% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 2% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 3% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 5% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 0,50% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 1,50% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1131 (141) - счетчики операций «расход» [12:43:13] 1135 (4) - 0 - количество чеков по признаку расчетов [12:43:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:43:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:43:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:43:13] 1024 (117) - суммы налогов [12:43:13] 1006 (9) - суммы НДС [12:43:13] 1010 (1) - 0% - код ставки НДС [12:43:13] 1011 (0) - 0.00 - сумма НДС по ставке [12:43:13] 1006 (9) - суммы НДС [12:43:13] 1010 (1) - 12% - код ставки НДС [12:43:13] 1011 (0) - 0.00 - сумма НДС по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 0% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 1% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 2% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 3% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 5% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 0,50% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 1,50% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1132 (141) - счетчики операций «возврат расхода» [12:43:13] 1135 (4) - 0 - количество чеков по признаку расчетов [12:43:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:43:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:43:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:43:13] 1024 (117) - суммы налогов [12:43:13] 1006 (9) - суммы НДС [12:43:13] 1010 (1) - 0% - код ставки НДС [12:43:13] 1011 (0) - 0.00 - сумма НДС по ставке [12:43:13] 1006 (9) - суммы НДС [12:43:13] 1010 (1) - 12% - код ставки НДС [12:43:13] 1011 (0) - 0.00 - сумма НДС по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 0% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 1% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 2% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 3% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 5% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 0,50% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1007 (9) - суммы НСП [12:43:13] 1014 (1) - 1,50% - код ставки НСП [12:43:13] 1015 (0) - 0.00 - сумма НСП по ставке [12:43:13] 1133 (588) - - счетчики коррекции - не используются [12:43:13]1077 (6) - 67419779135356 - ФПД [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1209 (04B9) [12:43:13]Malloc new data [12:43:13]Processing tag 1041 (0411) [12:43:13]Processing tag 1040 (0410) [12:43:13]Malloc new data [12:43:13]Processing tag 1038 (040E) [12:43:13]Malloc new data [12:43:13]Processing tag 1118 (045E) [12:43:13]Malloc new data [12:43:13]Processing tag 1111 (0457) [12:43:13]Malloc new data [12:43:13]Processing tag 1194 (04AA) [12:43:13]Load OK [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1134 (046E) [12:43:13]Malloc new data [12:43:13]Processing tag 1129 (0469) [12:43:13]Load OK [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1135 (046F) [12:43:13]Malloc new data [12:43:13]Processing tag 1201 (04B1) [12:43:13]Malloc new data [12:43:13]Processing tag 1136 (0470) [12:43:13]Malloc new data [12:43:13]Processing tag 1138 (0472) [12:43:13]Malloc new data [12:43:13]Processing tag 1024 (0400) [12:43:13]Load OK [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1006 (03EE) [12:43:13]Load OK [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1010 (03F2) [12:43:13]Malloc new data [12:43:13]Processing tag 1011 (03F3) [12:43:13]Malloc new data [12:43:13]SetTLVBufToDocument err=0 [12:43:13]Processing tag 1006 (03EE) [12:43:13]Load OK [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1010 (03F2) [12:43:13]Malloc new data [12:43:13]Processing tag 1011 (03F3) [12:43:13]Malloc new data [12:43:13]SetTLVBufToDocument err=0 [12:43:13]Processing tag 1007 (03EF) [12:43:13]Load OK [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1014 (03F6) [12:43:13]Malloc new data [12:43:13]Processing tag 1015 (03F7) [12:43:13]Malloc new data [12:43:13]SetTLVBufToDocument err=0 [12:43:13]Processing tag 1007 (03EF) [12:43:13]Load OK [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1014 (03F6) [12:43:13]Malloc new data [12:43:13]Processing tag 1015 (03F7) [12:43:13]Malloc new data [12:43:13]SetTLVBufToDocument err=0 [12:43:13]Processing tag 1007 (03EF) [12:43:13]Load OK [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1014 (03F6) [12:43:13]Malloc new data [12:43:13]Processing tag 1015 (03F7) [12:43:13]Malloc new data [12:43:13]SetTLVBufToDocument err=0 [12:43:13]Processing tag 1007 (03EF) [12:43:13]Load OK [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1014 (03F6) [12:43:13]Malloc new data [12:43:13]Processing tag 1015 (03F7) [12:43:13]Malloc new data [12:43:13]SetTLVBufToDocument err=0 [12:43:13]Processing tag 1007 (03EF) [12:43:13]Load OK [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1014 (03F6) [12:43:13]Malloc new data [12:43:13]Processing tag 1015 (03F7) [12:43:13]Malloc new data [12:43:13]SetTLVBufToDocument err=0 [12:43:13]Processing tag 1007 (03EF) [12:43:13]Load OK [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1014 (03F6) [12:43:13]Malloc new data [12:43:13]Processing tag 1015 (03F7) [12:43:13]Malloc new data [12:43:13]SetTLVBufToDocument err=0 [12:43:13]Processing tag 1007 (03EF) [12:43:13]Load OK [12:43:13]SetTLVBufToDocument [12:43:13]Processing tag 1014 (03F6) [12:43:13]Malloc new data [12:43:13]Processing tag 1015 (03F7) [12:43:13]Malloc new data [12:43:13]SetTLVBufToDocument err=0 [12:43:13]SetTLVBufToDocument err=0 [12:43:13]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1130 (046A) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1135 (046F) [12:43:14]Malloc new data [12:43:14]Processing tag 1201 (04B1) [12:43:14]Malloc new data [12:43:14]Processing tag 1136 (0470) [12:43:14]Malloc new data [12:43:14]Processing tag 1138 (0472) [12:43:14]Malloc new data [12:43:14]Processing tag 1024 (0400) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1006 (03EE) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1010 (03F2) [12:43:14]Malloc new data [12:43:14]Processing tag 1011 (03F3) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1006 (03EE) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1010 (03F2) [12:43:14]Malloc new data [12:43:14]Processing tag 1011 (03F3) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]SetTLVBufToDocument err=0 [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1131 (046B) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1135 (046F) [12:43:14]Malloc new data [12:43:14]Processing tag 1201 (04B1) [12:43:14]Malloc new data [12:43:14]Processing tag 1136 (0470) [12:43:14]Malloc new data [12:43:14]Processing tag 1138 (0472) [12:43:14]Malloc new data [12:43:14]Processing tag 1024 (0400) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1006 (03EE) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1010 (03F2) [12:43:14]Malloc new data [12:43:14]Processing tag 1011 (03F3) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1006 (03EE) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1010 (03F2) [12:43:14]Malloc new data [12:43:14]Processing tag 1011 (03F3) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]SetTLVBufToDocument err=0 [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1132 (046C) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1135 (046F) [12:43:14]Malloc new data [12:43:14]Processing tag 1201 (04B1) [12:43:14]Malloc new data [12:43:14]Processing tag 1136 (0470) [12:43:14]Malloc new data [12:43:14]Processing tag 1138 (0472) [12:43:14]Malloc new data [12:43:14]Processing tag 1024 (0400) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1006 (03EE) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1010 (03F2) [12:43:14]Malloc new data [12:43:14]Processing tag 1011 (03F3) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1006 (03EE) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1010 (03F2) [12:43:14]Malloc new data [12:43:14]Processing tag 1011 (03F3) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1007 (03EF) [12:43:14]Load OK [12:43:14]SetTLVBufToDocument [12:43:14]Processing tag 1014 (03F6) [12:43:14]Malloc new data [12:43:14]Processing tag 1015 (03F7) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]SetTLVBufToDocument err=0 [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1133 (046D) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Processing tag 1077 (0435) [12:43:14]Malloc new data [12:43:14]SetTLVBufToDocument err=0 [12:43:14]Malloc new data [12:43:14]SAM_PROTO_GetFMData [12:43:14]wFMCommunicate request_size=4 [12:43:14]MH_SAM_APDU [12:43:14]CAPDU: 80 13 03 00 [12:43:14]Write to MH i2c: E2 08 00 0B 06 80 13 03 00 00 00 00 00 90 [12:43:14]Write i2c OK [12:43:14]MH_I2C_Read... [12:43:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:43:14]Read from MH i2c: E2 [12:43:14]MH_I2C_Read... [12:43:14]Read from MH i2c: E2 FD 00 [12:43:14]MH_I2C_Read... [12:43:14]Read from MH i2c: E2 FD 00 0B 06 00 C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 10 [12:43:15]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6E 90 01 00 69 04 A3 00 6F 04 04 00 02 90 01 00 B1 04 05 00 9F 3F 43 F9 01 70 04 05 00 94 EA 6F 8D 01 72 04 04 00 0B 55 D3 6B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 90 0F AC 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3A EE 78 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 7C F5 CB 03 70 04 04 00 FC DA C5 03 72 04 03 00 80 1A 06 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 38 67 EF 90 00 [12:43:15]wFMCommunicate OK [12:43:15]wFMCommunicate request_size=4 [12:43:15]MH_SAM_APDU [12:43:15]CAPDU: 80 17 00 00 [12:43:15]Write to MH i2c: E2 08 00 0C 06 80 17 00 00 00 00 00 00 92 [12:43:15]Write i2c OK [12:43:15]MH_I2C_Read... [12:43:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:15]Read from MH i2c: E2 [12:43:15]MH_I2C_Read... [12:43:15]Read from MH i2c: E2 FD 00 [12:43:15]MH_I2C_Read... [12:43:15]Read from MH i2c: E2 FD 00 0C 06 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4D [12:43:15]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0C 9A 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:43:16]wFMCommunicate OK [12:43:16]wFMCommunicate request_size=4 [12:43:16]MH_SAM_APDU [12:43:16]CAPDU: 80 17 00 00 [12:43:16]Write to MH i2c: E2 08 00 0D 06 80 17 00 00 00 00 00 00 93 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:16]Read from MH i2c: E2 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 FD 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 FD 00 0D 06 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [12:43:16]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:43:17]wFMCommunicate OK [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 17 00 00 [12:43:17]Write to MH i2c: OFD Sender: No OFD packet to send [12:43:17]E2 08 00 0E 06 80 17 00 00 00 00 00 00 94 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:43:17]Read from MH i2c: E2 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 FD 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 FD 00 0E 06 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0F [12:43:17]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:43:17]wFMCommunicate OK [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 17 00 00 [12:43:17]Write to MH i2c: E2 08 00 0F 06 80 17 00 00 00 00 00 00 95 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 E4 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 E4 00 0F 06 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:43:18]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:43:18]wFMCommunicate OK [12:43:18]SAM_PROTO_GetFMData done [12:43:18]Malloc new data [12:43:18]Malloc new data [12:43:18]Malloc new data [12:43:18]Malloc new data [12:43:18]KKMLoadAndSignCloseShiftData err=0 [12:43:18]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Дооронов М. 23.10.2024 12:43 Смена: 582 РНМ: 0000000000091754 ЗНМ: 0300000095 СНО: Общий режим Чеков за смену: 86 ФД за смену: 88 Всего чеков: 86 ИТОГИ ПРИХОД Чеков: 86 Общий итог: 63240.68 Итого наличными: 43034.00 Итого безнал.: 20206.68 НДС 0% : 0.00 НДС 12% : 6717.68 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 559.81 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 43034.00 НС Приход: 84769012.79 НС Возвр.Прихода: 636983.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 103675 ФМ: 0000000000871811 ФПД: 67419779135356 [12:43:18]StoreToDocumentArchive [12:43:18]shift 582 fd 103675 [12:43:18]save to /storage/0582/doc_00103675 [12:43:18]save last doc name /storage/0582/doc_00103675 to /storage/kkm_last_doc_name [12:43:18]save OK [12:43:18]Clear old archive folders... [12:43:18]Remove dir /storage/0522 [12:43:18]opendir ok [12:43:18]file . [12:43:18]file .. [12:43:18]file doc_1729686428 [12:43:18]remove file /storage/0522/doc_1729686428 [12:43:18]file doc_1729686707 [12:43:18]remove file /storage/0522/doc_1729686707 [12:43:18]file doc_1729687347 [12:43:18]remove file /storage/0522/doc_1729687347 [12:43:18]remove dir /storage/0522 [12:43:18]NVStorageSaveData kkm_registers [12:43:18]File name is /storage/kkm_registers [12:43:18]Write 24 bytes [12:43:18]NVStorageSaveData done [12:43:18]NVStorageSaveData kkm_registers [12:43:18]File name is /storage/kkm_registers [12:43:18]Write 24 bytes [12:43:18]NVStorageSaveData done [12:43:18]ProcessDocumentItem done err = 0, tmpTLVsize=1379 [12:43:18]tlvbuf is 01D8D120 [12:43:18]SAM_PROTO_ClearQueue [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 09 00 00 [12:43:18]Write to MH i2c: E2 08 00 10 06 80 09 00 00 00 00 00 00 88 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 10 06 00 90 00 8A [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]SAM_PROTO_ClearQueue done [12:43:18]KKMCreateOFDPacket [12:43:18]OFDProtocolAddRootSTLVToBuf [12:43:18]FM_MakeSignedData [12:43:18]FM_MakeSignedData [12:43:18]SAM_PROTO_SignData [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 0D 01 02 [12:43:18]Write to MH i2c: E2 08 00 11 06 80 0D 01 02 00 00 00 00 90 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 11 06 00 90 00 8B [12:43:18]RAPDU: 90 00 [12:43:19]wFMCommunicate OK [12:43:19]wFMCommunicate request_size=255 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 0D 02 02 FA 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 94 D0 BE D0 BE D1 80 D0 BE D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 5C EF 18 67 0E 04 04 00 46 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 5E 04 04 00 56 00 00 00 57 04 04 00 58 00 00 00 AA 04 D5 04 6E 04 04 00 56 00 00 00 69 04 A2 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 [12:43:19]Write to MH i2c: E2 02 01 12 06 80 0D 02 02 FA 00 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 94 D0 BE D0 BE D1 80 D0 BE D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 5C EF 18 67 0E 04 04 00 46 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 5E 04 04 00 56 00 00 00 57 04 04 00 58 00 00 00 AA 04 D5 04 6E 04 04 00 56 00 00 00 69 04 A2 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 00 00 1E [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 12 06 00 90 00 8C [12:43:19]RAPDU: 90 00 [12:43:19]wFMCommunicate OK [12:43:19]wFMCommunicate request_size=255 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AD DA 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 recv_with_timeout no data received [12:43:20]EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 [12:43:20]Write to MH i2c: E2 02 01 13 06 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AD DA 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 00 00 7C [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 03 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 03 00 13 06 00 90 00 8D [12:43:20]RAPDU: 90 00 [12:43:20]wFMCommunicate OK [12:43:20]wFMCommunicate request_size=255 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 0D 02 02 FA 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 [12:43:21]Write to MH i2c: E2 02 01 14 06 80 0D 02 02 FA 00 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 00 00 63 [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:21]Read from MH i2c: E2 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 03 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 03 00 14 06 00 90 00 8E [12:43:21]RAPDU: 90 00 [12:43:21]wFMCommunicate OK [12:43:21]wFMCommunicate request_size=255 [12:43:21]MH_SAM_APDU [12:43:21]CAPDU: 80 0D 02 02 FA 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 [12:43:22]Write to MH i2c: E2 02 01 15 06 80 0D 02 02 FA 00 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 OFD Sender: No OFD packet to send [12:43:22]F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 00 00 58 [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 [12:43:22]MH_I2C_Read... [12:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:22]Read from MH i2c: E2 03 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [12:43:22]RAPDU: 90 00 [12:43:22]wFMCommunicate OK [12:43:22]wFMCommunicate request_size=255 [12:43:22]MH_SAM_APDU [12:43:22]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 [12:43:23]Write to MH i2c: E2 02 01 16 06 80 0D 02 02 FA 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 00 00 29 [12:43:23]Write i2c OK [12:43:23]MH_I2C_Read... [12:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:23]Read from MH i2c: E2 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 03 00 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 03 00 16 06 00 90 00 90 [12:43:23]RAPDU: 90 00 [12:43:23]wFMCommunicate OK [12:43:23]wFMCommunicate request_size=138 [12:43:23]MH_SAM_APDU [12:43:23]CAPDU: 80 0D 02 02 85 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 FB 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 35 04 06 00 3D 51 63 FC 77 7C [12:43:23]Write to MH i2c: E2 8D 00 17 06 80 0D 02 02 85 00 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 FB 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 35 04 06 00 3D 51 63 FC 77 7C 00 00 3B [12:43:24]Write i2c OK [12:43:24]MH_I2C_Read... [12:43:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:24]Read from MH i2c: E2 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: E2 03 00 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: E2 03 00 17 06 00 90 00 91 [12:43:24]RAPDU: 90 00 [12:43:24]wFMCommunicate OK [12:43:24]wFMCommunicate request_size=4 [12:43:24]MH_SAM_APDU [12:43:24]CAPDU: 80 0D 03 02 [12:43:24]Write to MH i2c: E2 08 00 18 06 80 0D 03 02 00 00 00 00 99 [12:43:24]Write i2c OK [12:43:24]MH_I2C_Read... [12:43:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:24]Read from MH i2c: E2 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: E2 0B 00 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: E2 0B 00 18 06 00 2D ED 0A 1D DA 4D 6E FD 90 00 6D [12:43:24]RAPDU: 2D ED 0A 1D DA 4D 6E FD 90 00 [12:43:24]wFMCommunicate OK [12:43:24]SAM_PROTO_SignData done [12:43:24]FM_MakeSignedData done [12:43:24]CreateOFDProtocolMessage [12:43:24]wFMCommunicate request_size=4 [12:43:24]MH_SAM_APDU [12:43:24]CAPDU: 80 11 00 00 [12:43:24]Write to MH i2c: E2 08 00 19 06 80 11 00 00 00 00 00 00 99 [12:43:24]Write i2c OK [12:43:24]MH_I2C_Read... [12:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:24]Read from MH i2c: E2 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: E2 17 00 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: E2 17 00 19 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 E6 [12:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 90 00 [12:43:24]wFMCommunicate OK [12:43:24]CreateOFDProtocolMessage done [12:43:24]OFDSenderStorePacket 103675 [12:43:24]StoreOFDPacket docnum=103675 [12:43:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 77 05 00 00 69 75 6F 05 E8 D3 5A 05 01 00 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 94 D0 BE D0 BE D1 80 D0 BE D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 5C EF 18 67 0E 04 04 00 46 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 5E 04 04 00 56 00 00 00 57 04 04 00 58 00 00 00 AA 04 D5 04 6E 04 04 00 56 00 00 00 69 04 A2 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA 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 FB 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 35 04 06 00 3D 51 63 FC 77 7C 2D ED 0A 1D DA 4D 6E FD [12:43:24]CheckFolder [12:43:24]dirname=/storage/ofd_packets [12:43:24]CheckFolder done [12:43:24]ProducePacketName [12:43:24]name=ofd_packets/00103675 [12:43:24]NVStorageSaveData ofd_packets/00103675 [12:43:24]File name is /storage/ofd_packets/00103675 [12:43:24]Write 1429 bytes [12:43:24]NVStorageSaveData done [12:43:24]OFDSenderStorePacket done [12:43:24]KKMCreateOFDPacket done [12:43:24]NVStorageSaveData kkm_last_timestamp [12:43:24]File name is /storage/kkm_last_timestamp [12:43:24]Write 4 bytes [12:43:24]NVStorageSaveData done [12:43:24]ExternCall_PrintAddStr [12:43:24]wPrintStart [12:43:24]Write to MH i2c: 01 00 00 1A 06 20 [12:43:24]Write i2c OK [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: 01 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: 01 07 00 [12:43:24]MH_I2C_Read... [12:43:24]Read from MH i2c: 01 07 00 1A 06 00 00 00 00 00 FF 0F 35 [12:43:24]RasterBufferAndPrint [12:43:24]line Отчет о закрытии смены [12:43:24]line ФФД: 1.0 [12:43:24]line ИНН: 02508201610067 [12:43:24]line Кассир: Дооронов М. [12:43:24]line 23.10.2024 12:43 [12:43:24]line Смена: 582 [12:43:24]line РНМ: 0000000000091754 [12:43:24]line ЗНМ: 0300000095 [12:43:24]line СНО: Общий режим [12:43:24]line Чеков за смену: 86 [12:43:24]line ФД за смену: 88 [12:43:24]line Всего чеков: 86 [12:43:24]line ИТОГИ ПРИХОД [12:43:24]line Чеков: 86 [12:43:24]line Общий итог: 63240.68 [12:43:24]line Итого наличными: 43034.00 [12:43:24]line Итого безнал.: 20206.68 [12:43:24]line НДС 0% : 0.00 [12:43:24]line НДС 12% : 6717.68 [12:43:24]line НСП 0% : 0.00 [12:43:24]line НСП 1,50% : 0.00 [12:43:24]line НСП 0,50% : 0.00 [12:43:24]line НСП 5% : 0.00 [12:43:24]line НСП 3% : 0.00 [12:43:24]line НСП 2% : 0.00 [12:43:24]line НСП 1% : 559.81 [12:43:24]line ИТОГИ ВОЗВРАТ ПРИХОДА [12:43:24]line Чеков: 0 [12:43:24]line Общий итог: 0.00 [12:43:24]line Итого наличными: 0.00 [12:43:24]line Итого безнал.: 0.00 [12:43:24]line НДС 0% : 0.00 [12:43:24]line НДС 12% : 0.00 [12:43:24]line НСП 0% : 0.00 [12:43:24]line НСП 1,50% : 0.00 [12:43:24]line НСП 0,50% : 0.00 [12:43:24]line НСП 5% : 0.00 [12:43:24]line НСП 3% : 0.00 [12:43:24]line НСП 2% : 0.00 [12:43:25]line НСП 1% : 0.00 [12:43:25]line ИТОГИ РАСХОД [12:43:25]line Чеков: 0 [12:43:25]line Общий итог: 0.00 [12:43:25]line Итого наличными: 0.00 [12:43:25]line Итого безнал.: 0.00 [12:43:25]line НДС 0% : 0.00 [12:43:25]line НДС 12% : 0.00 [12:43:25]line НСП 0% : 0.00 [12:43:25]line НСП 1,50% : 0.00 [12:43:25]line НСП 0,50% : 0.00 [12:43:25]line НСП 5% : 0.00 [12:43:25]line НСП 3% : 0.00 [12:43:25]line НСП 2% : 0.00 [12:43:25]line НСП 1% : 0.00 [12:43:25]line ИТОГИ ВОЗВРАТ РАСХОДА [12:43:25]line Чеков: 0 [12:43:25]line Общий итог: 0.00 [12:43:25]line Итого наличными: 0.00 [12:43:25]line Итого безнал.: 0.00 [12:43:25]line НДС 0% : 0.00 [12:43:25]line НДС 12% : 0.00 [12:43:25]OFD Sender: Processing packet 103675 [packets to send 498, broken 497] [12:43:25]line НСП 0% : 0.00 [12:43:25]ProducePacketName [12:43:25]line НСП 1,50% : 0.00 [12:43:25]name=ofd_packets/00103675 [12:43:25]line НСП 0,50% : 0.00 [12:43:25]OFD Sender: To server: pG, [12:43:25]line НСП 5% : 0.00 [12:43:25]CommunicateWithHost lk.salyk.kg:30040 [12:43:25]line НСП 3% : 0.00 [12:43:25]ConnectInit lk.salyk.kg [12:43:25]line НСП 2% : 0.00 [12:43:25]line НСП 1% : 0.00 [12:43:25]line Сумма внесений: 0.00 [12:43:25]line Сумма выплат: 0.00 [12:43:25]line Нал. в кассе: 43034.00 [12:43:25]line НС Приход: 84769012.79 [12:43:25]line НС Возвр.Прихода: 636983.00 [12:43:25]line НС Расход: 0.00 [12:43:25]line НС Возвр.Расхода: 0.00 [12:43:25]line ФД: 103675 [12:43:25]line ФМ: 0000000000871811 [12:43:25]line ФПД: 67419779135356 [12:43:25]written 0, free lines is 4095 [12:43:25]Write to MH i2c: 01 00 00 6A 06 70 [12:43:25]Write i2c OK [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: 01 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: 01 07 00 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: 01 07 00 6A 06 00 00 00 00 00 56 0A D7 [12:43:25]RasterBufferAndPrint [12:43:25]line [12:43:25]line [12:43:25]line [12:43:25]line [12:43:25]line [12:43:25]written 0, free lines is 2707 [12:43:25]MH_Cut [12:43:25]Write to MH i2c: D1 01 00 71 06 01 49 [12:43:25]Write i2c OK [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: D1 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: D1 01 00 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: D1 01 00 71 06 00 48 [12:43:26]Write to MH i2c: 01 00 00 72 06 78 [12:43:26]Write i2c OK [12:43:26]MH_I2C_Read... [12:43:27]*** Cut start [12:43:27]*** Partial cut [12:43:27]*** CUTSNS_PIN = 1 [12:43:27]*** CUTSNS_PIN = 0 [12:43:27]*** Brake cut motor [12:43:27]Read from MH i2c: 01 [12:43:27]MH_I2C_Read... [12:43:27]*** Stop cut motor [12:43:27]*** Cut end [12:43:27]Read from MH i2c: 01 07 00 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [12:43:27]process_action close_shift done [12:43:27]requested_data is exist [12:43:27]produce_requested_data [12:43:27]requested_item fd.num is exist - process it [12:43:27]SAM_PROTO_GetFieldsCounters [12:43:27]wFMCommunicate request_size=4 [12:43:27]MH_SAM_APDU [12:43:27]CAPDU: 80 13 00 00 [12:43:27]Write to MH i2c: E2 08 00 73 06 80 13 00 00 00 00 00 00 F5 [12:43:27]Write i2c OK [12:43:27]MH_I2C_Read... [12:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:27]Read from MH i2c: E2 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 62 00 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 62 00 73 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FB 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [12:43: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 10 04 04 00 FB 94 01 00 0E 04 04 00 46 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:28]wFMCommunicate OK [12:43:28]SAM_PROTO_GetFieldsCounters done [12:43:28]requested_item shift.num is exist - process it [12:43:28]requested_item shift.opened is exist - process it [12:43:28]req_shift_opened [12:43:28]FM_GetShiftState [12:43:28]SAM_PROTO_GetShiftState [12:43:28]wFMCommunicate request_size=4 [12:43:28]MH_SAM_APDU [12:43:28]CAPDU: 80 13 01 00 [12:43:28]Write to MH i2c: E2 08 00 74 06 80 13 01 00 00 00 00 00 F7 [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:28]Read from MH i2c: E2 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 0E 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 0E 00 74 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 02 [12:43:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [12:43:28]wFMCommunicate OK [12:43:28]SAM_PROTO_GetShiftState done [12:43:28]FM_GetShiftState done [12:43:28]req_shift_opened done [12:43:28]requested_item shift.open_date is exist - process it [12:43:28]req_shift_open_date [12:43:28]FM_GetShiftState [12:43:28]SAM_PROTO_GetShiftState [12:43:28]wFMCommunicate request_size=4 [12:43:28]MH_SAM_APDU [12:43:28]CAPDU: 80 13 01 00 [12:43:28]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:28]Read from MH i2c: E2 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 0E 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 0E 00 75 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 03 [12:43:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [12:43:28]wFMCommunicate OK [12:43:28]SAM_PROTO_GetShiftState done [12:43:28]FM_GetShiftState done [12:43:28]req_shift_open_date done [12:43:28]produce_requested_data done [12:43:28]produce_requested_data return {"fd.num":103675,"shift.num":582,"shift.opened":0,"shift.open_date":0} [12:43:28]process_action_free close_shift [12:43:28]json_value_free [12:43:28]json_value_free done [12:43:28]process_json_proto returns [12:43:28]Send response to host [12:43:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103675,"shift.num":582,"shift.opened":0,"shift.open_date":0}}} [12:43:28]free response buf [12:43:28]execute_script done [12:43:28]execute_script returns [12:43:28]free content buf [12:43:28]Sock 9.Close socket [12:43:28]Sock 9.Thread stoped [12:43:30]ConnectInit Can't take IP for lk.salyk.kg [12:43:30]CommunicateWithHost connect error [12:43:30]CommunicateWithHost err = -1 [12:43:30]OFD Sender: Server communicate error [12:43:35]OFD Sender: Processing packet 103675 [packets to send 498, broken 497] [12:43:35]ProducePacketName [12:43:35]name=ofd_packets/00103675 [12:43:35]OFD Sender: To server: pG, [12:43:35]CommunicateWithHost lk.salyk.kg:30040 [12:43:35]ConnectInit lk.salyk.kg [12:43:40]ConnectInit Can't take IP for lk.salyk.kg [12:43:40]CommunicateWithHost connect error [12:43:40]CommunicateWithHost err = -1 [12:43:40]OFD Sender: Server communicate error [12:43:45]OFD Sender: Processing packet 103675 [packets to send 498, broken 497] [12:43:45]ProducePacketName [12:43:45]name=ofd_packets/00103675 [12:43:45]OFD Sender: To server: pG, [12:43:45]CommunicateWithHost lk.salyk.kg:30040 [12:43:45]ConnectInit lk.salyk.kg [12:43:48]recv_with_timeout no data received [12:43:50]ConnectInit Can't take IP for lk.salyk.kg [12:43:50]CommunicateWithHost connect error [12:43:50]CommunicateWithHost err = -1 [12:43:50]OFD Sender: Server communicate error [12:43:55]OFD Sender: Processing packet 103675 [packets to send 498, broken 497] [12:43:55]ProducePacketName [12:43:55]name=ofd_packets/00103675 [12:43:55]OFD Sender: To server: pG, [12:43:55]CommunicateWithHost lk.salyk.kg:30040 [12:43:55]ConnectInit lk.salyk.kg [12:44:00]ConnectInit Can't take IP for lk.salyk.kg [12:44:00]CommunicateWithHost connect error [12:44:00]CommunicateWithHost err = -1 [12:44:00]OFD Sender: Server communicate error [12:44:05]OFD Sender: Processing packet 103675 [packets to send 498, broken 497] [12:44:05]ProducePacketName [12:44:05]name=ofd_packets/00103675 [12:44:05]OFD Sender: To server: pG, [12:44:05]CommunicateWithHost lk.salyk.kg:30040 [12:44:05]ConnectInit lk.salyk.kg [12:44:10]ConnectInit Can't take IP for lk.salyk.kg [12:44:10]CommunicateWithHost connect error [12:44:10]CommunicateWithHost err = -1 [12:44:10]OFD Sender: Server communicate error [12:44:15]OFD Sender: Processing packet 103675 [packets to send 498, broken 497] [12:44:15]ProducePacketName [12:44:15]name=ofd_packets/00103675 [12:44:15]OFD Sender: To server: pG, [12:44:15]CommunicateWithHost lk.salyk.kg:30040 [12:44:15]ConnectInit lk.salyk.kg [12:44:18]Connected sock=9 [12: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 31 31 77 05 00 00 69 75 6F 05 E8 D3 5A 05 01 00 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 94 D0 BE D0 BE D1 80 D0 BE D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 5C EF 18 67 0E 04 04 00 46 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 5E 04 04 00 56 00 00 00 57 04 04 00 58 00 00 00 AA 04 D5 04 6E 04 04 00 56 00 00 00 69 04 A2 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA 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 FB 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 35 04 06 00 3D 51 63 FC 77 7C 2D ED 0A 1D DA 4D 6E FD [12:44:22]ConnectInit Can't connect to host [12:44:25]recv_with_timeout no data received [12:44:25]CommunicateWithHost answer receiving error [12:44:25]CommunicateWithHost err = -3 [12:44:25]OFD Sender: Server communicate error [12:44:27]ConnectInit Can't connect to host [12:44:30]OFD Sender: Processing packet 103675 [packets to send 498, broken 497] [12:44:30]ProducePacketName [12:44:30]name=ofd_packets/00103675 [12:44:30]OFD Sender: To server: pG, [12:44:30]CommunicateWithHost lk.salyk.kg:30040 [12:44:30]ConnectInit lk.salyk.kg [12:44:32]ConnectInit Can't connect to host [12:44:35]ConnectInit Can't take IP for lk.salyk.kg [12:44:35]CommunicateWithHost connect error [12:44:35]CommunicateWithHost err = -1 [12:44:35]OFD Sender: Server communicate error [12:44:37]ConnectInit Can't connect to host [12:44:40]OFD Sender: Processing packet 103675 [packets to send 498, broken 497] [12:44:40]ProducePacketName [12:44:40]name=ofd_packets/00103675 [12:44:40]OFD Sender: To server: pG, [12:44:40]CommunicateWithHost lk.salyk.kg:30040 [12:44:40]ConnectInit lk.salyk.kg [12:44:42]ConnectInit Can't connect to host [12:44:45]ConnectInit Can't take IP for lk.salyk.kg [12:44:45]CommunicateWithHost connect error [12:44:45]CommunicateWithHost err = -1 [12:44:45]OFD Sender: Server communicate error [12:44:47]ConnectInit Can't connect to host [12:44:50]OFD Sender: Processing packet 103675 [packets to send 498, broken 497] [12:44:50]ProducePacketName [12:44:50]name=ofd_packets/00103675 [12:44:50]OFD Sender: To server: pG, [12:44:50]CommunicateWithHost lk.salyk.kg:30040 [12:44:50]ConnectInit lk.salyk.kg [12:44:55]ConnectInit Can't take IP for lk.salyk.kg [12:44:55]CommunicateWithHost connect error [12:44:55]CommunicateWithHost err = -1 [12:44:55]OFD Sender: Server communicate error [12:45:00]OFD Sender: Processing packet 103675 [packets to send 498, broken 497] [12:45:00]ProducePacketName [12:45:00]name=ofd_packets/00103675 [12:45:00]OFD Sender: To server: pG, [12:45:00]CommunicateWithHost lk.salyk.kg:30040 [12:45:00]ConnectInit lk.salyk.kg [12:45:01]recv_with_timeout no data received [12:45:05]ConnectInit Can't take IP for lk.salyk.kg [12:45:05]CommunicateWithHost connect error [12:45:05]CommunicateWithHost err = -1 [12:45:05]OFD Sender: Server communicate error [12:45:10]OFD Sender: Processing packet 103675 [packets to send 498, broken 497] [12:45:10]ProducePacketName [12:45:10]name=ofd_packets/00103675 [12:45:10]OFD Sender: To server: pG, [12:45:10]CommunicateWithHost lk.salyk.kg:30040 [12:45:10]ConnectInit lk.salyk.kg [12:45:20]recv_with_timeout no data received [12:45:21]Connected sock=9 [12:45: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 31 31 77 05 00 00 69 75 6F 05 E8 D3 5A 05 01 00 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 94 D0 BE D0 BE D1 80 D0 BE D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 5C EF 18 67 0E 04 04 00 46 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 35 34 5E 04 04 00 56 00 00 00 57 04 04 00 58 00 00 00 AA 04 D5 04 6E 04 04 00 56 00 00 00 69 04 A2 00 6F 04 04 00 56 00 00 00 B1 04 03 00 64 7F 60 70 04 03 00 28 AA 41 72 04 03 00 3C D5 1E 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 18 40 0A 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 AD DA 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 FB 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 31 31 35 04 06 00 3D 51 63 FC 77 7C 2D ED 0A 1D DA 4D 6E FD [12:45: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 31 31 4F 00 00 00 28 7E 47 00 60 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 31 31 10 04 04 00 FB 94 01 00 F4 03 04 00 F6 96 18 67 B6 04 01 00 00 7B 5E 7F 3B C3 ED 64 E5 [12:45:24]CommunicateWithHost err = 0 [12:45:24]CheckOFDResponse [12:45:24]1017 (14) - 77093643461234 [12:45:24]1041 (16) - 0000000000871811 [12:45:24]1040 (4) - 103675 [12:45:24]1012 (4) - 23.10.2024 06:25 [12:45:24]1206 (1) - 0 [12:45:24]OFD Sender: Remove packet 103675 [12:45:24]ProducePacketName [12:45:24]name=ofd_packets/00103675 [12:45:24]NVStorageDeleteData [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:13]recv_with_timeout no data received [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:00]recv_with_timeout no data received [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:35]recv_with_timeout no data received [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]recv_with_timeout no data received [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:28]recv_with_timeout no data received [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]recv_with_timeout no data received [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:18]recv_with_timeout no data received [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:50]OFD Sender: No OFD packet to send [12:53:55]recv_with_timeout no data received [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:51]recv_with_timeout no data received [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:08]recv_with_timeout no data received [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:31]recv_with_timeout no data received [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:48]recv_with_timeout no data received [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:30]recv_with_timeout no data received [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:55]recv_with_timeout no data received [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:20]recv_with_timeout no data received [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:31]recv_with_timeout no data received [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:42]recv_with_timeout no data received [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:09]recv_with_timeout no data received [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:36]recv_with_timeout no data received [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01: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:35]recv_with_timeout no data received [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